 
@font-face { 
  font-family: 'DS-Digital'; 
  src: url(DS-DIGI.TTF) format('truetype'); 
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-size: 48px; 
  transition: background-image 1.5s ease-in-out, background-color 1.5s ease-in-out;
  color: white; 
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  font-family: Arial, Helvetica, sans-serif; /* body uses normal font */
}

.climate{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.4);
  padding:2px 4px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}




.clock {
  padding: 20px 30px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.9);
  color: black;
  font-family: 'DS-Digital', monospace; /* only clock uses DS-Digital */
  font-size: 80px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,255,0.7);
  transition: all 0.3s ease;
}

#greet, #calendar {
  text-align: center;
  margin: 10px 0;
  font-size: 36px;
  letter-spacing: 2px;
font-family: 'Pacifico', cursive;
 text-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,255,0.7);}


.clock-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}


.clock:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,255,1);
  transform: scale(1.05); 
}

.separator {
  font-size: 80px;
  color: cyan;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}


#greet {
  animation: greetFade 4s linear infinite ;
}
#ampm { 
  font-size: 36px; padding: 10px 15px; letter-spacing: 2px; 
}
@keyframes greetFade {
  0% { opacity: 0.6; transform: translateY(-5px);}
  100% { opacity: 1; transform: translateY(5px);}
}

@media (max-width: 768px) {
  body {
    font-size: 32px;
    background-size: contain;   
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;    
  }
 .climate {
    top: 10px;
    right: 10px;
    font-size: 18px;
    padding: 6px 12px;
  }
  .clock {
    font-size: 50px;
    padding: 15px 20px;
  }

  .separator {
    font-size: 50px;
  }

  #greet, #calendar {
    font-size: 24px;
    letter-spacing: 1px;
  }

  #ampm {
    font-size: 24px;
    padding: 5px 10px;
  }

  .clock-row {
    gap: 10px;
    flex-wrap: wrap; /* allow wrapping on very small screens */
  }
}

/* Media query for very small screens (mobile phones) */
@media (max-width: 480px) {
  body {
    font-size: 24px;
    background-size: contain;   /* keep full image */
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
  }

  .clock {
    font-size: 40px;
    padding: 10px 15px;
  }

  .separator {
    font-size: 40px;
  }

  #greet, #calendar {
    font-size: 18px;
  }

  #ampm {
    font-size: 18px;
    padding: 3px 6px;
  }
  body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .climate {
    top: 6px;
    right: 6px;
    font-size: 14px;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  /* Optional: hide condition text if needed */
  #condition {
    display: none;
  }
   
}

