#gallery {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 201;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#gallery-content {
    animation: fadeIn 0.2s ease-in forwards;
    /* Adjust time as needed */
    background-color: rgba(46, 44, 45, 0.562);
    min-height: 60%;
    height: 50%;
    width: 40%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: #ccc;
    opacity: 0;
    /* Ensures it starts hidden */
}



#gallery-header {
    font-size: 26px;
    background: #555;
    color: #fff;
    text-align: center;
}

#gallery-body {
    display: flex;
    min-height: 0;
}

#skinsUL {
    padding: 0;
    margin: 0;
    padding-left: 20px;
    padding-top: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    scrollbar-color: #9090a0 #fff;
    scrollbar-width: thin;
}

#useSkin {
    margin-top: 10px;
    background-color: #647fdd;
    border: none;
    outline: none;
    border-radius: 5px;
    width: 100%;
    height: 30px;
    font-size: 18px;
    font-weight: 500;
    color: #ccc;
    font-family: "Fredoka", serif;
}

#useSkin:hover {
    background-color: #4b67ca;
    transition: all .35s ease-in-out;
}

#skinsUL {
    scrollbar-color: grey transparent;
    scrollbar-width: thin;
}

/* For WebKit-based browsers */
#skinsUL::-webkit-scrollbar {
    width: 12px;
}

#skinsUL::-webkit-scrollbar-track {
    background: transparent;
}

#skinsUL::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 6px;
}

#skinsUL::-webkit-scrollbar-thumb:hover {
    background-color: darkgrey;
}



.skin {
    margin-right: 10px;
    margin-bottom: 10px;
    list-style-type: none;
    /* removes bullet point */
}

.circular {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(46, 44, 45, 0.5);
    background-repeat: no-repeat;
    background-size: 150px 150px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .8);
    border: 2px solid #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.skinName {
    padding-top: 4.35px;
    text-align: center;
    margin-bottom: 0;
    transition: all 0.2s;
    background-color: rgba(0, 0, 0, 0.39);
    height: 26px;
    border-radius: 5px;
    font-size: 18px;
}

.circular:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, .8);

}

.circular:hover+.skinName {
    text-shadow: 0 0 1px rgba(0, 0, 0, .8);
}

@keyframes borderGlow {
    0% {
        border-color: #ccc;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    }
    50% {
        border-color: #6fa8ff;
        box-shadow: 0 0 30px rgb(231, 233, 235), 
                    0 0 60px rgba(95, 36, 36, 0.8);
    }
    100% {
        border-color: #ccc;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    }
}

.circular {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(46, 44, 45, 0.5);
    background-repeat: no-repeat;
    background-size: cover;
    border: 2px solid #ccc;
    box-shadow: 0 0 8px rgba(0, 0, 0, .8);
    cursor: pointer;
    transition: transform 0.3s ease;
}


.circular:hover {
    transform: scale(1.05);
    animation: borderGlow 1.5s infinite ease-in-out;
}

.skinName {
    padding-top: 4.35px;
    text-align: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.39);
    height: 26px;
    border-radius: 5px;
    font-size: 18px;
}

.circular:hover + .skinName {
    text-shadow: 0 0 10px #6fa8ff;
    transform: scale(1.05);
}

