:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --accent-color: #0f3460;
    --text-color: #e94560;
    --highlight-color: #6fff7d;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

#game-container {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 500px;
    text-align: center;
}

#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-box {
    background-color: var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    min-width: 100px;
}

#sorting-area {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.bucket {
    width: 100px;
    height: 250px;
    border: 3px solid var(--text-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.bucket::before {
    content: attr(data-color);
    position: absolute;
    top: -25px;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: bold;
}

.bucket.highlight {
    border-color: var(--highlight-color);
    background-color: rgba(111, 255, 125, 0.1);
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

#ball-source {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 100px;
}

.game-button {
    background-color: var(--text-color);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.game-button:hover {
    background-color: var(--highlight-color);
    color: var(--bg-secondary);
}

#game-over {
    display: none;
    color: var(--text-color);
    font-size: 24px;
    margin-top: 20px;
}

#difficulty-selector {
    margin-bottom: 20px;
}

.difficulty-btn {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.difficulty-btn.active {
    background-color: var(--text-color);
    color: var(--bg-primary);
}

/* gng i cooked with this */