body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
}

.App {
    text-align: center;
    min-height: 100vh;
    background-color: #282c34;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

h1 span {
    font-weight: normal;
}

h2 {
    font-size: 1.5em;
    margin-top: 0;
    font-weight: normal;
}

form {
    margin: 2em auto;
    max-width: 300px;
}

input,
button,
.button {
    width: 100%;
    padding: 10px;
    margin-bottom: 1em;
    box-sizing: border-box;
}

button,
.button {
    background-color: #728a3f;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button:hover {
    background-color: #5a6e32;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

.image-container {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
}

.image-container .button {
    margin-bottom: 0;
}

img {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.logout {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
}

.download-all {
    max-width: 300px;
    margin: 0 auto;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Changed from auto to hidden */
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: fixed; /* Changed from absolute to fixed */
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002; /* Ensure it's above the image */
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    position: fixed; /* Changed from absolute to fixed */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 50px; /* Set a fixed width for nav buttons */
}

.prev {
    left: 10px; /* Move closer to the edge */
}

.next {
    right: 10px; /* Move closer to the edge */
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-info {
    background-color: #728a3f;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.folder-headline {
    display: block;
    background-color: #728a3f;
    color: white;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.2em;
}

.folder-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 0;
    margin: 0;
}

#downloadBtn {
    position: absolute;
    bottom: 10px;
    right: 30px;
    width: 200px;
    text-align: center;
}
