:root {
    --main-color: #e44d26; /* Intensywny pomarańczowo-czerwony */
    --light-text: #ffffff;
    --dark-text: #333333;
    --link-hover: #ff9933;
    --modal-bg: rgba(0, 0, 0, 0.8);
}

/* Reset i czcionka */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-color);
    color: var(--light-text);
    text-align: center;
}

.page-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- SEKCJA NAGŁÓWKA --- */
.header h1 {
    font-weight: 700;
    font-size: 2.5em;
    margin-bottom: 5px;
}
.subtitle-box {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 10px;
}
.title-bar {
    background-color: var(--light-text);
    color: var(--main-color);
    padding: 5px 0;
    font-size: 1.2em;
    font-weight: 700;
    width: 80%;
    max-width: 400px;
    margin: 0 auto 30px;
}
.check-yourself {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--light-text);
    color: var(--main-color);
    padding: 10px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- SEKCJA GŁÓWNEJ TREŚCI --- */

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.book-cover {
    /* Usunięte tło i padding, bo obrazek będzie je definiował */
    /* background-color: #ffb84d; */
    /* padding: 20px; */
    margin-bottom: 30px;
    width: fit-content;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ważne, aby obrazek respektował border-radius */
}

.book-cover img {
    max-height: 400px; /* Maksymalna szerokość kontenera */
}

/* Nowy styl dla obrazka okładki */
.book-cover-image {
    width: 100%; /* Obrazek wypełnia cały kontener */
    height: auto; /* Zachowuje proporcje */
    display: block; /* Usuwa zbędne marginesy pod obrazkiem */
}
.tests-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 600px;
}

.test-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.test-column h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--light-text);
}

.test-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 8px;
    padding: 5px 0;
    transition: color 0.2s;
}

.test-link:hover {
    color: var(--link-hover);
}

/* --- STOPKA --- */
.footer {
    margin-top: 40px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- MODAL (LIGHTBOX) STYLES --- */
.modal {
    display: none; /* Ukryty domyślnie przez JS */
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    
    /* Centrowanie */
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.is-visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--light-text);
    color: var(--dark-text);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    
    /* Animacja wejścia */
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.modal.is-visible .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--main-color);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#modal-audio-player {
    width: 100%;
    margin-top: 15px;
}

.close-btn {
    color: var(--dark-text);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--main-color);
}