/* Global */

body {
  font-family: 'Times New Roman', Times, serif;
}

:root {
  --dark-green-text-color: rgb(39, 117, 53);
  --green-text-color: rgb(56, 169, 77);
  --green-text-shadow-color: rgb(118, 234, 120);

  --light-green-text-color: rgb(174, 237, 175);

  --garden-border-color: rgb(37, 118, 37);
  --garden-border-shadow-color: rgb(118, 234, 120);

  --grass-color: rgb(87, 217, 87);

  --sun-color: rgb(255, 255, 255);
}

/*
  Question
*/
.question {
  display: flex;
  flex-direction: column;
}

.question > h2 {
  color: rgb(39, 117, 53);
  text-shadow: 1px 1px 10px rgb(118, 234, 120);
}

.question > p {
  margin-left: 2rem;
  font-style: italic;
}

/*
 Input Section
 */
.input-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.input-section > :first-child {
  width: 5rem;
  text-align: left;
}

.input-section > :nth-child(2) {
  width: 9rem;
  height: 2rem;

  border-style: inset;
  border-width: 2px;
  border-color: var(--grass-color);
  background-color: white;
  text-align: center;
}

.input-section > :last-child {
  width: 5rem;
  text-align: right;
}

/* 
  Utility  classes 
*/

.dark-green-text {
  color: var(--dark-green-text-color);
  text-shadow: 1px 1px 10px var(--green-text-shadow-color);
}

.green-text {
  color: var(--green-text-color);
  text-shadow: 1px 1px 10px var(--green-text-shadow-color);
}

.green-gradient-bg {
  background: linear-gradient(
    0deg,
    rgb(255, 255, 255) 1%,
    rgb(140, 255, 138) 70%,
    rgb(123, 255, 0) 95%
  );
}

.garden-padding {
  padding: 0.5rem;
}

.garden-border {
  border-style: dotted;
  border-width: 2px;
  border-color: var(--garden-border-color);
  box-shadow: 1px 1px 10px var(--garden-border-shadow-color);

  box-shadow: 0 0 0 10px var(--grass-color),
    calc(100% - 10px) 0 0 10px var(--grass-color),
    0 calc(100% - 10px) 0 10px var(--grass-color),
    calc(100% - 10px) calc(100% - 10px) 0 10px var(--grass-color);
}

.garden-divider {
  border-style: dotted;
  border-width: 2px;
  border-color: var(--grass-color);
}

.grass-pixel-art {
  box-shadow: 10px 8px 0 0 var(--grass-color), 14px 8px 0 0 var(--grass-color),
    6px 10px 0 0 var(--grass-color), 12px 10px 0 0 var(--grass-color),
    8px 12px 0 0 var(--grass-color), 12px 12px 0 0 var(--grass-color),
    10px 14px 0 0 var(--grass-color), 28px 18px 0 0 var(--grass-color),
    18px 20px 0 0 var(--grass-color), 26px 20px 0 0 var(--grass-color),
    18px 22px 0 0 var(--grass-color), 24px 22px 0 0 var(--grass-color),
    20px 24px 0 0 var(--grass-color), 22px 24px 0 0 var(--grass-color),
    26px 24px 0 0 var(--grass-color), 22px 26px 0 0 var(--grass-color);
  height: 2px;
  width: 2px;
  z-index: -1;
}

.grass-field {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
}

.grass-block {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dotted var(--grass-color);
  height: 100%;
  width: 100%;
  min-height: 3rem;
  overflow: hidden;
}

.wide-block {
  grid-column: span 2;
}

.tall-block {
  grid-row: span 2;
}

.special-block {
  background-color: var(--light-green-text-color);
}

.participant-text {
  animation: fadeIn 0.5s ease-in,
    spin 8s ease-in-out infinite var(--spin-delay, 0.5s);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  20%,
  100% {
    transform: rotateY(360deg);
  }
}

.white-glow-delay-0 {
  animation: white-glow-text 6s ease-in-out infinite 1s;
}

.white-glow-delay-1 {
  animation: white-glow-text 6s ease-in-out infinite 2s;
}

.white-glow-delay-2 {
  animation: white-glow-text 6s ease-in-out infinite 3s;
}

.white-glow-delay-3 {
  animation: white-glow-text 6s ease-in-out infinite 4s;
}
@keyframes white-glow-text {
  0%,
  25%,
  100% {
    text-shadow: 0 0 0px var(--sun-color);
    color: var(--green-text-color);
    transform: rotate(0deg) scale(1);
  }
  5%,
  20% {
    text-shadow: 0 0 10px color-mix(in srgb, var(--sun-color) 70%, transparent),
      0 0 20px color-mix(in srgb, var(--sun-color) 60%, transparent),
      0 0 30px color-mix(in srgb, var(--sun-color) 40%, transparent),
      0 0 40px color-mix(in srgb, var(--sun-color) 30%, transparent),
      0 0 50px color-mix(in srgb, var(--sun-color) 30%, transparent),
      0 0 60px color-mix(in srgb, var(--sun-color) 30%, transparent);
    color: var(--sun-color);
  }
  12.5% {
    transform: rotate(-10deg) scale(1.5) translateY(-5px);
  }
}

