@font-face {
  font-display: swap;
  font-family: "Boogaloo";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/Boogaloo-Regular.ttf");
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Holtwood One SC";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/holtwood-one-sc-v21-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.d-none {
  display: none;
}

.animate__animated {
  --animate-duration: 0.2s;
}

#popupBackground {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.closeIcon svg {
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 24px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 4px;
}

#help,
#legal {
  font-size: 24px;
}

#help a,
#legal a {
  color: #813013;
  text-decoration: none;
  font-size: 24px;
}

#privacy {
  padding: 24px;
  max-height: 720px;
  overflow-y: auto;
}
#privacy a {font-size:16px;color:black;}

#help table {
  border-collapse: collapse;
  margin: 0 auto;
  width: 400px;
}

#help td,
#help th {
  text-align: center;
  border: 1px solid black;
}

#help tr {
  height: 50px;
}

.center {
  width: fit-content;
  margin: 0 auto;
}

.popup {
  z-index: 1000;
  max-width: 1080px;
  min-height: 720px;
  color: black;
  width: 100%;
  border-radius: 24px;
  position: absolute;
  top: 18vh;
  background: rgb(242, 191, 112);
  background: linear-gradient(180deg, rgba(242, 191, 112, 1) 0%, rgba(233, 155, 89, 1) 100%);
}

body {
  display: flex;
  font-family: "Boogaloo";
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-image: url("./img/5_background/desert.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  margin: 0;
  padding:0;
}

.panel button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid black;
  background-color: rgba(255, 166, 0, 0.598);
  color: black;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.topPanel button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid black;
  background-color: rgba(255, 166, 0, 0.598);
  color: black;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.panel {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
}

.topPanel {
  display: flex;
  justify-content: center;
}
.panel-wrapper {
  padding: 16px;
  display: flex;
  gap: 16px;
}

span {
  font-family: "Boogaloo";
  font-size: 36px;
  color: white;
}

.button {
  cursor: pointer;
}

a {
  color: white;
  font-family: "Boogaloo";
  font-size: 32px;
}

h1 {
  font-family: "Holtwood One SC";
  /* font-size: 64px; */
  font-size: 4vw;
   
  opacity: 0.8;
  text-shadow: 5px 5px rgba(255, 255, 255, 0.9);
}

h2 {
  font-family: "Boogaloo";
  font-size: 56px;
  line-height: 56px;
  opacity: 0.8;
  text-align: center;
  text-shadow: 2px 2px rgba(255, 255, 255, 0.9);
}

#notMuted,
.mobileNotMuted {
  display: none;
}

.bottomControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  max-width: 1080px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.bottomControls a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 100;
  margin-right: 16px;
  transition: color 125ms ease-in-out;
}

.bottomControls a:hover:not(.button) {
  color: rgb(255, 197, 34);
}

.bottomControls .svgIcons {
  transition: fill 125ms ease-in-out;
}

.bottomControls .svgIcons:hover {
  fill: rgb(255, 197, 34);
}

.bottomControls .button {
  border: unset;
  background-color: rgb(255, 197, 34);
  background-image: linear-gradient(
    180deg,
    rgba(255, 197, 34, 1) 0%,
    rgba(255, 221, 0, 1) 50%,
    rgba(255, 157, 0, 1) 100%
  );
  padding: 8px 30px;
  border-radius: 16px;
  color: #813013;
  font-size: 36px;
  transition: padding 125ms ease-in-out;
  transform: translateY(0);
}

.bottomControls .button:hover {
  padding: 8px 80px;
}

.svgIcons {
  cursor: pointer;
}

canvas {
  background-color: black;
  display: block;
  border-radius: 24px;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
  background-image: url("./img/9_intro_outro_screens/start/startscreen_1.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.portrait,
#hud {
  display: none;
}

/*///////////////////////////////////////
///       MEDIA QUERIES              ///
///////////////////////////////////////*/

@media all and (display-mode: fullscreen) {
  /* every CSS goes here that you want 
  to apply or alter in the fullscreen mode*/

  #hud {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100vw;
  }

  .panel,
  #bottomControls {
    display: none;
  }

  .topPanel {
    display: flex;
    justify-content: center;
    margin-top: 2.5%;
  }
  .panel-wrapper {
    padding: 16px;
    display: flex;
    gap: 16px;
  }
}

@media only screen and (max-width: 650px) {
  #bottomControls {
    flex-direction: column-reverse;
  }
}

@media only screen and (max-width: 1180px) {
  canvas {
    width: 100%;
    border-radius: unset;
  }
  h1 {display: none;}
}

@media only screen and (max-height: 720px) {
  #hud {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100vw;
  }


  h1 {
    display: none;
  }
  canvas {
    height: 105vh;
    width: 110vw;
    border-radius: unset;
  }
  .bottomControls {
    display: none;
  }
}

.canvasFullscreen {
  width: 100vw;
  border-radius: unset;
}

@media (orientation: portrait) and (max-width: 650px) {
  canvas
  {
    display: none;
  }
  #hud {
    display: none;}
    
  .portrait {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
  }
  .portrait img {
    width: 100%;
    position: absolute;
    bottom: 30px;
    z-index: -1;
  }
  .bottomControls {
    display: none;
  }
}
