body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: white;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Combining color and dimming gradients */
  background: linear-gradient(
      to bottom, 
      rgba(0, 0, 0, 0) 0%, 
      rgba(0, 0, 0, 0.1) 75%, 
      rgba(0, 0, 0, 0.3) 100%
  ), 
  linear-gradient(
      to bottom, 
      #000000 0%, 
      #112233 50%, 
      #330066 75%, 
      #6a0dad 100%
  );
  z-index: -1;
}

#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Ensure stars are below the background */
}



.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  animation: pulse 4s infinite ease-in-out, drift 30s infinite linear;
  opacity: var(--opacity);
}

@keyframes pulse {
  0%, 100% {
      transform: scale(1);
      opacity: var(--opacity);
  }
  50% {
      transform: scale(1.3);
      opacity: var(--opacity) * 0.6; 
  }
}

@keyframes drift {
  from {
      transform: translate(0, 0);
  }
  to {
      transform: translate(calc(200px * var(--randX)), calc(200px * var(--randY)));
  }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  opacity: 1;
}


#input {
  opacity: 0;
  position: absolute;
  z-index: 1;
}

#text-container {
  display: flex;
  pointer-events: none; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  width: 90%; 
  height: 80%;
  color: white;
}


#typed-text {
  color: white;
  font-size: 100px;
  text-align: center;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#typed-text:after {
  content: '|';
  font-weight: bold;
  color: white;
  animation: cursor-flash 0.5s infinite alternate;
  display: inline-block;
  transform: translateY(-10px);
}

#results {
  display: none; 
  position: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 20;
  overflow-y: auto;
}

#results-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: space-evenly;
}

#results p {
  margin-top: 20px;
  margin-bottom: 20px;
}

.prompt {
  font-size: 64px;
  color:rgb(195, 195, 195);
}

.tasteful-emoji-container {
  font-size: 125px;
}

.tasteful-emojis {
  display: none;
  max-width: 100vw;
  overflow-wrap: break-word;
}

.cheer {
  visibility: hidden;
  font-size: 32px;
  font-family: "Style Script", cursive;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 20px;
}

@keyframes cursor-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ellipsis {
  0%, 100% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

.loader {
  display: inline-block;
  position: relative;
  line-height: 1.7;
}

.loader::after {
  content: '';
  animation: ellipsis 1.2s infinite;
}

.fade-in {
  animation: fadeInAnimation 1s;
}

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

.buttons {
  display: flex; 
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

button {
  padding: 10px 20px;
}

.clipboard-overlay {
  position: fixed;
  top: -250px; /* Start off screen */
  left: 50%;
  transform: translateX(-50%);
  font-size: 200px; /* Font size for the clipboard emoji */
  animation: clipboardAnimation 0.75s forwards;
  z-index: 100;
  text-align: center; /* Ensure emojis are centered */
}

.checkmark {
  display: block; /* Make checkmark appear on top of clipboard */
  font-size: 100px; /* Smaller font size for the checkmark */
  margin-bottom: -205px; /* Adjust spacing to overlap correctly */
  z-index: 101; /* Ensure checkmark is on top */
  position: relative; /* Adjust position to respect z-index */
}



@keyframes clipboardAnimation {
  0% {
    top: -250px; /* Start off screen */
  }
  50% {
    top: 100px; /* Move down slightly */
    opacity: 1;
  }
  100% {
    top: -250px; /* Move back off screen */
    opacity: 0;
  }
}

.date {
  font-size: 20px;
}

.locale {
  font-size: 20px;
}

/* For screens smaller than 768px */
@media only screen and (max-width: 768px) {
  #typed-text {
      font-size: 50px; /* Adjust font size for smaller screens */
  }
  .tasteful-emoji-container {
      font-size: 80px; /* Adjust emoji size for smaller screens */
  }
  .prompt {
    font-size: 32px;
  }
  #text-container {
    top: 25%;
  }
  #typed-text:after {
    transform: translateY(-5px);
  }
  .loader {
    line-height: 1.6;
  }
  #results {
    height: auto;
    min-height: 60vh;
    max-height: 100vh;
    top: 5%;
  }
}

