@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --bg-color: #f7f7f7;
    --text-color: #333;
    --container-bg: #ffffff;
    --accent-color: #4CAF50;
    --accent-hover: #45a049;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --ball-bg: #f0f0f0;
    --ball-text: #333;
    --pattern-opacity: 0.19;
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --container-bg: #2d2d2d;
    --accent-color: #66bb6a;
    --accent-hover: #81c784;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --ball-bg: #3d3d3d;
    --ball-text: #f0f0f0;
    --pattern-opacity: 0.05;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='var(--pattern-opacity)'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    margin-bottom: 1rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--container-bg);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
}
