/* Fonts */
@font-face{
	font-family:"MuseoSansRounded700";
	font-style:normal;
	src:url("/js/fonts/museosansrounded-700.woff") format("woff"),url("/js/fonts/museosansrounded-700.ttf") format("truetype");
}
@font-face{
	font-family:"Palanquin";
	font-style:normal;
	src:url("/js/fonts/Palanquin.ttf") format("truetype");
}


#sceneH5 {
    position:relative;
    width:100%;
    max-width:900px;
    padding:20px 0;
    box-sizing:border-box;
    margin:20px auto;
    background-size:cover;
}

#sceneH5 .sceneH5_characters {
    width: 90%;
    margin:auto;
    display: flex;
    justify-content: space-around;
}

#sceneH5 #sceneH5_character1, #sceneH5 #sceneH5_character2 {
    background-repeat:no-repeat;
    background-size:contain;
    background-position:bottom center;
    -webkit-transform:scale(1);
    -ms-transform:scale(1);
    transform:scale(1);
    filter:brightness(100%);
    width:300px;
    height:300px;
    transition: all 0.25s;
    -webkit-transform-origin: bottom center;
    -ms-transform-origin: bottom center;
    transform-origin: bottom center;
    -webkit-animation: sceneH5_characterIdle 3s infinite;
    animation: sceneH5_characterIdle 3s infinite;
}

#sceneH5 #sceneH5_character2 {
    -webkit-animation-delay:1s;
    animation-delay:1s; /* So characters idle asynchronously */
}

#sceneH5 #sceneH5_character1.sceneH5_characterUnfocus, #sceneH5 #sceneH5_character2.sceneH5_characterUnfocus {
    -webkit-filter: brightness(60%);
    filter: brightness(60%);
    width: 250px;
}

#sceneH5 #sceneH5_character1Name, #sceneH5 #sceneH5_character2Name {
    border-radius:5px;
    position:absolute;
    max-width:90%;
    width:auto;
    padding:5px 10px;
    box-sizing:border-box;
    top:-20px;
    
    color:#fff;
    text-align:center;
    min-width:100px;
    transition: all 0.5s;
    border:3px solid #fff;
    font-family: "Palanquin", 'Arial Bold', sans-serif;
    line-height: 15pt;
    font-size: 14pt;
}
#sceneH5 #sceneH5_character1Name {
    left:5%;
    background-color:#6ba0f8;
}
#sceneH5 #sceneH5_character2Name {
    right:5%;
    background-color:#780b0a;
}

#sceneH5 .sceneH5_dialogueBox {
    position:relative;
    width:90%;
    margin:-5px auto auto;
    border-radius:20px;
    background-color:#fff3ef;
    z-index:2;
    min-height:150px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:20px 20px 45px;
    box-sizing:border-box;
    border:2px solid #000;
    -webkit-box-shadow: 0px 3px 0px 0px rgba(0,0,0,1), inset 0px 4px 0px 2px rgba(255,255,255,1);;
    -moz-box-shadow: 0px 3px 0px 0px rgba(0,0,0,1), inset 0px 4px 0px 2px rgba(255,255,255,1);;
    box-shadow: 0px 3px 0px 0px rgba(0,0,0,1), inset 0px 4px 0px 2px rgba(255,255,255,1);;
}
#sceneH5 #sceneH5_dialogue {
    text-align:center;
    color:#545454;
    font-family: "MuseoSansRounded700", 'Arial', sans-serif;
    font-size:12pt !important;
}
#sceneH5 .sceneH5_branch {
    position: relative;
    width: 100%;   
    border-radius: 20px;
    background-color: #fff3ef;
    z-index: 2;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 20px;
    box-sizing: border-box;
    border: 2px solid #000;
    text-align: center;
    color: #545454;
    font-family: "MuseoSansRounded700", 'Arial', sans-serif;
    font-size: 12pt !important;
    cursor: pointer;
}    

.sceneH5_branches {    
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Buttons */

#sceneH5_skip {
    border-radius:15px;
    color:#fff;
    text-align:center;
    padding:10px 20px;
    border:2px solid #fff;
    position:absolute;
    z-index:3;
    top:10px;
    left:10px;
    background-color:rgba(0,0,0,0.5);
    -webkit-box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.5);
    font-family: "Palanquin", 'Arial Bold', sans-serif;
    font-size:11pt !important;
    line-height:11pt !important;
    cursor:pointer;
    outline:none;
}
#sceneH5_skip:hover, #sceneH5_skip:focus {
    color:#000;
    background-color:rgba(255,255,255,0.5);
}

.sceneH5_controls {
    width:100%;
    height:25px;
    position:absolute;
    bottom:0;
    left:0;
    padding: 0px 20px 10px;
    box-sizing:border-box;
    display:flex;
    flex-flow: row nowrap;
    justify-content:space-between;
    align-items:center;
}

#sceneH5_forward, #sceneH5_reset, #sceneH5_back {
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    cursor:pointer;
    height:25px;
    padding:0;
    background-color:unset;
    border:none;
}
#sceneH5_forward:active, #sceneH5_reset:active, #sceneH5_back:active, #sceneH5_skip:active {
    outline:none;
}

#sceneH5_forward {
    background-image:url(/dialogue/forward.svg);
    width:30px;
    position:absolute;
    right:10px;
}

#sceneH5_back {
    background-image:url(/dialogue/back.svg);
    width:30px;
    position:absolute;
    left:100px;
}

#sceneH5_reset {
    background-image:url(/dialogue/reset.svg);
    width:50px;
}

@media screen and (max-width:620px) {
    #sceneH5 #sceneH5_character1, #sceneH5 #sceneH5_character2 {
        /*height:200px;*/
        /*width:200px;*/
        width:45%;
        height:0px;
        padding-bottom:45%;
    }
    #sceneH5 #sceneH5_character1.sceneH5_characterUnfocus, #sceneH5 #sceneH5_character2.sceneH5_characterUnfocus {
        /*height:170px;*/
        /*width:180px;*/
        width:40%;
        /*height:0;
        padding-bottom:35%;*/
    }
}

/* ANIMATIONS */

@keyframes sceneH5_characterIdle {
    0% { 
        -webkit-transform:scaleY(1);
        -ms-transform:scaleY(1);
        transform:scaleY(1);}
    50% { 
        -webkit-transform:scaleY(0.95);
        -ms-transform:scaleY(0.95);
        transform:scaleY(0.95);}
    100% { 
        -webkit-transform:scaleY(1);}
        -ms-transform:scaleY(1);}
        transform:scaleY(1);}
}