html {
    height: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Questrial", sans-serif;
    background-color: white;
    min-height: 100%;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    position: relative;
}

body a {
    text-decoration: none;
    cursor: pointer;
    color: black;
}

header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding-top: 3vh;
    display: inline-block;
    height: 20vh;
}

#home {
    text-align: center;
    font-family: "Dongle", sans-serif;
    font-size: 30px;
    color: rgb(171, 207, 185);
    line-height: 40px;

}


#home:hover {
    color: rgb(40, 66, 138);
}

#home:hover > .fa-pen-circle {
    color:rgb(171, 207, 185);
}

h2 {
    font-size: 25px;
}

nav{
    background-color: rgb(171, 207, 185);
    align-items: center;
    vertical-align: middle;
    text-align: center;
}

.nav-bar {
    list-style-type: none;
    padding-top: 1em;
    padding-bottom: 1em;
}

.nav-bar li {
    display: inline;
    padding-left: 2em;
    padding-right: 2em;
}

.icon {
    display: none;
}

.nav-item.active a{
    color: black;
}

.nav-item a {
    font-size: 20px;
    color: white
}

.nav-item a:hover {
    color: grey;
}

.page-content {
    padding-top: 15vh;
    padding-bottom: 5em;
}

.narrow-page {
    text-align: justify;
    font-size: 20px;
    padding-top: 10vh;
    margin: 0 auto;
    padding-left: 25%;
    padding-right: 25%;
}

/*Home Page*/
#main-home {
    margin: auto;
    background: white;
    height: 16vh;
    display: block;
}

#home-quote {
    font-size: 24px;
    color: rgb(40, 66, 138);
    vertical-align: middle;
    text-align: center;
    padding-top: 5vh;
    font-weight: normal;
}

#display-articles-label {
    font-size: 30px;
}

.display-articles {
    padding-top: 2vh;
    display: flex;
    flex-direction: row;
    padding-left: 8%;
    padding-right: 8%;
    margin: 0 auto;
}

.display-item {
    display: inline-flex;
    position: relative;
}

figcaption, figcaption>a {
    padding-top: 10px;
    text-align: center;
    font-size: 20px;
    color: rgb(40, 66, 138);
}

.home-page {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.home-page > figure {
    width: 30%;
}

.scroll-fig img {
    border-radius: 50%;
    object-fit: cover;
    width: 200px;
    height: 200px;
}

/* Writing Page */
.writing-header {
    text-align: left;
}
.writing-list {
    list-style-type: disc;
    text-align: left;
    color: black;
}
.article a {
    font-size: 20px;
    color: rgb(40, 66, 138);
}

.article {
    color: grey;
    padding: 5px 0;
}

/*Editing Page */
p a {
    text-decoration: underline;
}

/* Contact Page */
#contact-form {
    padding-top: 8vh;
    text-align: center;
}

.contact-text {
    font-size: 15px;
}

input {
    border-color: grey;
    border-width: thin;
    background-color: rgb(237, 239, 240);
    border-style: solid;
    width: 80%;
    height: 5vh;
    padding: 0;
}

input[class*='input-error']::placeholder {
    color: red;
}

input:focus {
    border-color: grey;
}

textarea {
    border: 2px solid grey;
    border-width: thin;
    resize: none;
    background-color: rgb(237, 239, 240);
    height: 30vh;
    width: 80%;
}

textarea[class*='input-error']::placeholder {
    color: red;
}

.input-error {
    border-color: red;
}

#submit {
    height: 5vh;
    text-align: center;
    cursor: pointer;
    border-color: grey;
    background-color: white;
}

#submit:hover {
    background-color: rgb(171, 207, 185);;
}

#submit-feedback {
    font-size: 20px;
    font-weight: bold;
}
/*About Page */
.about-pic img{
    float: left;
    padding: 2vh;
}

.about-pic img {
    width: 25%;
    height: auto;
}

.about-text {
    float: left;
}

/*Footer*/
footer{
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    height: 2vh;
    padding-bottom: 2em;
}


/*Mobile Responsivness */
@media (max-width: 480px) {

    .page-content {
        padding-top: 20vh;
    }

    .display-articles {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-bar li:not([class*='active']){
        display: none;
    }

    .responsive {
        position: relative;
    }

    .responsive li.nav-item {
        float: none;
        display: block;
        text-align: left;
    }

    .icon {
        display: block;
        float: left;
        color: white;
    }

    .nav-item a:hover {
        color: white;
    }

    .narrow-page {
        padding-left: 5%;
        padding-right: 5%;
        text-align: left;
    }

    .scroll-fig img {
        padding-bottom: 0;
        overflow: hidden;
    }

    figcaption, figcaption>a {
        font-size: 16px;
        color: rgb(40, 66, 138);
    }

    .home-page > figure {
        width: 75%;
    }

}


@media (min-width: 481px) and (max-width: 1024px) {
    .display-articles {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: row;
        width: 100%;
        padding: 0;
        margin: 0;
    }

}
