/* static/styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url(https://ki-club.org/wp-content/uploads/2023/09/ChatGPT-Basis-Kurs-1.png);
    background-size: cover;
    background-blur: 5px;
}

.video-list-container {
    max-height: 80vh; /* Adjust this value as needed */
    overflow-y: auto; /* Makes the list scrollable when content exceeds container height */
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form, .video-list-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    width: 50%;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    display: block; /* make labels take their own line */
    margin-top: 10px; /* add some space above the label */
}

input[type="text"], select, input[type="submit"], .video-list-container {
    width: calc(100% - 22px); /* subtract total left and right padding */
    padding: 10px;
    margin: 5px 0; /* adjust spacing between elements */
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #87459D;
    border: none;
    color: white;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

input[type="submit"]:hover {
    background-color: #763d8b;
}

table {
    width: 100%;
    max-height: 55vh; /* Adjust this value to leave room for the buttons */
    overflow-y: auto; /* Enable scrolling for the table */
    display: block; /* Needed to apply height and overflow to a table */
}

th, td {
    padding: 15px;
    text-align: left;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 10px; /* Add a bit of space between the table and buttons */
}

.button {
    background-color: #87459D;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.button:hover {
    background-color: #763d8b;
}

.credit {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 0;
    font-size: 12px;
}

.alert {
    color: #856404;
    background-color: #fff3cd;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
