/*----------------------------------
	Properties
----------------------------------*/

:root {
  --body-background-image: url("assets/images/bg/bodyBG.png");
  --start-overlay-image: url("assets/images/bg/startOverlay.png");
  --modal-image: url("assets/images/bg/modal.png");
  --logo-image: url("assets/images/logo.png");
  --game-container-background-image: url("assets/images/bg/background-image.png");

  /* Variables para fuentes */
  --main-font: 'sunroof-summer', sans-serif;
  --title-font: 'sunroof-summer', sans-serif;
  --button-font: 'cabin', sans-serif;
  --player-info-font: 'sunroof-summer', sans-serif;
  --glitch-font: 'glitch', sans-serif;
  --game-font: 'game', sans-serif;
  
  /* Variables para colores de fuentes */
  --main-font-color: #69F0AE;
  --title-font-color: #69F0AE;
  --button-font-color: #ffffff;
  --player1-font-color: #69F0AE;
  --player2-font-color: #00ce3e;

  /* Variables para tamaños de fuentes */
  --player-info-font-size: 24px;
  --player-points-font-size: 18px;
  --game-timer-font-size: 24px;
  --winner-name-font-size: 36px;
  --start-message-font-size: 36px;
}
/*----------------------------------
	Mario Fonts
----------------------------------*/
@font-face {
	font-family: bali-bliss;
	src: url("assets/fonts/BaliBliss.ttf");
}
@font-face {
	font-family: sunroof-summer;
	src: url("assets/fonts/Sunroof&Summer.ttf");
}
@font-face {
	font-family: cabin;
	src: url("assets/fonts/Cabin-Regular.ttf");
}
@font-face {
	font-family: cabin-bold;
	src: url("assets/fonts/Cabin-Bold.ttf");
}
@font-face {
	font-family: glitch;
	src: url("assets/fonts/Glitch.ttf");
}
@font-face {
	font-family: game;
	src: url("assets/fonts/Game.ttf");
}
/* Estilos para la personalización de fuentes */
.font-color-picker {
  margin-top: 15px;
}
.font-color-picker label {
  display: flex;
  flex-direction: column;
}
.font-color-picker input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
}
.font-preview {
  margin-top: 15px;
}
.font-preview h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  font-family: 'cabin', sans-serif;
}
.preview-text {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #333;
  color: var(--main-font-color);
  font-family: var(--main-font);
  text-align: center;
}
.title-preview {
  font-family: var(--title-font);
  color: var(--title-font-color);
  font-size: 24px;
}
.button-preview {
  font-family: var(--button-font);
  color: var(--button-font-color);
  background-color: #F25F6A;
  border-radius: 5px;
  padding: 10px;
}
.dual-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.player1-preview {
  font-family: var(--player-info-font);
  color: var(--player1-font-color);
}
.player2-preview {
  font-family: var(--player-info-font);
  color: var(--player2-font-color);
}
/* Estilos para los selectores de tamaño de fuente */
.font-size-picker {
  margin-top: 10px;
}
.font-size-picker label {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.font-size-picker input[type="number"] {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  padding: 0 10px;
  font-family: 'cabin', sans-serif;
}
.font-preview {
  margin-top: 15px;
}

/*----------------------------------
	Base Styles
----------------------------------*/
* {
	box-sizing: border-box;
  cursor: none;
}

body {
  align-items: center;
  background: transparent;
  background-attachment: fixed;
  display: flex;
  /* font-family: var(--main-font);
  color: var(--main-font-color); */
  height: 100%;
  justify-content: center;
  margin: 0;
  padding: 100px 0;
  width: 100%;	
  -moz-osx-font-smoothing: grayscale;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
body:after {
  background-attachment: fixed;
  background-size: cover;
  background-image: var(--body-background-image);
  background-repeat: no-repeat;
  background-position: bottom;
  bottom: 0;
  content: '';
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
}

/*----------------------------------
	Start Overlay
----------------------------------*/
.start-overlay { /* Aqui se reemplaza imagen de fondo del overlay inicial */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--start-overlay-image);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  
}

.start-content {
  padding: 150px;
  border-radius: 10px;
  height: auto;
  text-align: center;
  color: var(--title-font-color);
  max-width: 100%;
}

.game-logo {
  margin-bottom: 30px;
}

.game-logo img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  content: var(--logo-image);
  filter: drop-shadow(0 5px 5px rgba(68, 68, 68, 0.267));
}

