body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: 'Segoe UI', sans-serif;
    
    /* background-image: url("../images/background-icons-medium.png"); */
    /* background-repeat: repeat;
    background-size: 12%; */
}

/* article {
    background-color: #dfdfdf;
} */

header {
    /* background-color: #acacac; */

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

main {
    position:relative;
    min-height: max-content;
    height:auto !important;
}

footer {
    width: 100%;
    bottom: 0;
    clear: both;
}

.footer-list {
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
    background-color: #830000;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    height: auto;
    grid-template-columns: 40rem 20rem 40rem;
    justify-content: center;
    grid-gap: 0 5rem;
    padding: 0.7rem 1rem 0;
}

.footer-copyright {
    grid-row: 5;
    grid-column: 2;
    margin-bottom: 0.8rem;
    /* center */
    /* display: flex; */
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 0.8rem;
}

.footer-list h2 {
    font-size: 1.3rem;
    margin: 0 0 0.8rem;
    padding: 0;
    color: #fff;

}

.footer-contact {
    margin-top: 2rem;
}

.footer-email {
    text-decoration: underline;
    color: #fff;
}

.footer-list ul {
    margin: 0 auto;
}

.footer-list li {
    list-style-type: none;
}

.footer-nav li {
    display: grid;
    grid-template-columns: 1fr 3rem;
}

.footer-list-item.footer-references {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social-media h2,
.footer-trooper h2 {
    text-align: center;
}

.footer-social-media ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; 
    gap: 0.5rem;
}

.footer-social-media li a,
.footer-trooper a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
    line-height: 1.2;
}

.footer-social-media li img {
    height: 2rem;
    width: auto;
    display: block;
}

.footer-trooper img {
    height: 2.5rem;
    width: auto;
    display: block;
    border-radius: 0.3rem;
}



.footer-sponsors {
    margin-top: 2rem;

    a {
        height: 12rem;
        /* width: 10rem; */
        max-width: 60%;
        object-fit: contain;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        display: block;

    }

    a img {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        object-fit: contain;
        transition: transform 0.5s ease;
        /* background-color: #fff; */
        border-radius: 0 !important;
    }
}

/* .footer-fb {
    grid-column: 2;
}

.footer-fb img {
    height: 2.5rem;
    display: block;
    padding: auto;
    margin: auto;
} */

.main-title-container {
    flex: 1;
    
    .main-title {
        display: block;
        margin-right: auto;
        margin-left: 3rem;
        padding: 1rem 0;
        width: fit-content;
        
        img {
            display: flex;
            height: 4rem;
            margin: auto;
            width: 8rem;
        }

        h1 {
            text-align: center;
            align-items: center;
            font-size: 1.3rem;
            color: #830000;
            width: fit-content;
        }
    }
}

button {
    padding-inline: 0;
    padding-block: 0;
}

h1 {
    height: 100%;
}

/* .main-title-container {
    width: 55%;
} */

