@font-face {
    font-family: "Times New Roman";
    src: url("../fonts/times-new-roman.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Times New Roman";
    src: url("../fonts/times-new-roman-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

a:visited,
a:active,
a:link {
    color: rgb(255, 204, 157);
    text-decoration: underline;
}
a:hover{
    color: rgb(218, 155, 96);
}

img {
    image-rendering: auto;
}

body {
    margin: 0;
    font-family: "Times New Roman", serif;
    font-size: 14px;
    color: rgb(255, 231, 213);
    background-color: #201e1b;
    background-image: url("https://images.unsplash.com/photo-1785294476300-e2828a05f7f7?q=80&w=860&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 5px;
    background-color: #25211f;
}

li:hover {
    background-color: #383d3d;
    color: white;
}

body.page-main,
body.page-gallery,
body.page-project,
body.page-blog,
body.page-blog-reading,
body.page-rice {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.page-blog {
    background-image: url("https://images.unsplash.com/photo-1510065323172-bd8a4e8ae1e2?q=80&w=1471&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    image-rendering: pixelated;
}
body.page-project {
    background-image: url("https://images.unsplash.com/photo-1439464678930-c157fd3823cc?q=80&w=1505&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    image-rendering: pixelated;
}
body.page-blog-reading {
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("https://images.unsplash.com/photo-1510065323172-bd8a4e8ae1e2?q=80&w=1471&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    image-rendering: pixelated;
}
body.page-rice {
    background-color: #000000;
    background-image: url("https://images.unsplash.com/photo-1604361709763-44f7fc6dd075?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    image-rendering: pixelated;
}
body.page-gallery {
    background-color: #000000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("https://images.unsplash.com/photo-1543000306-6b6ad192d18d?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    image-rendering: pixelated;
}

.titled {
    border-top: 1px dotted white;
    border-bottom: 1px dotted white;
    background-color: #474541;
    padding: 5px;
    font-size: 16px;
}
.titled-articles {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    border-top: 1px dotted white;
    border-bottom: 1px dotted white;
    background-color: #474541;
    padding: 5px;
}

.container {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 730px;
}

.topdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px
}

.header {
    width: 100%;
    height: 140px;
    border: 1px dashed white;
    background-image: url("../ress/header.webp");
    background-size: 650px;
    background-position: -20px -40px;
    display: flex;
    image-rendering: pixelated;
}

.sitetitle {
    align-self: flex-end;
    width: 100%;
    padding: 10px;
    font-size: 30px;
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.headerbox {
    font-family: "Times New Roman", serif;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 732px;
    height: 30px;
    border: 1px dashed white;
    background-color: #474541;
}

.headerbox-1 {
    background-color: #3a3835;
    padding: 5px;
    display: flex;
    gap: 10px;
}
.headerbox-1:hover {
    background-color: #1f1d1c;
    padding: 5px;
    display: flex;
    gap: 10px;
}


.flyinggif {
    position: relative;
    right: 270px;
    bottom: 200px;
}

.main {
    display: flex;
    justify-content: center;
    width: 100%;
}

.content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 800px;
    height: flex;
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
    overflow: auto;
}

.intro {
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
}

.article {
    padding: 10px;
    border: 1px dashed white;
    background-color: #0E0C0C;
    max-height: 600px;
    overflow-y: auto;
}

.main1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    height: 250px;
}

.leftcolumn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 550px;
}

.box2 {
    width: 210px;
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
    font-size: 14px;
}

.button-code {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 70px;
    margin: 6px 0;
    padding: 5px;
    resize: none;
    font-family: monospace;
    font-size: 10px;
    color: rgb(255, 231, 213);
    background-color: #0E0C0C;
    border: 1px dashed white;
}

.copy-btn {
    width: 100%;
    padding: 5px;
    font-family: "Times New Roman", serif;
    font-size: 14px;
    color: rgb(255, 231, 213);
    background-color: #3a3835;
    border: 1px dashed white;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #1f1d1c;
    color: rgb(218, 155, 96);
}

.box3 {
    height: 400px;
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
    overflow-x: auto;
}

.box4 {
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
}

.buh-thumb {
    float: right;
    width: 150px;
    margin-top: 5px;
}

.skunk-banner {
    width: 480px;
}

.blog-images {
    display: block;
    width: 480px;
    max-width: 100%;
    margin: 10px auto;
}

.sona-thumb {
    float: left;
    width: 140px;
    margin-top: 5px;
    margin-right: 5px;
}

.oink-gif {
    padding-bottom: px;
    height: 187px;
}

.gallery {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.gallery > h2 {
    margin: 0;
}

.done-link {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.shot {
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px dashed white;
    background-color: #25211f;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: auto;
}

.shot figcaption {
    font-size: 14px;
    text-align: center;
    color: rgb(255, 231, 213);
    margin: 0;
}

.rice-gallery {
    max-height: 600px;
    overflow-y: auto;
    padding-bottom: 0;
}

.sona {
    position: absolute;
    width: 170px;
    user-select: none;
    pointer-events: none;
}
.sonabigger {
    position: absolute;
    width: 280px;
    user-select: none;
    pointer-events: none;
}
.sonamedium {
    position: absolute;
    width: 200px;
    user-select: none;
    pointer-events: none;
}
.sonawide {
    position: absolute;
    width: 400px;
    user-select: none;
    pointer-events: none;
}

#s1  { top: 5%;  left: 2%; }
#s2  { top: 7%; left: 65%; }
#s3  { top: 10%; left: 35%; }
#s4  { top: 12%; left: 85%; }
#s5  { top: 55%; left: 10%; }
#s6  { top: 30%; left: 50%; }
#s7  { top: 50%; left: 75%; }
#s8  { top: 80%; left: 30%; }
#s9  { top: 25%; left: 45%; }
#s10 { top: 88%; left: 60%; }

@media (max-width: 800px) {
    body.page-main,
    body.page-gallery,
    body.page-project,
    body.page-blog,
    body.page-blog-reading,
    body.page-rice {
        display: flex;
        padding: 10px;
        min-height: 100vh;
    }
    .container {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .topdiv {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    .header {
        width: 100%;
        box-sizing: border-box;
        background-size: cover;
        background-position: 0px -20px;
        height: 100px;
    }
    .headerbox {
        width: 100%;
        text-align: left;
    }
    .headerbox > div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }
    .headerbox br + br {
        display: none;
    }

    .content {
        width: 100%;
    }

    .main1 {
        flex-direction: column;
        height: auto;
    }
    .leftcolumn {
        width: 100%;
    }
    .box2 {
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .box3 {
        height: auto;
    }
    .box4 {
        text-align: center;
        height: auto;
    }
    .article {
        height: auto;
        max-height: 70vh;
    }
    .buh-thumb,
    .sona-thumb,
    .oink-gif {
        float: none;
        display: block;
        width: 100%;
        max-width: 240px;
        height: auto;
        margin: 8px auto;
    }
    .buh-thumb {
        margin-top: 20px;
        margin-bottom: -10px;
    }

    .skunk-banner {
        display: none;
    }

    .gallery {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }
    .rice-gallery {
        max-height: 70vh;
    }
}

@media (max-width: 800px) {
    body.page-gallery {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
        gap: 12px;
        padding: 12px;
        box-sizing: border-box;
    }
    body.page-gallery img {
        position: static !important;
        width: 42% !important;
        max-width: 220px;
        height: auto;
    }
}