* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Regular';
    src: url('../fonts/raleway.medium.ttf');
}

@font-face {
    font-family: 'Medium';
    src: url('../fonts/raleway.bold.ttf');
}

@font-face {
    font-family: 'Bold';
    src: url('../fonts/raleway.heavy.ttf');
}

body {
    font-family: 'Regular';
}

header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    color: #282560;
    padding: 0.5em 0;
    transition: background-color 0.3s, position 0.3s;
    z-index: 1000;
}

header.scrolled {
    background-color: white;
    position: fixed;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo img {
    width: 23%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #282560;
    font-size: 2em;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    position: relative;
    margin-left: 2.5em;
    padding: 0.5em 0;
    font-family: 'Bold';
    letter-spacing: 0.1em;
}

.nav-links a {
    text-decoration: none;
    color: #282560;
    font-size: 1em;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #DE4935;
    transition: width 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.nav-links a:hover::after {
    width: 100%;
    visibility: visible;
}

.hockey-heading {
    width: 100%;
    height: 40vh;
    padding: 20px 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
}

.hockey-heading p {
    width: 70%;
    font-size: 2em;
    font-family: 'Medium';
    color: #bababa;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.1em;
}

.main-heading {
    max-width: 1200px;
    margin: 50px auto;
    background-color: #DE4935;
    color: white;
    padding: 1em;
    font-family: 'Medium';
    font-size: 1.2em;
    letter-spacing: 0.2em;
}

.calendar-container {
    max-width: 1200px;
    background-color: #f9f9f9;
    padding: 20px 0;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.calendar-header {
    background-color: #DE4935;
    color: #fff;
    width: 30vw;
    height: 7vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-family: 'Medium';
    font-size: 1em;
    letter-spacing: 0.2em;
}

.calendar-header h2 {
    font-size: 18px;
}

.calendar-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.weekdays, .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
    font-family: 'Medium';
}

.weekdays div {
    background-color: #fffefe;
    padding: 8px 0;
    font-weight: bold;
    color: #282560;
}

.days button {
    padding: 15px 0;
    background-color: #fffefe;
    color: #0A1F44;
    border: 1px solid #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.days button:hover {
    background-color: #e6e6e6;
}

.days button.selected {
    background-color: #bababa;
    color: #fff;
}

.event-details {
    background-color: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    width: 30vw;
    height: 30vh;
}

.event-details h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-family: 'Medium';
    background-color: #DE4935;
    color: white;
    padding: 10px;
}

.event-details p {
    margin: 30px;
    color: #666;
    font-family: 'Regular';
}

.contact-section {
    margin: 50px auto;
    margin-top: 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    padding-top: 1em;
}

.contact-section h3 {
    font-family: 'Medium';
    font-size: 1em;
    line-height: 1.3em;
    color: #282560;
    margin-bottom: 0.3em;
    letter-spacing: 0.2em;
}

.contact-section p {
    font-family: 'Regular';
    font-size: 0.8em;
    color: #bababa;
    margin-bottom: 0.8em;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-top: 15px;
}

.contact-section a {
    color: #003366;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

footer {
    background-color: #0A1F44;
    color: white;
    text-align: center;
    padding: 1em 0;
    font-family: 'Medium';
    letter-spacing: 0.2em;
}

@media only screen and (max-width: 768px) {

    .calendar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-header {
        width: 100%;
        font-size: 0.9em;
        height: auto;
        padding: 1em;
        box-sizing: border-box;
    }

    .calendar-header h2 {
        font-size: 16px;
    }

    .calendar-header button {
        font-size: 16px;
    }

    .event-details {
        width: 100%;
        height: auto;
    }

    .contact-section {
        padding: 1em;
    }
}

@media (max-width: 768px) {
  header {
      position: fixed;
      background-color: white;
  }

  .hamburger {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 60px; /* Adjust based on header height */
      left: 0;
      background-color: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin-left: 0;
      margin-bottom: 1em;
      padding: 1em;
      text-align: center;
  }
  .logo img {
      width: 25%;
  }

  .slide h1 {
      font-size: 1.2em; 
  }

  .slide p {
      font-size: 0.6em; 
  }

  .slide {
      padding-left: 16px; 
  }
  .hero{
      margin-top: 5rem;
  }
  .hockey-heading{
      font-size: 0.6em; 
  }
  .about-container{
      display: flex;
      flex-direction: column;
  }
  .event-container{
      display: flex;
      flex-direction: column;
  }
  .wrapper-class{
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
      max-width: 90vw;
      position: relative;
      left: 1.4rem;
  }
  .orange-container{
      font-size: 0.8em; 
  }

  .slide button {
      padding: 0.5em 1em; 
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  header {
      position: fixed;
      background-color: white;
  }

  .hamburger {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
      background-color: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin-left: 0;
      margin-bottom: 1em;
      padding: 1em;
      text-align: center;
  }

  .logo img {
      width: 25%;
  }

  .slide h1 {
      font-size: 1.2em; 
  }

  .slide p {
      font-size: 0.6em; 
  }

  .slide {
      padding-left: 16px; 
  }
  .hero{
      margin-top: 5rem;
  }
  .hockey-heading{
      font-size: 0.6em; 
  }
  .about-container{
      display: flex;
      flex-direction: column;
  }
  .event-container{
      display: flex;
      flex-direction: column;
  }
  .wrapper-class{
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
      max-width: 90vw;
      position: relative;
      left: 1.4rem;
  }
  .orange-container{
      font-size: 0.8em; 
  }
  footer {
    background-color: #0A1F44;
    color: white;
    text-align: center;
    padding: 1em 0;
    height: 50px;
    font-family: 'Medium';
    letter-spacing: 0.2em;
    bottom: 0;
    font-size: 0.7em;
    line-height:25px;
    
}
}

