h1 {
  color: rgb(29, 82, 71);
}
h2 {
  font-size: 40px;
  background-color: rgb(36, 87, 63);
  padding: 10px;
  border-radius: 8px;
  color: rgb(6, 246, 38);
}
body {
  padding-top: 4em;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(147, 240, 206);
}

.column-container {
  display: flex;
  justify-content: center; 
  align-items: flex-start;
  gap: 5vw;
  width: 100%;
}

.analog-column, .digital-column {
  flex: 1;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  max-width: 40vw;
}

.analog-clock, .digital-clock {
  position: relative;
  width: 15vw;
  height: 15vw;
  margin: 1vh; 
  transition: transform 0.2s ease;
}
.selected {
  border-radius: 100%;
  transform: scale(1.05);
}

.stacked-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.centered-text {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  
  color: black;
  font-size: 4vw;
  font-weight: bold;
  white-space: nowrap;
}
.continue-btn {
  font-family: 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 5vw;
  padding: 2em 2em;
  cursor: pointer;
  background-color: #4CAF50;
  color: rgb(215, 249, 212);
  border: none;
  border-radius: 20%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.continue-btn:hover {
  background-color: #357c39; 
  transform: scale(1.05);
}

.full-star {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  animation: growStar 1.2s ease-out forwards;
  z-index: 9999;
}
.star-image {
  width: 40vw;
  height: auto;
}
.star-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: rgb(255, 106, 0);
  text-shadow: -.03em 0 yellow, 0 .03em yellow, .03em 0 yellow, 0 -.03em yellow;
  font-weight: bold;
  text-align: center;
}

.fade-out {
  opacity: 1;
  animation-name: fadeOut;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 4s;
}
@keyframes fadeOut {
  0% {
      transform: translate(-50%, -50%) scale(1) rotateZ(0deg);
      opacity: 1;
  }
  50% {
      transform: translate(-50%, -50%) scale(0.5) rotateZ(180deg);
  }
  100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.1) rotateZ(360deg);
  }
}

.hidden {
  display: none;
}

@keyframes growStar {
  0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.2);
  }
  60% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
      transform: translate(-50%, -50%) scale(1);
  }
}
@media screen and (max-width: 480px) {
  h1 {
      font-size: 5vw;
  }
  .analog-column, .digital-column {
      flex: none; 
      width: 40%; 
      max-width: none;
  }
  .analog-clock, .digital-clock {
      width: 27vw; 
      height: 27vw;
  }
}

/* medium screen responsive design */
@media screen and (min-width: 641px) and (max-width: 900px) {
  h1 {
      font-size: 3vw;
  }
  .analog-clock, .digital-clock {
      width: 25vw;
      height: 25vw;
  }
  .centered-text {
      font-size: 6vw;
  }
}

/* Adjustments for larger screens if needed */
@media screen and (min-height: 901px) {
  h1 {
      font-size: 2.5vw;
  }
  .analog-clock, .digital-clock {
      width: 10vw;
      height: 10vw;
  }
}
#line-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;   
  pointer-events: none;
}
.analog-clock, .digital-clock {
  position: relative;
  z-index: 2; 
}
