@charset "utf-8";
@import url("https://api.fonts.coollabs.io/css?family=Nunito+Sans:ital,wght@0,100..900;1,100..900");

*, *::before, *::after {
    box-sizing: border-box;
  }

body {
    background-color: #7a6335;
    background-image: url("/images/screenshots/128parkave-dithered.webp");
    background-position: top center;
    font-family: 'Nunito Sans', 'sans-serif';
    overflow: auto;
}

header {
    display: flex;
    align-items: center;
    justify-self: center;
    position: fixed;
    width: fit-content;
    z-index: 1;
}

main {
    display: flex;
    flex-flow: row;
    justify-self: center;
    position: fixed;
    max-width: 1070px;
    width: 100%;
    height: 80%;
    margin-top: 80px;
    padding: 55px;
    font-size: 16px;
    background-color: rgba(223, 214, 197, 0.65);
    background-image: url(/images/backgrounds/60-lines.png);
    backdrop-filter: rgb(0, 0, 0) 0px 0px 5px;
    border-radius: 1%;
    border: 2px solid #ffffffa4;
}

.links {
    display: flex;
    flex-direction: row;
    margin-top: 70px;
    height: min-content;
}

button {
    background-color: white;
    height: 10%;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: larger;
    border-bottom: #000000 solid 4px;
    border-right: #000000 solid 4px;
    transition: all 0.1s;
}

button:hover {
    border-bottom: #000000 solid 1px;
    border-right: #000000 solid 1px;
}

.content {
    margin-left: 50px;
    padding: 10px;
    width: 100%;
    overflow-y: auto;
}

h1 {
    text-align: center;
    margin: 0;
}

h2 {
    margin: 0;
    margin-bottom: 15px;
    justify-self: center;
    max-width: fit-content;
}

h2:hover {
    transform: scale(1.05);
}

.categories {
    display: flex;
    flex-direction: column;
    width: 200px;
}

.category {
    cursor: pointer;
    width: 100%;
    transition: all 0.1s;
}

.category:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 2px) saturate(1.3);
}

.category:active {
    transform: scale(1);
    filter: brightness(1.1);
}

.keyart_collection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyart {
    display: flex;
    flex-direction: column;
    float: right;
    margin-bottom: 10px;
    height: fit-content;
    border: #ffffff solid 5px;
    box-shadow: #000000 5px 5px 0px;
    transition: all 0.1s ease-out;
}

.keyart:hover {
    transform: scale(1.03);
}

#fav {
    box-shadow: #000000 5px 5px 0px;
    transition: all 0.1s ease-out;
}

#fav:hover {
    transform: scale(1.03);
    box-shadow: yellow 5px 5px 0px;
}

#fav::before {
    font-size: xx-small;
}

#fav:hover::before {
    content: "⭐";
    font-size: small;
    background-color: black;
    text-align: center;
    transition: all 0.1s ease-out;
}

.keyart img {
    width: 150px;
}

.keyart p {
    margin: 0;
    padding-top: 5px;
    background-color: #ffffff;
    font-size: small;
    width: 150px;
    height: fit-content;
}

hr {
    border-radius: 5px;
    border: #ffffff solid 2px;
    margin: 15px;
}

.back {
    max-width: fit-content;
}

.cat {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #ffffffbb #ffffff00;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: #000000;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #ffffffbb;
    border-radius: 10px;
    border: 3px none #ffffff;
  }

@media (max-width: 768px) {
    main {
        flex-direction: column;
        max-width: 100%;
        height: 100%;
        padding-top: 15px;
        overflow: auto;
        border-radius: 5%;
    }
    h2 {
        position: sticky;
    }
    .categories {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 16px;
        justify-self: center;
        align-items: baseline;
        width: 100%;
    }
    .content {
        margin: 0;
        margin-top: 10px;
        margin-bottom: 120px;
    }
    .keyart_collection {
        flex-wrap: nowrap;
    }
}

@media (max-width: 425px) {
    .categories {
        grid-template-columns: repeat(2, auto);
    }
}