body {
    background-color: #F3F4F6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
}

.title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    color: #1F2937;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
    color: #374151;
}

.search-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

.search-button {
    padding: 0.75rem;
    background-color: #4F46E5;
    color: white;
    border: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button:hover {
    background-color: #4338CA;
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

.loading {
    text-align: center;
    color: #6B7280;
    margin-bottom: 1rem;
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    color: #4F46E5;
    animation: spin 1s linear infinite;
}

.spinner-circle {
    opacity: 0.25;
}

.spinner-path {
    opacity: 0.75;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-container {
    display: flex;
    justify-content: center;
}

.results {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.image-link {
    display: block;
}

.side-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
    transition: opacity 0.2s ease;
}

.side-image:hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .side-image {
        width: 489px;
    }
}

.results > div {
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 1.5rem;
}

.results > div:last-child {
    border-bottom: none;
}

.results h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
}

.results a {
    color: #4F46E5;
    text-decoration: none;
    transition: all 0.15s ease;
}

.results a:hover {
    color: #312E81;
    text-decoration: underline;
}

.results p {
    margin-top: 0.25rem;
}

.results p:first-of-type {
    color: #6B7280;
    font-size: 0.875rem;
}

.results p:last-of-type {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.text-red-500 {
    color: #EF4444;
    text-align: center;
    font-weight: 500;
}

.text-gray-500 {
    color: #6B7280;
    text-align: center;
    font-weight: 500;
}

.hidden {
    display: none;
}