body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  filter: drop-shadow(1px 3px 10px rgb(50, 62, 87));
  background-repeat: no-repeat;
  overflow: hidden;
  height: 100vh;
}

.background_container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -5;
  display: flex;
  position: absolute;
  background: rgb(148, 191, 204);
  background: radial-gradient(
    circle,
    rgba(148, 191, 204, 1) 0%,
    rgba(9, 98, 121, 1) 33%,
    rgba(0, 2, 36, 1) 100%
  );
}

@font-face {
  font-family: "sharky";
  src: url("../fonts/Sharky-nRW5O.ttf");
}

#start_game {
  width: 100vw;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  z-index: 100;
}

#start_background_img {
  position: relative;
  display: block;
  width: clamp(100%, 80vw, 1400px);
  height: 80vh;
  margin: 0 auto;
  top: 14%;
}

#start_screen_buttons_container {
  position: relative;
  bottom: 20vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centering_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
}

#instructions_sheet {
  display: flex;
  position: absolute;
  z-index: 150;
  width: clamp(100%, 80vw, 1000px);
  top: 4.7vh;
  background-color: #1e1e1e;
  flex-direction: column;
  align-items: center;
  height: 90vh;
  justify-content: space-evenly;
  opacity: 1;
  transition: opacity 0.5s, transform 0.5s;
  filter: drop-shadow(1px 3px 6px rgba(255, 255, 255, 0.4));
}

.instruction_sheet_container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
  width: 70%;
}

.coin_for_popup_img {
  width: 40px;
  margin-left: -22%;
  filter: drop-shadow(2px 4px 6px white);
}

.poison_for_popup_img {
  width: 40px;
  margin-left: -22%;
  filter: drop-shadow(2px 4px 6px white);
}

.preview_img {
  width: clamp(10vw, 50vw, 150px);
  height: clamp(20vh, 15vh, 90px);
}

.instructions_keyboard_img {
  width: clamp(8vw, 20vw, 110px);
  filter: drop-shadow(2px 4px 6px white);
  height: clamp(6vh, 15vh, 90px);
}

.lighter_filter {
  filter: invert(0.43);
}

.mirror_img {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  -ms-filter: "FlipH";
  filter: FlipH;
}

hr {
  width: 50vw;
  height: 2px;
}

.close_container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.close_img {
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  margin: 10px 10px -50px 0;
  padding: 5px;
}

.close_img:hover {
  filter: drop-shadow(3px 3px 4px rgb(255, 255, 255));
}

h1 {
  font-family: "sharky", Arial, Helvetica, sans-serif;
  color: #a4a4a4;
  font-size: 4rem;
  font-weight: 500;
  text-shadow: 4px 4px 2px rgb(0 0 0 / 20%);
  z-index: 250;
}

h2 {
  font-family: "sharky", Arial, Helvetica, sans-serif;
  color: #e7e7e7;
  font-size: 3rem;
  font-weight: 500;
  text-shadow: 4px 4px 2px rgb(0 0 0 / 20%);
  text-align: center;
  line-height: 0;
}

canvas {
  width: 75vw;
  height: 50vh;
  display: block;
}

#sound_toggle {
  width: 50px;
  height: 50px;
  filter: invert(1) contrast(0.3);
  cursor: pointer;
}

.sound_screen_container {
  display: flex;
  align-items: center;
  width: 75vw;
  justify-content: space-between;
  padding-bottom: 1vh;
}

.fullscreen_container {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.d-none {
  display: none !important;
}

#blur_container {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(2 2 2 / 80%);
  z-index: 40;
  align-items: center;
  justify-content: center;
}

#game_over,
#you_win {
  display: flex;
  z-index: 200;
  flex-direction: column;
  position: absolute;
  width: 50vw;
  height: 53vh;
  background-color: #799fad;
  top: 15%;
  opacity: 0;
  padding: 5%;
  border-radius: 5%;
  filter: drop-shadow(0px 5px 15px white);
}

.game_over_img,
.you_win_img {
  width: 30vw;
  margin: auto;
  height: 10vh;
}

.play_or_start_btn_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
}

#text-container {
  height: 70%;
  overflow: hidden;
  position: relative;
  margin: 30px 15% 5% 15%;
}

