:root, [data-theme="dark"] {
    --bg-color: #09002f;
    --card-bg: #120b3d;
    --text-color: #a1b1ff;
}

[data-theme="light"] {
    --bg-color: #f4f5fc;
    --card-bg: #cfd3ff;
    --text-color: #004EB9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-y: hidden;
}

.main {
    height: 100vh;
    width: 100vw;
    padding: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    height: calc(50vh - 24px);
    width: max-content;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    height: 100%;
    flex-shrink: 0;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    opacity: 0;
    transform: translateY(60px) scale(0.96);
    
    transition: 
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s ease;
}

.card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card h1 {
    font-family: "Space Grotesk", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 6rem;
    line-height: 1.1;
    color: var(--text-color);
    text-decoration: none;
}

.card p {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
}

.card i {
    color: var(--text-color);
    font-size: 8rem;
    text-decoration: none;
}

.card:hover h1{
    text-decoration: underline;
    text-decoration-thickness: 0.5rem;
    text-underline-offset: 0.7rem;
}

/* kinda little variations to make it look cool and not robotic typa */

.card.a {
    width: calc(80vw - 32px);
}
.card.d {
    width: calc(80vw - 32px);
}
.card.e {
    width: calc(80vw - 32px);
}
.card.h {
    width: calc(80vw - 32px);
}
.card.b {
    width: calc(60vw - 32px);
}
.card.c {
    width: calc(40vw - 32px);
}
.card.f {
    width: calc(40vw - 32px);
}
.card.g {
    width: calc(60vw - 32px);
}

.card.a {
    position: relative;
    overflow: hidden;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card.a .listen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    background: transparent;
    color: var(--text-color);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.card.a .listen-btn i {
    font-size: 2rem;
}

.card.a .track-front,
.card.a .track-back {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 4rem;

    text-align: center;
    transition: color 0.4 ease;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card.a .track-back {
    color: var(--text-color);
    z-index: 1;
}

.card.a .track-front {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    z-index: 3;
}

.card.a .record-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card.a .record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    
    background: 
        conic-gradient(from 0deg,
            transparent 0deg, rgba(255, 255, 255, 0.15) 40deg, transparent 90deg,
            transparent 180deg, rgba(255, 255, 255, 0.15) 220deg, transparent 270deg),
        repeating-radial-gradient(circle,
            rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px),
        var(--card-bg);

    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    
    animation: spin 8s linear infinite;
    animation-play-state: paused;
    transition: background-color 0.4s ease;
}

.card.a .record.playing {
    animation-play-state: running;
}

.card.a .record .label {
    width: 48%;
    height: 48%;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2px var(--card-bg);
    transition: border-color 0.4 ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}