:root {
  --background-image: white;
}

html,
body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #a0512de1;

  width: 99.75vw;
  height: 99.9%;
  margin: 0;
}

#card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  animation: moveClouds 90s linear infinite;
  border: 5px solid #fdfbd4;
  box-shadow: 2px 2px 50px 5px rgba(0, 0, 0, 0.593);
  border: 5px solid #fdfbd4;

  width: 92%;
  height: 92%;
  max-width: 1100px;
  max-height: 890px;
  gap: 100px;

  background-image: var(--background-image);
  background-size: contain;
}

#cardTitle {
  display: flex;
  width: 550px;
  height: 200px;

  transform-origin: center;
  animation: beat 3.5s ease-in-out infinite;
  -webkit-animation: beat 3.5s ease-in-out infinite;

  background-image: url(./src/assets/isis-adventure.png);
  background-repeat: no-repeat;
  background-size: 600px;
  background-position: center;
}

#cardInteraction {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 450px;

  .interaction {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;

    width: 500px;
    height: 500px;
    z-index: 1000;
    margin-right: 30px;
    margin-top: 40px;

    button,
    #buttonPlay {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;

      background: url("./src/assets/button.png");
      background-repeat: no-repeat;

      width: 200px;
      height: 50px;
      border: none;
      margin-bottom: 15px;
      padding: 0;
    }

    button .text,
    #buttonPlay .text {
      color: white;
      position: absolute;
      font-weight: bold;
      pointer-events: none;
      font-size: 24px;
    }

    button:hover,
    #buttonPlay:hover {
      background: url("./src/assets/button-hover.png");
    }

    button::after,
    #buttonPlay::after {
      content: "";
      position: absolute;
      background-image: url("./src/assets/baby-bottle.png");
      background-size: contain;
      background-repeat: no-repeat;

      width: 24px;
      height: 63px;
      right: 180px;
      opacity: 0;
      transition: opacity 0.3s ease, transform 0.3s ease;
      transform: scale(0.8);
    }

    button:hover::after,
    #buttonPlay:hover::after {
      opacity: 1;
      transform: rotate(-40deg);
    }

    #inputPlayerName {
      display: none;
      align-items: center;
      vertical-align: middle;
      border: none;
      font-family: "Press Start 2P";
      color: #000000de;

      background: url("./src/assets/input-text.png");
      background-repeat: no-repeat;
      background-size: 100%;

      width: 200px;
      height: 68px;
      font-size: 15px;
      padding-left: 30px;
      margin-bottom: 15px;
    }

    #inputPlayerName:focus {
      outline: none;
    }

    #textInsertName {
      display: none;

      font-family: "Press Start 2P";
      color: rgba(255, 0, 0, 0.904);
      font-size: 12px;
      margin-top: -5px;
      white-space: nowrap;
    }

    #buttonPlay,
    #buttonBack {
      display: none;
    }

    #buttonBack {
      background: url("./src/assets/arrow-back.png");
      transition: background-color 0.3s ease, transform 0.1s ease;
      background-position: center;
      height: 55px;
      width: 88px;
    }

    #buttonBack::after {
      background-image: none;
    }

    #buttonBack:hover {
      background: url("./src/assets/arrow-back-hover.png");
      background-position: center;
    }

    #buttonBack:active {
      transform: scale(1.1);
    }
  }

  .isisImg {
    display: flex;
    position: absolute;
    z-index: 1;

    background-image: url(./src/assets/cloud-isis.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 600px;
    height: 600px;
    margin-left: 30px;
  }
}

@keyframes moveClouds {
  /* body */
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1600px 0;
  }
}

@keyframes beat {
  /* cardTitle */
  0% {
    transform: scale(0.95) rotate(0deg);
  }
  25% {
    transform: scale(1.06) rotate(-1.5deg);
  }
  50% {
    transform: scale(1.06) rotate(1.25deg);
  }
  75% {
    transform: scale(1.06) rotate(-1.5deg);
  }
  100% {
    transform: scale(0.95) rotate(0deg);
  }
}

.blurred-version {
  --background-image: url("./src/assets/clouds-new.png");
}

.normal-version {
  --background-image: url("./src/assets/clouds.png");
}

#gameContainer {
  box-shadow: 2px 2px 50px 5px rgb(0, 0, 0);
  height: 890px;
  width: 1100px;
}

canvas {
  margin: 0;
  padding: 0;
}
