﻿/* CSS for the Index Page */
.hidden-area {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.visible-area {
    opacity: 1;
    transition: opacity 1s ease-in;
}

/* SLIDER AREA */

.slider-area .button {
    background: var(--unnamed-color-0087c4) 0% 0% no-repeat padding-box;
    background: #7289da;
    border-radius: 22px;
    opacity: 1;
}
.slider-area .button:hover {
    color: black;
}

.slider-area .centered h1 {
    font-family: Nasalization;
    text-align: left;
    font-weight: 600;
    font-size: max(3.6vw, 32px);
    word-spacing: 0px;
    line-height: max(calc(3.6vw / 1.15), 28px);
    color: white;
    position: absolute;
    top: max(13vw, 130px);
    left: 7.2%;
    max-width: max(750px, 100vw);
    max-height: 264px;
    text-shadow: 10px 10px 25px rgba(0, 0, 0, 1);
}

.slider-area .centered p {
    font-family: Nasalization;
    font-size: max(1vw, 12px);
    top: max(27vw, 280px);
    left: 7.2%;
    max-width: max(800px, 100vw);
    max-height: 101px;
    position: absolute;
    text-align: left;
    letter-spacing: 0px;
    color: lightgrey;
    opacity: 1;
    text-shadow: 10px 10px 25px rgba(0, 0, 0, 1);
}

.slider-area .centered a {
    font-family: Nasalization;
    font-size: max(0.95vw, 12px);
    top: max(32.5vw, 340px);
    left: 7.2%;
    width: max(14vw, 185px);
    height: max(2.7vw, 35px);
    position: absolute;
}

.slider-area img {
    position: relative;
    z-index: 0;
}

@media (max-width: 500px) {
    .slider-area .centered p {
        max-width: 300px;
    }
}



/* STAT AREA */

.stat-area {
    margin-top: 3vw;
}

    .stat-area h1 {
        font-family: Nasalization;
        text-align: center;
        font-size: max(4vw, 34px);
        font-weight: 600;
        letter-spacing: 1.5px;
        color: rgb(171, 28, 0);
    }

    .stat-area h2 {
        font-family: Nasalization;
        text-align: center;
        font-size: max(6.3vw, 48px);
        color: #262730;
    }

    .stat-area p {
        font-family: Nasalization;
        text-align: center;
        font-size: max(2.5vw, 25px);
    }

    .stat-area .card {
        border: none;
        background-color: transparent;
    }

@media (max-width: 769px) {
    .stat-area .large-4.cell {
        flex-basis: 100%;
    }
}

/* Events Section */

.callout {
    padding-block-start: 30px;
    text-align: center;
    color: #262730;
    border-style: none;
    border-color: #262730;
    background-color: transparent;
}

    .callout h4 {
        font-size: 40px;
    }

    .callout .card-section {
        text-align: left;
        font-size: 22px;
        min-height: 130px;
    }

        .callout .card-section h5 {
            font-weight: 600;
        }

        .callout .card-section p {
            font-size: 18px;
        }

    .callout .button-container {
        display: grid;
        grid-template-columns: 1fr 0fr;
        gap: 00px;
        padding: 10px;
    }

        .callout .button-container .button {
            border-radius: 22px;
            opacity: 1;
            font-weight: 600;
            background-color: #00b33c;
        }

            .callout .button-container .button:hover {
                background-color: #009933;
            }

    .callout .leave-button {
        border-radius: 22px;
        opacity: 1;
        font-weight: 600;
        background-color: silver;
        color: #262730;
    }

        .callout .leave-button:hover {
            background-color: grey;
        }

.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

    .card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card {
    background-color: #d6dadb;
    border: none;
}

/* Styling for screens below 996px (tablet) */
@media (max-width: 996px) {
    /* Have the Special offer cards be 3 x 1 grid instead of 1 x 3 */
    .callout .large-4.cell {
        flex-basis: 100%; /* Cover the entire container */
    }
}

/* Tab area */
.tabs-panel-section {
    position: relative;
    background: url('../res/reusableBackground.png') no-repeat center center/cover;
    padding-top: 10px;
    color: white;
    margin-top: 3vw;
}

.tabs-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 39, 48, 0.85);
}

.grid-container {
    position: relative;
    z-index: 1;
}

.tabs {
    justify-content: space-evenly;
    background-color: transparent;
    border-color: transparent;
}

