/* Base styling for body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #1e1e2f;
}

/* Container styling */
.container {
    text-align: center;
    background: #2e2e3f;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* Header styling */
.container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6f61;
}

/* Input and button styling */
input[type="text"], button {
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
}

/* Centered placeholder text */
input[type="text"]::placeholder {
    text-align: center;
}

/* Input styling */
input[type="text"] {
    background-color: #3a3a4f;
    color: #fff;
}

/* Button styling */
button {
    cursor: pointer;
    background-color: #ff6f61;
    display: flex;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 16px;
    width: 100%;
    max-width: 180px;
}

button:hover {
    background-color: #ff5733;
}

/* Button group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Ensure both buttons are identical */
.same-button {
    display: none;
    text-align: center;
}

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

/* Loading spinner styling */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff6f61;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    display: none;
    margin: 20px auto;
}

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