@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  background: #c9ffee;
  color: #7fffdd;
  text-align: center;
}

#heading {
  color: #000;
  font-size: clamp(1.5rem, 6vw, 60px); /* Responsive heading */
  margin: 1rem 0;
}

.clock {
  width: 100%;
  max-width: 500px;
  height: 30vh;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-radius: 15px;
  padding: 1rem;
}

.dateDay {
  width: 100%;
  max-width: 500px;
  height: 8vh;
  min-height: 50px;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 500;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.7);
}

.clock h1 {
  font-size: clamp(2rem, 10vw, 5rem); /* Responsive font size */
  font-weight: 700;
}

.clock span {
  position: relative;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 600;
  top: -10%;
  margin-left: 5px;
}

/* Improved responsiveness for mid-sized screens */
@media screen and (max-width: 768px) {
  .clock {
    height: auto;
    padding: 1rem;
  }

  .dateDay {
    height: auto;
    padding: 0.75rem;
  }
}

/* Adjust for very small devices */
@media screen and (max-width: 460px) {
  .clock {
    max-width: 100%;
    padding: 0.5rem;
  }

  .clock h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .dateDay {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
  }

  #heading {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
}
