.time-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex: 1; /* Take up remaining space in main */
  width: 100%;
  min-height: 0; /* Allow flexbox to work properly */
}
.clock-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Remove large margins */
}

.clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 15rem;
  width: 15rem;
  border-radius: 50%;
  border: solid 3px #f6a800;
  position: relative;
  filter: var(--drop-shadow);
  box-shadow: var(--box-shadow-inset);
}

.hours {
  background-color: var(--primary-color);
}
#hours-hand {
  position: absolute;
  height: 64px;
  right: 115px;
  bottom: 115px;
  width: 4px;
  border-radius: 16px;
  filter: var(--drop-shadow);
  transition: var(--transition-in);
  transform-origin: bottom;
}
.minutes {
  background-color: var(--primary-color);
}
#minutes-hand {
  position: absolute;
  height: 105px;
  right: 115px;
  bottom: 115px;
  width: 2px;
  border-radius: 3px;
  filter: var(--drop-shadow);
  transform-origin: bottom;
  transition: var(--transition-in);
}
#seconds-hand {
  position: absolute;
  height: 100px;
  right: 115px;
  bottom: 115px;
  width: 2px;
  background-color: #ff6600;
  filter: var(--drop-shadow);
  transform-origin: bottom;
  z-index: 1;
  transition: var(--transition-in);
}
#center {
  background-color: #ff6600;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  filter: var(--drop-shadow);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
#center::after {
  content: '';
  background-color: var(--primary-color);
  width: 5px;
  height: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: var(--transition-in);
}
.digital-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 360px;
  align-items: center;
  margin: 0; /* Remove large margins */
  text-shadow: var(--text-shadow);
}

.time {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 4px;
}
.time span {
  letter-spacing: 0;
}

.date {
  display: inline-block;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1rem; /* Reduced from 4rem */
  padding-bottom: 1rem;
  vertical-align: middle;
  transition: var(--transition-in);
}

.date .circle {
  background-color: var(--primary-color);
  color: #ff6600;
  border-radius: 50%;
  height: clamp(2rem, 3vw, 3rem);
  width: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  filter: var(--drop-shadow);
  transition: var(--transition-in);
}

@media screen and (min-width: 1200px) {
  .date .circle {
    margin: 0.4rem 0;
  }
  .clock {
    margin: 0 auto 2rem;
    height: 19rem;
    width: 19rem;
  }
  #hours-hand {
    height: 80px;
    right: 147px;
    bottom: 147px;
  }
  #minutes-hand {
    height: 135px;
    right: 149px;
    bottom: 149px;
  }
  #seconds-hand {
    height: 135px;
    right: 149px;
    bottom: 149px;
  }
  .digital-clock {
    margin: 4rem auto 0;
  }
}
