/* Variáveis de cor */
:root {
    --primary-color: #f6b60d;
    --dark-bg: #000000;
    --dark-text: #ffffff;
    --light-bg: #f6f6f6;
    --light-text: #222222;
    --shadow-color: rgba(0, 0, 0, 0.2); /* Sombra mais sutil */
}

/* Configuração do modo escuro e claro */
.dark-mode {
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
}

.light-mode {
    --bg-color: var(--light-bg);
    --text-color: var(--light-text);
}

body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s, color 0.5s;
    position: relative;
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* Barra superior */
.top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    border-radius: 5px; /* Curvatura suave */
    padding: 5px 10px; /* Pequeno padding */
}

.theme-toggle {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.top-bar img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.top-bar img:hover {
    transform: scale(1.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Estilo do título */
h1 {
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlideDown 0.6s ease-out 0.2s forwards;
}

p {
    font-size: 1.2rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.6s ease-out 0.4s forwards;
}

@keyframes fadeInSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Área de exibição central */
.image-display {
    width: 90%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #ccc;
    border-radius: 10px;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 3px 7px var(--shadow-color); /* Sombra mais sutil */
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out; /* Transição suave na troca de imagem (opcional JS) */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Botões de navegação arredondados na imagem central */
.prev, .next {
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    background: var(--shadow-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 3px 7px var(--shadow-color); /* Sombra mais sutil */
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1); /* Estado inicial sem zoom */
    z-index: 10;
    user-select: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
    left: 10px;
    right: auto;
}

.next {
    left: auto;
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Ligeiramente mais escuro no hover */
    color: var(--light-text);
    transform: translateY(-50%) scale(1.1); /* Efeito de zoom in no hover */
}

/* Galeria de imagens com sombras */
.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1220px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.8s forwards;
}

.gallery {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    width: auto;
    justify-content: flex-start;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

.gallery img {
    width: 150px;
    height: 84px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.2s ease-in-out; /* Transição na opacidade */
    box-shadow: 0px 3px 7px var(--shadow-color); /* Sombra mais sutil */
    user-select: none;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 10px var(--shadow-color); /* Sombra levemente maior no hover */
    opacity: 0.8; /* Levemente mais transparente no hover */
}

.prev-carousel, .next-carousel {
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    background: var(--shadow-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 3px 7px var(--shadow-color); /* Sombra mais sutil */
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1); /* Estado inicial sem zoom */
    z-index: 10;
    user-select: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 1;
    left: 10px;
}

.next-carousel {
    right: 10px;
    left: auto;
}

.prev-carousel:hover, .next-carousel:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Ligeiramente mais escuro no hover */
    color: var(--light-text);
    transform: translateY(-50%) scale(1.1); /* Efeito de zoom in no hover */
}

/* Rodapé */
.footer {
    position: fixed;
    bottom: 0;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    background: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
    z-index: 10;
    border-radius: 5px 5px 0 0; /* Curvatura suave na parte superior */
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        transform: translateY(20px);
    }
}

/* Estilos para telas menores (smartphones) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .image-display {
        margin-bottom: 30px;
    }

    .prev, .next {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .prev-carousel, .next-carousel {
        font-size: 0.8rem;
        width: 25px;
        height: 25px;
    }

    body {
        padding-bottom: 50px;
    }

    .footer {
        font-size: 0.8rem;
        padding: 8px 0;
        border-radius: 3px 3px 0 0; /* Curvatura menor em telas pequenas */
    }
}