/* ======================================================================
1. Algemene opmaak
====================================================================== */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    color: #333333;
}

.clr {
    clear: both;
}

/* ======================================================================
2. Header
====================================================================== */
.headerwrap {
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 2px solid #c1121f;
    text-align: center;
}

#header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#header img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* ======================================================================
3. Menu
====================================================================== */
.navwrap {
    position: relative;
    overflow: hidden;
    background: #000000;
}

#nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

#menu-toggle {
    display: none !important;
}

.menu-icon {
    display: none;
    padding: 15px 20px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.menu-icon span {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}

#nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav li {
    margin: 0;
}

#nav li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#nav li a:hover,
#nav li.active a {
    background-color: #c1121f;
    color: #ffffff;
}

/* ======================================================================
4. Slideshow
====================================================================== */
.slideshow-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    height: 350px;
    margin: 20px auto;
    background: #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin: 0 5px;
    background-color: #bbbbbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #c1121f;
}

/* ======================================================================
5. Content
====================================================================== */
.content {
    box-sizing: border-box;
    max-width: 1000px;
    min-height: 300px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.item-page {
    text-align: center;
}

.item-page h1 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #c1121f;
    color: #000000;
    text-align: center;
}

/* ======================================================================
6. Fotoalbum / Galerij
====================================================================== */
#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.car-info {
    padding: 10px 5px;
}

.car-description {
    margin: 0 0 5px;
    color: #333333;
    font-size: 14px;
    font-weight: bold;
}

.car-price {
    margin: 0;
    color: #c1121f;
    font-size: 15px;
    font-weight: bold;
}

#customLightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
}

#lightboxImage {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.lightbox-title {
    margin-top: 15px;
    color: #ffffff;
    font-size: 18px;
}

/* ======================================================================
7. Formulieren / Upload
====================================================================== */
.upload-section {
    margin: 20px 0;
    text-align: center;
}

#uploadButton {
    padding: 12px 24px;
    background-color: #c1121f;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#uploadButton:hover {
    background-color: #8f0d16;
}

.delete-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    background-color: #c1121f;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #8f0d16;
}

/* ======================================================================
8. Footer
====================================================================== */
.footerwrap {
    margin-top: 5px;
    padding: 30px 0 15px;
    background: #ffffff;
    border-top: 2px solid #c1121f;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footerlinks {
    width: 45%;
    line-height: 1.6;
    text-align: left;
}

.footer-rdw-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 50%;
    gap: 10px;
}

.footer-rdw-logos img {
    width: 135px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ======================================================================
9. Mobiel
====================================================================== */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
        border-bottom: 1px solid #222222;
    }

    #nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #menu-toggle:checked ~ ul {
        display: flex;
    }

    #nav li,
    #nav li a {
        box-sizing: border-box;
        width: 100%;
    }

    #nav li a {
        padding: 14px 20px;
        border-bottom: 1px solid #222222;
    }

    .slideshow-container {
        height: 260px;
        margin: 15px;
    }

    .content {
        margin: 20px 15px;
        padding: 20px;
    }

    .footerlinks,
    .footer-rdw-logos {
        width: 100%;
    }

    .footer-rdw-logos {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 520px) {
    .gallery-item {
        width: 100%;
        max-width: 320px;
    }

    .slideshow-container {
        height: 210px;
    }
}
