html,
body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow: hidden;
}
canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Accessibility Menu Styles */
.a11y-menu {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 230px;
    background-color: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* Initially hidden */
}

.a11y-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.a11y-menu-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.a11y-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.a11y-close:hover {
    opacity: 1;
}

.a11y-menu-content {
    padding: 10px 15px 15px;
}

.a11y-menu-content h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.a11y-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.a11y-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.a11y-option input[type="radio"] {
    margin: 0;
    /* Make radio buttons more clickable on mobile */
    min-width: 18px;
    min-height: 18px;
}

.a11y-option label {
    cursor: pointer;
    font-size: 14px;
    /* Make entire row clickable */
    flex-grow: 1;
    padding: 3px 0;
}

/* Toggle Button Styles */
.a11y-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    align-items: center; /* Ensure vertical centering */
    gap: 0px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    padding: 8px;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.2s;
    flex-wrap: nowrap; /* Explicitly prevent wrapping */
}

.a11y-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.a11y-toggle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, red 0deg 120deg, green 120deg 240deg, blue 240deg 360deg);
    flex-shrink: 0;
    display: block;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .a11y-menu {
        width: 200px;
    }

    .a11y-option {
        gap: 6px;
    }

    .a11y-option input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }

    .a11y-option label {
        padding: 6px 0;
        font-size: 15px;
    }

    .a11y-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    /* Make the accessibility toggle button slightly smaller on mobile */
    .a11y-toggle {
        padding: 6px;
        top: 8px;
        right: 8px;
    }

    .a11y-toggle-icon {
        width: 22px;
        height: 22px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Record Player - From Uiverse.io by TheAbieza (modified) */
.record-player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.loading-text {
    font-family: Arial, sans-serif;
    color: #ababab;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    letter-spacing: 1px;
}

.record-container {
    width: 175px;
    height: 175px;
    background-color: #ababab;
    border-radius: 10px;
    position: relative;
    box-shadow: 5px 5px 0 0 #675d50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate {
    width: fit-content;
}

.plate .black,
.plate .white,
.plate .center,
.plate .border {
    border-radius: 100%;
}

.plate .black,
.plate .white,
.plate .border {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate .black {
    width: 150px;
    height: 150px;
    background-color: #675d50;
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.plate .white {
    width: 70px;
    height: 70px;
    background-color: #f3deba;
    position: relative;
}

.plate .center {
    width: 20px;
    height: 20px;
    background-color: #675d50;
}

/* Artist label on record */
.artist-label {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    pointer-events: none;
    overflow: visible;
}

/* SVG text styling */
.artist-label text {
    font-family: "Arial", sans-serif;
    font-size: 26px;
    font-weight: bold;
    fill: #675d50;
    text-transform: uppercase;
}

.plate .border {
    width: 111px;
    height: 111px;
    border-top: 3px solid #f3deba;
    border-bottom: 3px solid #f3deba;
    border-left: 3px solid #675d50;
    border-right: 3px solid #675d50;
}

.player {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 8px;
    margin-right: 8px;
    transform: rotate(-45deg);
}

.player .circ {
    width: 25px;
    height: 25px;
    background-color: #797979;
    border-radius: 100%;
    z-index: 1;
}

.player .rect {
    width: 10px;
    height: 55px;
    background-color: #797979;
    position: absolute;
    bottom: 0;
    margin-bottom: 5px;
}
