:root {
    --screen-width: 1024px;
    --screen-height: 576px;
}
.bubble {
    position: absolute;
    height: fit-content;
    padding: 2px 10px;
    width:  80%;
    font-size: 2em;
    user-select: none;
}
.button_style {
    border: 5px solid darkblue;
    background-color: turquoise;
    color:white ;
    text-align: center;
    user-select: none;
}
.button-row {
    position: relative;
    height: 50px;
    left: 10px;
    top: 0 ;
    width: 100% ;
    z-index: 50 ;
}
.lang_style  {
vertical-align: top;
}

/* Styles for dialog.js */
.choice-button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px;
}
#dialog-box {
    width: 25%;
    height: auto;
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.dialog-box-end {
    background-color: white;
    border: 1px solid black ;
}

#dialog-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: var(--screen-width) ;
    height: var(--screen-height) ;
    top: 0;
    z-index: 50;
}

.dialog7gen_holder {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: contain;
    pointer-events: none;
}

.dialog7gen {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width:50%;
    min-height: 20%;
    border: black 5px solid;
    padding: 5px;
    background-color: white;
    user-select: none;
}

.okbuttonrow {
    display: flex;
    flex-direction: row;
    justify-content: right;
    padding: 5px;
}

.okbutton7gen {
    border: 2px solid black;
    user-select: none;
    background-color: lightgray;
    color: black;
    border-radius: 15px;
    padding: 6px;
    pointer-events: all;
}
/* Button on end_game.html page that links to credits page */
#credits {
    position: absolute ;
    width: min(50%,120px) ;
    top: 74% ;
    left: 10%;
    z-index: 5;

}



#hint , .hint {
    position: absolute;
    height: 50px;
    font-size: 2em ;
    max-width: 100px ;
    right:0 ;
    top:0 ;
    z-index: 5;
}


#instructions {
    display: flex;
    width: 70%;
    justify-content: center;
    justify-self: center;
    font-size: 2em;
    margin-left: max(72px,15%) ;

}
#instructions1 {
    position: relative ;
    width: 70%;
    z-index: 10;
}

/* Buttons to change language from English and back again */

#lang , #lang1button , #lang2button {
    top:0 ;
    width: fit-content;

    height: fit-content;
    margin-bottom: 2%;
}
#layer1 , #layer2, #main  {
    position: absolute;
    left: 0 ;
    width: var(--screen-width) ;
    height: calc(100%  - 50px) ;
}
#layer1 {
    z-index: 2;

}
#layer2 {
    z-index: 3;

}

#next, .next, #back, .back {
    height: 50px ;
    width:50px;
    font-size: 2em ;
}


#play-audio {
    font-size: 2em;
    width: 50px;
    position: relative;
    left: 0 ;
    top:0 ;
    z-index: 10;
}
 #play1 > img , #play2 > img{
    width: 70px;
    height: 70px;
}
#play_button , #play  {
    width: 70px;
    height: 70px;
}
#play_button  {
    position: absolute ;
    bottom: 20% ;
    left: 40% ;
}
#score {
    width: fit-content;
    position: absolute;
    padding: 3px;
    right: 1%;
    bottom: 1%;
}

#title {
    position: absolute;
    width: 50%;
    height: fit-content;
    left: 25%;
    top: 45%;
    text-align: center;
    font-size: 2em;
    user-select: none;
}
#tryagain {width: max(25%, 200px);}
#wrapper {
    position: relative;
    width: var(--screen-width) ;
    height: var(--screen-height) ;
    padding: 0 ;

}