/* General Styles */
* {
    padding: 0;
    margin: 0;
}

html {
    background-color: #59604b;
}


.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrap {
    flex: 1;
}

/* Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items from the start */
    align-items: flex-start; /* Align items from the start */
    height: 60vh;
    text-align: center;
}


/* Store Details */
.detail-content {
    padding: 2vh 3vw;
    text-align: center;
}

.store-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #91A5AA;
    border: 0 hidden;
    border-radius: 0.5vw;
}

.store-location {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.store-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.store-image {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 10px;
}

.store-image.active {
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.05s;
}

.carousel-button.left {
    left: 10px;
}

.carousel-button.right {
    right: 10px;
}

.store-details {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    background-color: #91A5AA;
    border: 0 hidden;
    border-radius: 0.5vw;
}

.store-details dt {
    font-weight: bold;
}

.store-details dd {
    margin: 0 0 10px 0;
}

.store-type {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
}

.store-distance {
    font-size: 1rem;
    margin-bottom: 20px;
}


/* Scrollable List */
.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items from the start */
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.location-item .actions {
    display: none;
    flex-direction: column;
    align-items: flex-start;
}

.location-item:hover .actions {
    display: flex;
}

.location-item .delete {
    cursor: pointer;
    color: red;
}


/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    width: 200px;
}

.dropdown-selected {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
}

.dropdown-options {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items from the start */
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
}

.location-item:hover {
    background-color: #ddd;
    transition: background-color 0.05s;
}

.location-item .delete {
    cursor: pointer;
    color: red;
}


/* Table */
table {
    border-collapse: collapse;
    width: 100%;

    border-radius: 10px;
}

th, td {
    border-bottom: 1px solid black;
    padding: 8px;
    text-align: center;
}

.table-header {
    color: #eee7dc;
    background-color: #7c6650;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.table-content {
    color: #eee7dc;
    background-color: #b29b80;
}


/* Links */
a {
    color: inherit;
    text-decoration: none;
}


.product-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    /*margin-top: 2vh;*/
    padding: 20px;
    color: white;
}

/* Product Details */
.product-details {
    background-color: #7c6650;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.product-details h2,
.product-details h3,
.product-details h4 {
    color: white;
}

.product-details h2 {
    font-size: 3rem;
}

.product-details h3 {
    font-size: 2rem;
}

.product-details h4 {
    font-size: 1.5rem;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    background-color: #b29b80;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.product-image img {
    width: 35%;
}

.product-link {
    display: block;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.product-link:hover {
    background-color: #f0f0f0;
}


/* Output Text */
.outputText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80vw;
    background: white;
    padding: 40px;
    margin-top: auto;
    margin-bottom: 5vh;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#output {
    width: 100%;
    font-size: 1.2em;
    color: #333;
    line-height: 1.5;
}


/* Buttons */
.button.is-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 25vw;
    padding: 10px 20px;
    min-width: 150px;
    background-color: #756a51;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.button.is-link:hover {
    background-color: #bdac84;
    color: black;
    transition: background-color 0.05s, color 0.05s;
}

.storeButton {
    flex-direction: row;
}

/* Loading Spinner */
.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #59604b;
    border-radius: 50%;
    width: 5vw;
    height: 5vw;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#map {
    width: 100%;
    height: 500px;
}

.maplibregl-ctrl-bottom-right {
    display: none !important;
}


body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #eee7dc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.navbar, footer {
    height: 10vh;
    max-width: 100vw;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    background-color: #59604b;
}

.navbar {
    top: 0;
    width: 100vw;
    flex-wrap: nowrap; /* Voorkomt dat items onder elkaar worden gezet */
    overflow: hidden; /* Verbergt inhoud die buiten de balk valt */
    padding: 0 10px; /* Voeg wat padding toe voor betere uitlijning */
    box-sizing: border-box; /* Houd rekening met padding in de breedte */
}

footer {
    bottom: 0;
}

img.logo {
    height: 10vh;
    margin-left: 2vw;
    /*!*margin: 0;*!*/
    /*position: inherit;*/
    display: block;

}

.footer-bar {
    display: flex;
    width: 100vw;
    justify-content: space-between;
    align-items: center;
    background-color: #59604b;
    color: #eee7dc;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right {
    text-align: right;
    margin-right: 2vw;
}

.footer-right:hover {
    text-decoration: underline;
}


.footer-text {
    margin-left: 10px;
    color: #eee7dc;
}

