@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Poppins:wght@400&display=swap");

/* ===== Global Styles ===== */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #00ffc3;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Orbitron", sans-serif;
}

/* ===== Clock Container ===== */
.clock-container {
  text-align: center;
  padding: 30px;
  border: 2px solid #00ffc3;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 25px rgba(0, 255, 195, 0.4);
  width: 656px;
  max-width: 90%;
}

/* ===== Digital Clock ===== */
.clock {
  font-size: 4rem;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

#ampm {
  font-size: 1.5rem;
  color: #ff0080;
  margin-left: 10px;
  vertical-align: super;
}

/* ===== Date Section ===== */
.date {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: #e0f7f5;
  letter-spacing: 1px;
}

/* ===== Responsive Design ===== */
@media (max-width: 725px) {
  .clock {
    font-size: 3rem;
  }

  .clock-container {
    padding: 20px 30px;
    width: 80%;
  }

  .date {
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .clock-container {
    padding: 15px 20px;
    width: 85%;
  }

  .clock {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

  .date {
    font-size: 0.75rem;
  }
}
