* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(WHITE, #FFF2DF, #FFB200);
}

#map {
    text-align: center;
    color: #ffb300;
    font-size: 62px;
}



h1 a {
    text-decoration: none;
    transition: 0.3s ease-in;
    color: #FFB200;
}

h1 a:hover {
    color: #bba1d0;
}

h1 a:hover ::after {
    color: #bba1d0
}

.russo-one-regular {
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #FFB200;
}

.goldman-regular {
    font-family: "Goldman", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-size: 40px;
    color: #FFB200;

}


nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
    background-color: #C62827;
    color: white;
}

.navbar {
    position: relative;
    /* Set the container as the positioning context */
    padding: 2rem;
    background-color: #C62827;
    color: white;

}


.image-container {
    position: absolute;
    /* Position the container absolutely within the nav */
    right: 2rem;
    /* Align to the right edge with a 10px offset */
    top: 50%;
    /* Start from the middle vertically */
    transform: translateY(-50%);
    /* Pull back up by half its height to perfectly center it */
    height: 80%;
    /* Set a height for the image container */
}

nav img {
    height: 100%;
    /* Make the image fill its container */
    /* Add any other image styling like object-fit: cover if needed */
}

.navbar h1 {
    font-size: 42px;
}

.front {
    width: 100%;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color {
    background-color: #ffffff;
}

.banner {
    width: 100%;
    background-color: #C62827;
    /* Dark background */
    color: #FFB200;
    /* White text */
    overflow: hidden;
    /* Hides text outside the container */
    padding-bottom: 1rem;
    white-space: nowrap;
    /* Keeps all text on one line */
}

.scroll-text {
    /* Apply the animation */
    display: inline-block;
    padding-left: 100%;
    /* Start the text completely off-screen to the right */
    animation: scrolling-animation 15s linear infinite;
    padding-top: 1rem;
    /* 15s duration, linear speed, repeats infinitely */
}

#place {
    font-size: 62px;
}

#date {
    font-size: 62px;
}

#info {
    font-size: 32px;
}

.event-date {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
    padding-left: 3rem;

}


.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* two columns */
}

.map{
  display: block; /* Images are inline by default, change to block */
  margin-left: auto; /* Distributes remaining space equally */
  margin-right: auto;
  padding-top: 3rem;
  width: 20%; /* Optional: set a specific width */

}

.location {
    grid-column: 2;
    /* move both to right column */
    text-align: right;
    /* align text inside */
    padding-right: 3rem;
    padding-bottom: 1rem;
}

.info {
    padding-top: 1rem;
    padding-left: 2rem;

}

.info2 {
    grid-column: 2;
    /* move both to right column */
    text-align: right;
    /* align text inside */
    padding-right: 1rem;
}

.break {
    border-radius: 20px;
    border: 1px solid #FBB982;
    height: 0.3rem;
    width: 80%;
    margin: 40px auto;
    /* Centers horizontally */
    background-color: #FBB982;

}

.autoSlide {
    animation: slidein;
    animation-timeline: view();
    animation-range: entry cover 80vh;
}

.autoSlide2 {
    animation: slidein2;
    animation-timeline: view();
    animation-range: entry cover 40vh;
    will-change: transform;
}

@keyframes slidein {
    from {
        opacity: 0;
        transform: translateX(-300px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slidein2 {
    from {
        opacity: 0;
        transform: translateX(300px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* .carousel {

    overflow: hidden;

}

    .carousel-slide {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: min-content;
        /* important for variable widths */
/* gap: 20rem;
        animation: carousel 5s linear infinite;
    }

    
        .carousel img {
            height: 65%;
            object-fit: cover;
            border-radius: 20px;
            display: block;
        } */

.carousel {
    overflow: hidden;

}

.carousel-slide {
    padding-top: 5rem;
    padding-bottom: 8rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    /* important */
    gap: 5rem;

    width: max-content;
    /* critical for animation */
    animation: carousel 15s linear infinite;
}

.carousel img {
    height: 50%;
    border-radius: 20px;
    display: block;
    box-shadow: 20px 20px 10px #E57D30;
}


#sponsers {
    padding-left: 2rem;
    padding-top: 6rem;
    font-size: 64px;
    color: #C62827;
}

.footer {
    font-family: 'Russo One', sans-serif;
    text-align: center;
    color: #C62827;
    padding: 1rem;
    background-color: #FFB200;
}

/* @media only screen and (min-width: 400px) {
    img {
        width: 70%;
    }

    ul li {
        padding-left: 3rem;
    }

    p {
        padding-right: 10px;
        padding-left: 1rem;
        font-size: 1em;
    }
}

@media only screen and (min-width: 1200px) {
    img {
        width: 60%;
    }

    ul li {
        padding-left: 5rem;
    }

    p {
        padding-right: 20px;
        padding-left: 2rem;
        font-size: 2rem;
    }
} */


/* Define the animation movement */
@keyframes scrolling-animation {
    0% {
        transform: translate(0, 0);
        /* Start position (100% off-screen due to padding-left) */
    }

    100% {
        transform: translate(-100%, 0);
        /* Move left by 100% of its own width */
    }
}

/* Define the animation movement */
@keyframes carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* this works now because of min-content */
    }
}

@media only screen and (min-width: 1200px) {
    .carousel img {
        height: 100%;
    }

    .carousel-slide {
        animation: carousel 15s linear infinite;
        gap: 20rem;
    }

    #sponsers {
        padding-left: 5rem;
        padding-top: 6rem;
        font-size: 64px;
        color: #C62827;
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    transition: opacity 1.75s, visibility 0.75s;
    z-index: 9999;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;

}

.loader img {
    width: 20rem;
    height: 20rem;
    animation: spin 1s linear infinite;
}

.loader::after {
    content: "";
    border-radius: 50%;
    animation: loading 1.75s ease infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll bar */

/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px #FBB982;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #C62827;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #FBB982;
}

.exo-uniquifier {
    font-family: "Exo", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    color: #C62827;
}

.exo-bold {
    font-family: "Exo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    color: #C62827;
}

.exo-light {
    font-family: "Exo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #C62827;
}