html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: #fdf7f2;
    color: #793c35;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative;
    background-color: #fdf7f2;
}

main {
    margin: 0;
    text-align: center;
}

nav {
    background-color: #ad534a;
    display: flex;
    align-items: center;
    height: 120px;
    padding: 40px;
    box-sizing: border-box;
    margin: 0;
}

#logo {
    height: auto;
    max-width: 20%;
    margin-right: auto;
    transition: all 0.3s ease;
}

#logo img {
    width: 100%;
    height: auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fdf7f2;
    font-weight: bold;
    padding: 15px 20px;
    display: block;
    font-size: 1.5rem; 
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fdf7f2;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fdf7f2;
}

nav ul li a:hover::after {
    width: 100%;
}

.show-emoji ul li::before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #ad534a;
}

.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    right: 10%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 450px;
}

.overlay-content {
    color: #fdf7f2;
    text-align: center;
}

.overlay-content h2 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.button {
    display: block;
    padding: 10px 20px;
    margin: 10px auto;
    color: #fdf7f2;
    background-color: #ad534a;
    border-radius: 5px;
    width: 40%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #793c35;
}

.spas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.spa-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    border: 1px solid #ad534a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.spa-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

#scalp-spa-image {
    background-image: url('../opleiding_images/women-scalp.jpg');
}

#scalp-spa-men-image {
    background-image: url('../opleiding_images/men.jpg');
}

#head-spa-facial-image {
    background-image: url('../opleiding_images/facial.jpg');
}

#scalp-rebuild-image {
    background-image: url('../opleiding_images/rebuild.jpg');
}

#camera {
    background-image: url('../opleiding_images/camera.jpg');
}

.spa-content {
    padding: 20px;
    text-align: center;
}

.spa-content h2 {
    font-size: 1.5em;
    color: #ad534a;
    margin-bottom: 10px;
}

.spa-content p {
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

#price {
    font-size: 1.2em;
    color: #ad534a;
    margin-bottom: 15px;
}

.book-now {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #ad534a;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.book-now:hover {
    background-color: #8a4237;
}

#opleiding {
    background-color: #ad534a;
    padding: 40px 20px;
}

#opleiding h1 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
}

.training-boxes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.training-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px;
    max-width: 450px;
    text-align: center;
}

.training-box h2 {
    font-size: 1.8rem;
    color: #ad534a;
    margin-bottom: 20px;
}

.training-box p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.training-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.cta-button,
.book-button {
    padding: 12px 20px;
    font-size: 1em;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
}

.cta-button {
    background-color: #ad534a;
}

.cta-button:hover {
    background-color: #8a4237;
}

.book-button {
    background-color: #4CAF50;
}

.book-button:hover {
    background-color: #388E3C;
}

.hidden-info {
    display: none;
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.info-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.info-button:hover {
    background-color: #0056b3;
}

.info-button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #ad534a;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.info-button:hover {
    background-color: #8a4237;
}

footer {
    background-color: #ad534a;
    color: #fdf7f2;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    flex: 1;
    margin: 0 20px;
}

.footer-info h3 {
    margin-top: 0;
    color: #fdf7f2;
}

.footer-info p {
    margin: 10px 0;
}

.footer-info a {
    color: #fdf7f2;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social {
    flex: 1;
    margin: 0 20px;
}

.footer-social h3 {
    margin-top: 0;
    color: #fdf7f2;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon i {
    width: 40px;
    height: 40px;
    color: #fdf7f2;
    transition: opacity 0.3s;
}

.social-icon:hover i {
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-image {
    flex: 1;
    padding: 20px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.logo-container {
    background-color: #f0f0f0;
    padding: 20px 0;
    text-align: center;
}

.logo-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-slider img {
    max-height: 80px;
    max-width: 250px;
    margin: 0 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-slider img:hover {
    filter: none;
}

.logo-small img {
    max-height: 100px;
    max-width: 100px;
    margin: 0 10px; 
}


@media (max-width: 1024px) {
    nav ul li a {
        font-size: 1.6rem; /* Scaling down font size */
    }

    .banner img {
        max-height: 180px; /* Reducing banner image size */
    }

    .banner-overlay {
        width: 200px;
        padding: 15px; /* Adjusting padding */
    }

    .spa-box {
        width: 100%; /* Make spa box full width on medium-sized screens */
    }

    .training-boxes {
        flex-direction: column; /* Stack the training boxes */
        gap: 20px;
    }

    #logo {
        max-width: 70%; /* Smaller logo */
        margin: 10px auto; /* Center the logo */
    }

    .footer-content {
        flex-direction: column; /* Stack footer content vertically */
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stacking nav items vertically on mobile */
        height: auto;
    }

    #logo {
        width: 220px;
        margin: 10px auto; /* Center the logo */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem; /* Smaller font size for better readability */
        padding: 10px 15px;
    }

    .spas {
        flex-direction: column;
        gap: 10px;
    }

    .spa-box {
        flex: 1 1 100%;
    }

    .banner img {
        max-height: 220px; /* Make the banner image slightly bigger for mobile */
        object-fit: cover; /* Ensures the image covers the container without distortion */
    }

    /* Banner Overlay for Mobile */
    .banner-overlay {
        width: 100%; /* Full width overlay on smaller screens */
        padding: 15px; /* Adjust padding for smaller screens */
        right: 0; /* Ensure overlay covers the image */
        box-sizing: border-box;
        z-index: 1;
    }

    .overlay-content h2 {
        font-size: 1.2em; /* Slightly smaller font size for titles */
    }

    .button {
        padding: 8px 15px;
        font-size: 14px; /* Adjust button font size */
    }

    .spa-content h2 {
        font-size: 1.4rem; /* Adjust heading size */
    }

    .training-box {
        max-width: 100%;
    }

    .training-actions {
        flex-direction: column;
    }

    .cta-button,
    .book-button {
        width: 100%; /* Full width buttons */
        padding: 12px;
    }

    .footer-content {
        flex-direction: column; /* Stack footer items */
        align-items: center;
    }

    #opleiding h1 {
        font-size: 1.5rem; /* Smaller header text */
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 1rem; /* Even smaller font size */
    }

    .banner img {
        max-height: 180px; /* Much smaller banner */
    }

    .banner-overlay {
        width: 100%; /* Full width overlay */
        padding: 10px;
        right: 0; /* Ensure overlay covers the image properly */
    }

    .overlay-content h2 {
        font-size: 1rem; /* Smaller title font size */
    }

    .button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .spa-content h2 {
        font-size: 1.2rem; /* Smaller spa heading */
    }

    .spa-content p {
        font-size: 0.9rem; /* Smaller text for readability */
    }

    .training-box h2 {
        font-size: 1.5rem; /* Adjusting training box heading */
    }

    .training-box p {
        font-size: 1rem;
    }

    .cta-button,
    .book-button {
        padding: 10px;
        font-size: 1rem;
        width: 100%; /* Buttons take full width on small screens */
    }

    #logo {
        max-width: 70%; /* Further reduce logo size */
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        transform: translateX(0);
        opacity: 1;
    }

    .footer-social {
        margin-top: 20px;
    }
}