/* General game styling */
body {
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    position: relative;
    padding-bottom: 50px; /* Space for footer */
}

/* Game container styling */
#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 3D animation overlay for win condition */
#win-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    perspective: 1000px;
    background-color: rgba(0, 0, 0, 0.7);
}

#win-animation {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 10s infinite linear, float 2s infinite ease-in-out;
}

#vanessa-model, #yuna-model {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#vanessa-model {
    background-image: url('assets/vanessa_win.svg');
    transform: translateZ(20px);
}

#yuna-model {
    background-image: url('assets/yuna_win.svg');
    transform: translateZ(40px) scale(0.5) translateY(50px);
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate3d(0, 1, 0, 0deg); }
    50% { transform: translateY(-10px) rotate3d(0, 1, 0, 10deg); }
    100% { transform: translateY(0px) rotate3d(0, 1, 0, 0deg); }
}

#win-text {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 0 10px #ff0, 0 0 20px #ff0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

#win-text {
    font-size: 32px;
    font-weight: bold;
    color: #FF69B4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

/* Footer styling */
#game-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

#game-footer::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff69b4"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    margin-left: 5px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* For mobile responsiveness */
@media (max-width: 800px) {
    #game-container canvas {
        width: 100%;
        height: auto;
    }
}
