.nav-link {
    color: white;
}

.nav-link:hover {
    color: rgb(255, 156, 35);
}

.dropdown-menu {
    color: white;
    background-color: rgb(0, 0, 0, 0.7);
    text-align: center;
    border-bottom: solid white;
    border-left: solid white;
    border-right: solid white;
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    color: rgb(255, 156, 35);
    background-color: rgb(255, 255, 255, 0.2);
}

#DropCss1:first-child {
    color: white;
}

#DropCss1:hover {
    color: rgb(255, 156, 35);
}

#DropCss2:first-child {
    color: white;
}

#DropCss2:hover {
    color: rgb(255, 156, 35);
}

#DropCss3:first-child {
    color: white;
}

#DropCss3:hover {
    color: rgb(255, 156, 35);
}

#DropCss4 {
    color: white;
}

#DropCss4:hover {
    color: rgb(255, 156, 35);
}

#Brand {
    font-family: cursive;
}

#Brand:hover {
    font-family: cursive;
    color: rgb(255, 156, 35);
}

body,
html {
    width: 100%;
    height: 100%;
}


#LoginButton {
    display: inline-block;
    color: white;
    border: 2px solid white;
}

#LoginButton:hover {
    color: rgb(255, 156, 35);
    border-color: rgb(255, 156, 35);
    background-color: transparent;
}

@media only screen and (max-width: 575px) {

    #RallyeIMG {
        width: 100%;
        min-width: auto;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 0 15px rgb(8, 92, 5);
    }

    #collapsibleNavbar .navbar-nav {
        align-items: center;
        /* center all nav items horizontally */
    }

    #profileDropdown {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        width: 35px;
        text-decoration: dotted;
        /* net iets breder dan het icoon */
        position: relative;
    }

    hr {
        display: none;
    }



    .dropdown-menu[aria-labelledby="profileDropdown"] {
        position: relative;
        border-right: none;
        border-bottom: none;
        background: none;
        top: 100% !important;
        /* direct onder */
        left: 50% !important;
        /* horizontaal midden */
        transform: translateX(-50%) !important;
        /* echt centered */
        margin-top: 0.25rem;
        min-width: 8rem;
        /* Optioneel: iets hoger z-index als het overlapt */
        z-index: 1050;
    }

    #profileDropdown::after {
        display: none;
    }

    .DriverIMG {
        align-self: center;
    }

    .IconText {
        display: none;
    }

    .nav-link {
        color: white;
        text-align: center;
    }

    #NavButton {
        color: white;
    }

    #LoginButton {
        display: inline-block;
        color: white;
        border: 2px solid white;
        padding: 6px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
        margin-right: 10px;
        margin-left: 10px;
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }

    #LoginButton:hover {
        color: rgb(255, 156, 35);
        border-color: rgb(255, 156, 35);
        background-color: transparent;
    }




    .vr {
        display: none;
        /* Splitter verbergen op mobiel voor netheid */
    }

    .navbar-collapse {
        background-color: rgb(0, 0, 0, 0.7) !important;
        border-bottom: solid white;
        border-right: solid white;
        border-left: solid white;
        border-radius: 8px;
        /* Optioneel: voor afgeronde hoeken */
        padding-top: 20px;
        /* Ruimte bovenaan */
        padding-bottom: 20px;
        /* Ruimte onderaan */
    }
}



@media only screen and (max-width: 1050px) and (min-width: 575px) {
    .nav-text {
        display: none;
    }

    .nav-item {
        font-size: 24px;
    }
}

