
canvas {
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding-top:3%;
  max-width:800px;
  width: 100%;
  margin-bottom:40px ;
}
.metegol{    
   --color-principal:#009251;
   --color-secundario:#FFD83B;
    
}
.metegol #startScreen  {
    position: none;
    top: 0;
    left: 0;
    background-color:var(--color-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px;
    padding: 20px;
    align-self: center;
    max-width:650px;
    margin: 0 auto;
}
        
 #startScreen h2 {
            font-size: 2.1rem;
            margin-bottom: 8px;
            color: var(--color-secundario);
            margin-top: 1rem;
            
}

#startScreen p {
    font-size: 1.3rem;
    max-width: 90%;
    line-height: 100%;
    margin: 10px 0;
    color: #e0e0ff;
    text-align: center;
}

@media (max-width: 992px) {
    #startScreen h2 {
        font-size: 1.8rem;
    }

    #startScreen p {
        font-size: 1.1rem;
    }

}

#startScreen .highlight {
    color: var(--color-secundario);
    font-weight: bold;
}

#startButton {
    background:var(--color-secundario);
    color: var(--color-principal);
    border: none;
    padding: 16px 50px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
    letter-spacing: 1px;
}

#startButton:hover {
    background: var(--color-secundario);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.9);
}

#gameScreen {
    display: none;
    flex-direction: column;
    align-items: center;
}

#gameInfo {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding: 0 10px;
}

#score, #timer {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#timer {
    color: #4dff4d;
    text-shadow: 0 0 8px rgba(77, 255, 77, 0.7);
}

#score {
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}
#endScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    border-radius: 15px;
    padding: 20px;
}

#endScreen h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#finalScore {
    font-size: 2rem;
    margin: 20px 0;
    color: #ffcc00;
}

#resultMessage {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

#restartButton {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

#restartButton:hover {
    background: linear-gradient(to bottom, #66BB6A, #388E3C);
    transform: scale(1.05);
}

.victory {
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

.defeat {
    color: #FF5252;
    text-shadow: 0 0 15px rgba(255, 82, 82, 0.8);
}

.instructions {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-width: 600px;
    text-align: left;
}

.instructions h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.instructions ul {
    padding-left: 25px;
}

.instructions li {
    margin: 8px 0;
    line-height: 1.5;
}
.key__button {
  box-sizing: border-box;
  line-height: 60px;
  font-size: 22px;
  text-align: center;
  width: 60px;
  color: var(--color-principal);
  cursor: pointer;
  margin: 0 8px;
  height: 60px;
  border-color: #f2f2f2;
  border-style: solid;
  text-shadow: 0 0.5px 1px #777, 0 2px 6px #f2f2f2;
  border-width: 1px;
  border-radius: 10px;
  background: -webkit-linear-gradient(top, #f7fab8 0%, #fee43e 80%, #faca3b 100%);
  font-family: sans-serif;
  display: inline-block;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
  box-shadow: 0 0 1px #888,0 1px 0 #fff, 0 6px 0 #C0C0C0, 0 8px 17px rgba(#444, 0.4), 2px 1px 4px rgba(#444, 0.25), -2px 1px 4px rgba(#444, 0.25), 0 9px 16px rgba(#444, 0.1);
  
  &:hover,
  &:focus {
    box-shadow: 0 0 1px #888,0 1px 0 #fff, 0 4px 0 #C0C0C0, 0 2px 35px rgba(#444, 0.3), 2px 2px 4px rgba(#444, 0.25), -2px 2px 4px rgba(#444, 0.25), 0 7px 4px rgba(#444, 0.1);
    transform: translateY(2px);
  }
  
  &:active {
    box-shadow: 0 0 1px #888,0 1px 0 #fff, 0 0 0 #C0C0C0, 0 0px 30px rgba(#444, 0.15), 2px 2px 4px rgba(#444, 0.25), -2px 2px 4px rgba(#444, 0.25), 0 0px 4px rgba(#444, 0.25);
    transform: translateY(4px); 
  }
}
.keys-pad{
    display: flex;
    width: 95%;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
}

.no-zoom{
    touch-action: manipulation;
}
@media (min-width: 992px) { 
    .keys-pad{
        display: none;
    }
 }