@import url('https://fonts.cdnfonts.com/css/agency-fb');

/* Style the header background */
body {
    background-color: #333;
    /* Dark gray background for the entire page */
    margin: 0;
    font-family: Arial, sans-serif;
}

.nav-link {}

/* Add animation to .info-box */
.info-box {
    float: left;
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    padding: 30px;
    color: #fff;
    border-radius: 10px;
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    font-family: 'Agency FB', sans-serif;
    transform: translateY(20px);
    animation: popUp 0.5s ease-out forwards;
    text-align: center;
}

.logo {
    max-width: 40%;
    padding: 60px;
    height: auto;
    margin-bottom: 20px;
}

.home-box {
    background-color: rgb(33, 37, 41);
    padding-left: 200px;
    padding-right: 200px;
}

.text-box {
    padding: 50px;
    color: #fff;
    text-align: center;
    background-color: rgb(33, 37, 41);
}

.text-box p {
    font-size: 20px;
    line-height: 2;
}

.button-template {
    padding: 10px 20px;
    background-color: #008568;
    color: #fff;
    border: none;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 20px;
    cursor: pointer;
    margin: 50px;
    font-size: 25px;
    font-family: 'Agency FB', sans-serif;

}

/* Gallery container styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1100px;
    /* Increased max width */
    margin: 20px auto;
    margin-bottom: 100px;
    background-color: rgb(33, 37, 41);
}

/* Gallery item styles */
.gallery-item {
    flex: 1 1 calc(24% - 20px);
    /* Larger images */
    max-width: calc(24% - 20px);
    /* Increased width */
    height: 280px;
    /* Increased height for larger images */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

#CarouselSmall .carousel-item {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* Resultaten Archief styles */
.resultaten-archief-container {
    padding: 100px;
    text-align: center;
    color: #fff;
    background-color: rgb(33, 37, 41);
    font-family: 'Agency FB', sans-serif;
}

.resultaten-archief-container h2 {
    margin-bottom: 20px;
    font-size: 40px;
}

.btn-primary:hover {
    background-color: #00755e;
    border-color: #00755e;
}

.contact-details {
    margin-top: 40px;
    text-align: center;
}

.contact-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-details a {
    color: #008568;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px;
    padding-left: 200px;
    padding-right: 200px;
    color: #fff;
    border-radius: 10px;
}

.contact-intro {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

/* Define the pop-up animation */
@keyframes popUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box h2 {
    font-size: 70px;
    text-align: center;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 20px;
}

.info-box a {
    color: #fff;
}

.carousel-item {
    height: 100vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.text-divider {
    --text-divider-gap: 1rem;
    display: flex;
    align-items: center;
    font-size: 60px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 1rem;
    padding-bottom: 2rem;
    font-family: 'Agency FB', sans-serif;
}

.text-divider::before,
.text-divider::after {
    content: '';
    height: 1px;
    background-color: #008568;
    flex-grow: 1;
}

.text-divider::before {
    margin-right: var(--text-divider-gap);
}

.text-divider::after {
    margin-left: var(--text-divider-gap);
}

#reviews-widget {
    width: 80%;
    margin: 20px auto;
    border-radius: 10px;
    padding: 20px;
}

.reviews-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 100px;
}

.review-card {
    background-color: #222;
    border-radius: 10px;
    padding: 15px;
    margin: 0 10px;
    flex: 0 0 300px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.review-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.review-card p {
    font-size: 14px;
    margin: 0 0 10px 0;
}

.review-card .reviewer {
    display: flex;
    align-items: center;
}

.reviewer img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.reviewer span {
    font-size: 14px;
}

.partner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    /* Slightly darker background to distinguish from the main content */
    border-radius: 10px;
    /* Rounded corners for the container */
    margin-top: 30px;
    /* Spacing above the container */
    margin-bottom: 30px;
    /* Spacing below the container */
}

.partner-item {
    width: 150px;
    /* Set the width of each partner logo */
    height: 150px;
    /* Set the height of each partner logo */
    background-size: contain;
    /* Ensure the image fits within the container */
    background-repeat: no-repeat;
    /* Prevent the image from repeating */
    background-position: center;
    /* Center the image within the container */
    border-radius: 8px;
    /* Rounded corners for the partner items */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth hover effect */
    background-color: #fff;
    /* Background color for partner items */
    padding: 10px;
    /* Inner padding around the logos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for depth */
}

.partner-item:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Enhance shadow on hover */
}

