body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#login-page, #main-page, #all-images-page, #slideshow {
    width: 90%;
    max-width: 1200px;
    background-color: #444;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
}

h1, h2 {
    font-family: 'PT Serif', serif;
    color: lightblue;
    font-size: 250%;
    text-align: center;
}

input, button, textarea {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    color: #333;
    border: none;
}

button {
    background-color: white;
    color: #333;
    cursor: pointer;
}

button:hover {
    background-color: lightgray;
}

.section {
    margin: 1.5cm 0;
    width: 100%;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm;
}

#gallery .image-container {
    position: relative;
    width: calc(33.33% - 2mm); /* 3 images per row with 1mm margin */
}

#gallery img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure images maintain aspect ratio */
}

#all-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm;
}

#all-images .image-container {
    position: relative;
    width: calc(20% - 2px); /* 5 images per row with 1mm margin */
}

#all-images img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure images maintain aspect ratio */
}

#all-images .image-container button {
    position: absolute;
    background-color: rgba(128, 128, 128, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
}

#all-images .image-container .delete-button {
    top: 0;
    right: 0;
    width: 10mm;
    height: 10mm;
    line-height: 10mm;
}

#all-images .image-container .download-button {
    bottom: 0;
    right: 0;
    width: 10mm;
    height: 10mm;
    line-height: 10mm;
}

#urlaub-table th, #urlaub-table td {
    text-align: center;
    vertical-align: top;
    word-wrap: break-word;
}

#urlaub-table textarea {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    overflow: hidden;
}

.zusage {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.zusage div {
    display: flex;
    align-items: center;
}
.zusage label {
    margin-left: 5px;
}

#nonsense-text {
    font-size: 2em;
}

#slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    display: flex;
    align-items: center;
}

#slideshow img {
    max-width: 90%;
    max-height: 80%;
}

#prev, #next, #close {
    position: absolute;
    top: 50%;
    font-size: 2em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

#close {
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    transform: translateY(0);
}

.delete-button {
    width: 20px;
    height: 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
}
