/*
Griffin Gottfried
Midterm
November 11 2025
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1, ul{
    margin: 0;
    padding: 0;
    border: 0;
}

/* Style rule for images*/
img {
    max-width: 100%;
    display: block;
}

/* Style rules for header content*/
header{
    text-align: center;
    font-size: 1.5em; /* mobile only*/
    color: #FF7F50;
    background-color: #FAF9F6;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
}

/* Style rules for the check out button*/
#cart-icon{
    position: fixed;
    font-size: 40px;
    bottom: 10px;
    right: 10px;
    z-index: 1000; /*keep it above all other elements*/
}

/* Style rules for navigation area*/
nav{
    background-color: #a2bffe;
}

nav ul{
    list-style-type: none;
    text-align: center;
}

nav li{
    display: block;
    font-size: 1.5em;
    width: 100%;
}

nav li a {
    display: block;
    text-align: center;
    padding: 0.5em 1em;
    text-decoration: none;
    border-bottom: 1px solid #FF7F50;

}

/* Style rules for main content*/
main{
    padding: 2%;
    background-color: #FAF9F6;
    overflow: auto;
    font-family: Roboto;
}

main p{
    font-size: 1.25em;
}

.action{
    font-size: 1.25em;
    color: #FF7F50;
    font-weight: bold;
}


#info {
    clear: left;
    background-color: #c0caf7;
    padding: 1% 2%;
}

#info ul {
    margin-left: 10%;
}

.round {
    border-radius: 8px;
}

#contact{
    text-align: center;
}

.email-link {
    color: #FF7F50;
    text-decoration: none;
    font-weight: bold;
}


/* Styles rules for mobile viewport*/
.tel-link{
    text-align: center;
    background-color: #FF7F50;
    padding: 2%;
    margin: 0 auto;
    width: 80%;
    border-radius: 5px;
}

.tel-link a{
    color: #FAF9F6;
    text-decoration: none;
    font-size: 1.5em;
    display: block;

}

.map {
    width: 600px;
    height: 450px;
    border: 5px solid #FF7F50;
    width: 95%;
    height: 50%;
}

footer {
    text-align: center;
    background-color: #FAF9F6;
}

.tab-desk{
    display: none;
}

/* Profile Feed Styles - Grid layout for profile cards */
.profile-feed {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

/* Individual profile card styling */
.profile {
    text-align: center;
    width: 200px;
    padding: 10px;
    background-color: #e5e9fc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Round profile image styling */
.profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF7F50;
}

/* Profile name text styling */
.profile p {
    margin-top: 10px;
    font-weight: bold;
    color: #FF7F50;
}

/* Remove underline from profile links */
.profile a {
    text-decoration: none;
    color: inherit;
}

/* Profile Page Styles - Layout for individual profile pages */
.profile-page {
    text-align: left;
    padding: 20px;
}

/* Profile image on profile page */
.profile-page img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF7F50;
    margin-bottom: 20px;
}

/* Items grid */
.items {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 15px;
    row-gap: 15px;
}

/* Individual item styling in grid */
.items li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #e5e9fc;
    border-radius: 5px;
}

/* Icon styling for item types */
.items li i {
    margin-bottom: 10px;
    color: #FF7F50;
}

/* Add to cart button styling */
.add-to-cart {
    background-color: #FF7F50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.add-to-cart:hover {
    background-color: #e55a3a;
}


/* Cart Styles */
#cart {
    padding: 20px;
}

#cart-items {
    list-style: none;
    padding: 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #e5e9fc;
    margin-bottom: 10px;
    border-radius: 5px;
}

.checkout-btn {
    background-color: #FF7F50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

.checkout-btn:hover {
    background-color: #e55a3a;
}

/* Media Query for Tablet Viewport*/
@media screen and (min-width: 550px){

    /* Tablet Viewport: SHow tab-desk class, hide mobile class*/
    .tab-desk {
        display: block;
    }

    .mobile{
        display: none;
    }

    /* Tablet Viewport: Style rule for header content*/
    span.tab-desk{
        display: inline;
    }

    /* More padding and smaller font for the check out button*/
    #cart-icon{
        font-size: 35px;
        top: 20px;
        right: 20px;
    }

    /* Tablet Viewport: Style rules for nav area*/
    nav ul{
    list-style-type: none;
    margin: 0;
    justify-content: center;
    }

    nav li{
        display: inline-block;
        font-size: 1em;
        width: auto;
        border: solid 1px #FAF9F6;

        border-left: #FF7F50;
        border-bottom: #FF7F50;
        border-top: #FF7F50;
    }

    nav li:last-child{
        border-right: #FF7F50;
    }


    nav li a {
        padding: 0.25em 0.5em;
        display: inline-block;
        border-left: #FF7F50;
        border-bottom: #FF7F50;
        border-top: #FF7F50;
        text-align: center;
    }

    /* Tablet Viewport: Style rule for map*/
    .map{
        width:500px;
        height: 450px;

    }

    footer {
        text-align: left;
        background-color: #FAF9F6;
    }
}

/*Media Query for Desktop Viewport*/
@media screen and (min-width: 769px){
    /* Tablet Viewport: SHow tab-desk class, hide mobile class*/
    .tab-desk {
        display: block;
    }

    .mobile{
        display: none;
    }

    header{
        padding: 2%;
    }

    span.tab-desk{
        display: inline;
    }

    /* Style rules for nav area */
    nav li a {
        display: inline-block !important;
        padding: 0.5em 1.5em;
    }

    nav li a:hover {
        color: #FF7F50;
        background-color: #e5e9fc;
    }

    /* Style rules for main */
    #info ul {
        margin-left: 5%;
    }

    /* Profile Feed 3 columns */
    .profile-feed {
        grid-template-columns: repeat(3, 1fr);
    }

    footer {
        text-align: left;
        background-color: #FAF9F6;
    }


}

/* Media Query for Print*/
@media print{
    body{
        background-color: #FAF9F6;
        color: #000;
    }
}
