:root {
    --bg-color: #f0f0f0;
    --container-bg: #ffffff;
    --text-color: #333333;
    --input-border: #cccccc;
    --input-bg: #ffffff;
    --input-text: #000000;
    --button-bg: #008CBA;
    --button-hover: #007B9A;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M20 3.333L10 10v20l10 6.667L30 30V10L20 3.333zM10 10h20v20H10V10z'/%3E%3C/g%3E%3C/svg%3E");
}

.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --input-border: #444444;
    --input-bg: #3d3d3d;
    --input-text: #ffffff;
    --button-bg: #005f7a;
    --button-hover: #004a5f;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --bg-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 3.333L10 10v20l10 6.667L30 30V10L20 3.333zM10 10h20v20H10V10z'/%3E%3C/g%3E%3C/svg%3E");
}

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color), 0 6px 6px var(--shadow-color);
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    max-width: 90%;
}

h1, h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-btn {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#theme-btn:hover {
    background-color: var(--text-color);
    color: var(--container-bg);
}

.user-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.user-number {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 2px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--input-text);
    border-radius: 10px;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.user-number.match {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

#check-btn {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 140, 186, 0.4);
    transition: all 0.3s ease-in-out;
}

#check-btn:hover {
    background-color: var(--button-hover);
    box-shadow: 0 8px 25px rgba(0, 140, 186, 0.6);
    transform: translateY(-2px);
}

.results {
    margin-top: 2rem;
}

.winning-numbers-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.winning-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f44336;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
