/* Imports */
@import url("../fonts/fonts.css");

::selection {
    color: #545454;
    background-color: #ffc77d;
}

code {
    font-family: "Roboto-Mono", sans-serif;
    background-color: #646eff;
    color: #ffc77d;
    border-radius: 3px;
    font-size: 18px;
    border-width: 3px;
    padding: 2px;
}

/* Body */
body {
    display: grid;
    grid-template-columns: 300px auto;
    max-width: 1700px;
    /* margin: auto; */
    padding: 0px;
    margin: 0px;
    background-color: #c8def7;
}

body p {
    color: #000000;
    font-family: "Rubik", sans-serif;
    font-size: 20px;
}

body h1 {
    font-size: 40px;
    font-family: "Figtree", sans-serif;
}

body h2 {
    /* padding-top: 24px; */
    font-family: "Figtree", sans-serif;
    font-size: 30px;
}

/* Main */
main {
    display: grid;
    max-width: 950px;
    text-align: left;
    /* margin-left: 300px; */
    margin-top: 0px;
    padding: 1px 30px;
    left: 0;
    /* top: 80px; */
    height: auto;
    /* position: absolute; */
    font-family: sans-serif;
}

main h1, h2, h3 {
    font-family: "Figtree", sans-serif;
}

main p {
    font-family: "Rubik", sans-serif;
}

main a {
    text-decoration: none;
}

h2.divider {
    display: flex;
    width: 100%;
    padding-right: 10px;
    padding-top: 25px;
}

h2.divider:after {
    border-bottom: 5px dotted;
    content: '';
    flex: 1;
    height: 0.6em;
    left: 7px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: sticky;
    /* z-index: 1; */
    top: 0;
    /* left: 0; */
    background-color: #181818;
    overflow-x: hidden;
    padding-top: 30px;
    padding-left: 85px;
    box-sizing: border-box;
    /* padding-left: 6px; */
}

.sidebar h1 {
    text-align: left;
    font-size: 35px;
    font-family: "Figtree", sans-serif;
    color: white;
}

.sidebar a {
    padding: 4px 8px 6px 0px;
    text-decoration: none;
    font-size: 20px;
    font-family: Rubik;
    display: block;
    color: #7e7e7e;
    transition: transform 0.1s cubic-bezier(0.165, 0.84, 0.44, 1)
}
.sidebar p {
    padding: 4px 8px 6px 0px;
    text-decoration: none;
    text-align: left;
    font-size: 15px;
    font-family: "Rubik", sans-serif;
    display: block;
    color: #f1f1f1;
}

.sidebar a:hover {
    color: #f1f1f1;
    transform: translate(3px);

}

.footer {
    position: fixed;
    text-align: left;
    bottom: 10px;
}

.sidebar_image {
    position: fixed;
    bottom: 0;
    top: 5;
    left: 0;
    opacity: 20%;
    user-select: none;
}

/* Horizontal Scrolling Image */
.sliding_img {
    background-image: url("../images/yaoi_button.png");
    width: 100%;
    height: 107px;
    position: sticky;
    display: block;
    margin-top: 20px;

    animation-duration: 3s;
    animation-name: slide-across;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-timing-function: linear;
}

@keyframes slide-across {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 499px 0px;
    }
}

/* Pages Grid */
section.pages_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    height: 100%;
    gap: 10px;
}

section.box_click {
    background-color: #181818;
    max-width: 275px;
    height: 100%;
    position: relative;
    display: block;
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    transition: background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box_click p {
    color: #ffffff;
    font-family: "Rubik", sans-serif;
}

.box_click:hover {
    background-color: #646eff;
    transform: translateY(-5px);
}

/* Formats */
section.image_blurb {
    display: flex;
    align-items: center;
    padding: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    background-color: #b3d2f5;
    max-width: 900px;
}

.image_blurb img {
    width: 100%;
    height: auto;
    max-width: 250px;
    padding: 15px;
    user-select: none;
}

@media screen and (max-width: 900px) {
    .sidebar {
        /* display: none; */
        position: relative;
        height: 150px;
        flex-direction: row;
    }

    .sidebar_image {
        display: none;
    }

    .sliding_img {
        margin-top: 70px;
    }

    body {
        grid-template-columns: auto;
        grid-template-rows: 100px auto;
    }
}


