body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #6a1b9a, #8e24aa, #9c27b0);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
h1 {
    margin-top: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
form {
    margin: 20px 0;
    display: flex;
    justify-content: center; /* Center the form content */
    align-items: center; /* Center the form content vertically */
}
input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 300px;
    font-size: 1rem;
}
button {
    padding: 10px 20px;
    width: 100%;
    background-color: #512da8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}
button:hover {
    background-color: #673ab7;
}
table {
    width: 90%;
    max-width: 1000px;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
img.cover {
    border-radius: 5px;
}
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Optional: Add some space between the input and button */
}
.search-bar {
    width: 100%; /* Make the search bar full width */
    padding: 10px; /* Adjust padding as needed */
    box-sizing: border-box; /* Ensure padding is included in the width */
    margin-bottom: 10px; /* Add some space between the input and button */
}
.search-button {
    width: auto; /* Set the button width to auto */
    padding: 10px 20px; /* Add padding to the button */
    background-color: #512da8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Loading spinner styles */
.loading-spinner {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 10px;
    font-size: 1rem;
    color: white;
}

.button-spinner {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.button-spinner .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.message-scroller {
    display: none;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.error-message {
    color: red;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
