/* * {
    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;
}

main {
    width: clamp(30%, 50rem, 70%); 
    margin-top: 5vh;
    background-color: white;
    padding: 0 3rem 2rem 3rem;
}

h1 {
    text-align: center;
    margin: 1rem auto;
    padding: 0;
}

h2 {
    text-align: center;
    margin: .75rem auto;
    padding: 0;
}

#auth-date {
    display: flex;
    justify-content: space-between;
}

#auth {
    padding: .75rem .25rem;
    margin: 0;
}

#date {
    padding: .75rem .25rem;
    margin: 0;
}

#preface-toc {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-indent: 0;
}

.toc-item {
    list-style-type: none;
    margin: 0;
    text-indent: 0;
    padding: .5rem;
}

.toc-link {
    text-decoration: none;
    color: black;
    text-decoration: underline;
}

.toc-link:hover {
    color: white;
    background-color: #e1260f;
}

@media screen and (max-width: 750px) {
    #preface-toc {
        display: inline;
}
}