/**
 * COPYRIGHT 2023 Micah De Silva
 */

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #023047; /* Dark blue background */
    color: #ffffff; /* White text */
}

#titles-container {
    max-width: 800px; /* Set maximum width */
    margin: 0 auto; /* Center horizontally */
    background-color: #ffffff; /* Light blue background */
    border-radius: 10px; /* Rounded corners */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.title-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #219ebc; /* Lighter blue border */
    padding: 10px;
    font-size: 16px;
}

.title-item a {
    font-weight: bold;
    color: #111111; /* Orange color for links */
    text-decoration: none;
    flex-grow: 1;
}

.title-item a:hover {
    text-decoration: underline;
}

.rating {
    color: #111111; /* Yellow color for ratings */
    padding-left: 20px; /* Ensure some space between the title and rating */
    align-self: flex-end;
}

.tabs {
    text-align: center;
    margin-bottom: 20px;
}

.tab {
    background-color: #219ebc; /* Light blue */
    border: 0px solid #111111; /* Yellow border */
    border-radius: 5px; /* Rounded corners */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
}

.tab:hover {
    background-color: #023047; /* Dark blue on hover */
}

.tab.active {
    background-color: #fb8500; /* Orange for active tab */
}

#pagination-container {
    display: none; /* Hide pagination, using infinite scroll */
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey for loader background */
    border-top: 5px solid #fb8500; /* Orange for loader spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none; /* Hide loader initially */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .title-item {
        flex-direction: column;
        align-items: start;
    }

    .rating {
        padding-left: 0;
        padding-top: 10px;
    }
}
