:root {
    --primary-color: #ffffff;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;

    background-image: url('img/background_copia.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
}





.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.result-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-box p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
    }
    
    .calculator {
        padding: 1rem;
    }
    
    .results {
        grid-template-columns: 1fr;
    }
}

    body {
      background-color: #121212;
      color: #fff;
      font-family: 'Segoe UI', sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 40px;
    }

    h1 {
      font-weight: bold;
      margin-bottom: 10px;
    }

    .score {
      font-size: 1.2rem;
      margin-bottom: 20px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(4, 80px);
      grid-template-rows: repeat(4, 80px);
      gap: 10px;
      background-color: #333;
      padding: 10px;
      border-radius: 10px;
    }

    .cell {
      width: 80px;
      height: 80px;
      background-color: #444;
      color: #fff;
      font-size: 1.5rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
    }

    .cell[data-value="2"] { background-color: #eee4da; color: #333; }
    .cell[data-value="4"] { background-color: #ede0c8; color: #333; }
    .cell[data-value="8"] { background-color: #f2b179; }
    .cell[data-value="16"] { background-color: #f59563; }
    .cell[data-value="32"] { background-color: #f67c5f; }
    .cell[data-value="64"] { background-color: #f65e3b; }
    .cell[data-value="128"] { background-color: #edcf72; color: #fff; }
    .cell[data-value="256"] { background-color: #edcc61; color: #fff; }
    .cell[data-value="512"] { background-color: #edc850; color: #fff; }
    .cell[data-value="1024"] { background-color: #edc53f; color: #fff; }
    .cell[data-value="2048"] { background-color: #edc22e; color: #fff; }

    .btn-restart {
      margin-top: 20px;
    }

    #controls {
      text-align: center; 
      margin-top: 20px;
    }
    .control-btn {
      text-align: center;       
      width: 60px;
      height: 60px;
      font-size: 24px;
      margin: 5px;
      border-radius: 10px;
      border: none;
      background: #333;
      color: white;
    }
