@font-face {
font-family: grobold;
src: url( /games/edelweiss-directembedcode/assets/GROBOLD.ttf );
}

/*html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}*/

.mothergameholder * {
margin: 0;
padding: 0;
font-family: grobold;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition:none;
-webkit-transition:none;
-moz-transition:none;
-o-transition:none
}

.mothergameholder label, .mothergameholder input {
color: grey;
}

.mothergameholder button {
padding: 10px 20px 10px 20px;
border-radius: 5px;
}

.dialogue-box {
background-color: white;
border-radius: 10px;
border-color: black;
border-width: 5px;
border-style: solid;
cursor: default;
}

#title-background {
position: absolute;
height: 100%;
width: 100%;
object-fit: cover;
pointer-events: none;
background-color: #e3f9ff;
}

#black-screen {
position: absolute;
height: 100%;
width: 100%;
background-color: black;
pointer-events: none;
opacity: 0;
}

#loading-icon {
position: absolute;
width: 128px;
top: 0px;
right: 0px;
}

.show-black-screen {
animation: show_black_screen 0.22s linear forwards;
}

.hide-black-screen {
animation: hide_black_screen 1s ease-in-out forwards;
}

@keyframes show_black_screen {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes hide_black_screen {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}



#start-menu {
position: absolute;
display: none;
flex-direction: column;
justify-content: space-evenly;
top: 50%;
left: 50%;
transform: translate( -50%, -50% );
width: 100%;
height:100%;
}

#title-image-container {
text-align: center;
margin-bottom: 20px;
}

#title {
max-height: 50px; 
}

#menu-element {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}

@media screen and (max-width: 620px) {

#menu-element {
flex-direction: column;
}

#menu-element>div {
left: 50%;
transform: translateX( -50% );
}

#credits {
margin-top: 20px;
}

}

.menu-subelement {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-evenly;
padding:15px;
text-align: center;
background-color: white;
width:100%;
max-width:400px;
border-radius: 4px;
border-width: 1px;
border-style: solid;
border-color: #111111
}

.section-title {
font-size: 1.3em;
}

#start-button {
display: inline-block;
font-size: 1.6em;
border-style: solid;
border-width: 1px;
border-color: #111111;
border-radius: 4px;
padding: 15px;
color: #d7dee3;
background-color: #f2f6f9;
cursor: pointer;
width:100%;
}

#start-background {
background-color: #d7dee3;
height: 10px;
margin:10px 0 0;
}

#start-loaded {
background-color: green;
height: 10px;
width: 0;
}

#creator {
text-align: center;
}

.musician {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 2px;
}

.about-button {
background-color: #f2f6f9;
text-decoration: none;
color: black;
padding: 3px;
margin-left: 5px;
border-style: solid;
border-width: 1px;
border-radius: 4px;
font-size: 0.7em;
}












#joystick-container {
height: 100%;
width: 100%;
display: none;
-webkit-user-select : none;
-moz-user-select    : none;
}

#base {
width: 75px;
height: 75px;
}

#stick {
width: 75px;
height: 75px;
}

#cross {
position: absolute;
width: 75px;
height: 75px;
left: 52.5px;
opacity: 0.0 ;
}

.blink-cross {
animation: blink_cross 1s infinite ;
}

@keyframes blink_cross {
0% {
opacity: 1.0 ;
}
50% {
opacity: 0.0 ;
}
100% {
opacity: 1.0 ;
}
}

#action-button {
position: absolute;
height: 75px;
widows: 75px;
bottom: 52.5px;
right: 35px;
opacity: 0.5;
display: none;
}

.push-button {
animation: push_button 0.07s ease-in-out 1 forwards ;
}

.release-button {
animation: release_button 0.07s ease-in-out 1 forwards ;
}

@keyframes push_button {
0% {
width: 75px;
height: 75px;
bottom: 52.5px;
right: 35px;
}
100% {
width: 80px;
height: 80px;
bottom: 50px;
right: 32.5px;
}
}

@keyframes release_button {
0% {
width: 80px;
height: 80px;
bottom: 50px;
right: 32.5px;
}
100% {
width: 75px;
height: 75px;
bottom: 52.5px;
right: 35px;
}
}












#world {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: pink;
}

#gui {
position: absolute;
bottom: 0;
right: 0;
display: none;
}

