body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
}

.round-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    color: #ffffff;
    background-color: #0d2e5a;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
}
.round-button:hover {
    background-color: #0b2346;
}
#video {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 95%;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: justify;
    justify-content: center;
}
.content-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.content-block img {
    max-width: 150px;
    height: auto;
}
.right-img {
    order: 2;
    display: flex;
    gap: 2rem;
    object-fit: contain;
    margin-right: 1.5rem;
    
}
.left-img {
    order: 0;
    display: flex;
    gap: 2rem;
    object-fit: contain;
    margin-left: 1.5rem;
}
.text-content {
    flex: 1;
}
.high {
    font-weight: bold;
    font-size: large;
}
#homeBox__part2 {
    margin-top: 5rem;
    margin-bottom: 10rem;
}
#about {
    margin-bottom: 10rem;
}

#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    height: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    overflow: hidden;
    object-fit: cover;
}

#homeBox__part1 {
    position: relative; /* Ensure it stays above the video */
    z-index: 1;
    background-color: transparent; /* Remove any background color */
    overflow: hidden;
}

.buttonPrimary {
    background-color: #ffffff;
    font-weight: 600;
    padding: .4rem .8rem;
    font-size: 1.1rem;
    border-radius: 20px;
    overflow: hidden;
}

header {
    background-color: #ffffff !important;
}

#flipdown {
    align-self: center;
    display: -webkit-inline-box;
}

#flipdown .rotor-group-heading {
    align-self: center;
    font-family: "Orbitron";
}

#home {
    background-color: #ffffff;
    overflow: hidden;
}

.styled-button {
    background-color: transparent; 
    color: #0d2e5a; 
    padding: 10px 20px;
    font-size: 16px;
    position: relative;
    overflow: hidden; 
    border: none;
    cursor: pointer;
    transition: color 0.3s ease; 
    z-index: 1; 
}

.styled-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #0d2e5a; 
    transition: width 0.3s ease; /* Transition for border animation */
    z-index: -1; /* Ensure pseudo-element is behind button */
}

.styled-button:hover::before {
    width: 100%; /* pseudo-element to create border effect */
}

.styled-button:hover {
    color: white; /* Change text color on hover */
}


#home #hardwarText {
    position: relative;
    z-index: 10;
    opacity: 0;
    overflow: hidden;
}

#home #hardwarText p {
    z-index: 10;
    background-color: rgba(0, 0, 0, 0);
    overflow: hidden;
}

#home #hardwarText span {
    z-index: -1;
    position: absolute;
    bottom: -5px;
    right: -1rem;
    height: 50%;
    width: 45%;
    background-color: #ff0000;
    overflow: hidden;
}

#home #susDev {
    height: auto;
    max-height: 600px;
    width: auto;
    overflow: hidden;
}

#hardwar-logo {
    height: 6rem;
    width: auto !important;
    overflow: hidden;
}

#runway-logo {
    height: 6rem;
    width: auto !important;
    overflow: hidden;
}

#dates .dates__box svg {
    height: 8rem;
    width: auto;
    overflow: hidden;
}

#dates .dates_box .datesbox_text {
    position: absolute;
    transform: translateX(-100%);
    overflow: hidden;
}

#dates .dates_box .datesbox_text p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
}

#dates .dates_box:nth-of-type(even) .datesbox_text {
    transform: translateX(100%);
    overflow: hidden;
}

#sustainable {
    position: relative;
    background-color:#ffffff;
    overflow: hidden;
}

#sustainable div {
    position: absolute;
    overflow: hidden;
}

#sustainable div:nth-of-type(1) {
    top: 4rem;
    left: 4rem;
    overflow: hidden;
}

#sustainable div:nth-of-type(2) {
    top: 4rem;
    right: 4rem;
    overflow: hidden;
}

#sustainable div:nth-of-type(3) {
    top: 50%;
    left: 2rem;
    transform: translate(0%, -50%);
    overflow: hidden;
}

#sustainable div:nth-of-type(4) {
    top: 50%;
    right: 2rem;
    transform: translate(0%, -50%);
    overflow: hidden;
}

#sustainable div:nth-of-type(5) {
    bottom: 4rem;
    left: 7rem;
    overflow: hidden;
}

#sustainable div:nth-of-type(6) {
    bottom: 4rem;
    right: 7rem;
    overflow: hidden;
}

#sustainable canvas {
    cursor: grab;
    overflow: hidden;
}

#about {
    background-color: #ebf1f1;
    font-family: 'Calibri';
    font-size: large;
    overflow: hidden;
}

#about p {
    font-size: 1.05rem;
    line-height: 2rem;
    margin: 1.5rem;
    text-align: left;
    font-family: 'Calibri';
    overflow: hidden;
}

#about .high {
    background-color: #ebf1f1;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 5px;
    font-family: 'Calibri';
    overflow: hidden;
}

#dates {
    background-color: #ffffff;
    overflow: hidden;
}

#dates svg {
    overflow: visible;
    overflow: hidden;
}

#dates svg path {
    overflow: visible;
    opacity: 0;
    overflow: hidden;
}

#dates #datesImgs {
    width: auto;
    height: 900px;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: top;
    object-position: top;
    overflow: hidden;
}

#history {
    background-color: #ffffff;
    font-family: 'Calibri';
    overflow: hidden;
}

#history a {
    border: 2px solid #ffffff;
    padding: .5rem 1rem;
    display: inline-block;
    border-radius: 12px;
    transition: all 300ms;
    font-family: 'Calibri';
    overflow: hidden;
}

#history a:hover {
    background-color: #ffffff;
    color: #ffffff;
    overflow: hidden;
}

