@font-face {
    font-family: 'superLobster';
    src: url('fonts/Super Lobster.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'superFoods';
    src: url('fonts/SuperFoods-2OxXo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

.label{
    font-family: 'superFoods', sans-serif;
    font-weight: bolder;
    font-size: 25px;
}


body{
    background: url(../images/bg.png);
}

#counter{
    position: absolute; 
    top: 0; 
    left: 40%; 
    width: 50%; 
    height: 40%; 
    border-radius: 10px; 
    overflow: hidden; 
    text-align: center;
    z-index: 15;
    font-size: 250px;
    font-weight: bolder;
    color: rgb(7, 51, 3);
    padding-top: 10%;

    background-size: cover;
    background-repeat: no-repeat;
}

#counterImages{
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    display: block;
}

#gameover:hover{
    color: blue;
}




.bar-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-top: -70%;
    z-index: 500;
}




#main-cont {
    position: absolute; 
    top: 25%; 
    left: 30%; 
    width: 40%; 
    height: 40%; 
    background: #29c403; 
    z-index: 1;

    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;

    border: 10px solid brown;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

th:nth-child(1), td:nth-child(1) {
    width: 60%;
}

th:nth-child(2), td:nth-child(2) {
    width: 40%;
}

.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

button {
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;

    transition: 0.2s;
}






/*TIMER STYL*/

#TIMER{
    position: fixed;
}
#timer_container{
    display: flex;
    position: absolute; 
    top: 2%; 
    overflow: hidden; z-index: 1;
    background-image: url(../images/EnvironemntImages/game/timer.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;


    width:30%;
    height: 20%;
    font-size: 4vb;
    align-items: center;
    align-content: center;
    left: 1%;
    color: black;
    font-family: 'superLobster', sans-serif;
    font-weight: bolder;
    justify-content: center;
}



#warning{

    display: flex;
    position: absolute; 
    top: 20%;
    left: 30%; 
    overflow: hidden; z-index: 1;
    width:50%;
    height: 10%;
    color: rgb(255, 153, 0);
    font-family: 'superFoods', sans-serif;
    font-weight: bolder;
    font-size: 60px;
    letter-spacing:  10px;

}



#intro{
    position: absolute;
    background-color: rgb(214, 214, 138);
    padding: 20px;
    font-family: 'superFoods', sans-serif;
    font-weight: bolder;
    font-size: 20px;
    width: 35%;
    height: 25%;
    left: 30%;
    top: 30%;
    border: 10px solid brown;
}
#continBtn{
    width: 30%;
    height: 30%;
    position: relative;
    background-color: yellow;
    border: 4px solid brown;
    color: black;
    margin-left: 70%;
    margin-top: 10%;
    font-family: 'superFoods', sans-serif;
    font-weight: bolder;
    font-size: 25px;
    letter-spacing: 5px;
    transition: 5sec;
}


/*SCREEN SHAKING*/
/*#renderCanvas {
  animation: shake 0.7s;
}
*/
@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-10px, -10px); }
  40% { transform: translate(10px, 10px); }
  60% { transform: translate(-10px, -10px); }
  80% { transform: translate(10px, -10px); }
  100% { transform: translate(0, 0); }
}

.shake {
    animation: shake 0.5s;
  }

  


#soundContainer {
    position: absolute;
    bottom: 70px;       
    left: 0;        
    margin: 20px;    
    width: 10%;
    height: 50%;  
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    box-sizing: border-box;


}


.bar-wrapper {
    flex: 1; 
    max-width: 120px; 
    display: flex;
    flex-direction: column;
    align-items: left;
}

#loudnessBarContainer,
#speedBarContainer {
    width: 50%; 
    height: 100%;
    position: relative;
    overflow: hidden;
    max-width: 55%;
    min-width: 55%;
    max-height: 40vh;
    min-height: 40vh;

    background-image: url(../images/EnvironemntImages/game/scale.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    bottom: 0;
}


#loudnessBar, #speedBar {
    position: absolute;
    bottom: 0;
    width: 80%;
    max-width: 90%;
    min-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    height: 0%;
    transition: height 0.1s ease;
}
.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-end;
    gap: 10px;
    width: 100px;
    height: 100px;
}

.bar-icon {
    width:70px;    
    height: 70px;
    object-fit: contain;
}





#descDiv {
  width: 70%;
  height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
  z-index: 100;
}


#description {
  flex-grow: 1;
  width: 100%;
  background-image: url(../images/EnvironemntImages/game/emptyRole.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#description {
    position: relative;
    text-align: center; 
    padding-top: 20px;  
}

#HowToPlay {
    margin: 0;
    margin-top: 1%;
    font-size: 50%;
    color: white;
    font-size: 40px;
    font-family: 'superLobster', sans-serif;
    font-weight: bolder;
    
    
    justify-content: center;
}


#textImg{

    position: absolute;
    top: 20%; 
    left: 50%;
    transform: translateX(-50%); 
    
    width: 80%;
    height: 60%;


    color: rgb(53, 12, 12);
    font-family: 'superLobster', sans-serif;
    font-weight: bolder;
    font-size: 35px;


    /*background-image: url(../images/EnvironemntImages/game/tutorial.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;*/

}

#playBtn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 20%;
  background-image: url(../images/EnvironemntImages/characterSelection/play.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;

  line-height: 40px;
  border-radius: 5px;
  cursor: pointer;
}
