@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Foldit:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');


body {
    display: flex;
    flex-direction: column;
    background-color: #CAE6F2;
    color: black;
    font-family: "Nunito", serif;
    font-weight: 600;
    font-style: normal;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    min-height: 100vh;
}

footer {
    display: flex;
    justify-content:center;
    align-items: center;
    background-color: #0E2630;
    color: #A0C5D4;
    width: 100%;
    height: 60px;
}

    footer p {
        margin: 0px;
        text-align: center;
        font-size: 20px;
		text-shadow: rgba(0,255,208,1) 0px 0px 21px;
    }

header {
    background-color: #376476;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
    top: 0px;
    width: 100vw;
}

    header h1 {
        display: flex;
        align-items: center;
        background-color: #173F4F;
        border: 4px solid #A0C5D4;
        font-size: 30px;
        color: #A0C5D4;
        border-radius: 15px;
        height: 95%;
        width: 10%;
        text-align: center;
        font-family: "DM Serif Text", serif;
        font-weight: 400;
        font-style: italic;
        text-shadow: 0px 0px 5px #69AEC9;
        margin-left: 40px;
        flex-shrink: 0;
        justify-content: center;
    }

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 50%;
    height: 80%;
    margin: 0px 30px;
    flex-shrink: 0;
    background-color: #376476;
}

    nav .link {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0px;
        width: 20%;
        height: auto;
        background-color: transparent;
        border: 2px solid transparent;
        opacity: 1;
        transition: opacity 0.3s ease, border-color 1s ease;
    }

        nav .link a {
            color: white;
            font-weight: bold;
            font-size: 1.5em;
            text-decoration: none;
            text-shadow: 0px 0px 5px #69AEC9;
        }

        nav .link.active {
            animation: borderFadeIn 1s forwards;
        }

        nav .link:hover {
            opacity: 0.7;
        }

        nav .link.active:hover {
            opacity: 1;
        }

@keyframes borderFadeIn {
    0% {
        border-color: transparent;
        background-color: transparent;
    }

    100% {
        border-color: #A0C5D4;
        background-color: #173F4F;
    }
}

main {
    margin: 0px;
    padding: 0px;
    width: 100%;
    flex: 1;
}

.text p {
    font-size: 22px;
    color: black;
    line-height: 1.6;
    text-align: left;
    margin: 20px 5px;
}

.image img, .image iframe {
    border: 5px solid #335F71;
    border-radius: 10px;
    object-fit: cover;
    -webkit-box-shadow: 0px 0px 178px 11px rgba(1,151,221,0.48);
    -moz-box-shadow: 0px 0px 178px 11px rgba(1,151,221,0.48);
    box-shadow: 0px 0px 178px 11px rgba(1,151,221,0.48);
}

section {
    border-bottom: 5px solid #0E2630;
    padding: 15px 0px;
    width: 100%;
    height: auto;
}

    section:last-of-type {
        border-bottom: 0px solid #0E2630;
        padding: 5px 0px;
        margin-bottom: 60px;
    }

h2 {
    font-size: 36px;
    color: #376476;
    margin: 30px 0px 15px 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: left;
    text-shadow: rgba(1,151,221,0.74) 0px 0px 45px;
}

.hidden-link {
    text-decoration: none;
    color: transparent;
    opacity: 1;
}

    .hidden-link:hover {
        opacity: 0.5;
    }

span.bold{
    font-weight: bold;
}

.image {
    position: relative;
}

.description {
    font-style: italic;
    font-size: 18px;
    text-align: center;
    position: absolute;
    bottom: -50px;
}

@media screen and (max-width: 1081px) {

    header{
        height: 450px;
    }

    header h1{
        width: 20%;
        justify-content: center;
        align-items: center;
        height: 50%;
        font-size: xx-large;
    }

    nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-right: 30px;
        background-color: #376476;
    }

        nav .link {
            padding: 20px;
            background-color: #376476;
        }

    h2, h2.zag, h2.zig {
        text-align: center !important;
        padding: 0;
        margin: 0 !important;
        padding-top: 50px;
    }

    .index-page section {
        flex-direction: column;
        padding-left: 0px;
    }


    .index-page .text p {
        text-align: center;
    }

    .index-page .text.zig, .index-page .text.zag {
        padding-left: 20px;
        padding-right: 20px;
    }

    .index-page .text.zag p {
        text-align: center;
    }

    .index-page .image.zag, .index-page .image.zig {
        margin-left: 0px;
        margin-right: 0px;
    }

    .index-page section:nth-of-type(1) .image{
        margin-top: -50px;
    }

    .index-page section:nth-of-type(1) {
        align-items: center;
    }

    .education-page .image {
        padding-bottom: 0px;
    }
    .education-page .image a, .education-page .image iframe {
        width: 25%;
        height: 200px;
    }

    .hobby-page .image {
        flex-direction: column;
    }

    .achievements-page section {
        flex-direction: column;
    }

    .achievements-page .text {
        padding: 0;
    }

    .achievements-page .text p {
        text-align: center;
    }

    .description {
        bottom: -70px;
    }

    .contact-page .s2 .image img{
        transform: scale(1.1)
    }

}
