/* 
    Student name: Ellie Gutierrez
    CIST 1510
    Web Development I
*/

/* CSS reset */

body, header, nav, main, footer, h1, div, img {
    margin: 0;
    padding: 0;
    border: 0;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

p {
    font-size: 16px;
}

/* style rules for header and nav */

header {
    float: left;
    width: 25%;
    background-color: #f6eee4;
}

#logo img {
    justify-content: center;
    width: 200px;
}

.header-container {
    background-color: #f6eee4;
    width: 100%;
    float: left;
}

#wrapper img {
    width: 100%;
    display: block;
}

nav {
    width: 100%;
    display: block;
    font-family: "Tenor Sans", sans-serif;
}

.nav-container {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #f6eee4;
}

nav ul li {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    text-align: center;
}

/* style rules for mobile */

.tab-desk {
    display: none;
}

.menu-button {
    background: #f6eee4;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}


/* style rules for body and main */

body {
    background-color: #f6eee4;
}

main {
    font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #432323;
}

.main-container h1 {
    width: 100%;
    text-align: center;
    margin: 16px 0;
}

.main-section {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.section-container {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.welcome-image {
    width: 100%;
}

.about-section {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.about-section div {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

#contact {
    text-align: center;
}

/* media query for desktop */

@media screen and (min-width: 768px) {
    nav {
        float: right;
        margin: 4em 3em 0 0;
        width: 70%;
        background-color: #f6eee4;
        font-family: "Tenor Sans", sans-serif;
}
    .nav-container {
        flex-direction: row;
    }

    nav ul {
        list-style-type: none;
        margin: 0;
        text-align: right;
        padding-top: 1em;
}

    nav li {
        display: inline-block;
        font-size: 20px;
}

    nav li a {
        display: block;
        text-align: center;
        padding: 0.5em 1em;
}

/* hover for nav */
    #logo img {
        padding-left: 5em;
        width: 200px;
}
    .link:hover {
        color: #E5BEB5;
}
    .main-section {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 16px;
        color: #432323;
    }

    .welcome-image {
        width: 300px;
    }

    .section-container {
        max-width: 300px;
    }

    .section-container h2 {
        font-size: 24px;
        margin: 0;
    }

    .section-container p {
        font-size: 16px;
        margin: 0;
    }

    .main-container h1 {
        font-size: 32px;
    }

    .about-section h1 {
    margin-top: 1em;
}

    .about-section {
    display: flex;
    flex-direction: row;
}

    .about-section div {
    margin: 10px;
}

}

.link {
    text-decoration: none;
    color: #432323;
}

footer {
    text-align: center;
    font-size: 0.85em;
    color: #432323;
    padding: 8px;
    font-family: "Tenor Sans", sans-serif;
}

