/* ============================= */ /* VARIABLES CSS GLOBALES */ /* ============================= */ :root { --gana: black; } /* ============================= */ /* ESTILOS GENERALES DEL BODY */ /* ============================= */ body { background-image: url('https://i.pinimg.com/736x/fd/9a/8a/fd9a8a7ef0ef121b33aefcecb608f90c.jpg'); background-size: cover; color: black; } /* ============================= */ /* TÍTULO PRINCIPAL DEL JUEGO */ /* ============================= */ #titulo { text-align: center; font-weight: bolder; font-size: 3rem; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); font-family: 'Pacifico', cursive; margin-top: 2rem; animation: brillo 2s infinite alternate; } /* Animación de brillo para el título */ @keyframes brillo { 0% { text-shadow: 0 0 10px #ff4c61, 0 0 20px #ff4c61;; } 100% { text-shadow: 0 0 20px #f8263e, 0 0 30px #f8263e; } } /* ============================= */ /* ESTILOS DE LA TABLA / TABLERO */ /* ============================= */ /* Botones de las celdas */ input[type=button] { width: 150px; height: 150px; font-size: .1px; cursor: pointer; } /* Celdas con botones en posiciones impares */ #tablero tr:nth-child(even) td:nth-child(even) .celda, #tablero tr:nth-child(odd) td:nth-child(odd) .celda { background-color: var(--impar); } /* Celdas con botones en posiciones pares */ #tablero tr:nth-child(even) td:nth-child(odd) .celda, #tablero tr:nth-child(odd) td:nth-child(even) .celda { background-color: var(--par); } #tablero .celda { border: none; } #tablero td { border: 0.5rem solid rgb(51, 36, 53); } #tablero tr:first-child td { border-top: none; } #tablero tr:last-child td { border-bottom: none; } #tablero tr td:first-child { border-left: none; } #tablero tr td:last-child { border-right: none; } table { position: relative; border-collapse: collapse; } td, tr { position: relative; } /* ============================= */ /* ESTRUCTURA Y CONTENEDORES */ /* ============================= */ #div-flex { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; } #div-tabla { display: flex; flex-direction: column; align-items: center; justify-content: center; } #div-tableroAtaque { height: 100%; display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; padding: 4rem; margin-bottom: 7rem; } /* ============================= */ /* PERSONALIZACIÓN DE COLORES */ /* ============================= */ .texto-color { margin-right: 0.5rem; font-family: 'Pacifico', cursive; } #texto-color2 { margin-left: 0.5rem; } #texto-colores, #texto-par { font-family: 'Pacifico', cursive; font-size: 1.5rem; margin-bottom: 1rem; } #div-colorTablero, #div-lineaGana { display: flex; flex-direction: row; align-items: center; justify-content: center; } input[type=color] { cursor: pointer; } /* ============================= */ /* TURNO Y TEMPORIZADOR */ /* ============================= */ #div-turnoTemp { display: flex; flex-direction: row; align-items: center; justify-content: center; } #temporizador, #turno { font-family: 'Pacifico', cursive; padding: 2rem; } #temporizador { font-size: 2rem; } /* Imagen de jugador siguiente */ #div-imgSig { display: flex; flex-direction: row; align-items: center; justify-content: center; } /* ============================= */ /* BOTÓN DE REINICIAR */ /* ============================= */ #reiniciar { display: flex; align-items: center; justify-content: center; /* CENTRA el texto */ height: 3rem; padding: 0 1.5rem; background-color: #f1596f; color: white; font-size: 1.1rem; font-family: 'Pacifico', cursive; border: 2px solid transparent; border-radius: 2rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); animation: pulse 2s infinite; } /* Al pasar el mouse: color más claro y rebote suave */ #reiniciar:hover { background-color: #ff4c61; transform: scale(1.05); border-color: white; } /* Efecto de clic: un poco de encogimiento */ #reiniciar:active { transform: scale(0.95); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); } /* Animación pulso */ @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 89, 111, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(241, 89, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(241, 89, 111, 0); } } /* ============================= */ /* SELECT Y OPCIONES DE PERSONAJE */ /* ============================= */ select { font-size: 1rem; padding: 0.4rem; border: 2px solid #333; border-radius: 0.3rem; background-color: #fff; color: #333; cursor: pointer; } select:hover { border-color: #f1596f; } select:focus { outline: none; border-color: #f1596f; } option { background: #fff; color: #333; padding: 5px; } /* ============================= */ /* RESPONSIVE PARA PANTALLAS PEQUEÑAS */ /* ============================= */ @media screen and (max-width: 800px) { input[type=button] { width: 100px; height: 100px; font-size: .1px; } #div-turnoTemp { flex-direction: column; } #reiniciar { margin-top: 2rem; } #div-tableroAtaque { padding: 0.1rem; } }