/*Rachel Spelich, ITWP 1050, Homework 5, external stylesheet*/

/*Button class that changes to violet when hovered over*/

.button {
    background-color: #4162e9;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 15px;
}

.button:hover {
    background-color: blueviolet;
    transition: .5s ease;
    transition-duration: .5s;
    transition-delay: .5s;
}

/*Link formatting to remove underline and change color to white*/
.button a {
    text-decoration: none;
    color: white;
}

/*Header styling*/
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(images/headerimages.png);
    background-size: contain;
    background-position: center;
    text-align: center;
    padding: 30px;
    height: 500px;
    font-size: 3em;
    line-height: 2em;
    letter-spacing: .1em;
    font-family: Montserrat, Arial, Helvetica, sans-serif, sans-serif;
    color: #4162e9;
    margin: 50px;
}

/*Required media query for h1 and body text*/
@media (max-width: 800px) {
    .header h1 {
        font-size: 1em;
    }
    body {
        font-size: .5em;
    }
}

/*Required media query for background color*/
@media (max-width: 600px) {
    body {
        background-color: #9aaaeb;
    }
}


/*body styling to include margins, and style text*/
body {
    margin: 50px;
    font-family: Montserrat, Arial, Helvetica, sans-serif, sans-serif;
    font-size: 1em;
    text-align: left;
    line-height: 20px;
}

/* Image styling to float left and be responsive*/
img {
    border: 3px dotted #4162e9;
    border-radius: 10px;
    padding: 5px;
    margin: 50px;
    width: 100%;
    height: auto;
    float: left;
    clear: left;
}

/*Container styling to use flexbox and be responsive*/
.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background: rgb(231, 231, 231);
    padding: 5rem;
    margin: 20px;
}

.container p {
    flex: 1;
    margin: 0;
    text-align: left;
    padding: 1rem;
}

.container img {
    flex: 1;
    margin: 1rem;
    height: auto;
    float: none;
    clear: none;
    display: block;
}



/*footer styling*/
.footer {
    margin-top: auto;
    justify-content: center;
    align-items: center;
    display: flex;
}