html,
body {
    height: 100%;
    overflow: auto; /* Alterado de hidden para auto */
}

body {
    background-color: #080b0e;
    color: #8b8b8b;
    font-family: "Courier New", monospace;
    margin: 0;
    line-height: 1.6;
    /* Removido: justify-content: center; align-items: center; */
}

li {
    list-style: none;
}

.terminal {
    max-width: 1000px;
    margin: 50px auto;
    border: 1px solid #1a1a1a;
    padding: 20px;
    background-color: #060809;
    box-shadow: 0 0 10px #1a1a1a;
}

.header {
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.cmd-div {
    margin: 5px 0 0 20px;
    padding-bottom: 10px;
}

.blink {
    animation: blink 1s infinite;
}

.prompt {
    color: #00ff00;
    margin-right: 10px;
}

.command {
    color: #8b8b8b;
}

.output {
    margin: 20px 0;
    text-align: center;
}

.subpages-output {
    margin: 20px 0;
    text-align: left;
}

.mail {
    color: #00ffff;
}

.hello-world {
    font-size: 2.5em;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    margin: 30px 0;
    font-weight: bold;
}

.info-colorful {
    font-size: 1em;
    color: #0dff19;
    text-shadow: 0 0 5px #0dff19;
    text-align: left;
    margin: 30px 0;
    font-weight: bold;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.file-list {
    margin: 20px 0;
    padding-left: 20px;
    text-align: left;
}

.file-list li {
    margin: 5px 0;
}

.footer {
    padding-top: 10px;
    margin-top: 20px;
    text-align: right;
    font-size: 1em;
}

.status {
    font-size: 1em;
    color: #7bbd4d;
    text-shadow: 0 0 5px #7bbd4d;
}

.highlight-links {
    color: #00ffff;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

/* ===== ESTILOS ESPECÍFICOS PARA A GALERIA ===== */

.gallery-container {
    margin: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: #0a0d10;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* REMOVIDO: Legendas das fotos */
/* .gallery-item .filename {
    padding: 8px;
    font-size: 0.8em;
    text-align: center;
    color: #8b8b8b;
    background-color: #0a0d10;
    border-top: 1px solid #1a1a1a;
} */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: transform 0.1s ease;
    cursor: zoom-in;
    transform-origin: center center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-close:hover {
    color: #ff00ff;
    background: rgba(0, 0, 0, 0.7);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10001;
}

.modal-nav:hover {
    background-color: rgba(0, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* REMOVIDOS: Estilos dos controles de filtro e ordenação */
/* .gallery-controls { ... } */
/* .search-box { ... } */
/* .sort-options { ... } */

.empty-gallery {
    text-align: center;
    padding: 40px;
    color: #8b8b8b;
    font-style: italic;
    grid-column: 1 / -1;
}
