/*  
Author: Kahmarie Sebastien  
Date: March 21, 2025  
File: styles.css  
*/

/* CSS Reset */
body, header, nav, main, footer, img, video, h1, ul, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Style rules for body and images */
body {
    background: #f6eee4;
}

img, video {
    max-width: 100%;
    display: block;
}

/* Style rules for mobile viewport */

/* Style rules to show mobile-tablet class and hide tab-desk/desktop class */
.mobile, .mobile-tablet { /* ✅ Added .mobile-tablet here */
    display: block;
}

.tab-desk, .desktop { /* ✅ Added .desktop here */
    display: none;
}

.mobile h1, 
.mobile h3 {
    padding: 2%;
    text-align: center;
}

/* Style rules for navigation area */
nav {
    background-color: #2a1f14;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Makes the list items display horizontally */
    justify-content: space-around; /* Ensures even spacing between items */
    flex-wrap: wrap; /* Allows wrapping if needed on smaller screens */
}

nav li {
    display: inline-block;
    font-size: 1.2em;
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
    border-top: none;
}

nav li a {
    display: block;
    color: #f6eee4;
    padding: 0.5em;
    text-decoration: none;
}

/* Style rules for main content */
main {
    padding: 2%;
    font-family: Verdana, Arial, sans-serif;
}

main p {
    font-size: 1.25em;
}

main h3 {
    padding-top: 2%;
}

main ul {
    list-style-type: square;
}

.link {
    color: #4d3319;
    text-decoration: none; /* Removes underline */
    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;
}

#info ul {
    margin-left: 10%;
}

#contact {
    text-align: center;
}

.tel-link {
    background-color: #2a1f14;
    padding: 2%;
    width: 80%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

tel-link a {
    color: #f6eee4;
    text-decoration: none; /* Removes underline */
    font-weight: bold;
}

/* Style rules for form elements */
fieldset,input, textarea {
    margin-bottom: 2%;
}

/* Style rules for form elements */
fieldset, input, textarea {
    margin-bottom: 2%;
}

fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display:block;
    padding: 2%;
    
}

form #submit {
    margin: 0 auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
    border: none; 
    cursor: pointer; 
}

/*Style rules for form elements*/

fieldset {
    margin-bottom:2%;
}

fieldset legend {
    font-weight:bold;
    font-size:1.25em;
    
}

label selector {
    display:block;
    padding-top:2%;
}

form #submit {
    margin: 0 auto;
    display: block;
    padding: 2%;
    background-color: #78593a;
    color: #f6eee4;
    font-size: 1.25em;
    border-radius: 10px;
}


/* Style rules for footer content */
footer {
    text-align: center;
    font-size: 0.85em;
    background-color: #2a1f14;
    color: #f6eee4;
    padding-top: 1%;
    padding-bottom: 1%;
}

footer a {
    color: #f3e6d8;
    text-decoration: none;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px), print {
    .tab-desk, .desktop { /* ✅ Changed the comment here */
        display: block;
    }

    .mobile, .mobile-tablet { /* ✅ Added .mobile-tablet here */
        display: none;
    }
    
    .grid {
        display: grid;
        grid-template-columns: 50% 50%;
        column-gap: 10px;
    }

    aside {
        grid-column: span 2;
    }
}

/* Tablet Viewport: Style rule for form element */
    form {
        width: 70%;
        margin: 0 auto; /* Top and bottom margin: 0, Left and right margin: auto */
    }
/*Desktop Viewport:Style rules for form elements*/

form{
    width:auto;
}

.form-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
}

/* Style rule for the btn class */
.btn {
    grid-column: 1 / span 2;
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1000px), print {
    /* Desktop Viewport: Show desktop class, hide mobile-tablet class */
    
    .tab-desk, .desktop { /* ✅ Updated comment */
        display: block;
    }

    .mobile, .mobile-tablet { /* ✅ Added this to hide .mobile-tablet */
        display: none;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }
}

/* Desktop Viewport: Style rules for form elements */
    
    form {
        width: auto;
    }

    .form-grid {
        display: grid;
        grid-template-columns: auto auto;
        column-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;
    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;
}


/* Desktop Viewport: style rules for nav area */
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;
}

/* Desktop Viewport: style rules for main content */
#info ul {
    margin-left: 5%;
}

#contact,
#form h2 {
    text-align: center;
}

/* Media Query for Large Desktop Viewports */
@media screen and (min-width: 1921px), print {
    body {
        background: linear-gradient(to right, #f6eee4, #78593a);
    }
}

@media print {
    /* You can add your print-specific styles here */
}

#wrapper {
    width: 1920px;
    margin: 0 auto;
}

main {
    background-color: #f6eee4;
}

/* Media Query for Print */
@media print {
    body {
        background-color: white;
        color: black;
    }
}

/* Tablet Viewport: Show tab-desk class, hide mobile class */
/* Tablet Viewport: style rules for nav area */
