@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url("https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css");

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    font-family: "Roboto", monospace;
    background-image: url("../img/wallpaper.png");
}

main {
    position: absolute;
    overflow: auto;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: -1;
    background: #11111187;
    color: #ffff;
    padding-bottom: 20px;
    padding: 150px calc(5% + 10px) 0 calc(5% + 10px);
}

main > article {
    margin-bottom: 50px;
    color: #ffffff;
}

main > article > h1 {
    font-size: 36px;
}

nav {
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    width: 90%;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    border-radius: 25px;
    background-color: #ffffff1a;
    backdrop-filter: blur(250px);
    border: 1px solid #ffffff84;
    text-align: center;
    line-height: 80px;
    font-family: "Space Mono", monospace !important;
}

nav > a {
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
}

nav > a:hover {
    text-decoration: underline;
}

article.cards {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

div.card {
    cursor: pointer;
    width: 285px;
    height: 425px;
    border-radius: 15px;
    background-color: #3b3b3b1a;
    backdrop-filter: blur(250px);
    border: 1px solid #ffffff84;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    transition: .3s all;
}

div.card:hover {
    background-color: #0000001a;
    transform: scale(1.01);
}

div.card > section {
    width: 100%;
    height: 50%;
}

div.card > section.thumbnail {
    width: 100%;
    height: 50%;
    text-align: center;
}

div.card > section.thumbnail > img {
    width: 90%;
}

div.card > section.thumbnail.avatar {
    background-size: cover;
    background-attachment: local;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-position: center center;
}

div.card > section.meta {
    user-select: none;
    padding: 17px 17px 17px 17px;
    word-break: keep-all;
    overflow: auto;
    max-height: calc((425px / 2) - 20px);
}

div.card > section.meta > b {
    margin-top: 10px;
    font-size: larger;
    margin-bottom: 20px;
}

div.card > section.meta > button.download {
    position: fixed;
    bottom: 17px;
    right: 17px;
    border: none;
    color: #ffffff;
    width: 117px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    background-color: #006AFF;
    transition: .3s;
}

div.card > section.meta > button.download:hover {
    background-color: #0062eb;
}

div.layer {
    position: absolute;
    top: calc((40px * 2) + 80px);
    left: 5%;
    background-color: #ffffff1a;
    backdrop-filter: blur(250px);
    border: 1px solid #ffffff84;
    right: 5%;
    bottom: 80px;
}

div.layer.comingSoon > article {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

div.layer.comingSoon > article > h1 {
    font-size: 48px;
    font-family: "Bowlby One", sans-serif;
}

div.layer.comingSoon > article > h3 {
    font-weight: normal;
}

a {
    text-decoration: none;
    transition: .3s all;
    color: #006AFF;
}

a:hover {
    color: #0062eb;
}

div.index {
    padding: 17px 71px 17px 17px;
}

div.index > div.item {
    width: 100%;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #ffffff84;
    border-top: 1px solid #ffffff84;
    background-color: #ffffff1a;
    user-select: none;
    transition: .3s all;
}

div.index > div.item > i {
    margin-left: 5px;
    margin-right: 5px;
}

div.index > div.item:hover {
    text-decoration: underline;
    background-color: #ffffff29;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
  
::-webkit-scrollbar-track {
    background: transparent;
}
  
::-webkit-scrollbar-thumb {
    border-radius: 15px;
    border: 1px solid #ffffff84;
    background-color: #ffffff1a;
    backdrop-filter: blur(250px);
}
  
::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff2d;
}

::-webkit-scrollbar-thumb:active {
    background-color: #ffffff3c;
}

@media screen and (max-device-width: 640px){
    nav {
        overflow: auto;
        clear: both;
    }
}