@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');

body {
    background: url("./res/background.png") no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: hue-rotate(0deg);

    font-family: 'Caveat', cursive;
}

h1 {
    font-family: 'Caveat', cursive;
    color: white;
    text-align: center;
    font-size: 35px;
    text-shadow: 2px 2px 6px #0000004a;
}

p {
    font-family: 'Caveat', cursive;
    color: white;
    text-align: center;
}

html, body {
    width: 100%;
    height: 100%;

    --accent: rgb(12, 136, 194);
    overflow: hidden;
}

.container {
    box-shadow: 5px 5px 3px 5px #00000010;
    background-color: rgba(0, 0, 0, 0.46);
    border-radius: 10px;
}

@media (min-width:700px)  {
    #assetCategory {
        position: absolute;
        left: 2%;
        top: 5%;
        width: 15%;
        height: 85%;
    }
    
    #assetPage {
        position: absolute;
        left: 18%;
        top: 5%;
        width: 45%;
        height: 85%;
        padding: 0px;
    }
    
    #assetSelected {
        position: absolute;
        left: 64%;
        top: 5%;
        width: 34%;
        height: 85%;
    }
    
    #footer {
        position: absolute;
        top: 91%;
        left: 5%;
        right: 5%;
        height: 8%;
    }

    #footer p {
        font-size: 25px;
        transform: translateY(20%);
    }
}


@media (max-width:700px)  {
    #assetCategory {
        position: absolute;
        left: 2%;
        top: 2%;
        width: 96%;
        height: 20%;
    }
    
    #assetPage {
        position: absolute;
        left: 2%;
        top: 23%;
        width: 96%;
        height: 35%;
        padding: 0px;
    }
    
    #assetSelected {
        position: absolute;
        left: 2%;
        top: 59%;
        width: 96%;
        height: 31%;
    }
    
    #footer {
        position: absolute;
        top: 91%;
        left: 2%;
        width: 96%;
        height: 8%;
    }

    #footer p {
        font-size: 15px;
        transform: translateY(70%);
    }
}

#assetCategory {
    overflow-x: hidden;
    overflow-y: auto;
}

#assetSelected {
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

#footer {
    text-align: center;
    font-size: 20px;
    font-family: 'Caveat', cursive;
    color: white;
    overflow: hidden;
    display: block;
}

#footer p {
    display: block;
    margin: auto;
}

#footer strong {
    color:rgb(228, 172, 172);
    text-decoration: underline;
}

hr {
    position: relative;
    top: -10px;
    border: 1px dashed white;
    border-radius: 5px;
    width: 75%;
}

#categoryTitle {
    position: relative;
    top: -15px;
    margin-top: 3px;
    margin-bottom: 3px;
}

#categoryTitle button {
    position: relative;
    border: none;
    width: 100%;
    background-color: transparent;
    color: white;
    text-align: center;
    font-size: 35px;
    text-shadow: 2px 2px 6px #0000002a;
    font-family: 'Caveat', cursive;
}

#categoryTitle button:hover {
    background-color: rgba(255, 255, 255, 0.234);
}

.active {
    background-color: rgba(255, 255, 255, 0.234);
}

#assets {
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-color: rgb(214, 214, 214) rgba(0, 0, 0, 0.423);
    scrollbar-width: thin;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    text-align: center;
}

.assetSquare {
    margin: auto;
    width: 90%;
    height: 400px;
    margin-top: 5px;

    border: 3px solid white;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.241);
    display: inline-block;
    box-shadow: 5px 5px 8px 5px #00000010;
    overflow: hidden;
    animation-name: appear;
    animation-duration: .1s;
    padding: 10px;
    cursor: pointer;
    transition-duration: 0.1s;
}

.itemActive {
    border: 5px solid rgb(23, 82, 184);
}

.assetSquare:hover {
    filter:brightness(1.2);
    opacity: 0.9;
    transform: scale(1.01);
}

.assetSquare h1 {
    font-weight: bold;
    position: relative;
    white-space: nowrap;
    white-space: pre;
}

.assetSquare img {
    position: relative;
    width: 100%;
    height: 80%;
    border-radius: 10px;
    object-fit: cover;
}

.assetSquare button {
    position: relative;
    left: 8%;
    width: 200px;
    border: none;
    background-color: transparent;
    color: var(--accent);
    font-family: 'Caveat', cursive;
    font-size: 25px;
}

#selectedName {
    position: relative;
    margin-top: 5px;
    margin-bottom: 5px;
}

#selectedImage {
    position: relative;
    width: 95%;
    height: 50%;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.441);
    border-radius: 25px;
    object-fit: cover;
    margin: auto;
}

#selectedDescription {
    font-size: 20px;
    opacity: 0.5;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 100;
}

.downloadButtons {
    text-align: center;
    margin: auto;
    display: block;
    width: 90%;
    border:none;
    color: white;
    font-size: 30px;
    font-family: 'Caveat', cursive;
    text-decoration: underline;
    background:none;
}

.downloadButtons:hover {
    opacity: 0.8;
    cursor:pointer;
    color: rgb(120, 169, 234);
}

.locked {
    opacity: 0.5;
}

.locked img {
    filter:blur(5px) saturate(0);
}

@keyframes appear {
    from {
        transform: scaleY(0);
        transform: translateY(-25px);
    }
    to {
        transform: scaleY(1);
        transform: translateY(0px);
    }
}


.discordLogo {
    width: 5px;
}

.readFont {
    font-family: "Itim", cursive;
}

.newTagList {
    opacity: 0.4;
}

.newTag {
    font-family: "Itim", cursive;
    background-color: rgb(62, 89, 144);
    padding: 7px;
    border-radius: 10px;
    opacity: 1;
    font-size: 17px;
    position: relative;
    top: -5px;
}