/* 
* Little ICY Productions - Monster Game Styles
* Catch the Monster! Game CSS
*/

/* Monster Hero Section */
.monster-hero {
    background: linear-gradient(135deg, #FF9A8B 0%, #FF6B95 100%);
    padding: 100px 0 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.monster-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.monster-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.monster-icons i {
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

/* Instructions Styles */
.instructions-box {
    background-color: #e6f7fa;
    border: 2px dashed #8dd3d7;
    border-radius: 15px;
    padding: 25px 30px;
    margin: 20px 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.instructions-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.instructions-icons i, .instructions-icons img {
    font-size: 1.8rem;
    color: #ff6b95;
}

.instructions-icons i.fa-check-circle {
    color: #4CAF50;
}

.instructions-box h3 {
    color: #78c2c6;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.instruction-steps {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instruction-steps li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
}

.step-number {
    display: inline-block;
    color: #ff6b95;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.4rem;
}

.instruction-tip {
    font-style: italic;
    color: #555;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Game Container Styles */
.game-container {
    position: relative;
    margin: 20px auto;
    max-width: 800px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: 700;
}

.score-container, .time-container {
    display: flex;
    align-items: center;
}

.score-label, .time-label {
    margin-right: 10px;
    color: var(--dark-gray);
}

.score, .time {
    background-color: var(--primary-color);
    color: var(--dark-gray);
    padding: 5px 15px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.time {
    background-color: var(--tertiary-color);
}

/* Game Controls Container */
.game-controls-container {
    display: flex;
    justify-content: center;
    background-color: var(--white);
    padding: 10px 15px;
    margin-top: 5px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.game-controls-container button {
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Background Selector */
.background-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    padding: 10px 15px;
    margin-top: 5px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.background-label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.background-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.background-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.background-btn img {
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--light-gray);
}

.background-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.background-btn.active {
    border-color: var(--primary-color);
    background-color: var(--light-primary);
    transform: scale(1.05);
}

.background-btn:hover:not(.active) {
    border-color: var(--secondary-color);
    background-color: var(--light-secondary);
}

/* Game Area Styles */
.game-area {
    width: 100%;
    height: 400px;
    border-radius: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
    background-image: url('../img/game/game-bg.svg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-image 0.3s ease;
}

/* Monster Styles */
.monster {
    position: absolute;
    cursor: pointer;
    transition: transform 0.1s ease;
    will-change: transform;
    transform-origin: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.monster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Monster Animations */
@keyframes monsterAppear {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes monsterDisappear {
    0% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(10deg);
        opacity: 0;
    }
}

@keyframes monsterCaught {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }
}

.monster-appear {
    animation: monsterAppear 0.3s forwards;
}

.monster-disappear {
    animation: monsterDisappear 0.3s forwards;
}

.monster-caught {
    animation: monsterCaught 0.4s forwards;
}

/* Game Message Styles */
.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#start-game-big {
    font-size: 1.5rem;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-game-big:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Feedback Message Styles */
.feedback-message {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    z-index: 5;
}

@keyframes feedbackAppear {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
        transform: translateY(-40px) scale(1.2);
    }
    100% {
        transform: translateY(-60px) scale(1);
        opacity: 0;
    }
}

.feedback-appear {
    animation: feedbackAppear 1s forwards;
}

/* Game Over Styles */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    border-radius: 0 0 10px 10px;
}

.game-over.show {
    opacity: 1;
    pointer-events: auto;
}

.game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over p {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over .encouragement {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    opacity: 0;
    z-index: 15;
    pointer-events: none;
}

.confetti.active {
    animation: confetti-fall 4s linear forwards;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .game-area {
        height: 400px;
    }
    
    .game-stats {
        font-size: 1rem;
    }
    
    .score, .time {
        min-width: 50px;
        padding: 5px 10px;
    }
    
    .game-message {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
    
    .feedback-message {
        font-size: 1.2rem;
    }
    
    .game-over h2 {
        font-size: 2rem;
    }
    
    .game-over p {
        font-size: 1.2rem;
    }
    
    .game-over .encouragement {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .game-area {
        height: 350px;
    }
    
    .game-stats {
        font-size: 0.9rem;
    }
    
    .score, .time {
        min-width: 40px;
        padding: 4px 8px;
    }
    
    .game-message {
        font-size: 1rem;
        padding: 10px 20px;
        width: 80%;
    }
    
    .feedback-message {
        font-size: 1rem;
    }
    
    .game-over h2 {
        font-size: 1.8rem;
    }
    
    .game-over p {
        font-size: 1rem;
    }
    
    .game-over .encouragement {
        font-size: 1.2rem;
    }
} 