.start-message {
  font-size: var(--start-message-font-size);
  font-family: var(--title-font);
  color: var(--title-font-color);
  animation: pulse 1.5s infinite;
  filter: drop-shadow(0 5px 5px rgba(68, 68, 68, 0.267));
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/*----------------------------------
	Customization Panel
----------------------------------*/
.customization-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999999;
  display: none;
  overflow: hidden;
}

.panel-header {
  background: linear-gradient(#F25F6A, #ed2121);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #333;
}

.panel-header h2 {
  margin: 0;
  font-family: 'cabin-bold', sans-serif;
}

.close-panel {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Estilos para la navegación de pestañas */
.tabs-navigation {
  display: flex;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  white-space: nowrap;
}

.tab-button {
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  
  font-family: 'cabin', sans-serif;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 0; /* Hacer las pestañas cuadradas */
}

.tab-button:hover {
  background-color: #e9e9e9;
  color: #333;
}

.tab-button.active {
  border-bottom: 3px solid #F25F6A;
  color: #F25F6A;
  font-weight: bold;
}

/* Estilos para el contenido de las pestañas */
.panel-content {
  color: #333 !important;
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 100px); /* Ajustado para incluir la navegación de pestañas */
  font-family: 'cabin', sans-serif;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.settings-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-family: 'cabin-bold', sans-serif;
}

.setting-option {
  margin-bottom: 15px;
  border: 2px solid rgb(204, 204, 204);
  padding: 10px;
  border-radius: 5px;
  background: rgb(247, 247, 247);
}

.setting-option label {
  display: block;
  margin-bottom: 8px;
  font-family: 'cabin', sans-serif;
}

.setting-option input[type="radio"],
.setting-option input[type="checkbox"] {
  margin-right: 8px;
}

.setting-option input[type="number"],
.setting-option select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Cabin', sans-serif;
  margin-top: 5px;
}

.audio-customization {
  margin-top: 20px;
  background-color: #f5f5f5;
  padding: 15px;
  border: 2px solid rgb(204, 204, 204);
  border-radius: 8px;
}

.audio-customization h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.audio-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.audio-option label {
  flex: 1;
  min-width: 200px;
}

.audio-option select {
  display: block;
  width: 99%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Cabin', sans-serif;
  margin-top: 5px;
}

.small-button {
  background-color: #47ACD6;
  color: white;
  border: none;
  margin-top: 22px;
  border-radius: 5px;
  padding: 8px 15px;
  
  font-family: 'cabin', sans-serif;
  height: auto;
  width: auto;
}

.preview-button {
  background-color: #37b021;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  margin-left: 15px;
  margin-top: 22px;
}

.image-preview {
  margin-top: 15px;
}

.image-preview h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  font-family: 'cabin', sans-serif;
}

.preview-container {
  width: 100px;
  height: 100px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-container img {
  max-width: 100%;
  max-height: 100%;
}

.panel-footer {
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.primary-button {
  background-color: #F25F6A;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  
  font-family: 'cabin', sans-serif;
  height: auto;
  width: auto;
}

.secondary-button {
  background-color: #999;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  
  font-family: 'cabin', sans-serif;
  height: auto;
  width: auto;
}

.caution-button {
  background-color: #e20000;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  
  font-family: 'cabin', sans-serif;
  height: auto;
  width: auto;
}

.spacingTop{
  margin-top: 10px;
}

.spacingRight{
  margin-right: 10px;
}

/*----------------------------------
	Game Container
----------------------------------*/
.game-container { 
  margin: 0 auto; 
  z-index: 1; 
  position: relative; 
  width: 90%; 
  transform: scale(1); 
} 

/* Clase para cuando el fondo está desactivado */
.game-container.transparent-bg {
  background-color: transparent;
  border: none;
  filter: none;
}

.game-container:after { 
  content: ''; 
  border: 5px solid transparent;
  position: absolute; 
  width: calc(100% - 40px); 
  height: calc(100% - 60px); 
  background-image: var(--game-container-background-image);
  background-repeat: no-repeat; 
  background-size: cover; 
  background-position: center; 
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.527)); 
  z-index: 200; 
  top: 30px; 
  left: 20px; 
  border-radius: 5px; 
} 