.tabs-title {
    cursor: pointer;
    flex: 1 0 auto;
    text-align: center; /* Center the text within the tabs */
    display: flex;
    transition: none !important;
}

#tabTitle:focus, #tabTitle, .tabs-title a {
    padding: 20px;
    color: white;
    font-family: Nasalization;
    font-size: max(2vw, 13px);
    background-color: transparent;
    border-bottom: outset;
    border-bottom-color: silver;
    text-align: center; /* Center the text */
}
    .tabs-title a:hover, #tabTitle:hover {
        background-color: transparent;
        color: white;
        border-bottom-color: red;
    }
.tabs-title a:after, #tabTitle:after {
    background-color: transparent;
    color: white;
}
.slick-active {
    display: block;
}

/* Active tab style */
.slick-current #tabTitle {
    border-bottom-color: red; /* Red border for active tab */
    background-color: transparent;
    color: white;
}

.tabs-content {
    background: transparent;
    padding: 20px;
    border-color: transparent;
}

.tabs-panel {
    display: none;
    transition: opacity 0.3s ease;
}

    .tabs-panel.slick-current {
        display: block;
        opacity: 1;
    }

    .tabs-panel h4,
    .tabs-panel p {
        color: white;
    }

.button {
    background-color: #262730;
    border: none;
    color: white;
    margin-top: 10px;
}

    .button:hover {
        background-color: silver;
        color: #262730;
    }



/* Tab Content */
.tabs-panel .button {
    font-family: Nasalization;
    border-radius: 25px;
    min-width: 160px; /* Slightly wider for better usability */
    background-color: rgb(159, 13, 13);
    margin-top: 15px; /* More space above the button */
    padding: 12px 20px; /* Added padding for better clickability */
    transition: background-color 0.3s ease-in-out; /* Smooth transition effect */
    letter-spacing: 1px;
}

    .tabs-panel .button:hover {
        background-color: rgb(108, 8, 8);
        color: white;
    }

.button-box {
    text-align: center;
}

#description {
    font-family: "Lato";
    font-size: max(16px, 1.5vw);
    color: silver;
    margin-bottom: 30px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0px 0px 10px black;
}

.tabs-panel {
    text-align: center;
}

    .data-images {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

.data-item {
    width: 55%;
    transition: transform 0.3s ease-in-out;
    border: 3px solid silver;
}

        .data-item:hover {
            transform: scale(1.05);
        }

/* Responsive Design */
@media (max-width: 768px) {
    .data-item {
        width: 100%;
        margin-bottom: 20px;
    }
    .team-description, .driver-description {
        display: flex;
        flex-direction: column;
        align-content: space-around;
        flex-wrap: wrap;
    }
}


/* CSS for the YUPLAY Affiliate Section */
.affiliate-area h1 {
    font-family: Nasalization;
    font-size: max(34px, 4vw);
    color: rgb(171, 28, 0);
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #ca0000;
    padding-bottom: 5px;
    text-align: center;
    font-weight: 600;
    width: 100%;
    letter-spacing: 1.5px;
}


.yuplay {
    display: flex;
    justify-content: center;
    width: 100%;
}

    .yuplay img#YUPLAY-logo {
        width: 250px;
        display: block;
        margin: 0 auto 20px;
    }

    .yuplay p {
        text-align: center;
        font-size: 16px;
        color: #262730;
        margin-bottom: 20px;
    }

    .yuplay .affiliate-button {
        display: block;
        width: 80%;
        margin: 0 auto;
        padding: 10px 20px;
        background-color: darkturquoise;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
    }

        .yuplay .affiliate-button:hover {
            background-color: #00abad;
        }

    .yuplay img#YUPLAY-banner {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 8px;
    }

    /* Layout for the left and right sections */
    .yuplay > div {
        width: 45%;
    }

        .yuplay > div:first-child {
            text-align: center;
        }

        .yuplay > div:last-child {
            display: flex;
            justify-content: center;
            align-items: center;
        }

@media (max-width: 900px) {
    .yuplay > .content-right {
        width: 0%;
    }
    .yuplay > .content-left {
        width: 90%;
    }
}

.affiliate-rail {
    display: grid;
    min-height: 50px;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    background-color: silver;
    width: 100%;
    align-items: center;
}
.affiliate-rail img {
    max-height: 30px;
}
.affiliate-rail img.larger {
    max-height: 60px;
}


.pb-3 {
    padding-bottom: 0rem !important;
}

