/***** GENERAL *****/

    body {
        background-color: #fdfce9;
        font-family: 'Montserrat', sans-serif;
        color: #fdfce9;
    }

    html {
        height: fit-content;
    }

    html, body {
        overflow-x: hidden; /* Prevent horizontal scrollbar */
        width: 100%;
        margin: 0;
        padding: 0;
    }

    main {
        position: relative;
        z-index: 2;
        background: #fdfce9; 
    }
        
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw; /* Use viewport width explicitly */
        height: 100vh;
        background: #154349;
        z-index: 1;
    }
        
    .footer-spacer {
        margin-bottom: 100vh;
    }
        
    footer .container {
        height: 100%; /* Already set in your code */
        display: flex; /* Enable Flexbox */
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Vertically center content */
        align-items: center; /* Horizontally center content */
        text-align: center; /* Fallback for text alignment */
    }
        
    footer .container span {
        color: #fff; 
        font-size: 1rem; 
    }

    footer img {
        max-height: 40vw; 
        width: 100%;
        object-fit: contain;
    }

    
    @media (max-width: 768px) {
        footer img {
            max-height: 70vh; 
            width: 100%;
        }
    }


    .hr2 { 
        border: 1.5px solid #154349;
        width: 95%;
        margin-top: 2em;
        margin: 0 auto;
        margin-top: 5em;
        margin-bottom: 2em;
        opacity: 1;
    }

    @media (max-width: 992px) {
        .hr2 {
            width: 90%;
            margin-top: 1em;
            margin-bottom: 1em;
        }
    }

    .arrow-down {
        width: 50px;
        height: 50px;
        margin: 0 auto;
        margin-top: 20px;
    }

    .rotate-90 {
        transform: rotate(90deg) !important;
    }

    
    .text-pink {
        color: #e264a5;
    }

    .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        background-color: #fdfce9; /* Optional: background behind loader */
        display: flex;
        justify-content: center;
        align-items: center;
      }
      
    .loadingimage {
        max-width: 250px;
        position: fixed; /* if you really want it fixed, but center is already handled by parent */
    }

    .rainbow-text {
        background: linear-gradient( 270deg, red, orange, yellow, green, rgb(71, 126, 255), rgb(204, 63, 255), violet, red, orange );
        background-size: 700% auto;
        background-position: 0% 50%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: rainbow 5s linear infinite;
        display: inline-block;
    }

    @keyframes rainbow {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 100% 50%;
        }
    }

      

/***** FONTS *****/

    @font-face {
        font-family: 'BondiFont';
        src: url('assets/Bondi_Font.ttf') format('truetype');
    }

    @font-face {
        font-family: 'HermesFont';
        src: url('assets/Hermes_Font.ttf') format('truetype');
    }

    @font-face {
        font-family: 'PlayfairDisplay';
        src: url('assets/PlayfairDisplay_BoldItalic_Font.ttf') format('truetype');
    }

    .montserrat-200 {
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-weight: 200;
        font-style: normal;
    }

    .montserrat-900 {
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-weight: 900;
        font-style: normal;
    }

    .playfair-400 {
        font-family: "PlayfairDisplay", serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }

    .hermes-400 {
        font-family: "HermesFont", serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }



