/* Author:Aidan Medina-Afton
Date:02/19/2025
File name: styles.css
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1 {
    margin: 0;
    padding: 0;
    border: 0;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

aside, figure, figcaption {
    margin: 0;
    padding: 0;
}

figure {
    display: block;
}

figcaption {
    font-style: italic;
}

/* Style rules for body and images */
body {
    background-color: #f6eee4;
    font-family: "Lora", serif;
    font-weight: 400;
    font-style: normal;
}

img {
    max-width: 100%;
    display: block;
}

/* Style rules for mobile viewport */
.mobile, 
.mobile-tablet {
    display: block;
}
.tab-desk,
.desktop {
    display: none;
}

.mobile h1 {
    font-family: "Emblema One", system-ui;
    font-weight: 400;
    font-style: normal;
}

.mobile h3 {
    font-family: "Lora", serif;
    font-weight: 400;
    font-style: normal;
}

.mobile h1, .mobile h3 {
    padding: 2%;
    text-align: center;
}

/* Navigation styles */
nav {
    background-color: #2a1f14;
}

nav ul {
    list-style-type: none;
    margin: 0;
    text-align: center;
}

nav li {
    display: block;
    font-size: 1.5em;
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
    border-top: 0.5px solid #f6eee4;
}

nav li a {
    display: block;
    color: #f6eee4;
    padding: 0.5em 2em;
    text-decoration: none;
}

/* Main content styles */
main {
    padding: 2%;
    font-family: Verdana, Arial, sans-serif;
}

main p {
    font-size: 1.25em;
}

main h3 {
    padding: 2%;
}

main ul {
    list-style-type: square;
}

.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
}

.round {
    border-radius: 6px;
}

aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 4px 4px 10px #c5a687;
}

figure {
    border: 4px solid #2a1f14;
    box-shadow: 6px 6px 10px #c5a687;
    max-width: 400px;
    margin: 2% auto;
}

figcaption {
    padding: 2%;
    border-top: 4px solid #2a1f14;
}

#contact,
#form h2 {
    text-align: center;
}

.tel-link {
    background-color: #2a1f14;
    padding: 2%;
    width: 80%;
    margin: 0 auto;
}

.tel-link a {
    color: #f6eee4;
    text-decoration: none;
    font-weight: bold;
}

#info ul {
    margin-left: 10%;
}
/* Style rules for form elements */
fieldset, input, textarea {
    margin-bottom: 2%;
}

/* Style rule for fieldset legend */
fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

/* Style rule for label */
label {
    display: block;
    padding-top: 2%;
}

/* Style rule for the submit button */
form #submit {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
}
/* Footer styles */
footer {
    text-align: center;
    font-size: 0.85em;
    color: #2a1f14;
    padding: 1% 0;
}

footer a {
    color: #f3e6d8;
    text-decoration: none;
}
/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px), print {
    .tab-desk {
        display: block;
    }

    .mobile {
        display: none;
    }

    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.25em;
    }

    nav li a {
        padding: 0.5em;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    /* Tablet Viewport: Style rule for form element */
    form {
        width: 70%;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Media Query for Large Desktop Viewports */
@media (min-width: 1921px) {
    body {
        background: linear-gradient(to bottom, #f6eee4, #78593a);
    }
    #wrapper {
        width: 1920px;
        margin: 0 auto;
    }
    main {
        background-color: #f6eee4;
    }
}

/* Media Query for Print */
@media print {
    body {
        background-color: white;
        color: black;
    }
}
/* Media Query for Desktop Viewport */
@media screen and (min-width: 1000px), print {
    /* Desktop Viewport: Show desktop class, hide mobile-tablet class */
    .desktop {
        display: block;
    }

    .mobile-tablet {
        display: none;
    }

    nav li {
        font-size: 1.5em;
    }

    nav li a {
        padding: 0.5em 1.5em;
    }

    nav li a:hover {
        color: #2a1f14;
        background-color: #f6eee4;
        opacity: 0.5;
    }

    #info ul {
        margin-left: 5%;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }

    /* Desktop Viewport: Style rules for form elements */
    
    /* Style rule for the form element */
    form {
        width: auto;
    }

    /* Style rule for the form-grid class */
    .form-grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 20px;
    }

    /* Style rule for the btn class */
    .btn {
        grid-column: 1 / span 2;
    }
}


@media screen and (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}
/* style rules for table*/
table {
    border: 1px solid #2a1f14;
    border-collapse: collapse;
    margin: 0 auto;
}
caption {
    font-size: 1.5em;
    font-weight: bold;
    padding: 1%;
}

th, td {
    border: 1px solid #2a1f14;
    padding: 1%;
}

th {
    background-color: #2a1f14;
    color: #fff;
    font-size: 1.15em;
}
tr:nth-child(odd) {
    background-color: #deccba;
}