@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsB';
  src: url('fonts/Poppins-Bold.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsSB';
  src: url('fonts/Poppins-SemiBold.ttf');
  font-style: normal;
}
@font-face {
  font-family: 'PoppinsM';
  src: url('fonts/Poppins-Medium.ttf');
  font-style: normal;
}



body{
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F9F0E3;
    overflow-x: hidden;
}
main {
    align-self: flex-start;
    width: 100%;
}

body #header {
    align-self: stretch;
    z-index: 25;
}
#header{
    background: #8da683;
    z-index: 10;
    position: relative;
}
#header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    z-index: -1;
}
#navbarRoot{
    position: relative;
    z-index: 2;
    container-type: inline-size;
}
#navbar
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#navbar a {
    text-decoration: none;
}
#nav-left {
    flex: 0 0 auto;
    padding: .75rem;
    padding-left: 3rem;
}
#logo{
    height: 3rem;
    width: auto;
}



#otherPages{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navItems{
    white-space: nowrap;
    font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    color: #fffdfa;
    font-size: 1.2rem;
    cursor:pointer;
    text-decoration: none;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
}
.navItems:hover{
    color: rgb(234, 229, 229);
    transition: color .4s ease;
}



.episodesText {
    padding-top: 2rem;
    text-align: center;
    align-self: flex-start;
    font-size: 35px;
    font-family:'Nunito Sans', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-weight:870;
}



.calendar-wrapper {
  max-width: 600px;
  font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  margin: 3em auto;
  text-align: center;
  background-color: #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1em;
  padding-top: 0em;
  border-radius: 1em;
}

.calendar-header {
  display: flex; /* ensures that the arrows are left and right to the text instead of below (makes it horizontal vs veritical */
  justify-content: space-between; /* centers items */
  align-items: center; /* fits the arrows */
  margin-bottom: 1em;
  font-family:'PoppinsB', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.calendar-header h2 {
  font-size: 1.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5em;
  font-family:'PoppinsM', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.day-label,
.day-cell {
  padding: 1em;
  background-color: #f0f0f0;
  border-radius: 0.5em;
}

.day-label { 
  font-weight: bold;
  background-color: #ddd;
}

.day-cell.saturday {
  background-color: #b8d8ff;
  border: 2px solid rgba(19, 102, 185, 0.666);
  cursor: pointer;
  transition: background 0.3s;
}

.day-cell.saturday:hover {
  background-color: #6caeffb9;
}

.empty-cell {
  visibility: hidden;
}

.announcement-box {
  margin-top: 2em;
  padding: 1.5em;
  background-color: #fff8dc;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  animation: fadeIn 0.4s ease;
  text-align: left;
  font-family:'PoppinsM', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(1em); }
  to { opacity: 1; transform: translateY(0); }
}














@media (max-width: 500px) {
    #navbar {
        flex-direction: column;
        gap: 1rem;
  }
}

@media (max-width: 1120px) {
#otherPages {
    position: static; 
    transform: none;  
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 900px) {
.navItems{
    white-space: nowrap;
    color: #fffdfa;
    font-size: 1rem;
    cursor:pointer;
    text-decoration: none;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
}
}

@media (max-width: 820px) {
  #navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  #otherPages {
    position: static; 
    transform: none;  
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  a.navItems {
    padding: 0.5rem 0;
    width: 100%;
  }

  #nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin-bottom: -1rem;     
  }
}
@media (max-width: 600px) {
  .ctaBtn {
    width: 100%;
    text-align: center;
  }
}



@media (max-width: 600px) {
   .calendar-wrapper {
    max-width: 100vw;
    padding-top: 1em;
    padding-right: .5em;
    padding-left: .5em;
    box-sizing: border-box;
  }

  .calendar-header {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .calendar-header h2 {
    font-size: 1.25rem;
    margin: 0;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem 0.15rem;
  }

  .day-label,
  .day-cell {
    padding: 1.5rem 0.3rem;
    font-size: 0.85rem;
    box-sizing: border-box;
    text-align: center;
  }

  .day-label {
    font-weight: bold;
    background-color: #ddd;
    border-radius: 0.3rem;
  }

  .day-cell {
    background-color: #f0f0f0;
    border-radius: 0.3rem;
  }
}