/***** NAVBAR *****/

    .navbar {
        background-color: #fdfce9 !important;
        display: none;
        padding: 0;
    }

    .navbar-brand {
        margin: 0 auto;
        text-align: center;
        display: flex;
        justify-content: center;
        align-content: center;
    }
    
    /* Center logo and hide menu on desktop */
    @media (min-width: 992px) {
        .navbar .collapse {
            display: none !important;
        }
    
        .navbar {
            justify-content: center;
        }
        
        .navbar-brand img {
            height: 130px;
            position: absolute;
            z-index: 10;
            margin-top: -10px;
        }

    }
    
    @media (max-width: 992px) {
        .navbar {
            display: flex !important;
        }

        .navbar-brand img {
            height: 90px;
            position: absolute;
            z-index: 10;
        }

        .navbar-light .navbar-toggler {
            border-color: transparent;
            box-shadow: none;
            font-size: 1rem;
            position: absolute;
            top: 1.5em;
            right: 1.5em;
            z-index: 10;
        }

        .navbar-collapse .navbar-nav { 
            padding: 4em 0 2em 0;
        }
        
        .nav-link {
            text-align: center;
            font-size: 1.5em;
            text-transform: uppercase;
            color: #154349 !important;
            font-family: 'Montserrat', sans-serif;
            font-weight: 900;
        }

        .nav-link:hover,
        .nav-link:active,
        .nav-link:focus {
            color: #e264a5 !important;
        }


        .navbar-toggler.collapsed .navbar-toggler-icon {
            background-color: #fdfce9;
        }

        .navbar-toggler .navbar-toggler-icon {
            background-color: #154349;
        }
    }

    /***** ANIMATED NAVBAR BUTTON *****/
        .navbar-toggler span {
            display: block;
            background-color: #154349;
            height: 3px;
            width: 25px;
            margin-top: 5px;
            margin-bottom: 5px;
            position: relative;
            left: 0;
            opacity: 1;
            transition: all 0.35s ease-out;
            transform-origin: center left;
        }           
        
        .navbar-light .navbar-toggler-icon {
            background-image: none;
        }

        .navbar-toggler span:nth-child(1) {
            transform: translate(0%, 0%) rotate(0deg);
        }
        
        .navbar-toggler span:nth-child(2) {
            opacity: 1;
        }
        
        .navbar-toggler span:nth-child(3) {
            transform: translate(0%, 0%) rotate(0deg);
        }
        
        .navbar-toggler span:nth-child(1) {
            margin-top: 0.3em;
        }
        
        .navbar-toggler:not(.collapsed) span:nth-child(1) {
            transform: translate(15%, -33%) rotate(45deg);
        }
        
        .navbar-toggler:not(.collapsed) span:nth-child(2) {
            opacity: 0;
        }
        
        .navbar-toggler:not(.collapsed) span:nth-child(3) {
            transform: translate(15%, 33%) rotate(-45deg);
        }
		
		
	.float-switcher {
		position: absolute;
		left: 20px;
		top: 0;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
		z-index: 999;
	}
	.float-season-btn {
		width: 72px;
		height: 60px;
		border-radius: 0 0 50% 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-decoration: none;
		position: relative;
		transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		overflow: hidden;
		opacity: 0.65;
	}
	.float-season-btn.active {
		height: 80px;
		width: 82px;
		opacity: 1;
	}
	.float-season-btn:hover:not(.active) { opacity: 0.95; }
	.btn-logo {
		width: 85%;
		height: 85%;
		object-fit: contain;
		position: absolute;
		top: -5px;
		transition: all 0.35s ease;
	}

	.float-season-btn:not(.active) .btn-logo { top: -5px; }
	.s-year {
		font-family: 'Montserrat', sans-serif;
		font-size: 14px;
		font-weight: 900;
		letter-spacing: 0.04em;
		position: absolute;
		bottom: 8px;
	}
	.float-season-btn:not(.active)  .s-year { bottom: 2px; }
	#fs1 { background-color: #e264a5; } #fs1 .s-year { color: #fffeee; }
	#fs2 { background-color: #111827; } #fs2 .s-year { color: #fffeee; }

	/* Tooltip now drops below */
	.float-season-btn::before {
		content: attr(data-tooltip);
		position: absolute;
		top: calc(100% + 10px);
		left: 50%;
		transform: translateX(-50%);
		background: #154349;
		color: #fdfce9;
		font-size: 11px;
		font-weight: 700;
		padding: 5px 12px;
		border-radius: 6px;
		white-space: nowrap;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s;
		z-index: 10;
	}
	.float-season-btn:hover::before { opacity: 1; }

	@media (max-width: 768px) {
		.float-switcher { gap: 6px; }
		.float-season-btn { width: 54px; height: 44px; }
		.float-season-btn.active { width: 62px; height: 58px; }
		.s-year { font-size: 10px; bottom: 4px; }
		.float-season-btn::before { display: none; }
		.float-switcher { left: 10px; }
	}