a.navbar {
    /*align-items: center;*/
    justify-content: center;

    display: inline-block;
    padding: 5px;
    margin: 0;
}


.title {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    font-style: normal;
    color: #eee7dc;
    font-size: 5vh; /* Adjusted font size */
    text-align: center;
}

.main-font {
    font-family: "Libre Caslon Text", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
}

#location-feedback {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

#location-list-container {
    border: 1px solid #000;
    border-radius: 50px;
}

.select-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    /*width: 500px;*/
}

#locatie {
    padding: 5px;
    width: 100%;
    text-overflow: ellipsis;
    display: inline-block;
}

.index-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    /*padding: 150px;*/
    border-radius: 10px;
    height: 80vh;
    min-height: 380px;
    text-align: center;
}

.location-box {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    background: #7c6650;
    padding: 10px;
    color: white;
}

.searchbar {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-button {
    padding: 10px;
    height: 100%;
    background-color: #756a51;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.search-button:hover {
    background-color: #bdac84;
    color: black;
    transition: background-color 0.05s, color 0.05s;
}

#radius {
    padding: 5px;
    border: hidden;
    border-radius: 5px;
    color: white;
    background-color: #756a51;
}

#radius option {
    background-color: #756a51;
    border-radius: 0;
}


.search-results {
    list-style-type: none;
    padding: 0;
    /*margin-top: 20px;*/
    max-height: 300px;
    overflow-y: auto;
}

.search-results li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results li span {
    flex-grow: 1; /* Make the text area flexible */
    margin-right: 10px; /* Add some space between text and button */
}

.search-results button {
    padding: 10px;
    background-color: #756a51;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 150px; /* Fixed width for the button */
    text-align: center; /* Center the text inside the button */
}

.search-results button:hover {
    background-color: #bdac84;
    color: black;
    transition: background-color 0.05s, color 0.05s;
}

.search-box {
    width: 100%;
    background: #b29b80;
    color: white;
    padding: 10px;

}

.result-box {
    width: 100%;
    background: #c6b39b;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: left;
}

h2 {
    color: white;
    margin-bottom: 10px;
}

.spacer {
    margin-top: 10vh;
}

.sizer {
    width: 100%;
}

.sizer h1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sizer form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2vw;
    margin-bottom: 3vh;
}


/* Telefoon modus */
@media (max-width: 600px) {
    .title {
        font-size: 1.2rem; /* Make the title text smaller */
    }

    img.logo {
        height: 8vh; /* Make the logo smaller */
    }

    .navbar,
    footer {
        height: 12vh; /* Make the footer slightly higher */
    }

    .index-container {
        height: 76vh;
        margin-left: 5vw;
        margin-right: 5vw; /* Add padding for better spacing */
    }

    body {
        overflow: auto; /* Enable scrolling */
    }

    .product-details h2 {
        color: black;
    }

    /* Buttons */
    .button.is-link {
        justify-content: center;
        margin: 20px 20vw;
        padding: 10px 20px;
        min-width: 65px;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
    }

    .storeButton {
        flex-direction: row;
    }


    #busyness {
        font-size: 1.3rem;
    }


    .outputText {
        margin: 5vh 0;
        padding: 20px;
    }

    .product-details h2,
    .product-details h3 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
    }
}

/* Product Table */
.product-table {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    padding: 2vh 2vw;
    justify-content: center; /* Align items from the start */
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28.72vw;
    max-width: 250px;
    background-color: #b29b80;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left; /* Align items to the left */
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


.product-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-item a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.product-item a:hover {
    color: #eee7dc;
}

@media (max-width: 600px) {
    .product-table {
        flex-direction: column;
        align-items: center;
    }

    .product-item {
        flex-direction: row;
        width: 90%;
        padding: 10px;
    }

    .product-item img {
        width: 30%;
        height: auto;
        margin-right: 10px;
    }

    .product-item a {
        margin-top: 0;
        margin-left: 10px;
    }
}

/* contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 10vh auto;
    padding: 20px;
    background-color: #b29b80;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-container h1 {
    margin-bottom: 20px;
    color: white;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

#contact-form button {
    padding: 10px 20px;
    background-color: #756a51;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

#contact-form button:hover {
    background-color: #bdac84;
    color: black;
    transition: background-color 0.05s, color 0.05s;
}

/* Contact Form */
#contact-form .name-fields {
    display: flex;
    gap: 10px;
}

input.success, textarea.success {
    border-color: green;
}

.thank-you-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh; /* Adjust height as needed */
    text-align: center;
}
