@font-face {
  font-display: swap;
  font-family: "Luckiest Guy";
  font-style: normal;
  font-weight: 400;
  src: url("./img/5.Font/LuckiestGuy-Regular.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Luckiest Guy", sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("./img/import/jelly.jpg");
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

main {
  width: 750px;
  height: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("./img/import/frame.jpg");
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;
  border-radius: 50px;   
}

.headline {
  width: 650px;
  height: 200px;
}

#canvas,
#instructions,
#game-over,
#you-win,
#landscape,
#soundoff {
  display: none;
}

#canvas {
  border-radius: 50px;
}

#soundon,
#soundoff,
#soundonmenu,
#soundoffmenu,
#home {
  cursor: pointer;
}

#screenwrapper:fullscreen {
  canvas,
  #overlay,
  .in-main {
    width: 100vw;
    height: 100vh;
  }
   
  #instructions, #menu {
    gap: 60px;    
  } 

  p, span, div:not(.legal) {
    font-size: 32px;
  }

  #instructions p {
    max-width: 80%;
  }

  #game-over,
  #you-win {
  gap: 120px;  
  }

  .trophy1 {
    width: 200px;
    height: 200px;
    left: -300px;
    top: 50px
  }

  .trophy2 {
    width: 200px;
    height: 200px;
    left: 335px;
    top: 50px
  }
}

#menu {
  position: relative;
  display: flex;
  gap: 30px;
}

.legal {
    position: absolute;
    color: white;
    right: 40px;
    bottom: 20px;
    font-size: 16px;
}
#game-over,
#you-win {
  gap: 30px;
  z-index: 3;
}

.in-main {
  width: 720px;
  height: 480px;
  border-radius: 50px;
}

#menu,
#instructions,
#you-win,
#game-over,
#landscape,
#legal-terms {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-over span, .resultcontainer span {
  color: white;
  font-size: 24px;
  text-align: center;
}

#resulteval {
  max-width: 70%;
}

#landscape {
  height: 100vh;
  width: 100vw;
}

#screenwrapper {
  background-image: url("./img/3. Background/Dark/1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  position: relative;
}

.buttoncontainer {
  display: flex;
  align-items: center;
  width: 550px;
  justify-content: space-evenly;
}

.button,
.button-diff,
.difficulty {
  font-size: 32px;
}

.button-diff:not(.selected) {
  margin: 0px 15px;
  
}

#legal-terms {
    display: none;
    gap:20px;
}

#legal-terms p, #legal-terms li {
    color: white;
}

#legal-terms a {
  color: aqua;
}

#legaltext {
    width: 70%;
    height: 60%;    
    overflow-y: auto;
}

.difficulty {
  color: white;
  text-decoration: underline 5px;
}

.button,
.button-back {  
  display: inline-block;
  background-color: rgb(1, 218, 218);  
  border-radius: 30px;
  padding: 0px 10px;  
  line-height: 55px;
  text-align: center;
  color: white;    
  border: solid 5px white;
  box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
}

.button-back {
  font-size: 20px;
}


.button:hover,
.button-diff:hover:not(.selected),
.button-back:hover,
.legal:hover {
  cursor: pointer;
  color: blue;
  transform: scale(1.1);
}

.selected {    
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgb(255, 255, 255));  
  padding: 0px 10px;  
  line-height: 55px;
  text-align: center;
  border: solid 5px white;
  border-radius: 30px;
  color: white;
}

.selected:hover {
  cursor: default;
}

.sharkie {
  width: 120px;
  height: 120px;
  padding-bottom: 20px;
}

.arrows {
  width: 150px;
  height: 100px;
}

.d-key {
  width: 50px;
  height: 50px;
}

.fish {
  width: 100px;
  height: 100px;
}

.space-bar {
  width: 250px;
  height: 50px;
}

.flex-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.relative {
  position: relative;
}

.trophy1 {
  position: absolute;
  rotate: -20deg;
  width: 100px;
  height: 100px;
  left: -130px;
  top: 10px;
  
}

.trophy2 {
  position: absolute;
  rotate: 20deg;
  width: 100px;
  height: 100px;
  left: 195px;
  top: 10px;
}

.resultcontainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;  
  gap:10px;
}



#instructions p {
  text-align: center;
  max-width: 670px;  
  margin: 0;
  font-size: 16px;
  color: white;
}

#instructions span {
  font-size: 20px;
  color: white;
}

#game-over img:not(.trophy1,.trophy2),
#you-win img:not(.trophy1,.trophy2) {
  width: 500px;
  height: 90px;
}

#you-win {
  background-image: url("./img/3. Background/Light/1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  color: white;
  text-align: center;
}

.overlay-button {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0px 0px 8px #ffffff);  
  opacity: 80%;
}

.contrast {
  filter: drop-shadow(0px 0px 8px #000000) !important;
  opacity: 100% !important;
}

#canvaswrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#hud {
  width: 100%;
  margin-top: 10px;
  padding-right: 35px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

#soundonmenu, #soundoffmenu {
  position: absolute;  
  right:30px;
  top: 30px;
}

#soundoffmenu {
  display:none;
}

#panel {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.arrow-wrapper {
  padding-left: 20px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}