/* Fontes góticas e misteriosas para o tema */
:root {
    --font-title: 'Creepster', cursive;
    --font-body: 'Special Elite', cursive;
    --primary-color: #3d0e61;
    --secondary-color: #1a0a24;
    --text-color: #e0e0e0;
    --highlight-color: #d1b4f0;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(2px) brightness(0.7);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#game-header {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

#game-header h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin: 0;
    color: var(--highlight-color);
    text-shadow: 2px 2px 5px #000;
}

#level-display {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 5px;
}

#items-to-find {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 50px;
}

.find-item-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border: 2px solid var(--highlight-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.find-item-icon.found {
    opacity: 0.3;
    transform: scale(0.9);
}

#game-area {
    flex-grow: 1;
    position: relative;
    padding: 20px;
}

.game-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, filter 0.2s;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.7));
}

.game-item:hover {
    transform: scale(1.1);
}

.game-item.found {
    animation: found-item-animation 0.5s forwards;
}

@keyframes found-item-animation {
    0% { transform: scale(1.1); filter: drop-shadow(0 0 15px #fff); }
    100% { transform: scale(0); opacity: 0; }
}

#character-area {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    pointer-events: none;
}

#wednesday-char {
    width: 100%;
    transform: translateX(10px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    z-index: 100;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 0 25px var(--primary-color);
    max-width: 90%;
    width: 400px;
}

.modal h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--highlight-color);
    margin-top: 0;
}

.modal p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.modal button {
    font-family: var(--font-title);
    font-size: 1.8rem;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--highlight-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal button:hover {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.logo-image {
    max-width: 80%;
    margin-bottom: 20px;
}

/* Responsivo para celular */
@media (max-width: 768px) {
    #game-header h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    #level-display {
        font-size: 0.8rem;
        top: 2px;
        left: 5px;
    }
    .find-item-icon {
        width: 30px;
        height: 30px;
    }
    #character-area {
        width: 120px;
        opacity: 0.8;
    }
    .modal {
        padding: 20px;
    }
    .modal h2 {
        font-size: 2rem;
    }
    .modal p {
        font-size: 1rem;
    }
    .modal button {
        font-size: 1.2rem;
    }
}