* {
  box-sizing: border-box;
}

@font-face {
  font-family: "luckiestGuy";
  src: url("./fonts/LuckiestGuy-Regular.ttf");
}

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

.transition {
  transition: all 125ms ease-in-out;
}

#container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-top: 50px;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "luckiestGuy";
  font-size: 22px;
  background: url("img/icons/background.png") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  height: 100vh;
}

h1 {
  position: absolute;
  background-image: linear-gradient(90deg, #4690a1 0%, #5dbed4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 0px 3px rgba(0, 0, 0, 0.671));
  -webkit-text-stroke: 0.1px rgb(255, 255, 255);
  font-size: 64px;
  margin: 15px 0px;
}

p {
  margin: 0;
}

menu {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  padding-inline-start: 0;
  margin-right: 150px;
}

.start {
  position: relative;
  top: 50%;
  height: 55px;
  width: auto;
  cursor: pointer;
  border-radius: 15px;
  margin-right: 10%;
}

.impress {
  position: absolute;
  bottom: 20px;
  right: 0;
}

.impress a {
  font-size: 24px;
  color: white;
  text-decoration: wavy;
  margin-right: 50px;
}

.impress a:hover {
  filter: drop-shadow(-2px 0px 5px white);
}

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 255, 255);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  border-radius: 10px;
}

.victory-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.664);
  background-image: url("img/6.Botones/Try again/Mesa de trabajo 1.png");
  background-size: contain;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  border-radius: 10px;
}

.tryagain {
  height: 55px;
  width: auto;
  position: absolute;
  top: 320px;
  left: 240px;
  cursor: pointer;
  border-radius: 15px;
}

.tryagain:hover {
  box-shadow: 0px 0px 5px 3px rgba(161, 161, 161, 0.589);
  transform: scale(1.01);
}

.gameover-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.767);
  background-size: contain;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  border-radius: 10px;
}

.gameover-title {
  position: absolute;
  display: flex;
  justify-content: center;
  height: 60px;
  filter: drop-shadow(0px 0px 2px white);
}

.panel {
  display: none;
}

canvas {
  display: block;
  background-color: black;
  display: block;
  transition: all 100ms ease-in-out;
  border-radius: 10px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.288), -10px -10px 10px #1d246480;
  background-image: url("img/3. Background/Mesa de trabajo 1.png");
  background-size: cover;
  height: 100%;
  width: 100%;
}

.help {
  color: rgb(255, 255, 255);
  background-image: linear-gradient(
    90deg,
    #1d9ac0be 100%,
    #3284bb 50%,
    #ffffff 0%
  );
  background-size: contain;
  border-radius: 10px;
  transition: all 200ms ease-in-out;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 101;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-size: 22px;
  cursor: zoom-out;
}

.help-cont {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-cont table {
  filter: drop-shadow(2px 2px 2px black);
}

.help-cont table tr td:first-of-type {
  padding-right: 40px;
  display: flex;
  justify-content: flex-start;
}

.info {
  position: absolute;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  top: 0;
  gap: 5px;
  margin-right: 20px;
  margin-top: 10px;
  z-index: 100;
}

.info img {
  height: 40px;
  width: 40px;
  cursor: pointer;
}

.fin-slap {
  height: 70px;
  width: auto;
  position: relative;
  top: -8px;
  left: -2px;
}

.bubble-key {
  height: 35px;
  width: auto;
}

.arrow {
  height: 50px;
  width: auto;
  filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.712));
}

#hud {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  align-items: center;
  justify-content: space-between;
}

.panel {
  display: flex;
}

.panel-wrapper-left,
.panel-wrapper-right div {
  display: flex;
  justify-content: center;
}

.panel-wrapper-left {
  display: flex;
  gap: 20px;
  margin-bottom: -35px;
  margin-left: 40px;
}

.panel-wrapper-right {
  position: relative;
  right: -10px;
  margin-bottom: 10px;
}

button {
  height: 55px;
  width: 55px;
  border-radius: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(127, 255, 212, 0.87);
  transition: all 125ms ease-in-out;
}

#btnOne {
  position: relative;
  top: 40px;
}

#btnTwo {
  position: relative;
  left: -10px;
  top: -2px;
}

#btnThree {
  position: relative;
  top: -40px;
  left: -16px;
}

#btnUp {
  position: relative;
  right: -35px;
  top: -10px;
  transform: scale(1.2);
}

#btnLeft,
#btnRight {
  transform: scale(1.2);
}

#btnThree:active {
  background-color: rgba(63, 92, 82, 0.87);
}

#btnOne:active {
  background-color: rgba(63, 92, 82, 0.87);
}

#btnTwo:active {
  background-color: rgba(63, 92, 82, 0.87);
}

#btnRight:active {
  background-color: rgba(63, 92, 82, 0.87);
}

#btnLeft:active {
  background-color: rgba(63, 92, 82, 0.87);
}

#btnUp:active {
  background-color: rgba(63, 92, 82, 0.87);
}

.home {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.575);
  border-radius: 200px;
}

.home:hover {
  filter: drop-shadow(0px 0px 5px white);
}

.impressum {
  color: rgb(255, 255, 255);
  display: flex;
  height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
  overflow-y: hidden;
}

.impressum-h1 {
  background-image: linear-gradient(90deg, #4690a1 0%, #5dbed4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 0px 3px rgba(0, 0, 0, 0.671));
  -webkit-text-stroke: 0.1px rgb(255, 255, 255);
  font-size: 64px;
  margin: 15px 0px;
}

.impressum-cont {
  padding: 20px;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

.impressum-cont a {
  color: inherit;
}

.datenschutz {
  max-width: 900px;
}

.privacy {
  padding: 20px;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  overflow-y: scroll;
  height: 100%;
  max-width: 1000px;
  width: 100%;
}

.rotate-device {
  display: none;
  position: absolute;
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: rgb(27, 27, 27);
  color: white;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1370px) and (orientation: landscape) {
  body {
    margin: 0;
    overflow: hidden;
  }

  #container {
    width: 100%;
    margin: 0;
  }
  #hud {
    display: flex;
  }
  canvas {
    width: 100%;
  }
  #fullscreen {
    display: none;
  }
}

@media (min-width: 950px) and (max-width: 1370px) and (orientation: landscape) {
  .rotate-device {
    display: none !important;
  }
  #hud {
    display: flex;
  }
  button {
    height: 70px;
    width: 70px;
  }

  #container {
    margin-top: 100px;
  }
}

@media (max-width: 1370px) and (orientation: portrait) {
  body {
    overflow: hidden;
  }

  #container {
    display: none;
  }

  .rotate-device {
    display: flex !important;
  }
}

@media (max-width: 950px) {
  .home {
    height: 35px;
  }
  #container {
    height: 100%;
  }
  canvas {
    height: 100%;
  }

  .impressum-h1 {
    font-size: 35px;
  }

  #priv-h1 {
    font-size: 28px;
  }
}
