body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px; /* Add padding for smaller screens */
    box-sizing: border-box; /* Include padding in body size */
    text-align: center;
}

/* Stílus az intróhoz, játékhoz és vége képernyőhöz */
#intro-screen,
#game-container,
#end-game-screen {
    background-color: #fff;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 95%;
    width: 800px; /* Adjust width as needed */
    margin: 20px;
    box-sizing: border-box; /* Include padding in width */
}

/* Alapértelmezetten a játék és vége rejtve */
#game-container,
#end-game-screen {
    display: none;
}

/* Intrò specifikus stílusok */
#intro-screen h1 {
    color: #0056b3;
    margin-bottom: 15px;
}
#intro-screen h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#intro-screen p {
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left; /* Jobb olvashatóság a szabályoknál */
    padding-left: 10px;
    padding-right: 10px;
}
#intro-screen hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

/* Alma kérdés stílusai */
#apple-question-container {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
#apple-question-container p {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.apple-buttons {
    display: flex; /* Gombok egymás mellé */
    justify-content: center;
    gap: 15px; /* Térköz a gombok között */
}
#apple-yes, #apple-no {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
#apple-yes {
    background-color: #28a745; /* Zöld */
    color: white;
}
#apple-yes:hover {
    background-color: #218838;
    transform: scale(1.05);
}


#apple-no {
    background-color: #dc3545;
    color: white;
    /* NINCS transition visibility/opacity-ra */
    transition: background-color 0.2s ease; /* Csak a szín kapjon átmenetet */
    opacity: 1;
    visibility: visible;
    /* VÁLTOZÁS: Kurzor maradjon alapértelmezett */
    cursor: default;
}

#apple-no:hover {
    background-color: #c82333;
}


/* Játék konténer stílusok (már létezőek, esetleg finomítás) */
#score-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

#pictures-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.picture-wrapper {
    border: 4px solid transparent;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    background-color: #f9f9f9;
    width: 45%;
    min-width: 250px;
    box-sizing: border-box;
}
.picture-wrapper:hover {
    transform: scale(1.03);
}
.picture-wrapper img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 4px;
}
.picture-name {
    font-weight: bold;
    min-height: 2.4em;
    margin-bottom: 5px;
}
.popularity-display {
    font-size: 0.9em;
    color: #555;
    min-height: 1.2em;
    visibility: hidden;
    font-weight: bold;
}
.popularity-display.visible { visibility: visible; }
.win-outline { border-color: #28a745; }
.lose-outline { border-color: #dc3545; }

#result-display {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 1.5em;
}
#result-display.win { color: #28a745; }
#result-display.lose { color: #dc3545; }

/* Gomb stílusok (általános) */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
button:hover {
    background-color: #0056b3;
    transform: scale(1.03); /* Kis növekedés hoverre */
}
#next-button { background-color: #17a2b8; }
#next-button:hover { background-color: #117a8b; }
#restart-button { background-color: #ffc107; color: #333; }
#restart-button:hover { background-color: #e0a800; }

/* Játék vége képernyő */
#end-game-screen img {
    max-width: 80%;
    max-height: 300px;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}
#end-game-screen p {
    font-size: 1.1em;
}