html {
    background-color: #36454F;
    font-family: 'Roboto', sans-serif;
    color: white;
    font-size: 100%;
    padding: 1vw;
    box-sizing: border-box;
}

body {
    width: 98%;
    margin: auto;
    font-size: calc(1rem + 0.75vw);
    background-color: #36454F;
    color: white;
}

:focus {
    outline: 2px solid white;
}

header {
    background-color: #36454F;
}

.ban {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.icon img.logo {
    flex: 0 0 auto;
    width: 189px;
    height: 93px;
}

.bantext {
    flex-grow: 1;
    text-align: center;
    color: white;
    font-size: calc(1.5vw + 1.5rem);
}

nav {
    background-color: #36454F;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topnav {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.alink, .ilink {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 3px;
}

.alink {
    background-color: white;
    color: #36454F;
}

.alink a:link { color: #31414A; }
.alink a:visited { color: #36454F; }
.alink a:hover { color: #36457F; }
.alink a:active { color: #36454F; }

.ilink {
    background-color: #36454F;
    color: white;
}

.ilink a:link { color: silver; }
.ilink a:visited { color: #d5d5d5; }
.ilink a:hover { color: #d5d5f5; }
.ilink a:active { color: #d5f5d5; }

a:link { color: silver; }
a:visited { color: #D5D5D5; }
a:hover { color: #D5D5F5; }
a:active { color: #d5f5d5; }

.bread {
    background-color: silver;
    color: black;
    text-align: left;
    font-size: calc(1.25rem + 0.5vw);
    text-indent: 50px;
    width: 100%;
    margin-top: 5px;
}

main {
    line-height: 1.6;
    background-color: #36454F;
    color: white;
    border-style: solid;
    border-color: white;
}

.article-image, .thumbnail {
    width: 100px;
    height: auto;
    float: left;
    margin-right: 20px;
    position:relative;
}

.article-image::after, .thumbnail::after {
    content: "\1F50D";
    position:absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    display: block;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    font-size: 30px;
    color: #fff;
}

#caption {
    text-align: center;
    color: #ccc;
    padding: 10px;
    font-size: 1.2em;
}

footer {
    background-color: black;
    color: white;
    padding: 20px;
    border-top: 1px solid #ffffff;
    display: flex;
    align-items: center;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-logo {
    flex-shrink: 0;
    height: 60px;
    width: auto;
    padding-left: 20px;
}

footer a {
    color: silver;
    font-size: 1.2rem;
    padding: 8px 12px;
    text-decoration: none;
}

footer a:hover, footer a:focus {
    background-color: #36454F;
    outline: none;
    color: white;
}

@media (max-width: 600px) {
    nav, .topnav {
        flex-direction: column;
        align-items: center;
    }

    .alink, .ilink {
        width: 100%;
        padding: 10px;
    }

    .profile-photo-bio, .profile-details {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (min-width: 600px) {
    .profile-photo-bio, .profile-details {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

.profile-photo-bio img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* --- UX Improvements Below --- */

.success {
    background-color: #ddffdd;
    border: 2px solid #00aa00;
    color: #003300;
    padding: 10px 20px;
    margin: 15px auto;
    width: 95%;
    border-radius: 4px;
    font-weight: bold;
}

.error {
    background-color: #ffdddd;
    border: 2px solid #cc0000;
    color: #550000;
    padding: 10px 20px;
    margin: 15px auto;
    width: 95%;
    border-radius: 4px;
    font-weight: bold;
}

input[type="submit"] {
    background-color: #0088cc;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: #006fa1;
}

form input, form select, form textarea {
    margin-bottom: 10px;
    width: 100%;
    max-width: 500px;
    background-color: #2a3840;
    color: white;
    border: 1px solid #7a9aaa;
    border-radius: 3px;
    padding: 6px 8px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 20px;
    background-color: #2f3b45;
    border-radius: 5px;
}

legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    padding: 0 10px;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus {
    top: 10px;
}
