/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css?family=Questrial');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
body {
  font-family: 'Questrial', sans-serif;
  line-height: 1.6;
  background-image: linear-gradient(to top, #1c49da, #fafaf7 30%);
  color:#1c49da;
}

a {
  text-decoration: none;
  color: #0066cc;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
header {
  background-color: rgba(241,241,233);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.logo {
  text-align: center;
  margin-bottom: 1rem;
}

.logo h1 {
  font-size: 2.5rem;
  color: #1c49da;
}

.tagline {
  font-size: 1rem;
  color: #8198e2;
  font-style: italic;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav li {
  margin: 0 1rem;
}

nav a {
  color:#1c49da;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover {
  color: #1c49da;
}

nav a.active {
  color: #1c49da;
  font-weight: bold;
}

nav a.active:after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1c49da;
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Main Content Styles */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-header h2 {
  font-size: 2rem;
}

.month-nav a {
  margin: 0 0.5rem;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.day-header {
  text-align: center;
  font-weight: bold;
  padding: 0.5rem;

  border-radius: 4px;
}

.day {
  min-height: 150px;
  background-color:rgb(241,241,233,0.2);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

.day.empty {
  background-color: transparent;
  box-shadow: none;
}

.day.empty-withnumber {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.day.today {
  border: 2px solid #0066cc;
}

.date {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  z-index: 5;
  font-size: 1em;
}

.date-content {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: transparent;
  color: rgba(241,241,233,255);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  z-index: 5;
}

.date-number {
  position: absolute;
  top: 5px;
  left: 8px;
  background: transparent;
  color: rgba(241,241,233,255);
  padding: 2px 6px;
  font-size: 1.2em;
  z-index: 1;
  display: flex;
  
}

.day-content {
  display: block;
  height: 100%;
  width:100%;
  position:relative;
  text-decoration:none;
  color: inherit;
}

.day-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  display:block;
}

.day-content:hover img {
  transform: scale(1.05);
}

.day-content.empty .date-number {
  background: none;
}

.content-title {
  padding: 0.5rem;
  font-size: 0.85rem;
  background-color: rgba(255,255,255,0.9);
}

.day-content.featured .content-title {
  background-color: #0066cc;
  color: white;
}

/* Footer Styles */
footer {
  background-color: transparent;
  color: rgb(16, 39, 114);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a {
  color: #a8d1ff;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .day-header {
    display: none;
  }
  
  .day {
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 0.5rem 0;
  }
  
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}