#history p {
    font-size: 1.05rem;
    line-height: 2rem;
    font-family: 'Calibri';
    overflow: hidden;
}

#history .high {
    background-color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

@media only screen and (max-width: 1277px) {
    #hardwarText {
        font-size: 4rem;
        overflow: hidden;
    }
}

@media only screen and (max-width: 1189px) {
    #hardwarText {
        font-size: 3.5rem;
        overflow: hidden;
    }
}

@media only screen and (max-width: 828px) {
    #datesImgs {
        height: auto !important;
        overflow: hidden;
    }
    #home {
        flex-direction: column;
        height: -moz-fit-content;
        height: fit-content;
        overflow: hidden;
    }
    #scrollDownSVG {
        display: none;
        overflow: hidden;
    }
    #homeBox__part1 {
        order: 2;
        overflow: hidden;
    }
    #hardwarText p {
        font-size: 3.3rem;
        overflow: hidden;
    }
    #homeBox__part2 {
        order: 1;
        overflow: hidden;
    }
    #birdBox {
        display: none;
        overflow: hidden;
    }
    #about p {
        font-size: 1rem;
        width: 90%;
        overflow: hidden;
    }
    #sustainable {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        row-gap: 2rem;
        padding: 0 .5rem;
        overflow: hidden;
    }
    #sustainable div {
        position: relative;
        z-index: 20;
        top: 0px !important;
        left: 0px !important;
        transform: translate(0%, 0%) !important;
        background-color:#ffffff;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        overflow: hidden;
    }

    #flipdown {
        align-self: center;
        display: -webkit-inline-box;
    }
    
    #flipdown .rotor-group-heading {
        font-family: "Orbitron";
    }
    
    #sustainable div:nth-of-type(even) {
        align-self: flex-end;
    }
    #sustainable div:nth-of-type(odd) {
        align-self: flex-start;
    }
    #sustainable canvas {
        z-index: 10;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        pointer-events: none;
    }
    .dates__box {
        justify-content: flex-start;
        padding-left: 1rem;
        gap: 1rem;
    }
    .dates_box_text {
        position: static !important;
        transform: translate(0, 0) !important;
    }
}

.splide__slide img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* .sponsor-wrap {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#sponsor {
    display: flex;
    justify-content: space-around;
    background-color: #0d2e5a;
    font-size: 45px;
}

.sponsor-card {
    color: #ffffff;
    margin-left: 2vw;
    background-color: #d9d9d9;
    padding: .8rem 1rem;
    border-radius: 8px;
    margin-top: 5vh;
    height: 300px;
    width: 220px;
    font-size: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
} */

/* Links to sponser websites have been removed */
/* .sponsor-card a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
} */

/* .sponsor-card .sponsor-image {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    padding: .5rem 1rem;
    height: 180px;
    border-radius: 8px;
}

.sponsor-card .sponsor-image img {
    -o-object-fit: contain;
    object-fit: contain;
}

.sponsor-card .sponsor-name {
    color: black;
    font-weight: bold;
    font-size: large;
    margin-top: 2vh;
    background-color: #fff;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
}

.sponsor-header-wrapper {
    display: block;
} */

/* Center the heading text */
#sponsor-heading{
    display: flex;
    justify-content: center;
    align-items: center;
}
#sponsor p {
    text-align: center;
    width: 100%; /* Full width to center the text */
    font-size: 30px;
    color: white;
    margin-bottom: 4rem; /* Add some space between the text and the cards */
}
/* Container holding all sponsor cards */
.sponsor-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem; /* Adjust gap between cards */
    max-width: 800px; /* Limit width for centering */
    margin: 0 auto; /* Center the wrapper */
}

/* Adding space between the rows */
.sponsor-card:nth-child(3) {
    margin-bottom: 3rem; /* Add space after the 3rd card (end of the first row) */
}

/* Styling for each sponsor card */
.sponsor-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    height: 300px;
    width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition on hover */
    overflow: hidden;
    position: relative;
}

.sponsor-card:hover {
    transform: translateY(-10px); /* Lift the card slightly on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Deepen the shadow */
}

/* Image container in sponsor card */
.sponsor-card .sponsor-image {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:black; 
    border-radius: 8px;
    overflow: hidden;   
    padding: 10px; /* Add some padding around the image */
}

.sponsor-card .sponsor-image img {
    width: 80%;
    height: auto;
    object-fit: contain; /* Ensure the image fills the container without distortion */
    transition: transform 0.3s ease;
}

.sponsor-card:hover .sponsor-image img {
    transform: scale(1.05); /* Slight zoom-in on hover for images */
}

/* Sponsor name styling */
.sponsor-card .sponsor-name {
    color: #333; /* Darker text for better contrast */
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow under the sponsor name */
    transition: background-color 0.3s ease;
}

.sponsor-card:hover .sponsor-name {
    background-color: #f8f8f8; /* Subtle change in background on hover */
}

/* Adjusting the sponsor section */
#sponsor {
    background-color: #0d2e5a;
    padding: 4rem 0;
}


@media only screen and (max-width: 400px) {
    #dates img {
        -o-object-fit: cover;
        object-fit: cover;
    }
}

@media only screen and (max-width: 473px) {
    #home #homeBox__part1 #hardwarText p {
        font-size: 2.8rem;
    }
}

@media only screen and (max-width: 400px) {
    #home #homeBox__part1 #hardwarText p {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 355px) {
    #home #homeBox__part1 #hardwarText p {
        font-size: 2rem;
    }
    #home #homeBox__part1 #tagLine {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 321px) {
    #sustainable p {
        font-size: .9rem;
    }
}

@keyframes moveUpnDown {
    to {
        transform: translate(0px, 10px);
    }
}