 /* Author: Axel Esparza
   Date: 09/25/2024
   File: styles.css */

/* CSS Reset */
body, header, nav, main, footer, img, h1, h3 {
    margin: 0;
    padding: 0;
    border: 0;
}

/* General Styles */
:root {
    background-color: #f6eee4;
    nav-bg-color: #2a1f14;
    text-color: #ffffff;
    footer-text-color: #f6eee4;
    font-lora: 'Lora', serif;
    font-emblema: 'Emblema One', cursive;
}

body {
    background-color: #f6eee4;
    font-family: 'font-lora'
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile and Desktop Styles */
.mobile {
    display: block;
}

.tab-desk {
    display: none;
}

@media only screen and (min-width: 768px) {
    .mobile {
        display: none;
    }
    .tab-desk {
        display: block;
    }
}

/* Header Styles */
.mobile h1, .mobile h3 {
    padding: 2%;
    text-align: center;
    font-family: var(--font-emblema);
}

/* Main Content Styles */
main {
    padding: 2%;
}

/* Main Content Typography */
main p {
    font-size: 1.25em;
}

main h3 {
    padding-top: 2%;
}

main ul {
    list-style-type: square;
    margin-left: 10%;
}

/* Navigation Styles */
nav {
    background-color: var(--nav-bg-color);
}

nav ul {
    list-style-type: none;
    margin: 0;
    text-align: center;
}

nav li {
    display: inline-block;
    font-size: 1.5em;
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
}

nav li a {
    display: block;
    color: #4d3319;
    padding: 0.5em 2em;
    text-decoration: none;
}

/* Action and Contact Styles */
.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
}

#contact, #form h2 {
    text-align: center;
}

/* Footer Styles */
footer {
    text-align: center;
    font-size: 0.85em;
    background-color: var(--nav-bg-color);
    color: var(--footer-text-color);
    padding: 1% 0;
}

footer a {
    color: #f3e6d8;
    text-decoration: none;
}

/* Utility Classes */
.round {
    border-radius: 6px;
}

.tel-link {
    background-color: var(--nav-bg-color);
    padding: 2%;
    width: 80%;
    margin: 0 auto;
}

.tel-link a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-weight: bold;
}

.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

/* Reset styles for aside, figure, and figcaption */
aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Style for the aside element */
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 4px 4px 10px #c5a687;
}

/* Style for the figure element */
figure {
    border: 4px solid #2a1f14;
    box-shadow: 6px 6px 10px #c5a687;
    max-width: 400px;
    margin: 2% auto;
}

/* Style for the figcaption element */
figcaption {
    padding: 2%;
    border-top: 4px solid #2a1f14;
}

/* Tablet media query */
@media (min-width: 600px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    aside {
        grid-column: 1 / span 2;
    }
}

/* Desktop media query */
@media (min-width: 900px) {
    nav li a:hover {
        opacity: 0.5;
    }
    
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }
}

/* Large desktop media query */
@media (min-width: 1200px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}

/* Style rules for form elements */
fieldset, input, textarea {
    margin-bottom: 2%;
}

legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display: block;
    padding-top: 2%;
}

#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;
}

/* Tablet Viewport: Style rule for form element */
@media (min-width: 600px) and (max-width: 1024px) {
    form {
        width: 70%;
        margin: 0 auto;
    }
}

/* Desktop Viewport: Style rules for form elements */
@media (min-width: 1025px) {
    form {
        width: auto;
    }

    .form-grid {
        display: grid;
        grid-template-columns: auto auto;
        gap: 20px;
    }

    .btn {
        grid-column: 1 / span 2;
    }
}
/* Style rules for table */
    table {
    border: 1px solid #2a1f14; 
    border-collapse: collapse;
    margin: 0 auto; 
}
    caption {
    font-size: 1.5em; /* Set font size */
    font-weight: bold; /* Set font weight to bold */
    padding: 1%; /* Set padding */
}
    th, td {
    border: 1px solid #2a1f14; /* Set border */
    padding: 1%; /* Set padding */
}
    th {
    background-color: #2a1f14; /* Set background color */
    color: #fff; /* Set text color to white */
    font-size: 1.15em; /* Set font size */
}
    tr:nth-child(odd) {
    background-color: #deccba; /* Set background color for odd rows */
}