/* Ocultar el fondo de patrón cuando está desactivado */
.game-container.transparent-bg:after {
  display: none;
}

.cards {
  margin: 50px auto 0;
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 300;
}

table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

tr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

td {
  display: flex;
  justify-content: center;
  padding: 5px;
}


/*----------------------------------
	Game Timer
----------------------------------*/
.game-timer-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: 150px;
  background: rgba(0, 0, 0, 0.226);
  border-radius: 5px;
  padding: 10px 0px;
  text-align: center;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-timer.warning {
  color: #F25F6A;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/*----------------------------------
	Turn Timer
----------------------------------*/
.turn-timer {
  border-radius: 50px;
  padding: 10px 10px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
  margin-top: 5px;
  position: relative;
  top: -65px;
  left: 75%;
}

.player1-timer {
  color: #F25F6A;
}

.player2-timer {
  color: #47ACD6;
}

/*----------------------------------
	Card Styles
----------------------------------*/
.card { /* este clase cambia el tamaño de las cartas, agregar a panel de personalizacion*/
  height: 200px;
  width: 200px;
  margin-right: 25px;
  margin-bottom: 50px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1000;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.527));
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all .3s linear;
  backface-visibility: hidden;
}

.card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(-180deg);
  border-radius: 5px;
  background-color: #ddd;
  border: 4px solid #fff;
  background: linear-gradient(#efefef, #ddd);
}

.card.match.red .card-front {
  background-color: var(--player1-font-color);
  background: var(--player1-font-color);
}

.card.match.blue .card-front {
  background-color: var(--player2-font-color);
  background: var(--player2-font-color);
}

.card-back {  
  background-image: url("assets/images/cards/back.png");
  background-size: calc(100% + 14px);
  background-repeat: no-repeat;
  background-position: center;
  transform: rotateY(0deg);
}

.card-size-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.card-size-inputs label {
  flex: 1;
  min-width: 120px;
}

.card-size-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Cabin', sans-serif;
}

.card.reveal .card-front,
.card.match .card-front {
  transform: rotateY(0deg);
}

.card.match, .card.reveal {
  pointer-events: none;
}

.card.reveal .card-back,
.card.match .card-back  {
  transform: rotateY(180deg);
}

.player1-turn .card:hover {
  
  outline: 5px solid var(--player1-font-color);
}

.player2-turn .card:hover {
  
  outline: 5px solid var(--player2-font-color);
}

