@import url('https://fonts.googleapis.com/css2?family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');

* {
    font-family: "Winky Rough", sans-serif;
    user-select: none;
    color: aliceblue;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: #001;
    background: url(https://www.toptal.com/designers/subtlepatterns/uploads/darkness.png);
    animation: waterfall 10s linear infinite;
    will-change: background-position;
    opacity: 0;
    transition: opacity 1s ease-out;
    overflow-x: hidden;
    padding-top: 2em;
    padding-bottom: 2em;
}

body.fade-in {
    opacity: 1;
}

i {
    font-style: italic;
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    background: #f2f2f2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.back-arrow:hover {
    background: #ddd;
    transform: scale(1.1);
}

@keyframes waterfall {
    from {
        background-position: center 0;
    }

    to {
        background-position: center 400px;
    }
}

h1 {
    font-size: 35px;
    margin-bottom: 0.5em;
    text-shadow: 3px 3px 4px gray;
}

h2 {
    text-shadow: 2px 2px 4px gray;
    font-size: 1.6rem;
}

p {
    font-size: 20px;
    margin-bottom: 0.2em;
    text-shadow: 2px 2px 4px gray;
}

main {
    display: flex;
    flex-direction: column;
    max-width: 80vw;
    align-items: center;
    justify-content: center;
}

#header-text {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    justify-content: left;
}

#bumpy-div {
    height: 60vh;
    width: 80vw;
}

#buttons {
    padding: 1em;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.shuffle-button,
.patreon-button {
    font-size: 20px;
    border: 2px solid black;
    color: #000;
    box-shadow: 2px 2px 5px black;
    font-weight: bold;
}

.shuffle-button {
    background-color: lightcoral;
}

.patreon-button {
    background-color: lightgreen;
}

#album-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #111;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 1.2rem 1.2rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

#album-panel.open {
    transform: translateX(0);
}

#panel-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

#backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

#backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.panel-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#panel-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#panel-title {
    margin: 0;
}

#panel-genres {
    font-size: 1.1rem;
    opacity: 0.9;
}

#panel-link {
    display: inline-block;
    background: lightgreen;
    color: #000;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-weight: 700;
}

#index-big-div {
    min-height: 40vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
}

#index-big-div>a {
    text-decoration: none;
}

.index-card {
    transition: transform 0.3s ease;
    min-width: 15vw;
    max-width: 15vw;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 1em;
    background-color: transparent;
    padding-top: 2em;
    padding-bottom: 2em;
}

.index-card>* {
    cursor: pointer;
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 400% 0%;
    }
}


.index-card:hover {
    transition: transform 1s ease;
    background: repeating-linear-gradient(90deg,
            rgba(255, 0, 0, 0.5) 0%,
            rgba(255, 165, 0, 0.5) 14.2%,
            rgba(255, 255, 0, 0.5) 28.4%,
            rgba(0, 255, 0, 0.5) 42.6%,
            rgba(0, 255, 255, 0.5) 56.8%,
            rgba(0, 0, 255, 0.5) 71%,
            rgba(238, 130, 238, 0.5) 85.2%,
            rgba(255, 0, 0, 0.5) 100%);
    background-size: 400% 100%;
    background-repeat: repeat-x;
    transform: scale(1.05);
    animation: rainbow-shift 15s linear infinite;
}

.index-card-icon {
    font-size: 10em;
}

.index-card-title {
    font-size: 2em;
}

#album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5em;
    width: 80vw;
    margin-top: 2em;
}

.album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    padding: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
}

.album-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.album-title {
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 2px 2px 4px gray;
}