body {
    margin:0;
    background-color: #e5e9e9;
}

nav {
    display: flex;
    background-color: #3769b1;
    justify-content: flex-start;
}

#standardNavbar ul {
    display: flex;
    align-items: flex-end;
}

#standardNavbar li {
    display: inline;
    color: #e5e9e9;
    padding: 10px 10px 0px;
    flex-basis: 220px;
    margin-bottom: 0;
}

#homeLogo {
    max-height: 100px;
}

.navlink {
    color: #e5e9e9;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    font-family: 'PT Sans', sans-serif;
}

.navlink:hover {
    text-decoration: underline;
}

#aboutlink {
    position:relative;
    left:20px;
}

#mobileTop {
    position: fixed;
    display:none;
    top:0;
    height: 60px;
    width: 100%;
    background-color: #3769b1;
    z-index: 1;
}

#mobileHomeLogo {
    position: relative;
    height: 100%;
    float:left;
 
}

#menuButton {
    position: relative;
    height:50%;
    float: right;
    padding: 5px;
    margin: 6px;
    border: 3px solid #e5e9e9;
    border-radius: 8px;
    background-color: #25334F;
}

#menuButton:hover, #menuButton:active {
    background-color: #6e718f;
}

#mobileNavbar {
    position: fixed;
    display:block;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    transform-origin: top;
    top:60px;
    width: 100%;
    transform: scaleY(0%);
    transition: 1s;
    z-index: 2;
}

#mobileNavbar a {
    position: relative;
    text-decoration: none;
    display: block;
    list-style: none;
    text-align: left;
    padding-left: 10%;
    font-family: 'PT Sans', sans-serif;
}

#mobileNavbar a:hover {
    background-color: #25334F;
}

.titleblock {
    position: relative;
}

.pagetitle {

    font-size: 2.9em;
    color: #3769b1;
    text-align: center;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    text-shadow: 1px 2px #25334F;
    margin:20px 20px 0px;
}

.pagesubtitle {
    font-size: 2.4em;
    color: black;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-weight: 600;
    margin:0;
}

main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

li {
    list-style: none;
    font-size: 1.5em;
    font-family: 'Merriweather', serif;
    margin:5px 0;
}

p {
    position: relative;
    top: 20px;
    font-size: 1.4em;
    font-family: 'Merriweather', serif;
    margin:15px;
}

.thumbnail {
    cursor: pointer;
}

.modal {
    display:none;
    position: fixed;
    left:0;
    top:0;
    padding-top: 50px;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}
.modalimg {
    margin:auto;
    display: block;
    max-width: 80%;
    max-width: 1200px;
    border: 3px solid black;
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1);}
}

.modal:target {
    display:block;
}

.closebutton {
    position: absolute;
    top:30px;
    right: 30px;
    /* float: right; */
    z-index: 3;
    background-color: black;
    color: #e5e9e9;
    font-size: 2em;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 700;
    padding: 5px;
}
.closebutton:hover, .closebutton:focus {
    cursor: pointer;
    background-color: #333;
}

.imgright {
    float:right;
    width:40%;
    padding: 15px;
    margin:0 20px;
    max-width: 600px;
    min-width: 400px;
}

.imgleft {
    float:left;
    width:40%;
    padding: 15px;
    margin: 0 20px;
    max-width: 600px;
    min-width: 400px;
}

/* .titleimg {
    flex-basis: 600px;
} */

#svcover {
    max-width: 500px;
    min-width: 350px;
    padding:20px 20px 20px 0;
}

figure img {
    max-width: 100%;
}
figcaption {
    font-family: 'Merriweather', serif;
    font-weight: 550;
}

section p {
    position:inherit;
}

.titlelist {
    flex-shrink:1;
    width: 50%;
}

#sv01 {
    display: flex;
    align-items: center;
    background-color: white;
}
#sv01 ul{
    padding-top: 30px;
    padding-right:10px;
}
#sv01 a {
    color:#3769b1;
    font-size: 1.7em;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    padding-bottom: 10px;
}
#titlelistlink {
    margin:5px 15px 5px 50px;
}
#sv06 {
    display:flex;
}
#sv06 img {
    max-width: 500px;
}

.footercontainer {
    position: relative;
    display: block;
    width: 100%;
    padding:15px;
    background-color: #3769b1;
    color:#e5e9e9;
    font-size: 12px;
    line-height: 18px;
}

.footercontainer a {
    color:#e5e9e9;
}

@media (max-width:900px) {
    #mobileTop {
        display: block;
    }
    #standardNavbar {
        display:none;
    }
    .titleblock {
        top: 60px;
        margin-bottom: 60px;
    }
    .pagetitle {
        font-size: 2.4em;
    }
    .pagesubtitle {
        font-size: 1.9em;
    }
    #sv01 {
        flex-direction: column-reverse;
    }
    #svcover {
        width: 90%;
        margin: auto;
        padding: 0px;
        float:none;
    }
    .titlelist {
        width:100%;
        margin: auto;
        padding-bottom: 15px;
    }
    #titlelistlink {
        margin-left: 50px;
    }
    figure {
        width: 95%;
        padding:5px 0px;
    }
    .imgright {
        float:none;
        margin:auto;
        min-width:95%;
        padding: 5px 0;
    }
    .imgleft {
        float:none;
        margin:auto;
        min-width: 95%;
        padding: 5px 0;
    }
    .thumbnail {
        width: 95%;
    }
    #sv01 ul {
        padding-top: 0;
        padding-left: 20px;
    }
    .titleimg a {
        margin-left: 5%;
    }
    #sv02 {
        display: flex;
        flex-direction: column;
    }
    #sv04 {
        display: flex;
        flex-direction: column-reverse;
    }
    #sv06 {
        flex-direction: column-reverse;
    }
    iframe {
        width: 95%;
        margin:auto;
    }
    .closebutton {
        top:10px;
        right: 10px;
        position:fixed;
    }
    .footercontainer {
        top:60px;
    }
}

@media (max-width:600px){
    .footerlinks {
        display:flex;
        flex-direction: column;
        max-width: 200px;
        padding-left:15px;
    }
    .footercontainer {
        padding:15px 0 15px 0;
    }
    .footercontainer span {
        padding-left:15px;
    }
}