.icon {
    /* float: right; */
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.menu-icon {
    display: none;
}

.nav-pages {
    /* width: 50%; */
    flex: 2.2;
    display: flex;
    justify-content: center;
    /* margin-left: 1rem; */
}

.navbar {
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 80%;
    margin: auto;
}

.navbar ul {
    justify-content: center;
}

.nav-item {
    /* font-size: min(2.5vw, 30px); */
    display: inline;
    padding: 0.7rem;
    /* padding: 5px 10px; */
    border-radius: 5px;
    transition: background-color 0.3s;

    a {
        font-size: 1.5rem;
    }
}

.nav-item a {
    text-decoration: none;
    color: #830000;
    transition: color 0.3s;
}

.non-dropdown {
    display: none;
}

@media only screen and (min-width: 700px) {

    .nav-item:hover {
        background-color: #dbdbdb;
    }
    
    .nav-item:hover > a {
        color: #000000;
    }
    
    .nav-item:hover svg path {
        fill: #000000;
    }

    .dropdown .dropdown-button {
        border: none;
        font-size: 1.5rem;
        background: transparent;
        margin: 30px 0 0 0;
        padding: 0 0 20px 0;
        text-decoration: none;
        font-family: 'Segoe UI', sans-serif;
        /* color: #830000; */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        min-width: 160px;
        z-index: 3;
    }

    .dropdown-content a {
        display: block;
        border: #000000 1px solid;
        /* background-color: #a3a3a3; */
        background-color: #fff;
        box-shadow: 8px 8px 16px 0px rgba(0,0,0,0.2);
        padding: 12px 16px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .dropdown-button {
        color: #830000;
    }

    .dropdown:hover .dropdown-button {
        color: #000000;
    }

    .dropdown-content a:hover {
        background-color: #dbdbdb;
        color: #000000;
    }

    .dropdown-content a:not(:last-child) {
        margin-bottom: 10px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.head-info {
    background-image: url("../images/banner.jpg");
    background-size: cover;
    background-position: center;
    background-color: #b9b9b9;
    min-height: 10rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    p {
        width: 60%;
        font-size: 1.3rem;
        position: relative;
        color: white;
        z-index: 1;
        margin: auto auto auto 10%;
        clear: both;
        display: block;

        &::before {
            content: "";
            position: absolute;
            padding: 2rem;
            top: -2rem;
            left: -2rem;
            width: 80%;
            height: 100%;
            /* border-radius: 1rem 0 0 1rem; */
            /* background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%); */
            background-color: rgba(0, 0, 0, 0.5);
            z-index: -1; /* Place the fade behind the text */
        }

        &::after {
            content: "";
            position: absolute;
            padding: 2rem;
            top: -2rem;
            left: calc(80% + 2rem);
            width: 30%;
            height: 100%;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
            z-index: -1;
        }
    }
}

.page-title {
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: center;
    background-color: #b9b9b9;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 4rem;

    .title-div {
        width: 80%;
        margin: auto;
        position: inherit;

        h2 {
            font-size: 2rem;
            margin: 0 auto;
            padding: 1.5rem;
            text-align: left;
            color: #fff;
            position: relative;
            z-index: 2;
            display: inline-block;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 80%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: -1;
            }

            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 80%;
                width: 80%;
                height: 100%;
                background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
                z-index: -1;
            }
        }
    }
}

.event {
    width: 60%;
    /* margin: 20px auto 60px; */
    margin: 0 auto;
    /* border-bottom: 1px solid black; */
    /* border: #830000 2px solid;
    border-radius: 25px; */
    padding-top: 4rem;
    overflow: hidden; /* Clearfix for floated content */

    &::after {
        content: "";
        display: block;
        width: 40%; /* Adjust width */
        border-bottom: 1px solid #830000;
        margin: 0 auto; /* Centers it */
        padding-top: 4rem;
        clear: both;
    }

    &:last-of-type {
        padding-bottom: 4rem;

        &::after {
            display: none;
        }
    }
      

    img {
        max-width: min(100%, 20rem);
        border-radius: 0.8rem;
        margin-left: 30px;
        float: right;
        /* border: 2px solid #830000; */
    }

    h2 {
        /* font-size: min(6vw, 40px); */
        font-size: 1.8rem;
        margin: 0;
        padding: 0;
        color: #830000;
    }

    .event-time {
        display: block;
        font-size: 1.2rem;
        margin: 5px 0 0;
        padding: 0;
        color: #830000;
    }

    .event-content {
        /* font-size: min(3vw, 20px); */
        font-size: 1.2rem;
        margin: 10px 0 0;
        padding: 0;
        text-align: justify;
    }

    button {
        margin: 3rem 0 0;
        border: none;
        background: transparent;
    }

    button a {
        display: block;
        text-decoration: none;
        color: white;
        padding: 1.2rem;
        cursor: pointer;
        font-size: 1.2rem;
        background-color: #830000;
        border-radius: 5px;
    }
}

.past-event {
    h2, p, time {
        color: black;
    }

    button a {
        background-color: #000000;
    }
}

#past-events {
    h2 {
        color: #000000;
    }
}

.load-more, .load-more-past {
    margin: 2rem auto;
    border: none;
    background: transparent;
    display: block;
    text-decoration: none;
    padding: 1.3rem;
    cursor: pointer;
    font-size: 1.3rem;
    color: white;
    background-color: #830000;
    border-radius: 5px;
}

.load-more-past {
    background-color: #000000;
}

div > h2 {
    font-size: 2.1rem;
    margin: 2rem 0 0 0;
    padding: 0;
    color: #830000;
    text-align: center;
}

#upcoming-events {
    &::after {
        content: "";
        display: block;
        width: 40%; /* Adjust width */
        border-bottom: 2px solid #830000;
        margin: 4rem auto 2rem; /* Centers it */
        /* padding-top: 4rem; */
        clear: both;
    }
}

.ensemble-article,
.about-article {
    width: 80%;
    margin: 20px auto 40px;
    /* border: #830000 2px solid;
    border-radius: 25px; */
    padding: 1.7rem;
    padding-top: 4rem;
    font-size: 1.2rem;
    overflow: hidden; /* Clearfix for floated content */
    text-align: justify;

    &::after {
        content: "";
        display: block;
        width: 40%; /* Adjust width */
        border-bottom: 3px solid #830000;
        margin: 0 auto; /* Centers it */
        padding-top: 1rem;
        clear: both;
    }

    &:last-of-type {
        padding-bottom: 4rem;

        &::after {
            display: none;
        }
    }
}

