:root {
    --primary: #4CAF50;
    --dark: #2e7d32;
    --bg: #f0f4f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Kezdő réteg az autoplay korlát miatt */
#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#start-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

.game-area {
    display: flex;
    flex-direction: column; /* Mobilon alapértelmezetten egymás alatt */
    gap: 20px;
    margin-top: 30px;
}

.card {
    position: relative; /* Ez kell, hogy a díszítéshez képest pozícionáljunk */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background-color: white; /* Tiszta fehér háttér */
    transition: transform 0.2s;
    overflow: hidden; /* Hogy a díszítés ne lógjon ki csúnyán */
    min-height: 235px;
}
/* A véletlenszerű díszítés stílusa */
.deco-card::after {
    content: var(--deco-content, '☀️'); /* A JS-ből kapja az emojit */
    position: absolute;
    bottom: 10px;
    right: 5px;
    font-size: 3rem; /* Itt állíthatod mekkora legyen a rajz */
    opacity: 0.7;   /* Kicsit halványabb, hogy ne vonja el a figyelmet */
    transform: rotate(10deg);
    pointer-events: none; /* Ne lehessen rákattintani az emoji-ra, csak a kártyára */
    z-index:100;
}

/* A kép beállítása, hogy ne takarja el a rajzot teljesen */
.card img {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
    z-index: 2;
}

/* Hover effekt a kártyának */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Alsó hangsáv animáció */
.audio-status {
    margin-top: 40px;
    background: white;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.waveform span {
    width: 4px;
    background: var(--primary);
    animation: bounce 1s infinite alternate;
}


/* Különböző magasságok a sávoknak */
.waveform span:nth-child(2) { animation-delay: 0.2s; }
.waveform span:nth-child(3) { animation-delay: 0.4s; }
.waveform span:nth-child(4) { animation-delay: 0.1s; }


.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* A felugró ablak háttere */
#feedback-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Sötétített háttér */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Enyhe homályosítás mögötte */
    transition: opacity 0.3s ease;
}

/* Maga a fehér kártya középen */
.feedback-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 80%;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#popup-emoji {
    font-size: 5rem;
    margin-bottom: 10px;
}

#popup-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.feedback-card button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

/* Segédosztály az elrejtéshez */
.hidden {
    display: none !important;
}


/* Asztali nézet / Tablet */
@media (min-width: 600px) {
    .game-area {
        flex-direction: row;
    }
}

/* --- Opcionális: Ha fekvő módban használják a telefont --- */
@media (max-height: 450px) and (orientation: landscape) {
    .game-area {
        flex-direction: row; /* Fekvő módban egymás mellett */
        height: calc(100vh - 60px);
    }
    
    .card {
        max-height: 100%;
        width: 48%;
    }
    
    .card img {
        height: 70%;
    }
}

@keyframes bounce {
    from { height: 4px; }
    to { height: 20px; }
}
