 /* * {
    border: 1px solid red;
} */

@font-face {
    font-family: "ZenKakuGothicNew";
    src: url("/fonts/ZenKakuGothicNew-Light.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "ZenKakuGothicNew";
    src: url("/fonts/ZenKakuGothicNew-Regular.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "ZenKakuGothicNew";
    src: url("/fonts/ZenKakuGothicNew-Medium.ttf");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "ZenKakuGothicNew";
    src: url("/fonts/ZenKakuGothicNew-Bold.ttf");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "ZenKakuGothicNew";
    src: url("/fonts/ZenKakuGothicNew-Black.ttf");
    font-style: normal;
    font-weight: 900;
}

::selection {
    background-color:#e1260f;
    color: white;
}

body {
    font-size: 17px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-family: ZenKakuGothicNew, Inter, Arial, Helvetica, sans-serif;
    background-image: url(../resources/layered-waves-haikei.svg);
    background-position: initial;
    background-repeat: no-repeat;
    background-size: cover;
}

nav {
    width: clamp(30%, 50rem, 70%);
    background-color: white;
    padding: 0 3rem;
    margin: 0;
}

.nav-butt-row {
    display: flex;
    justify-content: space-between;
    height: fit-content;
    align-items: center;
    align-content: flex-start;
}

.arrow-butt {
    height: 3.5rem;
    width: 4rem;
    font-size: 2.75rem;
    text-align: center;
    text-decoration: none;
    padding: .25rem 1.5rem;
    width: 3rem;
    height: 3.5rem;
}

.arrow-right {
    background-image: url(../resources/Arrow_right_Pinhead_icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.arrow-left {
    background-image: url(../resources/Arrow_left_Pinhead_icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.nav-butt {
    font-size: 1rem;
    line-height: 3.5rem;
    text-align: center;
    border: 2px solid black;
    border-radius: 1.5rem;
    text-decoration: none;
    padding: 0 1.75rem;
    margin: 0;
    background-color: transparent;
}

.nav-butt:hover {
    cursor:pointer;
}

.top-butt {
    font-size: 1.5rem;
    line-height: 3.5rem;
    text-align: center;
    background-image: url(../resources/Arrow_up_Pinhead_icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 2rem;
    height: 2.5rem;
    text-decoration: none;
    padding: 0 1.5rem;
    margin: 0;
    background-color: transparent;
}

.nav-txt-row {
    display: flex;
    justify-content: space-between;
    padding: 0 0 1rem 0;
    margin: 0;
    text-align: left;
}

.nav-txt {
    padding: .35rem .25rem;
    margin: 0;
    font-size: .95rem;
    max-width: 14rem;
}

.align-r {
    text-align: right;
}

#nav-name {
    text-decoration: none;
    font-weight: 900;
    color: black;
}

#nav-name:hover {
    color: #e1260f;
    text-decoration: underline;
}

main {
    width: clamp(30%, 50rem, 70%);
    margin: auto auto 4rem auto;
    background-color: white;
    padding: 0 3rem 2rem 3rem;
    margin: 0;
}

p {
    line-height: 1.5;
}

li {
    padding: .35rem 0;
    margin: 0;
}

figure {
    border: 1px solid black;
    padding: 1rem 3rem;
    max-width: 80%;
    text-align: center;
    overflow: hidden;
}

img {
    border: 1px solid black;
    object-fit: contain;
    height: auto;
    width: auto;
    max-width: 45%;
    max-height: 100%;
}

img.wide {
    height: auto;
    width: auto;
    max-width: 80%;
    max-height: 100%;
}

figcaption {
    font-size: smaller;
}

.footnotes {
    margin: .2rem 0;
    font-size: smaller;
}

/* .footnotes:last-of-type {
    padding: 0 0 4rem 0;
} */

hr {
    margin: 2rem auto;
    width: 100%;
}

/* nav drop down stuff */

.nav-drop {
    display: flex;
    flex-direction: column;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    border: 2px solid black;
    background-color: white;
    margin-top: .25rem;
    border-radius: .5rem;
}

.nav-drop-link {
    padding: .5rem;
    text-decoration: none;
    color: black;
}

.nav-drop-link:hover {
    background-color: #e1260f;
    color:white;
}

.show {
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    
    #top-nav-row {
    display: block;
    }

    .nav-butt {
        position: fixed;
        top: .5rem;
        right: .5rem;
        height: 3.5rem;
        width: 3.5rem;
        background-image: url(../resources/Hamburger-.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 65%;
        background-color: white;
    }

    .nav-butt span {
        display: none;
    }

    .nav-butt:after {
        position: fixed;
        top: .5rem;
        right: .5rem;
        height: 3.5rem;
        width: 3.5rem;
        /* content: 'test'; */
    }

    .nav-drop {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 70vw;
        height: fit-content;
        padding: 2rem 0;
        margin: auto;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    img {
        max-width: 100%;
    }

    img.wide {
        max-width: 100%;
    }

    figure {
        width: 100%;
        margin: auto auto;
        padding: .5rem .5rem 1rem .5rem;
    }

}