body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

/*body {
    background-color: #1a1a1a;*/
/* Dark background color */
/*    color: #fff;*/
/* Light text color */
/*    font-family: Arial, sans-serif;
    padding: 20px;
}*/

.content {
    text-align: center;
    margin-top: 50px;
}

#loader {
    display: none;
    margin: auto;
    width: 480px;
    /* Increased to accommodate larger cube */
    height: 480px;
    /* Increased to accommodate larger cube */
}

#title-container {
    padding: 20px;
    text-align: center;
    background: #000;
}

#title-container h1 {
    font-size: xx-large;
    margin: 0;
}

#title-container p {
    font-size: 1.2em;
}

#animation-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

#search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 80%;
    max-width: 900px;
    /* Widen the search area */
}

#search-field {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
}

#search-button {
    background: #444;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

#search-button:hover {
    background: #555;
}

#tiles-container {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tile {
    width: calc(33.333% - 20px);
    max-width: 150px;
    height: 100px;
    border: 0.5px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
    position: relative;
}

.tile img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.tile .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

.tile:hover .overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.tile:hover {
    transform: scale(1.1);
    border-color: #ff00ff;
}

@media (max-width: 900px) {
    .tile {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .tile {
        width: 100%;
    }
}


.filter-title {
    display: flex;
    align-items: center;
    color: #ccc;
}


#filter-pane {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-logo {
    height: 40px;
    margin: 0 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    display: inline-block;
}

.filter-logo.selected {
    border-color: #4a90e2;
    /* Highlight selected filters */
}

#results-container {
    max-width: 800px;
    margin: 0 auto;
}

.entry {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #2d2d2d;
    /* Darker background for each entry */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: left;
}

.title {
    font-size: 1.2rem;
    /* Larger title font size */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.title a {
    color: #fff;
    /* Keep title link white */
    text-decoration: none;
}

.source-url {
    color: #4a90e2;
    /* Blue color for links */
    cursor: pointer;
    text-decoration: none;
    
    text-align: left;
}

.source-logo {
    height: 40px;
    /* Fixed height for logos */
    width: auto;
    /* Maintain aspect ratio */
    margin-bottom: 10px;
    object-fit: contain;
    /* Ensure the image fits within the given dimensions */
    align-self: flex-start;
    /* Align the logo to the left */
}

.description {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
    /* Add margin-bottom for spacing */
    text-align: left;
}

.hidden {
    display: none;
}