.ensemble-article {
    .ensemble-section {
        overflow: hidden;
        margin-bottom: 3rem;

        img {
            max-height: 15rem;
            max-width: calc(100% - 4px);
            border-radius: 0.8rem;
            /* border: 2px solid #830000; */
        }
    }

    .ensemble-section:nth-child(2n) img {
        margin-right: 30px;
        float: left;
    }

    .ensemble-section:nth-child(2n + 1) img {
        margin-left: 30px;
        float: right;
    }
    
    .image-group {
        justify-content: space-between;
        align-items: center;
        /* margin: 0 auto; */
        margin: 10px auto 0;
        /* margin: 20px auto 0; */
        width: calc(100% - 4px);
        /* border: 2px solid #830000; */
        border-radius: 0.8rem;
    }
}

.contentsTable {
    width: 80%;
    margin: auto;

    ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        margin: 2rem auto 0;
        padding: 1rem;
        width: fit-content;
        font-size: 1.2rem;
        border: #830000 2px solid;
        border-radius: 0.8rem;

        li {
            margin: 5px 0;
    
            a {
                text-decoration: none;
                color: #830000;
    
                &:hover {
                    text-decoration: underline;
                }
            }
        }

        li a::before {
            content: "♪";   /* Unicode musical note */
            color: #830000; /* your custom color */
            margin-right: 8px;
            font-size: 1.2rem; /* adjust size if needed */
        }
    }

}

.about-article {
    h3 {
        font-size: 2.1rem;
        color: #830000;
        text-align: center;
        margin-bottom: 10px;
    }

    .paragraph {
        overflow: hidden;
        text-align: justify;
        margin-bottom: 20px;

        h4 {
            /* font-size: min(5vw, 25px); */
            font-size: 1.5rem;
            color: #830000;
            margin-bottom: 10px;
        }

        p {
            font-size: 1.2rem;
        }
        
        img {
            max-width: min(100%, 25rem);
            border-radius: 0.8rem;
            float: right;
        }
    }

    .paragraph:nth-child(4n) img {
        margin-right: 1rem;
        float: left;
    }

    .paragraph:nth-child(4n + 2) img {
        margin-left: 1rem;
        float: right;
    }

    hr {
        border: 0;
        border-top: 1px solid #830000;
    }
}

.contact-article {
    margin: 2rem auto 4rem;

    h3 {
        font-size: 1.8rem;
        color: #830000;
        text-align: center;
        margin-bottom: 1rem;
    }

    p {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

#mapContainer {
    width: 60%;
    margin: auto;
}

.not-found {
    text-align: center;
    font-size: 1.4rem;
}

.error-message {
    text-align: center;
    font-size: 1.4rem;
}

@media only screen and (max-width: 2000px) {
    body {
        background-size: 15rem;
    }
}

@media only screen and (max-width: 1700px) {

    .footer-list {
        grid-template-columns: 1fr 20rem 1fr;
        justify-content: center;
    }
}

@media only screen and (max-width: 1500px) {

    .navbar {
        width: 100%;
    }

    .main-title-container {
        .main-title {
            margin-left: auto;
            margin-right: 0;
        }
    }

    .nav-pages {
        flex: 2.8;
    }

    #mapContainer {
        width: 80%;
    }
}

@media only screen and (max-width: 1300px) {

    .nav-pages {
        /* width: 60%; */
    }

    .event {
        width: 75%;
    }

    .cal-modal-container {
        width: calc(75% + 3.6rem);
        /* width: calc(75%); */
    }
}

@media only screen and (max-width: 1100px) {
    .footer-list {
        grid-template-columns: 1fr 1fr;
        justify-content: center;
    }

    .footer-sponsors {
        grid-row: 2;
        grid-column: 1 / span 2;
    }

    .footer-copyright {
        grid-column: 1 / span 2;
        text-align: center;
    }
        
    .footer-list-item {
        margin-bottom: 3rem;
        font-size: 1.2rem;

        &.footer-sponsors {
            margin-bottom: 0;
            margin-top: auto;
        }
    }
}

