/* --- Single Point Screen - Refactored Styles --- */

#singlePointScreen {
    /* #singlePointScreen jest ekranem flex i zajmuje całą dostępną przestrzeń pionową w .container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkuj zawartość poziomo */
    justify-content: flex-start; /* Umieść zawartość na górze */
    width: 100%;
    height: 100%; /* #singlePointScreen zajmuje 100% wysokości dostępnej w .container */
    box-sizing: border-box;
    overflow: hidden; /* #singlePointScreen sam nie przewija, to jego dziecko to robi */
    padding: 0; /* Padding na przewijalnym elemencie, nie tutaj */
}

/* KLUCZOWY KONTENER PRZEWIJALNY */
.single-point-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pozwala mu rozciągnąć się, aby wypełnić dostępną przestrzeń */
    width: 100%;
    max-width: 480px; /* Ograniczenie szerokości dla estetyki */
    margin: 0 auto; /* Wyśrodkuj w poziomie */
    overflow-y: auto; /* *** TO JEST TEN KLUCZ, KTÓRY POWINIEN ZADZIAŁAĆ *** */
    -webkit-overflow-scrolling: touch; /* Poprawa płynności scrollowania na iOS */
    padding: 20px 15px; /* Padding wewnętrzny dla treści (góra/dół i boki) */
    box-sizing: border-box; /* Padding wliczony w szerokość */
    background-color: transparent; /* Ustaw tło, jeśli potrzebne */
}

/* Ukrycie paska przewijania dla WebKit (Chrome, Safari) */
.single-point-content-wrapper::-webkit-scrollbar {
    display: none;
}
/* Dla Firefox */
.single-point-content-wrapper {
    scrollbar-width: none; /* Firefox */
}


.point-details {
    width: 100%; /* Zajmuje całą szerokość swojego rodzica (.single-point-content-wrapper) */
    background-color: #fff7c2;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 30px; /* Dodatkowy padding na dole, aby elementy były widoczne */
    box-sizing: border-box; /* Padding wliczony w szerokość */
    flex-shrink: 0; /* Zapobiega zmniejszaniu się, jeśli zawartość jest mniejsza niż wrapper */
}

.point-image {
    width: 90%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 10px;
    justify-self: center;
    margin-top: 10px;
}

.audio-container {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.audio-button {
    padding: 10px 20px;
    background-color: #1577c1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.timer-container {
    background-color: transparent;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.timer {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.question-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
    padding-bottom: 20px;
}

.question-text-container {
    background-color: #ffc941;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-left: 10px;
    margin-right: 10px;
}

.answer-button {
    padding: 10px;
    background-color: #1577c1;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-right: 10px;
    width: calc(100% - 20px); /* Dopasowanie szerokości przycisków */
    box-sizing: border-box;
}

.answer-button:hover {
    background-color: #0056b3;
}

/* Style dla ukończonych punktów (jeśli to jest używane) */
.point-item.completed {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.point-item.completed .point-overlay {
    background-color: rgba(0, 128, 0, 0.8);
    color: white;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
}