/* body */
@media (min-width: 768px) {
    .subtitle-text {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .subtitle-text {
        max-width: 90%;
        padding: 0 10px;
    }
}

.hero {
    position: relative;
    background-image: url('../IMG/Motorsport\ -\ Main.png');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #003057;
}

.hero-overlay {
    background-color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
}

.section-line {
    width: 150px;
    height: 6px;
    background-color: #ff6f00;
    margin: 0 auto 15px auto;
    border-radius: 2px;
    margin-top: 5px;
    margin-bottom: 4%;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.red-btn {
    background-color: black;
    color: red;
}

.green-btn {
    background-color: black;
    color: darkgreen;
}

.yellow-btn {
    background-color: black;
    color: yellow;
}

/*Section items*/
body {
    overflow-x: hidden;
}

.Dia-line {
    width: 150px;
    height: 6px;
    background-color: #ff6f00;
    margin: 0 auto 15px auto;
    border-radius: 2px;
    margin-top: 5px;
    margin-bottom: 1%;
}

.features-container {
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    background-color: black;
    text-align: center;
    align-items: center;
}

.feature-box {
    flex: 1;
    max-width: 300px;
    margin: 0 10px;
    padding: 20px;
}

.feature-box i {
    font-size: 40px;
    color: #ff6f00;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: whitesmoke;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.section-header {
    text-align: center;
    margin-top: 1%;
    padding-top: 3%;
}


.feature-text {
    font-size: 16px;
    color: #a8a5a5;
    line-height: 1.5;
}

.section-title-div {
    background-color: black;
    margin-top: 0;
}

.subtiteltext {
    color: rgb(212, 207, 207);
    max-width: 600px;
    /* Limits the max width */
    margin-left: auto;
    /* Centers horizontally */
    margin-right: auto;
    /* Centers horizontally */
    padding: 0 15px;
    /* Small padding on sides for breathing room */
    overflow-wrap: break-word;
    /* Prevent long words breaking layout */
}

/* Rallye */

#RallyeDiv {
    border-top: 10px solid darkgreen;
    background-color: #000;
    color: white;
    padding-top: 60px;
    padding-bottom: 60px;
}

#RallyeIMG {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 15px rgb(8, 92, 5);
}

.subtitle-text {
    color: rgb(212, 207, 207);
    padding: 0 15px;

}

.container {
    display: flex;
    gap: 50px;
    border-left: 4px solid black;
    padding-left: 50px;
    align-items: center;
}

.driver-card {
    text-align: center;
    width: 200px;
}

.driver-card h4 {
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.driver-card h2 {
    margin: 5px 0;
    font-size: 18px;
}

.side-column {
    flex: 0 0 150px;
    /* fix width of side columns */
    max-width: 150px;
}

.bio {
    margin: 10px 0;
    font-size: 12px;
    color: #777;
}

.DriverIMG {
    border: 1px solid #000;
    height: 100px;
    width: 100px;
    margin: 10px 0;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat {
    margin: 8px 0;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    font-size: 13px;
}

/* Formula 1 */

#Formula1Div {
    border-top: 10px solid red;
    background-color: #000;
    color: white;
    padding-top: 60px;
    padding-bottom: 60px;
}

#Formula1IMG {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 15px rgb(112, 3, 3);
}

/* Racewars */


#RacewarsDiv {
    border-top: 10px solid yellow;
    background-color: #000;
    color: white;
    padding-top: 60px;
    padding-bottom: 60px;
}

#RacewarsIMG {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 15px rgb(124, 135, 6);
}

/* Footer */

footer {
    padding: 2% 0;
    backdrop-filter: blur(8px);
    /* maakt achtergrond wazig */
    -webkit-backdrop-filter: blur(8px);
    /* Safari ondersteuning */
    background-color: rgb(0, 0, 0);
    /* Donker glasachtig */
    color: white;
    border-top: solid gray;
    /* Rood accent blijft */
    text-align: center;
    width: 100%;
}

.FooterList {
    list-style: none;
}

.FooterLink {
    color: white;
    text-decoration: none;
}

.SponserImg {
    max-height: 80px;
    object-fit: contain;
    /* Ensures image fits without stretching */
    width: 120px;
    margin-top: 3%;
    max-width: 80px;
    border-radius: 12px;
    margin-right: 1%;
    border: white solid 2px;
    height: auto;
    display: inline-block;
}

.footerrow {
    background-color: black;
    margin-right: 0;
    margin-left: 0;
}