/* General Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(45deg, #1d0000, #20205b);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* Clock Section (Analog + Digital) */
.clock-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Analog Clock Styling */
.analog-clock {
  width: 300px;
  height: 300px;
  border: 5px solid #165a7d;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.clock-face {
  width: 100%;
  height: 100%;
  position: relative;
}

.clock-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(30deg * var(--n)))
    translateY(-130px) rotate(calc(-30deg * var(--n)));
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.hand {
  width: 50%;
  height: 4px;
  background: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 50%;
  transform: rotate(0deg);
  border-radius: 2px;
}

.hour-hand {
  width: 35%;
  height: 6px;
  background: #000;
}

.minute-hand {
  width: 45%;
  height: 4px;
  background: #0077ff;
}

.second-hand {
  width: 48%;
  height: 2px;
  background: #ff0000;
}

.clock-face::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Digital Clock Styling */
.time-box {
  padding: 10px 20px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#time {
  font-size: 30px;
  color: #165a7d;
}

/* Calendar Box Styling */
/* Calendar Box Styling */
.calendar-box {
  display: flex;
  align-items: center;
  height: 370px; /* Matches combined height of analog clock + digital clock */
}

.calendar {
  width: 400px; /* Increased width from 300px to 400px */
  height: 100%;
  background: #fff;
  display: flex;
  border-radius: 10px;
}

.left,
.right {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 24px;
}

.right {
  background: #165a7d;
  color: white;
  width: 42%;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}

.left {
  width: 58%;
}

#date {
  font-size: 100px;
  line-height: 90px;
}
