body {
  margin: 0;
  background: #FFF;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
  overflow: hidden; /* Evita scroll */
  /*background :url(../img/background_day.png) no-repeat center center fixed;
  background-size: 100% 100%;*/
}
canvas {
  border: 2px solid #000;
  background: #fff;
  height: 100vh; /* 100% del alto de la pantalla */
}

#scoresList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
  font-family: 'Arial', sans-serif;
}

#scoresList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  padding: 1px 15px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

#scoresList li:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.95);
}

#scoresList li img {
  margin-right: 10px;
  height: 16px;
  width: auto;
  vertical-align: middle;
}

@keyframes bounceGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
  }
}

#startButton {
  /*https://www.flaticon.com/*/
  background: url('../img/btn_play.png') no-repeat center left 10px;
  background-size: 24px 24px;
  padding: 10px 15px 10px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  background-color: #28a745;
  animation: bounceGlow 1.5s infinite ease-in-out;
  transition: all 0.3s ease;
}

#startButton:hover {
  background-color: #218838;
  transform: scale(1.1);
  box-shadow: 0 0 25
}

#homeButton {
  /*https://www.flaticon.com/*/
  background: url('../img/btn_home.png') no-repeat center left 10px;
  background-size: 24px 24px;
  padding: 10px 15px 10px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  background-color: #28a745;
  animation: bounceGlow 1.5s infinite ease-in-out;
  transition: all 0.3s ease;
}

#homeButton:hover {
  background-color: #218838;
  transform: scale(1.1);
  box-shadow: 0 0 25
}

#soundButton {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 999;
}

#soundButton:hover {
  transform: scale(1.1);
}




#usernameContainer {
  margin: 20px auto;
  max-width: 300px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


#username {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #666;
  border-radius: 10px;
  outline: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 119, 204, 0.1);
}

#username:focus {
  border-color: #005fa3;
  box-shadow: 0 0 8px rgba(0, 119, 204, 0.4);
}

/*
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita scroll 
    background: #0a0a0a;
    color: #FFFFFF;
  }


canvas {
    display: block;
    width: 100vw;  /* 100% del ancho de la pantalla 
    height: 100vh; /* 100% del alto de la pantalla 
  }

*/

body.dark-theme {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-theme #startScreen {
  background-color: #1e1e1e;
}

.dark-theme button,
.dark-theme input {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF; /* Puedes ajustar el color */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-gif {
  width: 100px;
  height: auto;
}