/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Pacifico&display=swap');


/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #fffaf5;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hero-overlay .hero-text {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero:hover .hero-overlay {
    opacity: 1;
    /* Show overlay on hover */
}

/* Details Section */
.details {
    padding: 20px;
    text-align: center;
    background-color: #fffaf5;
}

#food-section {
    text-align: center;
    margin: 20px;
    background-color: #fffaf5;
}

#food-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Food Buttons Section */
.food-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.food-image {
    width: 500px;
    /* Fixed width */
    height: 300px;
    /* Fixed height */
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    margin: 10px;
    /* Adds space around images */
}


.food-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.food-image.clicked {
    opacity: 0.7;
}

/* Modal Styles */
.modal-dialog.custom-modal-width {
    max-width: 90%;
    width: auto;
}

.modal-title {
    background-color: #f6ede4;
    font-family: 'Roboto', sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    color: #333;
}

.modal-content {
    background-color: #f6ede4;
    border-radius: 10px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content img {
    max-width: 60%;
    /* Ensures image doesn't overflow modal */
    max-height: 400px;
    object-fit: cover;
}

.modal-header {
    background-color: #f6ede4;
    border-bottom: none;
}

.modal-body {
    background-color: #fffaf5;
    text-align: center;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-body p {
    position: relative;
    background: rgba(255, 255, 255, 0.5)
        /* Semi-transparent white background for better readability */
        url('/assets/images/wood-texture.jpg') no-repeat center center;
    /* Wooden texture */
    background-size: cover;
    /* Ensure the background covers the entire area */
    padding: 20px;
    border: 2px solid #8B5A2B;
    /* Darker wood border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Shadow for 3D effect */
    color: #000;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-top: 10px;
    overflow: hidden;
    /* Ensure content doesn't overflow */
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    /* Adding a light text shadow for better readability */
}

.modal-body p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/wood-texture.jpg') no-repeat center center;
    /* Wooden texture */
    background-size: cover;
    /* Ensure the background covers the entire area */
    opacity: 0.3;
    /* Adjust this value to control the transparency of the wooden texture */
    border-radius: 10px;
    /* Matching rounded corners */
    z-index: -1;
    /* Place behind the text */
}

#embedMapContainer iframe {
    border: 0;
    width: 90%;
    height: 500px;
}

.rating-section {
    text-align: center;
    margin: 0;
}

.stars {
    font-size: 2rem;
    cursor: pointer;
}

.star {
    color: #ddd;
    transition: color 0.2s ease;
}

.star:hover,
.star.selected {
    color: #ffd700;
}

/* Responsive styling for the scroll to top button */
@media (max-width: 768px) {
    #food-section h2 {
        font-size: 1.5em;
        /* Adjust font size for medium screens */
    }

    .hero {
        height: 60vh;
        /* Adjust height on smaller screens */
    }

    .hero-overlay .hero-text {
        font-size: 2rem;
        /* Adjust font size for better readability */
    }

    .food-buttons {
        flex-direction: column;
    }

    .food-image {
        width: 45%;
        /* Make images larger on small screens */
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        /* Further adjust height on very small screens */
    }

    .hero-overlay .hero-text {
        font-size: 1.5rem;
        /* Adjust font size further */
    }

    #food-section h2 {
        font-size: 1.3em;
        /* Further adjust font size for small screens */
    }

    .food-image {
        width: 90%;
        /* Make images full width on very small screens */
        margin-bottom: 20px;
    }
}