* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    overflow: hidden;
}

/* Container principal do slideshow */
#slideshow {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    position: relative;
}

/* Imagem atual do slideshow */
#currentImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Título da categoria - posicionado no topo esquerdo */
#categoryTitle {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 32px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 100;
    background: #000;
    color: #fff;
    overflow: hidden;
}



/* LOADING */
.loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 100;
}

.loading p {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* GROUP SELECTOR */
.group-selector {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.group-selector.hidden {
    display: none;
}

.selector-container {
    text-align: center;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.selector-container h1 {
    font-size: 48px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
}

.group-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid white;
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.group-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.group-btn:active {
    transform: scale(0.98);
}

.group-number {
    display: block;
}

/* SLIDESHOW */
.slideshow {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 20;
    animation: fadeIn 0.5s ease;
}

.slideshow.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideshow-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-logo {
    height: 60px;
    width: auto;
}

.slideshow-header h2 {
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slideshow-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.counter {
    font-size: 20px;
    min-width: 100px;
    text-align: center;
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.indicators-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

/* FULLSCREEN */
.slideshow:-webkit-full-screen {
    background: #000;
}

.slideshow:-moz-full-screen {
    background: #000;
}

.slideshow:fullscreen {
    background: #000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .selector-container h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .groups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .group-btn {
        padding: 40px 20px;
        font-size: 20px;
    }

    .slideshow-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .slideshow-header h2 {
        font-size: 24px;
    }

    .header-logo {
        height: 50px;
    }

    .controls {
        gap: 30px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .counter {
        font-size: 16px;
    }

    .actions {
        gap: 10px;
        padding: 15px;
    }

    .action-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}
