:root {
    --primary-color: #6d28d9;
    --secondary-color: #7c3aed;
    --background-dark: #0f172a;
    --surface-dark: rgba(45, 45, 45, 0.3);
    --text-light: #ffffff;
    --player1-color: rgba(96, 165, 250, 0.8);
    --player2-color: rgba(248, 113, 113, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    color: var(--text-light);
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite;
}

.shape:nth-child(1) {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: -5s;
}

.shape:nth-child(2) {
    background: var(--secondary-color);
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

.shape:nth-child(3) {
    background: var(--player1-color);
    width: 250px;
    height: 250px;
    top: 50%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }

    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
}

#game-container {
    margin: 20px auto;
    background: rgba(45, 45, 45, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(45, 45, 45, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
}

#game-board {
    position: relative;
    margin: 20px;
    transition: width 0.3s ease, height 0.3s ease;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.line {
    position: absolute;
    background-color: #4a4a4a;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.line:hover {
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 15px var(--secondary-color);
}

.line.horizontal {
    height: 4px;
    width: 50px;
    transform: translate(-50%, -50%);
}

.line.vertical {
    width: 4px;
    height: 50px;
    transform: translate(-50%, -50%);
}

.line.active {
    background-color: var(--primary-color);
}

.box {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%) scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    animation: boxComplete 0.3s ease forwards;
}

@keyframes boxComplete {
    from {
        transform: translate(-50%, -50%) scale(0); opacity: 0;
    }
    
    to {
        transform: translate(-50%, -50%) scale(1); opacity: 0.2;
    }
}

.player-info {
    margin: 10px 0;
    font-size: 18px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.player-card {
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(45, 45, 45, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.player-card.active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.player1-score {
    color: var(--player1-color);
}

.player2-score {
    color: var(--player2-color);
}

button, select {
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(109, 40, 217, 0.4);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

button:hover, select:hover {
    background-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* this shi is def noooooooooot good */