@media only screen and (max-width: 1000px) {

    .navbar {
        display: block;
    }

    .main-title-container {
        width: 100%;

        .main-title {
            margin: auto;
            /* margin-left: auto;
            margin-right: auto; */
        }
    }

    .nav-pages {
        width: 100%;
    }

    .nav-item {
        padding: 0.3rem;
    }

    .head-info p {
        font-size: 1rem;
    }

    .event {
        h2 {
            font-size: 1.8rem;
        }

        .event-time {
            font-size: 1rem;
        }

        .event-time {
            font-size: 0.8rem;
        }

        .event-content {
            font-size: 0.9rem;
        }

        button a {
            font-size: 0.9rem;
            padding: 0.7rem;
        }
    }

    #load-more-button {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .ensemble-article,
    .about-article {
        font-size: 0.8rem;
        padding: 1.3rem;

        h3 {
            font-size: 1.5rem;
        }

        .paragraph {
            h4 {
                font-size: 1.3rem;
            }
            
            p {
                font-size: 0.8rem;
            }
        }
    }

    #mapContainer {
        width: 90%;
    }

    .ensemble-section img {
        margin-bottom: 0.5rem;
    }

    .dropdown .dropdown-button {
        margin: 0;
        font-size: 1.5rem
    }

    .nav-item {
        font-size: 1.5rem
    }

    .event img {
        float: right;
        margin: 30px 0 0;
    }

    .about-article .paragraph img {
        float: right;
        margin: 30px 0 0;
    }

    .footer-nav {
        display: none;
    }

    .footer-copyright {
        grid-column: 1 / span 2;        
    }

    
    .error-message {
        text-align: center;
        font-size: 1.3rem;
    }

    .about-article .paragraph {
        img {
            display: block;
            float: none;
            margin: 1rem auto 0;
            max-width: calc(100% - 4px);
        }
    }
}

@media only screen and (max-width: 800px) {
    
    .event {
        img {
            display: block;
            float: none;
            margin: 30px auto 0;
            max-width: calc(100% - 4px);
        }

        button {
            display: block;
            margin: 20px auto 0;
        }
    }

    .about-article .paragraph {
        img {
            display: block;
            float: none !important;
            margin: 1rem auto 0 !important;
            max-width: calc(100% - 4px);
        }
    }
}

@media only screen and (max-width: 700px) {

    body {
        background-size: 30%;
    }

    .main-title {
        width: 95%;
        display: block;
    }

    .menu-icon {
        display: block;
        margin: auto 10px;
        width: 3rem;
        height: 100%;
    }

    .nav-pages {
        display: none;
        position: absolute;
        background-color: #830000;
        left: 0;
        padding: 1rem;
        box-sizing: border-box;
        z-index: 10;
    }

    .nav-item {
        display: block;

        a {
            color: #fff;
        }
    }

    .dropdown {
        padding-right: 0;
    }

    .dropdown-content a {
        display: block;
        margin-left: 10px;
        padding: 5px 10px;
        border-radius: 5px;

        font-size: 1.4rem;
    }

    .dropdown-button {
        display: none;
    }

    .non-dropdown {
        display: block;
        padding: 5px 0;
        color: #fff;

        a {
            font-size: 1.8rem;
        }
    }

    .nav-item:not(.dropdown) a {
        display: block;
        width: 100%;

        font-size: 1.8rem;
    }

    .nav-item:not(.dropdown):hover {
        background-color: #dbdbdb;
    }
    
    .nav-item:hover > a {
        color: #000000;
    }

    .dropdown-content a:hover {
        background-color: #dbdbdb;
        color: #000000;
    }

    .footer-list {
        display: block;
    }

    footer hr {
        display: block;
        border: 0;
        border-top: 2px solid #830000;
        width: 70%;
        margin: 20px auto;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-list h2 {
        font-size: 1rem;
    }

    .footer-contact img {
        height: 4.5rem;
    }

    .sponsor-list {
        li.big-sponsor {
            img {
                height: 2.8rem;
            }
        }

        li:not(.big-sponsor) {
            img {
                height: 2.3rem;
            }
        }
    }

    .ensemble-article .ensemble-section img {
        float: none !important;
        margin: 0 auto 0.2rem !important;
        display: block;
    }

    .head-info {
        & p {
            width: 80%;
            text-align: justify;
            text-align-last: center;
        

            &::before {
                width: 100%;
            }

            &::after {
                content: none;
            }
        }
    }

    .page-title {
        padding: 1.8rem;
        
        .title-div {
            width: fit-content;

            h2 {
                font-size: 1.8rem;
                padding: 1rem;

                &::before {
                    width: 100%;
                }

                &::after {
                    content: none;
                }
            }
        }
    }

    .about-article {
        padding-top: 1rem;

        &::after {
            padding-top: 4rem;
        }

        &:last-of-type {
            padding-bottom: 2rem;

            &::after {
                display: none;
            }
        }
    }
}