/*
File Name: style.css
Author: IVYNET
Version: 1.0.0
* SUMMARY:
*     1) Reset
*     2) Promotion Style
*     3) Modal Popup
*
*/

/* ************************************** *
* Reset
* ************************************** */

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,textarea,p,blockquote,th,td,p,iframe,figure,a, input{margin:0;padding:0;font-size:inherit;word-break:keep-all;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;}
header,hgroup,footer,section,article,aside,nav,canvas,figure,figcaption{display:block}
table{font-size:inherit;border-collapse:separate;;border-spacing:0;table-layout:fixed}
th, td{word-wrap:break-word;word-break:break-all;font-weight:normal}
fieldset, iframe{border:0;vertical-align:top}
img{border:0;font-size:0;vertical-align:top;outline:0}
li,dd{list-style:none;word-break:keep-all;line-height:1.4;}
hr{display:block;clear:both;width:0;height:0;margin:0;padding:0;border:0;}
caption,figcaption{overflow:hidden;width:100%;height:1px;font-size:0;line-height:0;text-indent:-9999px;margin-top:-1px}
legend{display:block;position:absolute;left:-9999px;text-indent:9999px;width:0;height:0;overflow:hidden;font-size:0;line-height:0;white-space:nowrap}
button{padding:0;border:0;cursor:pointer;background:none;vertical-align:middle;appearance:none;-moz-appearance:none;font-family:dotum,'돋움';font-weight:400;}
h1, h2, h3, h4, h5, h6{font-weight:normal;line-height:1.3;font-size:100%}
p{line-height:1.4;}
a{color:#666;text-decoration:none}
a:hover,
a:focus{text-decoration:none}
em, i{font-style:normal}
img{margin:0;padding:0;}
strong{font-weight:inherit;}
select{height:22px;*height:auto;font-size:16px;color:#888;line-height:22px;vertical-align:middle;font-family:dotum,'돋움',sans-serif;}
select::-ms-expand{display:none}
input{margin:0;padding:0;font-size:inherit;color:#333;line-height:17px;vertical-align:middle;-webkit-border-radius:0;font-weight:400;}
input[type="text"], input[type="password"]{border:1px solid #D3D2D2;-webkit-appearance:none}
input[type="text"]:focus,
input[type="password"]:focus{border-color:#222}
input[type="text"]:disabled,
input[type="password"]:disabled{background-color:#f7f7f7}
input[type="radio"]{width:13px;height:13px;vertical-align:-1px;*margin-right:-3px}
input[type="checkbox"]{width:13px;height:13px;vertical-align:-2px;*vertical-align:0px}
input:checked[type="checkbox"]{background-color:#fff;-webkit-appearance:checkbox}
input[type="number"]{-moz-appearance:textfield;-webkit-appearance:none;-webkit-border-radius:0;-moz-border-radius: 0;-ms-border-radius:0;border-radius:0;}
textarea{width:100%;padding:0; color:#666; background-color:#fff; box-sizing:border-box; resize: vertical; -webkit-appearance:none; -webkit-border-radius:0; border:none;}


/* ************************************** *
* Promotion Style
* ************************************** */

.promotion-frame{
    position: relative;
    margin-left: auto;
    margin-right: auto;
    font-size: 100%;
    max-width: 480px;
    background-color: #00b3e3;
}

.promotion-frame img{
    display: block;
    max-width: 100%;
}

.blind-text{
    position: absolute;
    width: 1px;
    height: 1px;
    top: -99999px;
    left: -99999px;
    font-size: 0;
    text-indent: -99999px;
}

.slot-machine{
    position: relative;
    width: 100%;
}

.slot-machine .lever{
    position: absolute;
    bottom:16%;
    right:18%;
    width: 16%;
    height: 33%;
}

/* ************************************** *
* Modal Popup
* ************************************** */

body.modal-active{
    overflow: hidden;
    height: 100%;
}

.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    -webkit-transform: translate3d(-50%, 0, 0);
    -ms-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
}

.modal.active{
    display: block;
}

.modal .modal-vertical-center{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    /* padding: 3.611111%; */
    -webkit-transform: translate3d(0, -50%, 0);
    -ms-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
    font-size: 0;
    text-align: center;
}

.modal .modal-content{
    position: relative;
    display: inline-block;
}

.modal .modal-content img{
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0px;
}

.modal .modal-content img:nth-of-type(1){
    height: 25vh;
    max-height: 156px;
}

.modal .modal-content img:nth-of-type(2){
    height: 36.94vh;
    max-height: 230px;
}

.modal .modal-content img:nth-of-type(3){
    height: 25vh;
    max-height: 156px;
}

.overlay{
    background-color: rgba(0, 0, 0, .65);
    width: 100%;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index: -1;
}

.modal-toggler{
    position: absolute;
    top: -8px;
    right: -8px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0;
    background-image: url('../img/xbutton.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.modal-vertical-center{
    z-index: 1;
}
