/*
Wesley Roach
style.css
10/16/26
*/
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lora", serif;
    background-color: #F5F1EE;
}

nav {
    background-color: #562D0f;
}

.mobile-nav a {
    font-size: 2.35em;
    text-decoration: none;
    color: #F5F1EE;
    text-align: center;
    padding: 5%;
    display: block;
    border-bottom: 4px #fff;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.nav-icon {
    background-color: #562D0f;
    text-decoration: none;
    border: 0 5px 0 5px solid #F5F1EE;
}

.tab-desk {
    display: none;
}

header {
    background-color: #321809;
    border-top: 5px solid #F5F1EE;
}

.mobile {
    display: block;
    margin: 0 auto;
}

main {
    background-color: #F5F1EE;
    text-align: center;
}

.grid-items img {
    max-width: 100%;
}

main p {
    padding: 2em 1.5em;
    font-size: 20px;
}

.reviews {
    margin: 20px auto;
    width: 95%;
    background-color: #f0f4f8;
    padding: 20px;             
    border-radius: 8px;      
    box-shadow: 2px 2px 2px 5px;  
}

.sub-nav ul {
    list-style-type: none;
    text-align: center;

}

.sub-nav li {
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    font-family: "Lora", serif;
}

.img-grid img { 
    max-width: 100%;
    height: auto;
    padding: 2px 0;
    display: block;
}

.imap  { 
    width: 100%;
}

.open-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000; 
}

.modal-content {
    color: #F5F1EE;
    background-color: #562D0f;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit {
    background-color: #321809;
    color: #F5F1EE;
}

/* The Close (X) button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Form element styling */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer {
    background-color: #321809;
    color: #F5F1EE;
    text-align: center;
    padding: 2%;
    padding-bottom: 100%;
}

.dmenu {
    display: block;
    text-align: center;
}

footer p a {
    color: #F5F1EE;
    font-size: 2.5em;
}

.fgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
}



@media screen and (min-width: 620px), print {
    .mobile-nav, .mobile {
        display: none;
    }

    .tab-desk {
        display: block;
    }

        header h1{
        font-size: 3em;
        color: #F5F1EE;
        text-align: center;
    }

    header img {
        display: block;
        margin: 0 auto;
    }

    header img:hover {
        background-color: #F5F1EE;
        transform: translateY(-2%);
        box-shadow: 0px 0px 5px #F5F1EE,
                    0px 0px 10px #F5F1EE,
                    0px 0px 15px #F5F1EE,
                    0px 0px 20px #F5F1EE;
                    
    }

    nav ul {
        list-style-type: none;
        text-align: center;
    }

    nav li {
        display: inline-block;
        font-size: 1.5em;
        font-weight: bold;
        font-family: "Lora", serif;
    }

    nav li a {
        text-decoration: none;
        padding: 0.5em 2em;
        display: block;
        color: #F5F1EE;
    }

    .grid-containers {
        display: grid;
        place-items: center;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .grid-items {
        background-color: #f0f4f8;
        padding: 20px;
        text-align: center;
        border: 1px solid #321809;
    }

    .grid-items img {
        max-width: 100%;
    }

    .img-grid {
        display: grid;
        place-items: center;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        aspect-ratio: 1;
    }

    .img-grid img {
        width: 400px;
        height: 400px;
        object-fit: cover;
        aspect-ratio: 1;
    }

    #answer p {
        font-family: "Lora", serif;
        white-space: pre-wrap;
    }

    footer a {
        color: #F5F1EE;
    }

    footer p a {
        color: #F5F1EE;
        font-size: 1.25em;
    }

}

@media screen and (min-width: 1024px) {
    .tab-desk {
        display: block;
    }

    nav ul {
        list-style-type: none;
        text-align: center;
    }

    nav li {
        display: inline-block;
        font-size: 1.5em;
        font-weight: bold;
        font-family: "Lora", serif;
    }

    nav li:hover {
        background-color: #321809;
    }

    nav li a {
        text-decoration: none;
        padding: 0.5em 2em;
        display: block;
        color: #F5F1EE;
    }

    footer a {
        color: #F5F1EE;
        text-decoration: none;
    }

    footer a:hover {
    color: #8A4810;
    text-decoration: underline;
    }
}