.rain-pixel-art {
  position: absolute;
  animation: rain-pixel-art-animation 1s infinite;
  -webkit-animation: rain-pixel-art-animation 1s infinite var(--rain-delay, 0s);
  -moz-animation: rain-pixel-art-animation 1s infinite var(--rain-delay, 0s);
  -o-animation: rain-pixel-art-animation 1s infinite var(--rain-delay, 0s);
  scale: 0.4;
}

@keyframes rain-pixel-art-animation {
  0%,
  25% {
    box-shadow: 40px 20px 0 0 #03a9f4, 40px 30px 0 0 #03a9f4,
      150px 30px 0 0 #03a9f4, 30px 40px 0 0 #03a9f4, 40px 40px 0 0 #03a9f4,
      110px 40px 0 0 #03a9f4, 140px 40px 0 0 #03a9f4, 30px 50px 0 0 #03a9f4,
      110px 50px 0 0 #03a9f4, 20px 60px 0 0 #03a9f4, 30px 60px 0 0 #03a9f4,
      70px 60px 0 0 #03a9f4, 100px 60px 0 0 #03a9f4, 110px 60px 0 0 #03a9f4,
      20px 70px 0 0 #03a9f4, 70px 70px 0 0 #03a9f4, 100px 70px 0 0 #03a9f4,
      20px 80px 0 0 #03a9f4, 60px 80px 0 0 #03a9f4, 70px 80px 0 0 #03a9f4,
      100px 80px 0 0 #03a9f4, 60px 90px 0 0 #03a9f4, 140px 90px 0 0 #03a9f4,
      50px 100px 0 0 #03a9f4, 60px 100px 0 0 #03a9f4, 140px 100px 0 0 #03a9f4,
      50px 110px 0 0 #03a9f4, 130px 110px 0 0 #03a9f4, 140px 110px 0 0 #03a9f4,
      50px 120px 0 0 #03a9f4, 130px 120px 0 0 #03a9f4, 30px 130px 0 0 #03a9f4,
      100px 130px 0 0 #03a9f4, 130px 130px 0 0 #03a9f4, 20px 140px 0 0 #03a9f4,
      30px 140px 0 0 #03a9f4, 90px 140px 0 0 #03a9f4, 20px 150px 0 0 #03a9f4,
      80px 150px 0 0 #03a9f4;
    height: 10px;
    width: 10px;
  }
  25.01%,
  50% {
    box-shadow: 30px 40px 0 0 #03a9f4, 30px 50px 0 0 #03a9f4,
      20px 60px 0 0 #03a9f4, 30px 60px 0 0 #03a9f4, 100px 60px 0 0 #03a9f4,
      130px 60px 0 0 #03a9f4, 20px 70px 0 0 #03a9f4, 100px 70px 0 0 #03a9f4,
      120px 70px 0 0 #03a9f4, 10px 80px 0 0 #03a9f4, 20px 80px 0 0 #03a9f4,
      60px 80px 0 0 #03a9f4, 90px 80px 0 0 #03a9f4, 100px 80px 0 0 #03a9f4,
      10px 90px 0 0 #03a9f4, 60px 90px 0 0 #03a9f4, 90px 90px 0 0 #03a9f4,
      10px 100px 0 0 #03a9f4, 50px 100px 0 0 #03a9f4, 60px 100px 0 0 #03a9f4,
      90px 100px 0 0 #03a9f4, 50px 110px 0 0 #03a9f4, 130px 110px 0 0 #03a9f4,
      40px 120px 0 0 #03a9f4, 50px 120px 0 0 #03a9f4, 130px 120px 0 0 #03a9f4,
      40px 130px 0 0 #03a9f4, 120px 130px 0 0 #03a9f4, 130px 130px 0 0 #03a9f4,
      40px 140px 0 0 #03a9f4, 120px 140px 0 0 #03a9f4, 80px 150px 0 0 #03a9f4,
      120px 150px 0 0 #03a9f4, 70px 160px 0 0 #03a9f4;
    height: 10px;
    width: 10px;
  }
  50.01%,
  75% {
    box-shadow: 10px 80px 0 0 #03a9f4, 110px 80px 0 0 #03a9f4,
      10px 90px 0 0 #03a9f4, 110px 90px 0 0 #03a9f4, 10px 100px 0 0 #03a9f4,
      80px 100px 0 0 #03a9f4, 110px 100px 0 0 #03a9f4, 80px 110px 0 0 #03a9f4,
      130px 110px 0 0 #03a9f4, 40px 120px 0 0 #03a9f4, 70px 120px 0 0 #03a9f4,
      80px 120px 0 0 #03a9f4, 130px 120px 0 0 #03a9f4, 40px 130px 0 0 #03a9f4,
      70px 130px 0 0 #03a9f4, 120px 130px 0 0 #03a9f4, 130px 130px 0 0 #03a9f4,
      30px 140px 0 0 #03a9f4, 40px 140px 0 0 #03a9f4, 70px 140px 0 0 #03a9f4,
      120px 140px 0 0 #03a9f4, 30px 150px 0 0 #03a9f4, 120px 150px 0 0 #03a9f4,
      30px 160px 0 0 #03a9f4;
    height: 10px;
    width: 10px;
  }
  75.01%,
  100% {
    box-shadow: 30px 160px 0 0 #03a9f4, 120px 160px 0 0 #03a9f4;
    height: 10px;
    width: 10px;
  }
}