.agency-font {
    font-family: 'Agency FB', sans-serif;
}

.repair-grid {
    padding: 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.repair-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.repair-card:hover {
    transform: scale(1.05);
}

.repair-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.repair-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #00d27a;
    font-size: 1.2em;
    font-family: 'Agency FB', sans-serif;
}

.repair-card p {
    margin: 0;
    font-size: 0.9em;
}

.price-table {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-collapse: collapse;
    text-align: left;
}

.price-table th,
.price-table td {
    padding: 15px;
    border: 1px solid #00d27a;
}

.price-table th {
    background-color: #2a2a2a;
    color: #00d27a;
    font-family: 'Agency FB', sans-serif;
}

.repair-section h2 {
    font-family: 'Agency FB', sans-serif;
}

.price-table tr:nth-child(even) {
    background-color: #333;
}


@media (max-width: 768px) {

    /* Navbar */
    .navbar-brand {
        font-size: 18px;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 16px;
    }

    .navButton {
        padding: 10px 15px;
        margin: 0 5px;
    }

    /* Info Box */
    .info-box {
        top: 20%;
        left: 5%;
        right: 5%;
        padding: 15px;
        opacity: 50%;
    }

    .info-box h2 {
        font-size: 40px;
    }

    .info-box p {
        font-size: 16px;
    }

    /* Adjusting the carousel height */
    .carousel-item {
        height: 50vh;
    }

    /* Text Box */
    .home-box {
        padding: 20px;
    }

    .text-box {
        padding: 20px;
    }

    .text-box p {
        font-size: 18px;
    }

    .button-template {
        margin: 20px;
        padding: 10px 20px;
        font-size: 18px;
    }

    /* Gallery items should be more responsive */
    .gallery-item {
        flex: 1 1 calc(48% - 20px);
        max-width: calc(48% - 20px);
    }

    /* Partners container */
    .partner-container {
        gap: 10px;
    }

    .partner-item {
        width: 100px;
        height: 100px;
    }

    /* Review cards */
    .review-card {
        flex: 0 0 240px;
    }

    /* Price table */
    .price-table th,
    .price-table td {
        padding: 10px;
    }

    /* Contact and results container */
    .resultaten-archief-container,
    .contact-container {
        padding: 20px;
    }
}

/* For screens smaller than 576px (small phones) */
@media (max-width: 576px) {
    /* When the navbar is collapsed (open state), adjust the info-box position */
    .navbar.collapsed + .info-box {
        top: calc(40% + 100px); /* This may conflict with JavaScript */
    }

    .info-box {
        top: calc(10% + 50px); /* Ensure this is the default state */
        left: 5%;
        right: 5%;
        padding: 10px;
        opacity: 100%;
        height: auto;
    }

    .info-box h2 {
        font-size: 30px;
    }

    .info-box p {
        font-size: 14px;
    }

    /* Adjust other elements as needed */
    .logo {
        max-width: 50%;
        padding: 10px;
        height: auto;
        margin: 0 auto;
        display: block;
        margin-top: 5%;
        margin-bottom: 5%;
        transition: margin-top 0.3s ease;
    }

    .button-template {
        font-size: 16px;
        padding: 10px 15px;
        margin: 10px;
    }

    .carousel-item {
        height: 40vh;
    }

    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .contact-container,
    .resultaten-archief-container {
        padding: 10px;
    }

    .partner-item,
    .review-card {
        width: 80px;
        height: 80px;
    }

    .repair-card img {
        height: auto;
    }
}
