@font-face {
  font-display: swap;
  font-family: "Sancreek";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/sancreek-v25-latin-regular.woff2") format("woff2");
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Sancreek";
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #e6a142;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/10_backgroundDesert/desert.png");
    height: 100vh;
    max-width: 100vw;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gameContainer {
  display: block;
  position: relative;
  width: 720px;
  height: 480px;
}

.startContainer {
  display: block;
  position: relative;
}

.canvasContainer {
  position: absolute;
  display: flex;
  justify-content: center;
}

.endContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.endContainer img {
  width: 100%;
  height: 100%;
}

.displayNone {
  display: none !important;
}

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

h1 {
  color: #fdad3c;
  font-size: 48px;
  text-shadow: 4px 2px 8px rgba(0, 0, 0, 0.5);
}

.infoSite {
  background-color: #fdad3c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  width: 720px;
  height: 480px;
  font-size: 30px;
  z-index: 9999;
}

.infoClose {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 100%;
  border: 1px solid rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  background-color: #fdad3c;
}

.infoClose:hover {
  background-color: #e6a142;
}

.startscreen img {
  position: absolute;
  width: 720px;
  height: 480px;
  /* width: 100%;
  height: 100%; */
}

.menuList {
  position: relative;
  display: flex;
  justify-content: flex-start;
  top: 20px;
  padding-left: 20px;
  gap: 80px;
}

.menuList img {
  height: 40px;
  width: 40px;
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
  box-shadow: 5px 3px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.menuList img:hover {
  background-color: #e6a142;
}

.inGameMenu {
  position: absolute;
  display: flex;
  justify-content: flex-start;
  top: 20px;
  padding-left: 20px;
  gap: 40px;
}

.inGameMenu img {
  height: 40px;
  width: 40px;
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
  box-shadow: 5px 3px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.inGameMenu img:hover {
  background-color: #e6a142;
}

.startButton {
  position: absolute;
  left: 40%;
  top: 150px;
}

.startButton img {
  height: 120px;
  width: 120px;
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
  box-shadow: 6px 6px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.startButton img:hover {
  background-color: #e6a142;
}

.controller {
  display: none !important;
  margin-top: 8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controllerInformation {
  display: flex;
  margin-top: 8px;
  width: 720px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leftController {
  display: flex;
  align-items: center;
  gap: 16px;
}

.leftController img {
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
}

#left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rightController {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rightController img {
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
}

#jump {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shootIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: #fdad3c;
  border-radius: 100%;
  padding: 8px;
}

#shoot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.AgainButton {
  position: absolute;
  top: 16px;
  height: 80px;
  width: 80px;
  border-radius: 100%;
  background-color: #fdad3c;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 6px 6px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.AgainButton:hover {
  background-color: #e6a142;
}

.rotationInfo {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rotationInfo img {
  height: 80px;
  width: 80px;
}

@media only screen and (max-width: 720px) and (orientation: portrait) {
  .rotationInfo {
    display: flex !important;
  }
}
@media only screen and (max-width: 720px) and (orientation: landscape) {
  .gameContainer {
    width: 100%;
  }

  .startContainer {
    width: 100%;
  }

  .startscreen {
    width: 100%;
  }

  .canvasContainer {
    width: 100%;
  }

  canvas {
    width: 100%;
  }

  .endContainer {
    width: 100%;
    height: 100%;
  }

  #endIMG {
    width: 100%;
    height: 100%;
  }

  .controller {
    display: flex !important;
    position: absolute;
    bottom: 20px;
    /* width: 100%; */
  }

  .controllerInformation {
    display: none;
  }
}

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

  .gameContainer {
    height: 100vh;
  }

  .startscreen {
    height: 100vh;
  }

  .canvasContainer {
    height: 100vh;
  }

  .endContainer {
    height: 100%;
  }

  #endIMG {
    height: 100%;
  }

  .controller {
    display: flex !important;
    position: absolute;
    bottom: 20px;
  }

  .controllerInformation {
    display: none;
  }

  .leftController img {
    height: 40px;
  }

  .rightController img {
    height: 40px;
  }

  .shootIcon {
    font-size: 30px;
    height: 40px;
    width: 40px;
  }

  #shoot {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
