/* Overrides for mobile viewports */

#menubtn {
    display: none;
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    color: white;
    background-color: transparent;
    border: none;
    height: 3rem;
    width: 3rem;

}

#menubtn svg {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 2rem;
    height: 2rem;
}

#h-name {
    display: none;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        font-size: 1.1rem;
    }

    .slideshow .slide {
        max-width: 90dvw;
        max-height: 20dvh;
    }

    .header-show {
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

    #nav {
        display: none;
        flex-direction: column;
        justify-items: center;
        justify-content: center;
        animation: navshow 200ms ease-in reverse;
    }

    header nav a,
    header nav a:visited {
        font-size: 2rem;
    }

    .nav-show {
        display: flex !important;
        animation: navshow 200ms ease-in forwards;
    }

    #menubtn {
        display: block;
    }

    #h-name {
        display: block;
        line-height: 4rem;
        padding-left: 1rem;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .flexbtn-container {
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }

    .split-section {
        flex-direction: column-reverse;
    }

}

@keyframes navshow {
    0% {
        display: flex;
    }

    1% {
        opacity: 0;
        display: flex;
    }

    100% {
        opacity: 1;
        display: flex;
    }
}

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

    .contact-row svg,
    .contact-row img {
        width: 2rem;
        height: 2rem;
    }

    .contact-row {
        font-size: 1rem;
        gap: 0.5rem;
    }

    section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}