@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Lobster&family=Permanent+Marker&family=VT323&display=swap');
*{box-sizing: border-box;}
body {
  margin:0;
  background-color: #56587b;
  user-select: none;
  overflow: hidden;
}

#TurnScreen, #GameOver{
  display: none;
}

header{
  position: relative;
  display: inline-block;
  height: 100vh;
}

canvas{
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
}

#GlobalStrength{
  z-index: 50;
  position: absolute;
  top: 10%;
  left: 25%;
  filter: grayscale(100%);
}

#StrengthBar {
  display: block;      
  width: 587px;
  border: solid 1px gray;
  border-radius: 10px;
  height: 25px;
  background: linear-gradient(90deg, green, yellow, red);
}

#StrengthTextBackground{
  z-index: 0;
  margin: 0;
  top: -20px;
  left: 50px;
  position:absolute;
  width: 150px;
  height: 35px;
  border-radius: 20px;
  background: linear-gradient(180deg, lightblue,white);
  border: solid 1px gray;
  border-bottom: none;
}

#StrengthText h2{
  top: -25px;
  left: 50px;
  z-index: 10;
  font-family: 'Courgette', cursive;
  font-size: 18px;
  margin: 0;
  position: absolute;
  width: 150px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  text-shadow: rgba(255, 0, 0, 0.7) 1px 0 10px;
}
    
#Strength {
  width: 0;
  overflow: hidden;
  position: absolute;
  border-radius: 50px;
}

#StrengthBackground{
  display: block;      
  width: 587px;
  border: solid 1px lightblue;
  border-radius: 10px;
  height: 25px;
  background: gray;
  position: absolute;
  top: 10%;
  left: 25%;
}

#Score{
  z-index: 300;
  font-family: 'Lobster', cursive;
  width: 150px;
  justify-content: center;
  font-size: 24px;
  display: flex;
  position: absolute;
  border: solid 1px white;
  border-radius: 10px;
  background-color: rgba(0, 255, 213, 0.171);
  top : 5%;
  left: 80%;
  filter: grayscale(100%);
}

#MainMenu{
  z-index: 100;
  display: flex;
  position:absolute;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 50px;
}

#PageLoad{
  display:contents;
}

#Rules p{
  font-family: 'Courgette', cursive;
  font-size: 23px;
}

#PageLoad button{
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  background-color: rgba(13, 255, 0, 0.407);
  text-shadow: #FC0 1px 0 10px;
  border-radius: 25px;
  justify-content: center;
  align-items: center;
  display: flex;
  right: auto;
  width: 150px;
  height: 100px;

}

#Timer{
  z-index: 300;
  display: flex;
  position: absolute;
  left: 5%;
  top : 5%;
  width: 140px;
  font-size: 24px;
  font-family: 'Courgette', cursive;
  border: solid 1px white;
  border-radius: 10px;
  background-color: rgba(0, 255, 213, 0.171);
  justify-content: center;
  filter: grayscale(100%);

}

#GameOver{
  text-align: center;
}

#GameOver h1{
  font-family: 'Permanent Marker', cursive;
  font-size: 48px;
  color: red;
  text-shadow: 1px 1px 2px black;
}

#GameOver button{
  width: 150px;
  height: 50px;
  font-size: 24px;
  font-family: 'Permanent Marker', cursive;
  border-radius: 25px;
  background-color: rgba(13, 255, 0, 0.407);
  text-shadow: #FC0 1px 0 10px;
}

#Audio{
  z-index: 300;
  position: absolute;
  display:none;
  top: 15%;
  left: 5%;
}

#Background{
  display: block;
  z-index: -10;
  position: fixed;
  background-size: contain;
  background-repeat:round;
  width: 100vw;
  height: 100vh;
  background-image: url("../src/img/backgroundSite.jpg");
  filter: grayscale(100%);
}

#GetSource{
  display: flex;
  z-index: 300;
  position: fixed;
  font-family: 'Permanent Marker', cursive;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  width: 130px;
  height: 30px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.479);
  
  top: calc(100vh - 75px);
  left: calc(100vw - 200px);
  border: solid 1px;
}

#GetSource a{
  text-decoration: none;
  color: rgb(0, 157, 255);
}

@media(max-width:1279px){
  #TurnScreen{
    font-family: 'Permanent Marker', cursive;
    font-size: 80px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    border: solid 1px black;
  }
  #Game, #MainMenu, #Audio, canvas, #Background, #GetSource{ display: none;}
}