/* theme.css */
:root {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --font-family: 'Arial', sans-serif;
    --font-size-h1: 32px;
    --spacing: 8px;
    --button-padding: 10px 20px;
    --border-radius: 8px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#app {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding-top: 20px;
    box-sizing: border-box;
    background-color: #f5f5f5;
}
/* ✅ Center Content for All Viewports */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing);
}

/* ✅ Typography */
h1 {
    font-size: var(--font-size-h1);
    color: var(--primary-color);
    text-align: center;
}

/* ✅ Button Styling */
button {
    padding: var(--button-padding);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.primary {
    background-color: var(--primary-color);
    color: white;
}

button.secondary {
    background-color: var(--secondary-color);
    color: white;
}

button:hover {
    opacity: 0.9;
}

/* ✅ Responsive Grid Layout */
button {
    margin: var(--spacing);
}
.error-banner {
    padding: 12px;
    background-color: #e74c3c;
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ✅ Responsive Adjustments for Small Screens */
@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    button {
        width: 100%; /* Stack buttons vertically */
        font-size: 18px;
    }
}