/*----------------------------------
	Card Images
----------------------------------*/
.card-image {
  width: 90%;
  height: 90%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Personalización de imágenes de cartas */
.card-images-container {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.card-image-item {
  width: 10%;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.card-image-item label {
  margin-bottom: 10px;
}

.card-front-preview {
  margin-top: 10px;
  padding: 10px;
  border: none;
  align-self: center;
}

#toggleMoreCardImages {
  width: auto;
  height: auto;
  margin: 15px 0;
  padding: 10px 20px;
}

#moreCardImages {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
/*----------------------------------
	Game Header
----------------------------------*/
header.game-header {
  width: 90%;
  position: absolute;
  top: 20px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

.game-header section {
  justify-content: center;
  width: 270px;
  height: 70px;
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
  display: flex;
  align-items: center;
}

.sectionHeaderP1 {
	display: block;
}

.sectionHeaderP2 {
	display: block;
}

.sectionHeaderP1.active {
 display: none;
}
.sectionHeaderP2.active {
 display: none;
}

.player1_profile,
.player2_profile {
  display: none;
  height: auto;
  border-radius: 100%;
  flex-shrink: 0;
}

.player1_profile img,
.player2_profile img {
  border-radius: 100%;
  height: auto;
}

.player1_profile img {
  background-color: #F25F6A;
  background: linear-gradient(#f58f96, #F25F6A);
}

.player2_profile img {
  background-color: #47ACD6;
  background: linear-gradient(#91cde6, #47ACD6);
}


/*----------------------------------
	Player Info
----------------------------------*/
.player1_profile + .info,
.player2_profile + .info {
  position: relative;
  top: 25px;
  padding: 15px;
  flex-grow: 1;
}

.player1_profile + .info h4, 
.player2_profile + .info h4 {
  font-size: 30px;
  margin: 0;
}

.player1_profile + .info h3, 
.player2_profile + .info h3 {
  margin-top: 10px;
  font-size: 23px;
}

.player1_profile + .info h4{ 
  color: #ed2121;
}

.player2_profile + .info h4 {
  color: #37b021;
  text-align: left;
}

.player2_profile + .info h3 {
  text-align: left;
} 


/*----------------------------------
    Buttons Styles
----------------------------------*/
/* button {
  color: #fff;
  font-family: 'sunroof-summer', sans-serif;
  height: 70px;
  border-radius: 70px;
  position: relative;
  width: auto;
  transition: transform .05s linear;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.restartGame {
	background: transparent;
	border: none;
}

button:focus {
  outline: 0;
}

button span.text {
  z-index: 10;
}

button:hover {
  transform: scale(1.02);
}

.no-clicks {
  pointer-events: none !important;
}

/*----------------------------------
	Modal Styles
----------------------------------*/
.modal {
  position: fixed; /* Cambiado de absolute a fixed para mejor posicionamiento */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: var(--modal-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  padding: 50px;
  text-align: center;
  transform: scale(0);
  transition: transform .2s linear;
}

/* Cambiar esta regla para que funcione con el modal fuera del contenedor */
.modal.active {
  transform: scale(1);
  display: flex !important;
}

.winnerColumn {
  width: 100%;
  display: inline-block;
  float: center;
 
}

.results_container {
  overflow: visible;
  /* height: 250px; */
}

.results_container + .restartGame{
  margin: 100px auto 0;
}

h2.results {
  margin-top: 0;
  font-family: 'bali-bliss', sans-serif;
  color: #333;
}

h1.winnerName {
  font-size: 5rem;
  margin: 0;
  font-family: var(--title-font);
  color: var(--title-font-color);
  margin-top: 35px;
  filter: drop-shadow(0 5px 5px rgba(68, 68, 68, 0.267));
  animation: pulse 1.5s infinite;
  overflow: visible;
}

.touchImg{
  width: 300px;
  height: 300px;
  margin-top: 70px;
  filter: drop-shadow(0 5px 5px rgba(68, 68, 68, 0.267));
  animation: pulse 1.5s infinite;
}

.game-container.player2-wins .modal h1.winnerName{
  font-family: var(--title-font);
  color: var(--title-font-color);
}

.winnerColumn .bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  
  border-radius: 50%;
  position:relative;
}

.winnerColumn .bg-image:before {
  content: '';
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  left: 0;
  background-size: cover;
  background-image: url("assets/images/bg/player1-lose.png");
}

.player1_profile {
  background-color: #F25F6A;
  background: linear-gradient(#f58f96, #F25F6A);
}

.player2_profile {
  background-color: #47ACD6;
  background: linear-gradient(#91cde6, #47ACD6);
}

.winnerColumn .player2_profile .bg-image:before {
  background-image: url("assets/images/bg/player2-lose.png");
}

.game-container.player1-wins .modal .winnerColumn .player1_profile .bg-image:before {
  background-image: url("assets/images/bg/player1-win.png");
} 

.game-container.player2-wins .modal .winnerColumn .player2_profile .bg-image:before {
  background-image: url("assets/images/bg/player2-win.png");
}

/* Modo de un solo jugador */
.singleplayer .player2_profile,
.singleplayer .player2_profile + .info {
  opacity: 0.5;
  pointer-events: none;
}

/* .panel-header h2, 
.settings-section h3
{
  font-family: var(--title-font);
  color: var(--title-font-color);
} */

.player1_profile + .info h4 {
  font-family: var(--player-info-font);
  color: var(--player1-font-color);
}

.player2_profile + .info h4 {
  font-family: var(--player-info-font);
  color: var(--player2-font-color);
}
/* Aplicar tamaños de fuente a los elementos específicos */
.player1_profile + .info h4, 
.player2_profile + .info h4{
  font-size: var(--player-info-font-size);
}

.player1_profile + .info h3, 
.player2_profile + .info h3{
  font-family: var(--main-font);
  font-size: var(--player-points-font-size);
  color: var(--main-font-color);
}

.game-timer {
  font-family: var(--main-font);
  font-size: var(--game-timer-font-size);
  color: var(--main-font-color);
}

h1.winnerName {
  font-size: var(--winner-name-font-size);
  color: var(--title-font-color);
}


.toggle-switch {
  position: relative;
  /* display: inline-block; */
  max-width: 60px;
  height: 34px;
  margin: 10px 0;
  top: 0;
  left: 0;
  width: auto;
}
.toggle-switch label {
  position: absolute;
  width: 70px;
  height: 34px;
  color: #dcdcdc;
  font-size: 16px;
  font-weight: bold;
}
.toggle-switch .toggle-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 70px;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.toggle-switch-input:checked + .toggle-slider {
  /* width: 70px; */
  background-color: #4caf50;
}
.toggle-switch-input:focus + .toggle-slider {
  box-shadow: 0 0 1px #4caf50;
}
.toggle-switch-input:checked + .toggle-slider:before {
  transform: translateX(37px);
}
#spanShowCursor{
  position: absolute;
  top: 7px;
  left: 85px;
}

/* Estilos para el panel de licencia y configuraciones */
.license-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.959);
  position: absolute;
  z-index: 9999999999; /* Mayor prioridad */
  overflow-y: auto; /* Scroll para contenido largo */
  -webkit-overflow-scrolling: touch;
  display: flex; /* Añadido para activar flexbox */
  justify-content: center;
  align-items: center;
}
.license-overlay .license-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 250px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.397);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  text-align: center;
  padding-bottom: 50px;
}
.license-overlay .license-overlay-content h1 {
  font-family: "Cabin", sans-serif;
  margin-bottom: 0;
  font-size: 3rem;
  color: white;
}

.license-overlay-content button {
  margin-top: 0;
	display: block;
}
.license-notification {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 12px;
  margin: 0 auto 30px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
  max-width: 600px;
}
.license-notification h2 {
  color: #ff4d4d;
  font-size: 24px;
  margin-bottom: 10px;
  font-family: "Arial", sans-serif;
}
.license-notification p {
  color: #dcdcdc;
  font-size: 16px;
  margin-top: 5px;
  font-family: "Arial", sans-serif;
}
#licenseInput {
  padding: 12px;
  margin: 20px auto;
  width: 80%;
  max-width: 500px;
  display: block;
  border-radius: 8px;
  border: 2px solid #444;
  background-color: #333;
  color: white;
  font-size: 16px;
}

/* Sistema de notificaciones */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999999999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 350px;
}
.notification {
  background: linear-gradient(to right, #333, #222);
  color: white;
  padding: 15px 20px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: "Arial", sans-serif;
  font-size: 16px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease;
  border-left: 4px solid #4caf50;
  max-width: 100%;
  word-wrap: break-word;
  position: relative;
  animation: fadeInRight 0.3s forwards, fadeOut 0.5s forwards 4.5s;
}
.notification.error {
  border-left-color: #e74c3c;
}
.notification.warning {
  border-left-color: #f39c12;
}
.notification.info {
  border-left-color: #3498db;
}
.notification.success {
  border-left-color: #2ecc71;
}
.notification-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.notification-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}
.notification.error .notification-title::before {
  background-image: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}
