/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    background-color: #add8e6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    text-align: center;
    overflow-y: auto; /* przewijanie w razie potrzeby */
}

main h1 {
    font-size: 2rem;
    color: #023e8a;
    margin-bottom: 20px;
}

.slider {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.book-container {
    position: relative;
}

.book {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.book.hidden {
    display: none;
}

.book img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 5px;
}

.book-info {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: left;
}

.book-info h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #023e8a;
    border-bottom: 2px solid #0077b6;
    padding-bottom: 5px;
}

.book-info p {
    line-height: 1.5;
    color: #03045e;
    margin-bottom: 10px;
}

.buy-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #005f73;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
}

.buy-button:hover {
    background-color: #0a9396;
}

/* Stopka */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #0077b6;
    color: white;
}

.footer-text {
    text-align: center;
    flex: 1;
    font-size: 14px;
}

/* Sekcja ikon */
.social-icons {
    display: flex;
    gap: 15px;
}

/* Linki w stopce */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.social-icons a:hover,
.social-icons a:focus {
    background-color: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

/* Ikony SVG */
.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Ukryty tekst dostępności (dla screen readerów) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Mobile */
@media (max-width: 600px) {
    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-icons {
        justify-content: center;
    }

    .book {
        flex-direction: column;
        align-items: center;
    }

    .book-info {
        text-align: center;
    }
}
