/* Slideshow Styles */
#slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

/* Transitions */
.slide.fade {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.fade.active {
    opacity: 1;
}

.slide.slide-transition {
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    opacity: 1;
}

.slide.slide-transition.active {
    transform: translateX(0);
}

.slide.slide-transition.exit {
    transform: translateX(-100%);
}

/* Ken Burns Effect */
@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.slide.ken-burns {
    animation: ken-burns 20s ease-out infinite alternate;
}

/* Controls */
#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* QR Code Container */
#slideshow-qr-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-label {
    color: white;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.qr-link {
    display: block;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.qr-link:hover {
    transform: scale(1.05);
}

#slideshow-qr-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Specific Buttons */
#logout-btn {
    top: 20px;
    right: 20px;
}

#fullscreen-btn {
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    padding: 0;
}

#exit-fullscreen-btn {
    top: 20px;
    right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Debug Overlay */
.debug-overlay {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #00ff00;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    padding: 10px;
    border-radius: 8px;
    z-index: 2500;
    pointer-events: none;
    min-width: 300px;
    max-width: 50vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    line-height: 1.2;
}

.debug-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.debug-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.debug-label {
    color: #aaa;
    font-weight: bold;
    flex-shrink: 0;
}

.debug-value {
    color: #fff;
    text-align: right;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.debug-value.highlight {
    color: #00ff00;
    font-weight: bold;
}

.debug-value.url {
    font-size: 0.9em;
    color: #888;
    max-width: 100%;
}

.debug-overlay hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 5px 0;
}