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

/* ************************************** *
* 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, .tit{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;}

/* **************************************** *
* Web font
* **************************************** */

@import url('http://cdn.jsdelivr.net/font-nanum/1.0/nanumbarungothic/nanumbarungothic.css');

body{
    font-family: 'Nanum Barun Gothic', sans-serif;
}

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

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

.promotion-frame img{
    display: block;
    max-width: 100%;
    margin-top: -1px;
}

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

.section-02, .section-03  {
    position: relative;
}

.section-02 .video-bg {
    position: absolute;
    bottom:0;
    padding-left: 9.3055%;
    padding-right: 9.3055%;
}

.modal video {
    width: calc(100% - 8px);
    border: 4px solid #7c7ab4;
    border-radius: 2px;
    background:transparent url('../images/SH-sleep-story-video-img.jpg') no-repeat 0 0;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    background-size:cover;
}
.audio-bg {
    position: absolute;
    bottom:0;
    padding-left: 13.3333%;
    padding-right: 13.3333%;
}

.audio-bg audio {
    width: 525px;
    max-width: 100%;
}

.btns {
    background-image: url('../images/SH-sleep-story-06-bg.jpg');
    background-repeat: no-repeat;
    padding-left: 14.3055%;
    padding-right: 14.3055%;
    padding-top: 13.8888%;
    padding-bottom: 10.9722%;
}

audio::-webkit-media-controls-panel {
    background-color: #f2f3f5;
}

.tab-on {
    width: calc(100% - 8px);
}

.tab-on img {
    border: 4px solid #7c7ab4;
    border-radius: 2px;
}

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

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

.modal {
    display: none;
    position: fixed;
    overflow: auto;
    width: 100%;
    max-width: 480px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

.modal.active {
    display: block;
}

.modal .modal-vertical-center {
    width: 100%;
    margin: 0 auto;
    padding: 0 9.3055%;
    font-size: 0;
    text-align: center;
    max-width: 480px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
}

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

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

.overlay {
    background-color: rgba(0, 0, 0, .75);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.close-btn {
    position: absolute;
    top: 2.7777%;
    right: 1%;
    width: 10.8333%;
    height: 16.8333%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0;
    background-image: url('../images/close.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    z-index: 1;
}

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