/*
 *  Remodal - v1.1.1
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: scroll;
  overflow-x: hidden;
  -ms-touch-action: none;
  touch-action: none;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;

  display: none;
}

/* Necessary styles of the wrapper */

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: none;
  overflow: auto;

  text-align: center;

  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;

  height: 100%;
  margin-left: -0.05em;

  content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;
  outline: none;

  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.remodal-is-initialized {
  /* Disable Anti-FOUC */
  display: inline-block;
}



/* Dropdown
-------------------------------------------------------*/
.dropdown {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #fff;
    border: 2px solid #ccc;
    box-sizing: border-box;
}
.dropdown:before, .dropdown:after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 10px;
  width: 0;
  height: 0;
  border: 4px dashed;
  border-color: #333 transparent;
  pointer-events: none;
}
.dropdown:before {
  border-bottom-style: solid;
  border-top: none;
}
.dropdown:after {
  margin-top: 7px;
  border-top-style: solid;
  border-bottom: none;
}
.dropdown > a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 5px;
    display: block;
    text-align: left;
    overflow: hidden;
}

/* modal contents
-------------------------------------------------------*/
.remodal ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    height: 80vh;
    overflow: auto;
    padding-right: 10px;
    padding-bottom: 30px;
    margin-top: 15px;
}
.remodal ul li {
    color: #333;
	text-align: left;
	font-size: 16px;
	font-weight: bold;
    cursor: pointer;
    margin-top:  50px;
    position: relative;
    vertical-align: top;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 10px;

}
.remodal ul .em-font {
    width: 690px;
    margin-left: 40px;
    display: block;
    margin-top: 0;
    margin-bottom: 30px;
}
.remodal ul .em-font img{
    margin: 0 auto;
    width: 100%;
}
.remodal ul .em-size {
    width: 340px;
    display: inline-block;
    text-align: center;
}
.remodal ul .em-size img{
    margin: 0 auto;
    width: 100%;
}
.remodal ul .em-color {
    width: 130px;
    display: inline-block;
    text-align: center;
}
.remodal ul .em-color img{
    margin: 0 auto;
    width: 100%;
    max-width: 105px;
}




.remodal ul .em-motif {
    width: 30%;
    display: inline-block;
    text-align: center;
}
.remodal ul .em-motif img{
    margin: 0 auto;
    width: 100%;
    max-width: 165px;
}

.remodal ul li:hover {
    opacity: 0.7;
}

.remodal ul li::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid #009a9a;
	border-radius: 50%;

}

.remodal ul li:hover::after {
    content: "";
    position: absolute;
    top: -30px;
    margin-top: 6px;
    left: 50%;
    margin-left: -4px;
    width: 12px;
    height: 12px;
	background: #009a9a;
	border-radius: 50%;

}
.remodal ul .em-font::before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -10px;
    left: -40px;
    margin-left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #009a9a;
	border-radius: 50%;


}
.remodal ul .em-font:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -4px;
    left: -40px;
    margin-left: 6px;
    width: 12px;
    height: 12px;
	background: #009a9a;
	border-radius: 50%;

}
.remodal ul li img{
    display: block;
    max-width: 630px;

}
@media screen and (max-width:768px) {


    .remodal ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        height: 80vh;
        overflow: auto;
        padding-right: 10px;
        padding-bottom: 30px;
        margin-top: 15px;
        padding: 20px 0;
    }
    .remodal ul li {
        color: #333;
        text-align: left;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 50px;
        position: relative;
        vertical-align: top;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
        padding: 10px;
        width: 100%;

    }


    .remodal ul .em-font {
        width: 100%;
        margin-left: 0;
        display: block;
        margin-top: 50px;
        margin-bottom: 20px;
    }
    .remodal ul .em-font img{
        margin: 0 auto;
        width: 100%;
    }
    .remodal ul .em-size {
        width: 100%;
    }
    .remodal ul .em-color {
        width: 48%;
    }
    .remodal ul .em-color img{
        max-width: 105px;
    }




    .remodal ul .em-motif {
        width: 48%;
    }
    .remodal ul .em-motif img{
        max-width: 165px;
    }

    .remodal ul li::before {
        top: -30px;
        left: 50%;
        margin-left: -6px;
        width: 12px;
        height: 12px;
    }

    .remodal ul li:hover::after {
        top: -30px;
        margin-top: 4px;
        left: 50%;
        margin-left: -2px;
        width: 8px;
        height: 8px;
    }
    .remodal ul .em-font::before {
        top: -30px;
        left: 50%;
        margin-top: 0;
        margin-left: -6px;
        width: 12px;
        height: 12px;
    }
    .remodal ul .em-font:hover::after {
        top: -30px;
        margin-top: 4px;
        left: 50%;
        margin-left: -2px;
        width: 8px;
        height: 8px;
    }










}