#scrolling-text {
  position: absolute;
  bottom: 0;
  text-align: center;
  white-space: normal;

  color: #334762;
}

.font_medium {
  font-family: "math", Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
}

span {
  color: #a4a4a4;
  font-size: 1.3rem;
  font-weight: 600;
  font-style: oblique;
  text-align: center;
}

#instructions {
  width: 75vw;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  margin-top: 15px;
}

.instruction_container {
  width: 25%;
  display: flex;
  gap: 5px;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
}

.keyboard_img {
  width: clamp(50px, 50%, 150px);
  filter: drop-shadow(2px 4px 6px white);
}

.keyboard_a,
.keyboard_d {
  width: 60px;
  filter: drop-shadow(2px 4px 6px white);
}

.space_key {
  width: 80px;
  filter: invert(0.3) drop-shadow(2px 4px 6px white);
}

.coin_img {
  width: 30px;
  filter: drop-shadow(2px 4px 6px white) brightness(0.9);
  margin-top: -45px;
  margin-left: 52px;
}

.poison_img {
  width: 40px;
  filter: drop-shadow(2px 4px 6px white) brightness(0.8);
  margin-top: -65px;
  margin-left: 50px;
}

.full_screen {
  height: 85vh;
  width: 100vw;
}

#turn_device_container {
  display: flex;
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgb(2 2 2 / 90%);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.turn_text_img {
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8%;
  margin: 5%;
}

.turn_device_img {
  width: 10vh;
  height: 20vw;
  filter: invert(0.68);
}

#mobile_keyboard_container {
  z-index: 30;
  width: 100%;
  background-color: #070f49;
  height: 15vh;
  bottom: 0;
  position: fixed;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.instructions_for_mobile_keyboard {
  z-index: 40;
  width: 100%;
  background-color: transparent;
  height: 15vh;
  bottom: 0;
  position: fixed;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.arrow_img {
  width: 30px;
  height: 30px;
  background-color: #c35555;
  filter: invert(1);
  border-radius: 50%;
  padding: 10px;
  border: 2px solid;
}

.bubbles_img {
  width: 30px;
  height: 30px;
  background-color: #49a1a1;
  border-radius: 50%;
  padding: 10px;
  border: 2px solid white;
}

.scroll-up {
  animation: scrollUp 22s linear forwards;
}

.fade-in {
  animation: fadeInAnimation 0.1s forwards;
}

.fade-out {
  animation: fadeOutAnimation 0.1s forwards;
}

/************************************************* FOOTER *************************************************/

footer {
  background-color: rgba(164, 164, 164, 0.4);
  width: 100%;
  height: 5%;
  position: absolute;
  bottom: 0;
  color: #799fad;
}

.footer_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 1%;
}

footer a {
  color: #799fad;
  text-decoration: none;
}

footer a:hover {
  color: #9ddcf5;
  text-decoration: none;
  font-size: 1.3rem;
  filter: drop-shadow(2px 3px 6px rgb(255, 255, 255));
}

/************************************************* KEYFRAMES *************************************************/

@keyframes scrollUp {
  0% {
    bottom: -95%;
  }
  100% {
    bottom: 19%;
  }
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutAnimation {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes spin {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

/************************************************* Legal Notice / Privacy Policy *************************************************/

#privacy {
  overflow-x: hidden;
  overflow-y: auto;
  margin: 3% auto;
  filter: none;
  height: fit-content;
  max-width: 1500px;
  background: rgb(148, 191, 204);
  background: radial-gradient(
    circle,
    rgba(148, 191, 204, 1) 0%,
    rgba(9, 98, 121, 1) 33%,
    rgba(0, 2, 36, 1) 100%
  );
}

#legal_and_privacy {
  font-family: serif;
  color: #838383;
  font-size: 3rem;
  font-weight: 600;
  text-shadow: 3px 3px 3px rgb(0 0 0 / 20%);
  text-align: center;
  line-height: 0;
}

.background_main {
  background-color: hsla(260, 11%, 95%, 1);
}

.rounded-corners {
  border-radius: 20px;
  padding: 5%;
  border: 5px solid #ccc;
  border-top: unset;
  border-bottom: unset;
}

.legal_notice_privacy_policy {
  color: #a4a4a4;
  text-align: center;
  filter: none;
}
