@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Press+Start+2P&family=Silkscreen:wght@400;700');

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

body {
    background: url('./img/background.png') no-repeat center center fixed;
    background-size: cover;
    background-size: 80%;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    font-family: "Silkscreen", cursive;
    font-weight: 400;
}

.game {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    transform: scale(0.75);
    transform-origin: top;
    width: 125%;
    top: 70px;
}

.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #3C3E52;
    padding: 8px;
    border-radius: 10px; 
}

.canvas {
    background-color: black;
    padding: 12px 15px;
    border-radius: 5px;
}

.canvas1 {
    background-color: black;
    padding: 12px 15px;
    border-radius: 5px;
    width: 150px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.canvas2 {
    background-color: black;
    padding: 12px 15px;
    border-radius: 5px;
    width: 180px;
    text-align: center;
}

.canvas-container span, .menu span {
    color: white;
    font-size: 20px;
}

.canvas-container .score-container, #score {
    font-size: 25px;
}

table {
    font-size: 20px;
    color: white;
}

.menu {
    position: absolute;
    left: 50.3%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #3C3E52;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 15px 30px;
    align-items: center;
}

.menu, button {
    padding: 10px;
    width: 200px;
    text-align: center;
    justify-content: center;
    font-size: 20px;
    font-family: "Silkscreen", cursive;
    margin: 5px;
    display: none;
}

#btn-start, #btn-pause, #btn-resume {
    font-family: "Silkscreen", cursive;
    font-size: 20px;
    width: 140px;
}

.controls td {
    border: 1px solid white;    
    padding: 5px;
    text-align: center;
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.right-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.score-animation.show {
    opacity: 1;
    transform: translate(-50%, -60%);
}

.title {
    position: absolute;
    font-family: "Press Start 2P", system-ui;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    justify-content: center;
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.color1 { color: red; }
.color2 { color: orange; }
.color3 { color: yellow; }
.color4 { color: green; }
.color5 { color: blue; }
.color6 { color: purple; }

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre elementos */
}

.toggle {
    position: relative;
    display: inline-block;
    width: 45px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 10px;
    left: 4px;
    bottom: 4px;
    background-color: black;
    transition: .4s;
}

input:checked + .slider {
    background-color: white;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

