/* style.css - Estilos completos para Bat Girl Adventure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: linear-gradient(to bottom, #1a0638, #2d0b5e);
    font-family: 'Luckiest Guy', cursive;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    position: relative;
    width: 900px;
    height: 700px; /* 600px de juego + 100px de info */
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(143, 0, 255, 0.7);
    border-radius: 15px;
    overflow: hidden;
}

#gameArea {
    display: flex;
    height: 600px;
    position: relative;
}

#characterPanel {
    width: 250px;
    background: rgba(10, 5, 30, 0.8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 3px solid #7b1bf5;
    z-index: 10;
    height: 100%;
}

.panel-title {
    color: #e6ccff;
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #a64dff;
}

#fullBodyImage {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(20, 10, 40, 0.6);
    border-radius: 15px;
    border: 2px solid #a64dff;
    margin-top: 10px;
}

#fullBodySprite {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

#gameCanvasContainer {
    flex: 1;
    position: relative;
}

#gameCanvas {
    background: linear-gradient(to bottom, #0a0a2a, #1a1a4a);
    width: 100%;
    height: 100%;
    display: block;
}

#gameInfo {
    height: 100px;
    background: rgba(10, 5, 30, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    border-top: 3px solid #7b1bf5;
    z-index: 10;
}

.info-box {
    text-align: center;
    background: rgba(123, 27, 245, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 150px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box .title {
    color: #e6ccff;
    font-size: 18px;
    text-shadow: 0 0 5px #a64dff;
    margin-bottom: 5px;
}

.info-box .value {
    color: #ffcc00;
    font-size: 24px;
}

#evolutionContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

#evolutionText {
    color: #e6ccff;
    font-size: 16px;
    margin-bottom: 5px;
}

.evolution-bar {
    width: 100%;
    height: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.evolution-progress {
    height: 100%;
    background: linear-gradient(to right, #7b1bf5, #ff00ff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

#score {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    z-index: 10;
}

#coinCounter {
    position: absolute;
    top: 60px;
    right: 30px;
    font-size: 20px;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.coin-icon {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 0 8px gold;
}

#instructions {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-size: 16px;
    z-index: 10;
}

#moon {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #f9f3ff 30%, #d9b3ff 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px #e6ccff;
    z-index: 1;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.level-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #ffcc00;
    text-shadow: 0 0 15px #ff00ff;
    opacity: 0;
    animation: levelUp 1.5s ease-out;
    z-index: 100;
}

@keyframes levelUp {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Pantallas de estado */
#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-over-title {
    color: #FF4081;
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.7);
}

.game-over-score {
    color: #FFD700;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.game-over-restart {
    color: #7b1bf5;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(123, 27, 245, 0.7);
}

.game-over-restart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Nuevos estilos para la galería */
#galleryScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.gallery-title {
    color: #FF4081;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.7);
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 90%;
    max-height: 70%;
    overflow-y: auto;
    padding: 20px;
}

.gallery-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #7b1bf5;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.1);
}

.gallery-close {
    color: #7b1bf5;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(123, 27, 245, 0.7);
    margin-top: 30px;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.game-over-gallery {
    color: #7b1bf5;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(123, 27, 245, 0.7);
    margin-top: 20px;
    display: none;
}

.game-over-gallery:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 950px) {
    #gameContainer {
        transform: scale(0.85);
    }
    
    .game-over-title, .gallery-title {
        font-size: 50px;
    }
    
    .game-over-score {
        font-size: 30px;
    }
    
    .game-over-restart, .gallery-close, .game-over-gallery {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    #gameContainer {
        transform: scale(0.75);
    }
    
    #characterPanel {
        width: 200px;
    }
    
    .info-box {
        min-width: 120px;
        padding: 8px 10px;
    }
    
    .info-box .title {
        font-size: 16px;
    }
    
    .info-box .value {
        font-size: 20px;
    }
    
    #evolutionContainer {
        width: 250px;
    }
    
    .game-over-title, .gallery-title {
        font-size: 40px;
    }
    
    .game-over-score {
        font-size: 26px;
    }
    
    .game-over-restart, .gallery-close, .game-over-gallery {
        font-size: 20px;
    }
    
    .gallery-images img {
        width: 100px;
        height: 100px;
    }
}
/* Pantalla de inicio */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 400; /* Por encima de todo */
    color: #ff00ff;
    text-align: center;
}

.start-screen h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px #a64dff;
    animation: pulse 2s infinite;
}

.start-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.start-buttons button {
    background: linear-gradient(45deg, #7b1bf5, #ff00ff);
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Luckiest Guy', cursive;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(123, 27, 245, 0.5);
}

.start-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #ff00ff;
}

.controls-info {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #e6ccff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Estilos para la galería */
.gallery-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a0638, #2d0b5e);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.gallery-title {
    font-size: 3rem;
    text-shadow: 0 0 15px #ff00ff;
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1.5rem;
    color: #e6ccff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    background: rgba(10, 5, 30, 0.8);
    border-radius: 15px;
    border: 3px solid #7b1bf5;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    padding: 10px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #a64dff;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-item.locked {
    filter: grayscale(100%) brightness(0.4);
    position: relative;
}

.gallery-item.locked::after {
    content: "🔒";
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-button {
    background: linear-gradient(45deg, #7b1bf5, #ff00ff);
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Luckiest Guy', cursive;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(123, 27, 245, 0.5);
}

.gallery-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #ff00ff;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-button {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
}
/* Estilos para la galería */
.gallery-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a0638, #2d0b5e);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.gallery-title {
    font-size: 3rem;
    text-shadow: 0 0 15px #ff00ff;
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1.5rem;
    color: #e6ccff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    background: rgba(10, 5, 30, 0.8);
    border-radius: 15px;
    border: 3px solid #7b1bf5;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    padding: 10px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #a64dff;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-item.locked {
    filter: grayscale(100%) brightness(0.4);
    position: relative;
}

.gallery-item.locked::after {
    content: "🔒";
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-button {
    background: linear-gradient(45deg, #7b1bf5, #ff00ff);
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Luckiest Guy', cursive;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(123, 27, 245, 0.5);
}

.gallery-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #ff00ff;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-button {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
}
/* Visor de imagen completa */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.expanded-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid #7b1bf5;
    border-radius: 10px;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-viewer:hover {
    color: #ff00ff;
    transform: scale(1.2);
}

.image-info {
    color: white;
    margin-top: 20px;
    font-size: 1.5rem;
    text-align: center;
}

/* Modificación para las imágenes de la galería */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}
