* {
    box-sizing: border-box;
    image-rendering: pixelated;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #faebd7b5 #3f2210;
    transition: 0.4s;
    margin: 0;
    padding: 0;
    font-family: 'WonderWords', sans-serif;
    line-height:16px;
}

@font-face {
    font-family: 'WonderWords';
    src: url("/manga-reviews/assets/WonderWords.ttf");
}

html {
    background: #d7a675;
    overflow-y: hidden;
}

header {
    margin: 6px 16px;
}

header h1{
  line-height:48px;
}

header p {
    line-height: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 1px;
}

h2 {
  line-height:24px;
  margin-bottom:12px;
}

a {
    color:#000000;
}

a:hover {
    color: #000000;
    letter-spacing:1px;
}

.divider {
    font-size: 20px;
    text-align: center;
    display: block;
    line-height:32px;
}

.notebook {
    display: grid;
    grid-template-columns: 400px 32px 140px;
    grid-template-rows: 482px;
    gap: 8px;
    grid-auto-flow: row;
    grid-template-areas: "leftpage spirals rightpage";
    height: 500px;
    width: 848px;
    padding: 8px;
    margin-left: 32px;
    background: #3f2210;
    border-radius: 12px;
    box-shadow: 4px 4px 4px #00000055;
}

.leftpage {
    grid-area: leftpage;
    border-radius: 4px;
    padding: 28px 20px 18px 20px;
    overflow-y: auto;
}

.spirals {
    grid-area: spirals;
    background-image: url("/manga-reviews/assets/spirals.png");
    background-size: 60px;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: -30px;
    margin-top: 8px;
    z-index: 1;
}

.rightpage {
    grid-area: rightpage;
    margin-left: -28px;
    padding: 12px 12px 24px 36px;
    border-radius: 4px;
    position: relative;
}

.rightpage ul {
    list-style-type: none;
    text-align: right;
    margin: 12px 0;
    line-height: 32px;
}

.rightpage img {
    width:100px;
    margin-left:12px;
    mix-blend-mode: multiply;
    opacity:0.9;
}

nav a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}
nav a:hover {
    letter-spacing: 2px;
    font-style: italic;
}

.credits {
    font-size: 14px;
    height: 120px;
    position: absolute;
    bottom: -12px;
}

.credits a {
    text-decoration: wavy underline;
    color: black;
}

.credits a:hover {
    font-style: italic;
}

.credits p {
    margin: 8px 0;
    line-height: 11px;
}

.page {
    background: antiquewhite;
    background-image: radial-gradient(#00000020 1px, transparent 0);
    background-size: 15px 15px;
    background-position: -12px -12px;
    box-shadow: 4px 4px 4px #00000055;
    font-size:18px;
}

table {
    border-collapse: collapse;
    width: 90%;
}

th,
td {
    text-align: left;
    padding: 2px;
}

td:nth-child(odd) {
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 16px;
}

.leftpage p {
    text-indent: 40px;
}

.leftpage ul {
    list-style-type: none;
    margin-left: 40px;
    line-height: 16px;
}

.leftpage ul li::marker {
    content: "➤ ";
    font-size: 14px;
}

.leftpage ol {
    list-style-type: upper-roman;
    margin-left: 40px;
}

.leftpage ol li::marker {
    font-weight: bold;
}

@media only screen and (max-width: 630px) {
    html {
        overflow-y: auto;
    }

    .hide {
        display: none;
    }

    .notebook {
        position:relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0px;
        grid-auto-flow: column;
        grid-template-areas:
            "rightpage"
            "spirals"
            "leftpage";
        width: 100%;
        height: auto;
        margin: 0;
    }

    .rightpage {
        text-align: center;
        margin: 0px;
        margin-bottom: 12px;
    }

    .rightpage ul {
        text-align: center;
    }

    .rightpage a {
        color: black;
        text-decoration: none;
    }

    .rightpage a:hover {
        font-style: italic;
    }
    
    .credits a {
    text-decoration: wavy underline;
    color: black;
}

.credits a:hover {
    font-style: italic;
}

    .spirals {
        grid-area: spirals;
        margin:-4px;
        background-image:none;
        margin:auto;
    }

    .spirals::before {
        content: "";
        position:absolute;
        top:-76px;
        left:45%;
        width: 50px;
        height: 477px;
        background-image: url("/manga-reviews/assets/spirals.png");
        background-repeat:no-repeat;
        background-size: 50px;
        background-position:center;
        transform: rotate(90deg);
        z-index:1;
    }

    table {
        width: 80%;
        margin: auto;
        margin-bottom: 16px;
    }
}

@media only screen and (max-width: 510px) {
    .spirals::before {
        background-size:44px;
        top:-76px;
    }
}

@media only screen and (max-width: 460px) {
    .spirals::before {
        background-size:40px;
    }
}

@media only screen and (max-width: 420px) {
    .spirals::before {
        background-size:34px;
    }
}

@media only screen and (max-width: 380px) {
    .spirals::before {
        background-size:32px;
    }
}

@media only screen and (max-width: 350px) { 
    .spirals::before {
        background-size:30px;
    }
}

@media only screen and (max-width: 320px) {
    header p {
        line-height: 12px;
    }
    
    .spirals::before {
        background-size:28px;
    }
}
