@font-face {
  font-family: 'zabars';
  src: url(../fonts/zabars/zabars.ttf) format('truetype');
}

* {
  font-family: 'zabars', Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  border: none;
}

.rotation-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

.rotation-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%);
}

.game-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('../img/background_desert.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1 {
  margin-bottom: 20px;
}

.start-end-screen {
  position: relative;
  width: 820px;
  height: 480px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
}

.start-screen {
  background-image: url('../img/9_intro_outro_screens/start/startscreen_1.png');
}

.winning-screen {
  background-image: url('../img/5_background/complete_background.png');
}

.play-btn {
  background-color: rgb(165, 165, 1);;
  width: 300px;
  height: 80px;
  border-radius: 20px;
  border: 2px solid #7a0c13;
  margin-top: 20px;
  font-size: 50px;
  letter-spacing: 1.5px;
  text-wrap: nowrap;
}

.play-btn:hover {
  scale: 1.05;
}

.win-logo {
  position: absolute;
  width: 700px;
  top: 40px;
  margin: auto;
}

.again-btn {
  position: absolute;
  left: 50px;
  bottom: 40px;
}

.back-btn {
  position: absolute;
  right: 50px;
  bottom: 40px;
}

.losing-screen {
  background-image: url('../img/5_background/complete_background.png');
}

.lose-logo {
  position: absolute;
  width: 820px;
  height: 480px;
}

.sound-on, .sound-off {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  width: 50px;
  height: 50px;
}

.info-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
}

.fullscreen {
  position: relative;
}

.sound-off-canvas, .sound-on-canvas {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.fullscreen-icon {
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 60px;
  width: 30px;
}

.fullscreen-icon-canvas {
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
}

.panel-bottom {
  position: absolute;
  display: flex;
  width: 820px;
  justify-content: space-around;
  bottom: 10px;
  left: 50px;
}

.panel-bottom button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(165, 165, 1);
  margin-left: 16px;
  margin-right: 16px;
  font-size: 20px;
  text-align: center;
}

.panel-bottom img {
  margin-top: 6px;
  width: 28px;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.howtoplay {
  display: flex;
  width: 720px;
  justify-content: space-around;
  font-size: 24px;
  text-wrap: nowrap;
  letter-spacing: 1.5px;
}

h1 {
  font-size: 90px;
  letter-spacing: 3px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

canvas {
  background-color: black;
  display: block;
}

.d-none {
  display: none;
}

/*----------------- Smartphones -----------------*/
@media screen and (min-width: 1000px) and (orientation: landscape){
  .panel-bottom {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
  }  
}

@media only screen and (max-width: 1200px){
  .start-end-screen {
    width: 100%;
  }
  h1 {
    display: none;
  }
  .game-container {
    height: 100vh;
  }
  .lose-logo, .win-logo {
    width: 100%;
    height: 80vh;
  }
}

@media only screen and (max-width: 720px){
  h1 {
    display: none;
  }
  canvas {
    width: 100%;
  }
  .panel-bottom {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
  }
  .losing-screen, .winning-screen {
    width: 100%;
  }
  .back-btn, .again-btn {
    width: 260px;
  }
}

@media only screen and (max-height: 480px){
  h1 {
    display: none;
  }
  canvas {
    height: 100vh;
  }
}

@media screen and (orientation: portrait) and (pointer: coarse){
  .game-container {
    display: none;
  }
  .rotation-container {
    display: block;
  }
}