/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, sans-serif;
  padding: 1rem;
}

/* Heading */
.heading,
.heading h3 {
  text-align: center;
  color: crimson;
  margin-bottom: 1rem;
}

/* Updated Month Header */
.month {
  width: 100%;
  padding: 70px 25px;
  background: #1abc9c;
  text-align: center;
  position: relative;
  color: white;
}

.month ul {
  margin: 0;
  padding: 0;
}

.month ul li {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Previous and Next Buttons */
.month .prev,
.month .next {
  position: absolute;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

.month .prev {
  left: 20px;
}

.month .next {
  right: 20px;
}

/* Weekdays Row */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr));
  background-color: #ddd;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
  color: #666;
  overflow-x: auto;
}

/* Calendar Days */
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr));
  background: #eee;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  overflow-x: auto;
}
.days li {
  padding: 10px 0;
  color: #777;
}

/* Active Day Highlight */
.days li .active {
  display: inline-block;
  padding: 8px 12px;
  background: crimson;
  color: white !important;
  border-radius: 50%;
}

/* Overlay styles */
#rotate-notice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
  pointer-events: all;
}

#rotate-notice h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Phone icon */
.phone-icon {
  width: 80px;
  height: 120px;
  border: 5px solid white;
  border-radius: 15px;
  position: relative;
  animation: rotatePhone 2s infinite ease-in-out;
}

.phone-icon::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: white;
  border-radius: 8px;
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(90deg); }
  75% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Responsive Fixes */
@media (max-width: 480px) {
  .month ul li {
    font-size: 14px;
  }

  .month .prev,
  .month .next {
    font-size: 16px;
  }

  .weekdays,
  .days {
    font-size: 11px;
  }

  .days li {
    padding: 6px 0;
  }

  .heading h3 {
    font-size: 1rem;
  }
}