/* CSS Document used for the homework5 assignment
Author: Grace Trombley
Course: ITWP 1050
File: styles.css
Assignment: Include CSS in an informational web page of your choosing
*/

/*this section makes a gradient background, and specifies line height and text alignment*/
body {
    text-align: center;
    background-image: linear-gradient(180deg, #FCB2B3, white);
    line-height: 20px;
}

/*i found this font on the Google Font link provided by the homework pdf*/
@font-face {
    font-family: MyFont;
    src: url(static/PlayfairDisplay-Medium.ttf);
}

/*this section gives special design to the header of the site, giving it a different font and a test shadow*/
h1 {
    font-family: MyFont, Arial, sans-serif;
    text-shadow: 2px 2px;
    letter-spacing: 2px;
    font-variant: small-caps;
    white-space: nowrap;
}

/* Media query for viewports 800px or less */
@media (max-width: 800px) {
    h1 {
        font-size: 2em;
    }

    body {
        font-size: 0.9em;
    }
}

/* Media query for viewport 600px or less */
@media (max-width: 600px) {
    body {
        background-color: #FCB2B3;
    }
}

/* Makes responsive images */
img {
    max-width: 90%;
    height: auto;
  }

/*responsive images at bottom of page*/
.responsive-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 10px;
    background-color: #f0f0f0;
}

/*sorts the items in the flex box*/
.item {
    flex: 1 1 calc(20% - 40px);
    margin: 10px;
    padding: 10px;
    background-color: #db3a3a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*deasktop max width*/
@media (max-width: 1200px) {
    .item {
        flex: 1 1 calc(33.33% - 40px);
    }
}

/*tablet max width*/
@media (max-width: 768px) {
    .item {
        flex: 1 1 calc(50% - 40px);
    }
}

/*mobile max width*/
@media (max-width: 480px) {
    .item {
        flex: 1 1 100%;
    }
}