* {
    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: #FF7F50;
    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;
}

.orange-box {
    width: 100%;
    padding: 3em 0;
}

.orange-container {
    margin: 0 auto;
    background-color: #DE4935;
    max-width: 1200px;
    height: 70vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em;
}

.orange-text {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.orange-text h2 {
    font-family: 'Medium';
    font-size: 1.5em;
    line-height: 1.3em;
    color: #282560;
    margin-bottom: 0.3em;
    letter-spacing: 0.2em;
}

.orange-text p {
    width: 80%;
    font-size: 1em;
    font-family: 'Regular';
    color: #bababa;
    line-height: 1.6;
    letter-spacing: 0.1em;
    opacity: 80%;
    text-align: center;
}

.orange-text .learn-more-btn {
    background-color: #282560;
}

.orange-text .learn-more-btn:hover {
    background-color: #1c194d;
}

.two-box {
    width: 100%;
    height: 50vh;
    margin-bottom: 50px;
}

.two-box-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box1, .box2 {
    width: 45%;
    height: 100%;
    background-color: #DE4935;
    padding: 2em;
}

.box-inside {
    background-color: #f9f9f9;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box-inside h2 {
    font-family: 'Medium';
    font-size: 1.5em;
    line-height: 1.3em;
    color: #282560;
    margin-bottom: 0.3em;
    letter-spacing: 0.2em;
}

.box-inside p {
    width: 80%;
    font-size: 1em;
    font-family: 'Regular';
    color: #bababa;
    line-height: 1.6;
    letter-spacing: 0.1em;
    opacity: 80%;
    text-align: center;
}

.box-inside .learn-more-btn {
    background-color: #282560;
}

.box-inside .learn-more-btn:hover {
    background-color: #1c194d;
}

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


@media (max-width: 768px) {

    .two-box-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .box1, .box2 {
        width: 100%;
        margin-bottom: 1em;
    }

    .box-inside p {
        width: 80%;
    }
}

@media (max-width: 480px) {

    .box-inside h2 {
        font-size: 1.2em;
    }

    .box-inside p {
        width: 90%;
        font-size: 0.9em;
    }
}

@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; 
        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; 
    }
}

@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; 
    }
    .orange-text p {
        width: 80%;
        font-size: 1em;
        font-family: 'Regular';
        color: #bababa;
        line-height: 1.6;
        letter-spacing: 0.1em;
        opacity: 80%;
        text-align: center;
    }

    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;
        margin-top: 10em;
    }
}
