@font-face {
    font-family: FavoritLight;
    src: url(fonts/Favorit-Light.otf);
}
:root {
    --sans: FavoritLight;
}
*, html {
    scroll-behavior: smooth;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 20px 10px 0;
    gap: 50px 100px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 50px;
}
#sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 20px;
}
#sidebar a {
    color: #000000;
}
#sidebar a:hover {
    border-bottom: 1px solid #000000;
}
#currently-reading ul {
    font-size: 16px !important;
    text-indent: -16px;
    margin-left: 16px;
}
#reading-archive {
    margin-bottom: 20px;
}
h2 {
    margin: 0 0 20px 0;
    position: sticky;
    top: 0;
    padding: 20px 0 10px 0;
    z-index: 3;
    font-weight: 300;
    background: linear-gradient(to bottom, #ffffff 0%, #fffffff6 75%, #ffffff00 100%);
}
#content {
    box-sizing: border-box;
    padding: 0 20px 20px 40px;
    height: 100vh;
    overflow-y: scroll;
}
#content img {
    border-radius: 0;
}
.library-grid img {
    border-radius: 0px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 5px;
    border: 1px solid #ebebeb;

    filter: grayscale(100);

    transition: all 0.5s ease-in-out;
}
.library-grid div:hover > img {
    filter: grayscale(0);
    cursor: pointer;
}
.library-grid div {
    position: relative;
}
.stickers {
    display: flex;
    flex-direction: row;
    gap: 15px;

    position: absolute !important;
    right: -25px;
    top: -20px;

    z-index: 2;
}
.favorite-sticker {
    width: 50px !important;
    z-index: 2;
    border: 0px !important;
    filter: grayscale(0) !important;
    transform: rotate(15deg);
    transition: all 0.5s ease-in-out;

    /*position: absolute !important;
    right: -20px;
    top: -20px;*/
}
.coverstar {
    width: 50px !important;
    z-index: 2;
    border: 0px !important;
    filter: grayscale(0) !important;
    transform: rotate(15deg);
    transition: all 0.5s ease-in-out;

    /*position: absolute !important;
    right: 40px;
    top: -20px;*/
}
.library-grid div:hover > div > .favorite-sticker {
    transform: rotate(0deg) scale(1.35);
}
.library-grid div:hover > div > .coverstar {
    transform: rotate(0deg) scale(1.35);
}

/* TYPE */
.library-grid div span:nth-of-type(1){
    font-family: var(--sans);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    margin-bottom: 3px;
}
.library-grid div span:nth-of-type(2){
    font-size: 20px;
    display: block;
    margin-bottom: 0px;
}
.library-grid div span:nth-of-type(3){
    font-family: var(--sans);
    font-size: 12px;
    display: block;
    margin-bottom: 15px;
}
.library-grid div p {
    font-family: var(--sans);
    font-size: 12px;
    color: #696969;
}
.dnf {
    font-family: var(--sans);
    display: block;
    font-size: 12px;
    color: #8d8d8d;
    letter-spacing: 1px;
    padding-top: 10px;
    text-transform: uppercase;
}
#footer {
    height: 100px;
}
#sidebar {
    border-right: 1px solid #eeeeee;
}

@media screen and (max-width: 1150px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 800px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        display: grid;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    #reading-archive ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    #content {
        display: block;
        height: fit-content;
        position: relative;
        padding: 0;
        box-sizing: border-box;

        background-color: rgba(0, 128, 0, 0);

        width: calc(100vw - 0px);

        height: 100%;
        overflow-x: hidden;
    }
    #sidebar {
        display: block;
        position: relative;
        border-bottom: 1px solid #eeeeee;
        border-right: none;
        width: calc(100vw - 40px);
        margin: 0 0 50px 20px;
        box-sizing: border-box;
    }
    h2 {
        width: 100% !important;
        padding: 20px;
        position: relative;
    }
    #case-study-intro {
        margin-top: 10px;
        position: relative;
    }
    .library-grid img {
    filter: grayscale(0);
}
}