/* 1. Ensure the body allows scrolling and has space for the footer */
body { 
    font-family: sans-serif; 
    background: #121212; 
    color: white; 
    padding: 15px; 
    margin: 0; 
    /* IMPORTANT: This must be larger than the footer height */
    padding-bottom: 200px; 
    overflow-y: auto !important; 
    height: auto;
}

/* 2. Ensure the container isn't clipping content */
.container { 
    max-width: 600px; 
    margin: 0 auto; 
    position: relative;
}

/* 3. The Footer - make sure it stays at the bottom without blocking clicks */
.footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: #1e1e1e; 
    padding: 15px; 
    border-top: 1px solid #333; 
    z-index: 100; 
}

/* Pause icon styles */
.pause-icon {
    position: fixed;
    top: 3%;
    right: 3%;
    width: 80px;
    height: 80px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    pointer-events: none;
    background-color: white;
    border-radius: 50%;
    border: 3px solid white;
}

.pause-icon.visible {
    opacity: 1;
}

/* Carousel container */
.carousel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-transform: translateZ(0);
}

/* Image styles with hardware acceleration */
.carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    min-width: 180px;
    min-height: 180px;
    width: auto;
    height: auto;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    -webkit-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.carousel img.active {
    opacity: 1;
}

.carousel a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Update these in your <style> block */

/* Find your .album-checkbox class and update it to this */
.album-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none; /* Ensures it doesn't interfere with clicks */
}
.album-card { 
    position: relative; /* So we can position the checkmark */
    background: #1e1e1e; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 2px solid transparent; 
    transition: all 0.2s;
}

/* When the checkbox is checked, highlight the card */
.album-checkbox:checked + .album-card { 
    border-color: #2196f3; 
    background: #263238; 
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5); 
}

/* Optional: Adding a checkmark icon that only shows when selected */
.checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none; /* Hidden by default */
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 12px;
}

.album-checkbox:checked + .album-card .checkmark {
    display: block; /* Show when checked */
}

.album-card:hover {
    transform: scale(1.02);
    border-color: #444;
}

/* If it's already checked, keep the blue border on hover */
.album-checkbox:checked + .album-card:hover {
    border-color: #2196f3;
}