#message-box {
position: absolute;
left: 50%;
top: 50%;
transform: translate( calc(-50% + 50px), calc(-50% + 50px) );
background-color: white;
padding: 20px;
margin: -50px;
font-size: calc( 100% + 1.5% );
text-align: center;
display: none;
}




#stamina-bar {
position: absolute;
left: 20px;
top: 20px;
height: 20px;
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
display: none;
width: calc(100% - 40px);
}

.blink-stamina {
animation: blink_stamina 0.15s infinite ;
}

@keyframes blink_stamina {
0% {
opacity: 1.0 ;
}
50% {
opacity: 0.3 ;
}
100% {
opacity: 1.0 ;
}
}

.stamina-section {
height: 100%;
width: calc( ( ( 100% - 40px ) / 9 ) - 4px );
margin-right: -2px;
background-color: rgba(153, 228, 78, 0.294);
border-radius: 4px;
border-color: white;
border-width: 2px;
border-style: solid;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.show-stamina {
animation: show_stamina 0.8s linear 1 forwards ;
}

@keyframes show_stamina {
0% {
opacity: 1 ;
}
10% {
opacity: 0 ;
}
20% {
opacity: 1 ;
}
30% {
opacity: 0 ;
}
40% {
opacity: 1 ;
}
50% {
opacity: 0 ;
}
60% {
opacity: 1 ;
}
70% {
opacity: 0 ;
}
80% {
opacity: 1 ;
}
90% {
opacity: 0 ;
}
100% {
opacity: 1 ;
}
}

.stamina-gauge {
width: 100%;
height: 100%;
background-image: url( '/games/edelweiss-directembedcode/assets/stamina-backgorund.png' );
}



#overlay {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba( 0, 0, 0, 0.5 );
display: none;
}








#talk-container {
position: absolute;
padding: 20px 0px 20px 0px;
bottom: -210px;
left: 10px;
width: calc( 100% - 10px - 20px );
height: 160px;
max-height: calc( 25% - 40px );
}

@media screen and ( max-height: 750px ) {

#talk-container {
padding: 5px 0px 5px 0px;
height: 190px;
max-height: calc( 25% - 10px );
}

}

#talk-subcontainer {
position: relative;
width: 70%;
max-height: 100%;
left: 50%;
top: 50%;
transform: translate( -50%, -50% );
overflow-y: auto;
}

#text-container {
font-size: calc( 100% + 1% );
text-align: center;
}

#answers-container {
padding-top: 10px;
display: none;
justify-content: space-evenly;
}

.answer {
display: inline-block;
margin: 0px 10px 0px 10px;
text-align: center;
font-size: 2em;
}

.selected-answer {
text-decoration: underline;
animation: blink_selected_answer 0.7s infinite ;
}

@keyframes blink_selected_answer {
0% {
color: black;
}
50% {
color: #888888;
}
100% {
color:black;
}
}



.show-talk {
animation: show_talk 0.25s ease-out 1 forwards;
}

.hide-talk {
animation: hide_talk 0.15s ease-in 1 forwards;
}

@keyframes show_talk {
0% {
bottom: -210px;
}
100% {
bottom: 10px;
}
}

@keyframes hide_talk {
0% {
bottom: 10px;
}
100% {
bottom: -210px;
}
}




#talker-name-container {
position: absolute;
padding: 10px 20px 10px 20px;
bottom: -80px;
right: 5%;
font-size: calc( 100% + 2% );
}

.show-talker-name {
animation: show_talker_name 0.6s ease-out 1 forwards;
}

.hide-talker-name {
animation: hide_talker_name 0.25s ease-in 1 forwards;
}

@keyframes show_talker_name {
0% {
bottom: -80px;
}
100% {
bottom: 25%;
}
}

@keyframes hide_talker_name {
0% {
bottom: 30%;
}
100% {
bottom: -80px;
}
}





#char-container {
position: absolute;
height: 100%;
width: 300px;
max-width: 50%;
bottom: 0px;
right: -305px;
display: flex;
flex-direction: column-reverse;
}

#char-img-cont {
position: absolute;
width: 100%;
max-width: 75%;
bottom: 0px;
right: 0px;
}

.char-img {
width: 100%;
}

.show-char {
animation: show_char 0.3s ease-out 1 forwards;
}

.hide-char {
animation: hide_char 0.3s ease-in 1 forwards;
}

@keyframes show_char {
0% {
right: -250px;
}
100% {
right: 0px;
}
}

@keyframes hide_char {
0% {
right: 0px;
}
100% {
right: -305px;
}
}