/***** HERO SECTION *****/

    .hero-section {
        height: 100vh;
        position: relative;
        color: #fdfce9;
        display: flex;
        align-items: flex-end;
        padding: 0 0 5% 5%; /* Keeps text off the exact corner */
        overflow: hidden; /* Prevents video overflow */
    }

    /* @media (max-width: 992px) {
        .hero-section {
            height: 80vh;
        }
    } */
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Makes video cover the section like a background image */
        z-index: -1; /* Places video behind the text */
    }

    .hero-section::after {
        content: "";
        position: absolute;
        left: 0;
        height: 20%;
        width: 100%;
        bottom: 0;
        z-index: -1;
        background: linear-gradient(transparent,#0d0d0c94);
    }
    
    .hero-text {
        /* background-color: rgba(0, 0, 0, 0.4); Optional semi-transparent background */
        padding: 20px;
        border-radius: 8px;
        max-width: 400px;
        position: relative; /* Ensures text stays above the video */
    }

    .hero-text h1 {
        color: #fdfce9;
        font-family: 'BondiFont';
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin: 0 0 10px;
    }
    
    .hero-text p {
        margin: 0;
    }

    .hero-text img {
        width: 400px;
    }
    
    @media (max-width: 992px) {
        .hero-text {
            text-align: center;
            margin: 0 auto;
            padding: 0;
            padding-bottom: 6.5em;
        }

        .hero-text img {
            max-width: 300px;
            width: 100%;
        }
    
    }

/***** ABOUT SECTION *****/

    .about-section h2 {
        font-family: 'BondiFont';
        font-size: 3.5rem;
        color: #154349;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 1em;
        display: inline-block;
        position: relative;
    }

    .about-section h2::before,
    .about-section h2::after {
        content: "-";
        font-family: 'BondiFont';
        font-size: 3.5rem;
        color: #154349;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .about-section h2::before {
        left: -35px;
    }

    .about-section h2::after {
        right: -35px;
    }

    .about-section .text-points {
        font-size: 2em;
        color: #154349;
        line-height: 110px;
    }

    @media (max-width: 768px) {
        .about-section .text-points {
            line-height: 60px;
            margin-bottom: 51px;
        }
        
        .about-section h2 {
            font-size: 2.3rem;
            padding: 0 20px;
        }

        .about-section h2::before,
        .about-section h2::after {
            font-size: 2.5rem;
        }

        .about-section h2::before {
            left: 0;
        }

        .about-section h2::after {
            right: 0;
        }
    }

    .about-section .text-pink {
        font-family: 'BondiFont';
        font-size: 4.3em;
    }

    .text-block {
        display: flex;
        align-items: flex-end; /* or 'flex-start' if you want top-aligned */
    }

    .text-small {
        font-size: 1em;
        margin-left: 10px; /* spacing between number and text */
        line-height: 1.2;
    }

    .team_icon {
        position: absolute; 
        margin: 0 0 7px 240px;
    }

    .round_icon {
        position: absolute;  
        margin: 0 0 24px 199px;
    }

    .crown_icon {
        position: absolute; 
        margin: 0 0 48px 168px; 
        z-index: -1;
    }

    @media (max-width: 992px) {
        .about-section h2 {
            font-size: 2.3rem;
            padding: 0 20px;
        }

        .about-section .text-pink {
            font-size: 3em;
        }

        .text-small {
            font-size: 0.8em;
            text-align: left;
        }

        .text-block {
            margin-bottom: 35px;
            justify-content: center;
            text-align: center;
            display: flex;
        }

        .team_icon {
            position: relative;
            margin: 0 0 7px 11px;
        }

        .round_icon {
            position: relative;
            margin: 0 0 17px -25px;
        }

        .crown_icon {
            position: relative;
            margin: 0 23px 36px -112px;
        }
    }

/***** TEAMS SECTION *****/

    .teams h2 {
        font-family: 'HermesFont';
        text-transform: uppercase;
        font-size: 3rem;
        color: #154349;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 1em;
        display: inline-block;
        position: relative;
        z-index: 5;
    }

    @media (max-width: 992px) {
        .teams h2 {
            font-size: 2.3rem;
            padding: 0 20px;
        }
    }

    .teams-container {
        background-size: cover;
        background-position: center;
        height: 90vh;
        position: relative;
        color: #fdfce9;
        display: flex;
        flex-direction: column;
        padding: 0% 5% 0 5%;
      }

    .teams-text {
        padding: 0px;
        border-radius: 8px;
        max-width: 400px;
        position: relative;
        z-index: 5;
        margin: auto 0; /* Centers vertically within flex container */
    }

    .teams-bottom-container {
        margin-top: auto; /* Pushes to the bottom */
    }

    .teams-text h1 {
        font-size: 5em;
        margin: 0 0 10px;
        font-family: 'BondiFont';
    }

    .teams-text h3 {
        font-size: 2.3em;
        margin: 0 0 10px;
        position: relative;
        z-index: 1;
        font-family: 'PlayfairDisplay';
    }

    .teams-text h3::before {
        content: "";
        background-image: url('assets/macnato.png');
        background-size: contain;
        position: absolute;
        width: 233px;
        height: 50px;
        background-repeat: no-repeat;
        z-index: -1;
        margin-top: 26px;
    }
    
    .teams-text p {
        margin-top: 2em;
    }

    #video-trailer a { cursor: pointer; }
    #video-trailer a:hover { text-decoration: underline; }
    
    @media (max-width: 1400px) {
        .teams-text h1 {
            font-size: 4em;
        }
    }

    @media (max-width: 992px) {
        .teams-container {
            padding-left: 15px;
        }

        .teams-text h1 {
            font-size: 2.65rem;
        }

        .teams-text h3 {
            font-size: 1.5rem;
        }

        .teams-text h3::before {
            width: 150px;
            height: 30px;
            margin-top: 17px;
        }
    }

    .team_pic-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    .team_pic-img {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity 0.5s ease-in-out;
        transition-delay: 0 !important;
        opacity: 0;
    }
    
    @media (max-width: 992px) {
        .team_pic-img {
            width: 100%;
            height: 70%;
            object-fit: cover;
            position: absolute;
            bottom: 0;
            top: auto;
        }
    }

    .team_pic-img.active {
        opacity: 1;
        z-index: 2;
    }


    /***** TEAMS SELECTOR *****/

        .teams-selector-wrapper {
            -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
            scroll-snap-type: x mandatory; /* for snap scrolling */
            padding-bottom: 0; /* optional, spacing for scrollbar */
            padding-top: 1.5em;
            width: 100%;
            margin-bottom: 0.5rem; /* space below */

            align-self: flex-start;    /* move to the end horizontally */
            margin-top: auto;        /* push to bottom of container */
            display: flex;
            flex-direction: column;
            align-items: flex-start;   /* align its contents to the right */
            overflow: hidden;
        }

        .teams-selector-container h2 {
            padding-left: 1em;
        }
        
        @media (max-width: 1200px) {
            .teams-selector-container h2 {
                padding-left: 0;
            }
        }

        .teams-selector-item-image {
            width: 190px;
            height: 190px;
            transition: all 0.3s ease;
        }

        .teams-selector-item-image.active,
        .teams-selector-item-image:hover {
            margin-top: -10px;
            margin-bottom: 7px;
        }

        /* Each item stays fixed width and snaps into view */
        .teams-selector-item {
            cursor: pointer;
            text-align: center;
            flex: 0 0 auto; /* fix width, don't grow/shrink */
            scroll-snap-align: start; /* snap on scroll */
            width: 190px; /* same as image width or adjust */
            cursor: pointer;
            text-align: center;
        }
        
        @media (max-width: 767px) {
            .teams-selector-item-image {
                width: 120px;
                height: 120px;
            }

            .teams-selector-item {
                width: 120px;
            }
        }

        .team_name {
            font-size: 1em;
            font-family: 'BondiFont';
            margin-top: 1em;
            background-color: #fdfce9;
            color: #154349;
            padding: 2px 10px;
            width: 190px;
        }

        .team_members {
            font-size: 1em;
            font-family: 'PlayfairDisplay';
            width: 190px;
        }

        .team_name.active {
            background-color: #e264a5;
            color: #fdfce9;
        }
        
        @media (max-width: 767px) {
            .team_name {
                font-size: 0.8em;
                width: 120px;
                padding: 2px 0px;
            }

            .team_members {
                font-size: 0.8em;
            }

            .team_members {
                width: 120px;
            }
        }
        
        img.crossfade {
            position: absolute;
            top: 0;
            left: 0;
            transition: opacity 0.5s ease;
            opacity: 0;
            z-index: 0;
        }
        
        img.crossfade.active {
            opacity: 1;
            z-index: 1;
        }
        

        /***** Swiper *****/

            .teams-selector-swiper {
                width: 630px;
                max-width: 100%;
                padding-bottom: 30px; /* space for arrows */
                overflow: visible;
            }
            

            @media (max-width: 1200px) {
                .teams-selector-swiper {
                    padding-left: 0;
                }
            }
            
            /* Optional: Improve UX for scrollbars on mobile */
            .teams-selector-wrapper::-webkit-scrollbar {
                height: 6px;
            }

            .teams-selector-wrapper::-webkit-scrollbar-thumb {
                background: #e264a5;
                border-radius: 3px;
            }

            .swiper-slide {
                width: 190px; /* match your team image width */
                text-align: center;
                cursor: pointer;
                height: auto;
            }

            @media (max-width: 767px) {
                .swiper-slide {
                    width: 100% !important;
                    flex-shrink: 0 !important;
                    min-width: 120px !important;
                }
                
                .teams-selector-swiper {
                    width: 100%;
                    max-width: 120px;
                }
                /* .swiper-wrapper {
                    gap: 1rem;
                } */
            }

            .swiper-nav-buttons .swiper-button-prev,
            .swiper-nav-buttons .swiper-button-next {
                position: static; /* override Swiper's absolute positioning */
                color: #fdfce9;
                width: 16px;
                height: 16px;
                margin: 0 4px;
            }

            .swiper-nav-buttons {
                display: none !important;  
                gap: 10px;
                align-items: center;
            }

            .swiper-button-next::after, .swiper-rtl .swiper-button-prev::after,
            .swiper-button-prev::after, .swiper-rtl .swiper-button-next::after {
                font-size: 1.5rem;
            }

            .swiper-button-disabled {
                opacity: 0.3 !important;
            }

            @media (max-width: 1200px) {
                .swiper-nav-buttons {
                    display: flex !important;
                }
                
                .swiper-button-prev,
                .swiper-button-next {
                    display: block;
                    font-size: 1.2rem;
                }
            }


/***** Ronds section *****/

    .rounds {
        margin-top: 5em;
        padding-bottom: 150px;
        color :#154349
    }

    .round_title {
        font-size: 3em;
        font-family: 'BondiFont';
    }


    .round_subtitle {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .round_subtitle img {
        flex-shrink: 0;
        margin: 10px 20px 0 0;
    }
    
    .round_text {
        display: flex;
        flex-direction: column;
    }
    
    .round_text span {
        font-weight: bold;
        font-size: 2.5em;
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        margin: 0;
    }
    
    .round_text p {
        margin: 4px 0 0 0;
        line-height: 1.4;
    }

    .round_content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* or center if you prefer vertical alignment */
        margin-top: 10px;
    }
    
    .round_content p {
        margin: 0;
        max-width: 100%; /* Adjust as needed */
    }
    
    .round_winners {
        text-align: right;
        font-weight: bold;
        white-space: nowrap;
        color: #e264a5;
        text-transform: uppercase;
        font-size: 2em;
        font-family: 'HermesFont';
    }

    .round_winners span {
        color: #154349;
        font-family: 'BondiFont';
        font-size: 1em;
    }

    @media (max-width: 992px) {
        .round_title {
            font-size: 2em;
        }

        .round_text span {
            font-size: 1.5em;
        }

        .round_content {
            flex-direction: column;
        }

        .round_winners {
            text-align: left;
            margin-top: 1em;
            font-size: 1.5em;
            align-self: flex-end;
            text-align: right;
        }
    }



