/* 
Student Name: Kelly Ferrigan
Course: CIS235 24927
Date: 11/25/2023
*/

/* imported Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,700;1,400;1,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,700;1,6..12,400;1,6..12,700&display=swap');

/* variable declarations */
:root {
    /* fonts */
    --body-font: "Nunito Sans", sans-serif;

    /* colors */
    --main-shadow-color: #333;
    --main-dark-color: #666;
    --main-med-color: #999;
    --main-light-color: #ccc;
    --accent-dark-color: #f60;
    --accent-med-color: #fc3;
    --accent-light-color: #FFEDB6;
}

/* entire page styles */
html {
    font-family: var(--body-font);
}

/* header styles */
header {
    /* background color */
    background-color: var(--main-dark-color);
}

/* company logo styles */
#logo {
    width: 200px;
    padding-left: 5px;
}

/* navigation styles */
nav {
    float: right;  /* float right */
    margin-top: 110px;
    margin-right: 10px;
}

/* navigation link styles */
nav > a {
    text-decoration: none; /* remove underline */    
    padding: 5px 10px; /* add minimum of 5px padding */
    /* colors */
    background-color: var(--accent-med-color); /* add background color */
    color: var(--main-shadow-color);
}
/* end of header styles */

/* article styles */
article {
    /* Photo by Mel Poole https://unsplash.com/@melpoole?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash
   */
   /* include background image */
    background: url("../images/article-bg1.jpg") no-repeat;  
    background-size: cover;
    background-position: top;
    padding: 15px;
    min-height: 65.6vh;
}

/* index.html styles */
/* greeting */
article > h1 {
    font-size: 3em; /* minimum font size of 3em */
    margin-left: 50px;
    color: var(--main-shadow-color);
}

/* paragraph styles */
.bold-text {
    font-weight: bold;
}

.italic-text {
    font-style: italic;
}

article > p {
    margin-left: 50px;
    font-size: 1.3em;
    color: var(--main-shadow-color);
}

#disc-code {
    padding: 1px 4px;
    background-color: var(--main-dark-color);
    color: var(--accent-med-color);
}

aside {
    /* float right */
    float: right;
    margin-top: -175px;
    /* background color */
    background-color: var(--accent-med-color);
    /* text color */
    color: var(--main-shadow-color);
    /* padding of 20px */
    padding: 20px;
}

/* submit button styles */
.returnBtn {
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1.5px;
    /* add whitespace */
    padding: 10px;
    /* colors */
    background-color: var(--main-dark-color);
    color: var(--accent-light-color);
}
/* submit button styles on hover */
.returnBtn:hover {
    /* colors */
    background-color: var(--accent-dark-color);
    color: var(--main-shadow-color);
}
/* end of article styles */

/* footer styles */
footer {
    clear: both;
    padding: 10px;
    /* colors */
    /* background-color: var(--main-dark-color);
    color: var(--accent-light-color); */
    background-color: var(--accent-med-color);
    color: var(--main-shadow-color);
}

#contact-link {
    /* text color */
    /* color: var(--accent-light-color); */
    color: var(--main-shadow-color);
}

/* end of footer styles */

/* product page styles */
/* text banner indicating this is a demo site */
.demo {
    margin-top: -5px;
    margin-left: -310px; /* adjust for .product-img float */
    margin-right: -15px;
    padding: 5px 10px;
    /* colors */
    background-color: var(--accent-dark-color);
    color: var(--accent-light-color);
}

article.product {
    padding-left: 310px; /* adjust product back on screen */
}

/* product image */
.product-img {
    float: left; /* float image left */
    margin-left: -300px;  /* create left and right columns */
}

/* text product details */
.product-details {
    width: 350px;
    padding: 0 0 .5px 10px;
    background-color: var(--accent-light-color);
    color: var(--main-shadow-color);
}

/* cart button styles */
.price-btn {
    /* lines up button horizontally with price */
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

/* manually created button */
.cartBtn {
    margin-left: 30px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    border-radius: 5px;
    /* colors */
    background-color: var(--accent-dark-color);
    color: var(--accent-light-color);
}
/* manual button hover styles */
.cartBtn:hover {
    cursor: pointer; /* turns cursor to hand */
    /* colors */
    background-color: var(--main-dark-color);
    color: var(--accent-med-color);
}
/* end of product page styles */

/* media queries */

@media (max-width: 1025px) {
    /* lines aside up vertically */
    aside {
        float: none;
        display: block;
        text-align: center;
    }

    /* index.html h1 and p */
    article > h1, article > p, .second, .third {
        margin-top: 0;
        margin-left: 0;
        text-align: center;
    }

    article > p:last-of-type {
        margin-bottom: 220px; /* pushes aside below index.html paragraphs */
    }
}

@media (max-width: 700px) {
    /* navigation */
    header nav {
        float: none;
        margin-top: 0;
        padding-left: 10px;
        padding-bottom: 1px;
    }

    /* navigation links */
    header nav a {
        display: block;
        margin-bottom: 10px;
        border-radius: 10px;        
    }

    /* logo */
    header #logo {
        display: block;
        margin: auto;
        margin-bottom: 20px;
    }
    /* moves the product sections back on screen */
    section {
        margin-left: -300px;
        margin-bottom: 30px;
    }

    /* removes excess whitespace from product text */
    .product-details {
        margin-top: -15px;
    }

    /* lines product images up vertically */
    .product-img {
        float: none;
        margin-left: auto;
    }
}