/* Estilização geral */
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1, h3, h4 {
    text-align: center;
    color: #444;
}

nav.menu {
    background-color: #ffffff;
    color: white;
    padding: 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold; /* Deixa o texto em negrito */
    margin-right: 20px;
}

nav.menu a:hover {
    text-decoration: underline;
}

/* Conteúdo geral */
.content {
    padding: 20px;
}

/* Estilo dos álbuns */
.albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.album {
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    width: 500px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.album:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo das imagens do álbum */
.album-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Estilo para imagens dentro dos álbuns */
.album-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
}

.album-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.album-images img:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}


.uploaded-image-container p {
    font-family: 'Courier New', Courier, monospace;
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

/* Botões */
button {
    font-family: 'Courier New', Courier, monospace;
    display: block;
    margin: 10px auto;
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    background-color: #8a8a8a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button.back-button {
    background-color: #6c757d;
}

button.back-button:hover {
    background-color: #495057;
}

button.manage-button {
    background-color: #28a745;
}

button.manage-button:hover {
    background-color: #218838;
}

/* Painel de gerenciamento */
#add-remove-panel {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#add-remove-panel h3, #add-remove-panel h4 {
    text-align: left;
    margin-left: 10px;
}

#add-remove-panel input {
    font-family: 'Courier New', Courier, monospace;
    display: block;
    margin: 10px auto;
    padding: 8px;
    font-size: 14px;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Lightbox Container */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fundo escuro */
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    z-index: 1000;
}

/* Imagem no Lightbox */
#lightbox img {
    max-width: 90%; /* Limita a largura */
    max-height: 80%; /* Limita a altura */
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: auto; /* Garante centralização adicional */
    display: block; /* Garante que a imagem seja um bloco */
}

/* Legenda */
#lightboxCaption {
    color: white;
    font-size: 16px;
    margin-top: 10px;
    text-align: center; /* Centraliza o texto */
    max-width: 90%;
}

/* Botões de Navegação */
#lightboxPrev, #lightboxNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#lightboxPrev {
    left: 20px;
}

#lightboxNext {
    right: 20px;
}


/* Hover para botões */
#lightboxClose {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
}

#lightboxClose:hover {
    color: red;
}



/* Responsividade */
@media (max-width: 768px) {
    .albums {
        flex-direction: column;
        align-items: center;
    }

    .album {
        width: 90%;
    }

    .uploaded-image-container img {
        width: 100px;
        height: 100px;
    }

    button {
        width: 90%;
    }

    #add-remove-panel {
        width: 90%;
    }
}


