/* General body styling */
html {
    overflow-y: auto;
}

body {
    padding: 0;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background-image: url("bg.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.centered {
    text-align: center;
}

table {
    border-spacing: 0;
    margin: 0;
}

table td {
    padding: 0;
}

.gap {
    padding-right: 10px;
}

a:link, a:visited {
    color: rgb(145, 145, 252);
    text-decoration: none;
}

a:hover {
    color: white;
}

table.box {
    border-spacing: 0;
    margin: 0;
    width: 100%;
    background: rgba(30, 30, 46, 0.95);
    border-collapse: collapse;
    border-radius: 8px;
    margin: 0.5em 0em 1em 0em;
}

table.box th {
    background: rgb(58, 58, 136);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

table.boxForAnActualFuckingTable {
    border-spacing: 0;
    margin: 0;
    background: rgba(30, 30, 46, 0.95);
    border-radius: 8px;
    margin: 0.5em 0em 1em 0em;
}

table.boxForAnActualFuckingTable th {
    background: rgb(58, 58, 136);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

td.boxcontent {
    padding: 10px;
}

.slideshow-container {
    width: 80%; /* Controls the width of the slideshow container */
    margin: auto; /* Centers the slideshow container */
    position: relative; /* Needed for button positioning */
    overflow: hidden; /* Prevents images from overflowing the container */
}

.slides {
    display: flex; /* Use flexbox to align images horizontally */
    width: 100%; /* Takes up full width of the container */
    animation: moveLeft 15s infinite linear; /* Apply animation to move images */
}

@keyframes moveLeft { 
    0% {
        transform: translateX(0); /* Start at the initial position */
    }
    100% {
        transform: translateX(-100%); /* Move images to the left by their full width */
    }
}

.slide {
    flex-shrink: 0; /* Prevents images from shrinking */
    width: 50%; /* Resize images to take up 50% of the container width */
    max-width: 100%; /* Ensure images don't exceed container width */
    max-height: 300px; /* Set a maximum height for the images */
    object-fit: contain; /* Ensure images maintain aspect ratio while being contained within the bounds */
    transition: transform 0.5s ease-in-out; /* Smooth transition for any transform effects */
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.9rem;
    margin-top: 2rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}
