@font-face {
    font-family: "Great Vibes";
    src: url(./fonts/GreatVibes-Regular.ttf);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
    
}

:root {
    --background: rgba(0, 0 , 0, 0.7);
    --white: #FEFEFE;
    --content-font: 1.2rem;
}

body { 
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    
} 

#content {
 
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    height: 100vh;
    justify-content: space-between;
}

header {
    background-color: rgba(0, 0 , 0, 0.7);
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 100%;
    padding: 0;

}



.button-nav {
    font-size: var(--content-font);
    border: none;
    color: var(--white);
    background-color: rgba(0, 0 , 0, 0);
    margin: 15px;
    cursor: pointer;
}

.button-nav:hover {
    transform: scale(1.2);
}


.active {
    border-bottom: 1px solid white;
}
header h1 {
    color: var(--white);
    font-family: "Great Vibes";

}

.main {
    margin: 4rem;
    max-width: 700px;
    background-color: var(--background);
    padding: 2rem;
}

/* Home CSS */
#main-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    line-height: 200%;
    animation: fadeIn 1s;
 
}

#order {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-family: inherit;
    border: 1px solid white;
    border-radius: 15px;
}

#order:hover {
    background-color: #FEFEFE;
    cursor: pointer;
}



/*Menu CSS */
#main-menu {
    display: flex;            /* stack sections vertically */
    flex-direction: column;   /* each section below the previous */
    gap: 4rem;                /* space between sections */
    max-width: 700px;
    font-weight: 400;
    font-size: 1.1rem;
    animation: fadeIn 1s;
}

.menu-item {
    padding: 1rem;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background-color 0.2s ;
}

.menu-item:hover {
    background-color: var(--background);

}

#main-menu img {
    width: 100%;        /* fills the grid column */
    max-width: 250px;   /* optional: caps the size */
    height: 200px;      /* keeps aspect ratio */
    object-fit: cover;
}

.menu-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;  /* space between menu items */
    width: 100%;
}
.menu-section h2 {
    grid-column: 1 / -1; /* make the heading span full width */
    margin-bottom: 1rem;
}
/*Booking Page*/

/* Booking Page */
/* Container for the booking form */
#main-booking {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-in-out;
}

/* Heading */
#main-booking h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

/* Form styling */
#main-booking form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Labels */
#main-booking label {
    margin-bottom: 0.3rem;
    font-weight: 500;
}

/* Inputs and textarea */
#main-booking input,
#main-booking textarea {
    padding: 0.6rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

/* Focus effect */
#main-booking input:focus,
#main-booking textarea:focus {
    outline: 2px solid #fff;
    background-color: #fff;
    color: #000;
}

/* Submit button */
#main-booking button[type="submit"] {
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Button hover */
#main-booking button[type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Modal background */
#confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal content */
#confirm-modal .modal-content {
    background-color: rgba(50, 50, 50, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Modal heading */
#confirm-modal h2 {
    margin-bottom: 1rem;
    color: #fff;
}

/* Modal summary text */
#confirm-modal #summary-text {
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Modal buttons */
#confirm-modal button {
    padding: 8px 16px;
    margin: 0 0.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Modal button hover */
#confirm-modal button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 500px) {
    #main-booking {
        padding: 1rem;
        margin: 1rem;
    }

    #main-booking h1 {
        font-size: 1.5rem;
    }

    #main-booking input,
    #main-booking textarea {
        font-size: 0.9rem;
    }

    #main-booking button[type="submit"] {
        font-size: 1rem;
        padding: 8px 16px;
    }

    #confirm-modal .modal-content {
        padding: 1rem;
    }
}


/*Contact CSS */

#main-contact {
    animation: fadeIn 1s;
}

.map {
    width: 90%;
}

.footer {
    background-color: var(--background);
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
  }

@media (max-width: 500px) {
    #content {
        width: 100%;
        height: 100%;
        font-size: 0.7rem;
    }

    #order {
        font-size: calc(0.7rem * 1.2);
    }
    header {
        display: flex;
        flex-direction: column;
    }

    #main-home,
    #main-contact {
        width: 100%;
        margin:0;
        padding: 0;
    }

    .map {
        height: 7rem;
    }

    #main-menu {
        grid-template-columns: 1fr;
    }
}