.notification.warning .notification-title::before {
  background-image: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f39c12"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
}
.notification.info .notification-title::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}
.notification.success .notification-title::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232ecc71"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}
.notification-close {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.notification-close:hover {
  opacity: 1;
}
@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}
@keyframes fadeOut {
  from {
      opacity: 1;
  }
  to {
      opacity: 0;
  }
}

/*----------------------------------
	Media Queries para Responsive
----------------------------------*/
@media screen and (max-width: 1280px) {
  .game-container {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: scale(0.8);
    width: 95%;
  }
  
  header.game-header {
    width: 95%;
  }
  
  .card {
    width: 150px;
    height: 150px;
    margin-right: 15px;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 992px) {
  body {
    padding: 50px 0;
  }
  
  .game-container {
    width: 98%;
  }
  
  header.game-header {
    width: 98%;
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
    gap: 10px;
  }
  
  .game-header section {
    width: 200px;
  }
  
  .card {
    width: 120px;
    height: 120px;
    margin-right: 10px;
    margin-bottom: 20px;
  }
  
  .start-content {
    padding: 80px;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 30px 0;
  }
  
  .game-container {
    width: 100%;
    border-radius: 0;
  }
  
  header.game-header {
    width: 100%;
    top: 10px;
  }
  
  .game-header section {
    width: 150px;
  }
  
  .player1_profile + .info h4, 
  .player2_profile + .info h4 {
    font-size: 20px;
  }
  
  .player1_profile + .info h3, 
  .player2_profile + .info h3 {
    font-size: 16px;
  }
  
  .card {
    width: 100px;
    height: 100px;
    margin-right: 8px;
    margin-bottom: 16px;
  }
  
  .start-content {
    padding: 40px;
  }
  
  .game-logo img {
    max-height: 150px;
  }
  
  .start-message {
    font-size: 28px;
  }
  
  .touchImg {
    width: 200px;
    height: 200px;
    margin-top: 40px;
  }
}

@media screen and (max-width: 576px) {
  body {
    padding: 10px 0;
  }
  
  header.game-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    position: relative;
    margin-bottom: 60px;
  }
  
  .game-header section {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .game-timer-container {
    position: relative;
    transform: none;
    left: 0;
    margin: 10px 0;
  }
  
  .card {
    width: 80px;
    height: 80px;
    margin-right: 5px;
    margin-bottom: 10px;
  }
  
  .cards {
    margin-top: 20px;
  }
  
  .start-content {
    padding: 20px;
  }
  
  .game-logo img {
    max-height: 100px;
  }
  
  .start-message {
    font-size: 24px;
  }
  
  .touchImg {
    width: 150px;
    height: 150px;
    margin-top: 30px;
  }
  
  .modal {
    padding: 20px;
  }
  
  h1.winnerName {
    font-size: 3rem;
  }
}

/* Ajustes para el panel de personalización */
@media screen and (max-width: 768px) {
  .customization-panel {
    overflow-y: auto;
  }
  
  .tabs-navigation {
    flex-wrap: wrap;
  }
  
  .tab-button {
    padding: 10px;
    font-size: 14px;
  }
  
  .panel-content {
    height: calc(100vh - 240px);
  }
  
  .setting-option {
    padding: 8px;
  }
  
  .card-image-item {
    width: 25%;
  }
}

@media screen and (max-width: 576px) {
  .tab-button {
    padding: 8px;
    font-size: 12px;
  }
  
  .card-image-item {
    width: 45%;
  }
  
  .license-overlay .license-overlay-content {
    max-width: 90%;
  }
}

/* Ajustes para la pantalla de licencia */
@media screen and (max-width: 768px) {
  .license-overlay .license-overlay-content {
    width: 90%;
    padding: 20px;
  }
}

#audioSpectrum {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}