/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212; /* Dark background */
    color: #fff; /* White text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Container */
.container {
    background-color: #1f1f1f; /* Slightly lighter background */
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Header */
h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff66b2; /* Soft pink color for a valentine's touch */
    font-weight: bold;
}

/* Error Message */
#error {
    color: #ff4d4d; /* Red color for error messages */
    margin-bottom: 20px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    transition: border 0.3s ease;
}

input[type="text"]:focus {
    border-color: #ff66b2; /* Soft pink border when focused */
    outline: none;
}

input[type="submit"] {
    padding: 12px;
    font-size: 1rem;
    border: none;
    background-color: #ff66b2;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #ff3385; /* Darker pink on hover */
}

/* Meme Image */
#memeseme {
    margin-top: 20px;
    max-width: 100%;
    border-radius: 8px;
    display: none;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    color: #fff;
}

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

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

/* Responsive Design */
@media (max-width: 500px) {
    h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 20px;
    }

    input[type="text"], input[type="submit"] {
        font-size: 0.9rem;
    }
}
