:root {
    --navy: #123C69;
    --white: white;
    --beige: #EEE2DC;
    --magenta: #AC3B61;
    --font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Sets stlying for top navigation bar */
.topnav {
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navy);
    padding: 20px;
    z-index: 1;
}

a {
    color: var(--white);
    text-decoration: none;
    padding: 7px;
}

a:hover {
    color: var(--magenta);
}

body {
    display: flex;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    padding-top: 13%;
}

body h1 {
    text-align: center;
    background-color: #123C69;
    color: var(--white);
    overflow: hidden;
    font-size: 50px;
}

body h2 {
    color: var(--navy);
    text-align: center;
    margin: 50px;
    font-size: 35px;
}

.about {
    display: flex;
    flex: wrap;
    flex-direction: row;
}

.about img {
    padding-right: 20px;
}

.about p {
    padding-top: 8%;
}

.img-sizing {
    height: 400px;
    width: 300px;
}

#first-project {
    outline-style: solid;
    outline-color: var(--navy);
    padding: 1%;
    margin: 10px;
    width: 800px;
    height: 500px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
}

/* Adds styling to the boxes found in the "Projects" section in the html */
.project-design {
    outline-style: solid;
    outline-color: var(--navy);
    padding: 1%;
    margin: 10px;
    width: 400px;
    height: 400px;
}

.refactoring-text {
    position: absolute;
    color: var(--white);
    background: var(--navy);
    padding: 1px 5px 1px 5px;
    text-align: center;
}

.landing-page-text {
    position: absolute;
    color: var(--white);
    background: var(--navy);
    padding: 1px 5px 1px 5px;
    left: 500px;
}

.project-three-text {
    position: absolute;
    color: var(--white);
    background: var(--navy);
    padding: 1px 5px 1px 5px;
    left: 990px;
}

form {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 50%;
    padding: 20px;
    background: #edc7b7;
    color: var(--navy);
}

input {
    background: var(--beige);
    font-family: var(--font-family);
}

textarea {
    background: var(--beige);
    font-family: var(--font-family);
}

@media screen and (max-width: 992px) {
    body { 
        width: 50%;
        display: block;
    }
    .projects {
        flex: 50%;
    }
}

@media screen and (min-width: 768px) {
    body {
        width: 100%;
        display: block;
    }
    .projects {
        flex: 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        width: 25%;
        display: block;
    }
    .projects {
        flex: 25%;
    }
} 

footer {
    background: var(--navy);
    margin-top: 30px;
    width: 100%;
    padding: 30px;
    text-align: center;
}

footer a {
    text-align: center;
}

footer img {
    max-width: 30px;
    max-height: 30px;
    background: var(--white);
    border-radius: 25%;
}