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

body {
    font-family: 'Jua', sans-serif;
    margin: 0;
    background: linear-gradient(to right, #6dd5ed, #2193b0);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-switcher {
    color: #fff;
}

.dark-mode .theme-switcher {
    color: #fff;
}

.language-switcher select {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 5px;
    font-family: 'Jua', sans-serif;
}

.language-switcher select option {
    background: #333;
    color: #fff;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#gameCanvas {
    background: #000;
    border-radius: 10px;
}

#replay-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    font-family: 'Jua', sans-serif;
    cursor: pointer;
    border: none;
    background: #ff416c;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

#replay-button:hover {
    background: #ff4b2b;
}

.dark-mode #replay-button {
    background: #1e90ff;
}

.dark-mode #replay-button:hover {
    background: #1c86ee;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    #gameCanvas {
        width: 95vw;
        height: calc(95vw * 2 / 3);
    }
}
