/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

/* Headline advertisement section at the top of the page */
.headline-ad {
    background-color: #FF9900;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.headline-ad p {
    margin: 0;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #232F3E;
    color: white;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo link styling */
.logo a {
    text-decoration: none;
    color: white;
}

.logo a:hover {
    text-decoration: underline;
}

.logo img {
    max-height: 75px;
    /* Állítsd be a kívánt magasságot */
    margin-right: 10px;
    /* Hely a kép és a szöveg között */
}

.logo span {
    font-size: 24px;
    /* Állítsd be a kívánt betűméretet */
    font-weight: bold;
}

/* Navigation styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Search bar styles */
.search-bar input {
    padding: 5px;
    border: none;
    border-radius: 5px;
    width: 200px;
}

/* Main content layout */
.main-content {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Slider container for ad banners */
.slider-container {
    flex: 2;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 300px;
    margin-bottom: 20px;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Individual slide styling */
.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Ad details inside the slider */
.ad-details {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.ad-details h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
}

.ad-details p {
    font-size: 16px;
}

/* Navigation buttons for slider */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 30px;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    user-select: none;
    transition: 0.3s;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Sidebar styling (left column) */
.sidebar {
    width: 250px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-right: 20px;
}

/* Category filter styles */
.category-filter,
.language-filter,
.top-books,
.best-sellers {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
}

.category-filter h3,
.language-filter h3,
.top-books h3,
.best-sellers h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Category list styles */
.category-filter ul,
.language-filter ul,
.top-books ul,
.best-sellers ul {
    list-style: none;
    padding: 0;
}

.category-filter li,
.language-filter li,
.top-books li,
.best-sellers li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.category-filter li:hover,
.language-filter li:hover,
.top-books li:hover,
.best-sellers li:hover {
    background-color: #ddd;
}

/* Book list styling */
.book-list {
    flex-grow: 1;
    padding: 30px 20px;
    text-align: center;
    background-color: white;
}

/* Book grid layout with 4 columns per row */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    row-gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual book card styles */
.book-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.book-card:hover {
    transform: scale(1.03);
}

/* Book image styling */
.book-card img {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Book details (title, author, price) */
.book-details {
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.book-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.book-author {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.book-pages {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.book-language {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.book-isbn {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.book-asin {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.price-box {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

.book-price {
    font-size: 15px;
    font-weight: bold;
    color: #FF9900;
    margin-bottom: 10px;
}

.kindle-price {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
}

/* Description box (hidden by default) */
.book-description {
    display: none;
    position: absolute;
    background-color: #fff;
    color: #333;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    z-index: 9999;
    border-radius: 5px;
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show description when hovering on book card */
.book-card:hover .book-description {
    display: block;
    opacity: 1;
}

/* Button layout (Buy Now, View Details) */
.book-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Button styles */
.btn {
    padding: 8px 15px;
    background-color: #FF9900;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #E47911;
    transition: background-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    flex: 1;
    margin-right: 5px;
}

.btn:last-child {
    margin-right: 0;
}

.btn:hover {
    background-color: #F08804;
}

.btn:active {
    background-color: #D97B07;
    border-color: #A86909;
}

/* Footer Styles */
footer {
    background-color: #232F3E;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
}

/* Footer section */
.footer-section {
    flex: 1;
    padding: 0 20px;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Footer links list */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Footer links styling */
.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

/* Vertical divider between footer sections */
.footer-container .vertical-divider {
    border-left: 1px solid #555;
    margin-left: 20px;
    margin-right: 20px;
    height: auto;
}

/* Install App and Social Links */
.install-app {
    margin-top: 20px;
}

.install-app img {
    margin-right: 10px;
}

.follow-us {
    margin-top: 20px;
}

.follow-us i {
    margin-right: 10px;
    color: white;
    font-size: 20px;
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

.footer-bottom .contact-info {
    font-size: 14px;
    color: #FF9900;
}

/* Reviews Section */
.reviews-section {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.reviews-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* Reviews grid */
.reviews-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual review card */
.review-card {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px);
    margin-left: 10px;
    margin-right: 10px;
}

.review-card p {
    font-size: 16px;
    line-height: 1.5;
}

.review-author {
    font-weight: bold;
    margin-top: 10px;
}

/* Book details page styles */
.book-details-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

/* Book details container */
.book-details-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Book image */
.book-details-container img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Book info section */
.book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
}

.book-info h1 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.book-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.book-info .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #FF9900;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #E47911;
    transition: background-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.book-info .btn:hover {
    background-color: #F08804;
}

.book-info .btn:active {
    background-color: #D97B07;
    border-color: #A86909;
}

/* Separator for different sections */
.separator {
    margin: 50px 0;
    height: 2px;
    background-color: #ddd;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Boxes layout */
.content-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
}

/* Individual content box */
.content-box {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Content box title */
.content-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

/* Content box description */
.content-box p {
    font-size: 16px;
    color: #555;
}

/* Burger menu styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 5px 0;
    border-radius: 5px;
}

/* Desktop menu is shown by default */
.desktop-menu {
    display: flex;
}

/* Mobile menu hidden by default */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #232F3E;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: left;
    z-index: 999;
}

/* Mobile menu list */
.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    padding: 10px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Book Details Specific Styles */
.radio-buttons {
    margin: 16px 0;
    text-align: center;
}

/* Radio button labels */
.radio-buttons label {
    margin-right: 10px;
}

/* Title and separator */
.title-bar {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 20px;
}

.title-bar h1 {
    font-size: 24px;
    color: #232F3E;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Separator bar under title */
.title-bar h1 .separator {
    flex-grow: 1;
    height: 2px;
    background-color: #ddd;
    margin-left: 15px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

    /* Header adjustments for smaller screens */
    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        order: 1;
        margin-bottom: 10px;
    }

    .burger-menu {
        display: flex;
        order: 2;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    /* Hide desktop menu */
    .desktop-menu {
        display: none;
    }

    /* Show mobile menu when active */
    .mobile-menu.active {
        display: flex;
    }

    /* Adjust main content for smaller screens */
    .main-content {
        flex-direction: column;
        margin-bottom: 20px;
    }

    /* Full width sidebar for smaller screens */
    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Adjust content layout for smaller screens */
    .category-filter,
    .language-filter,
    .top-books,
    .best-sellers {
        width: 100%;
        max-width: 300px;
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Change book grid layout to single column for smaller screens */
    .book-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Adjust book card for mobile screens */
    .book-card {
        margin-bottom: 0;
    }

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

    /* Adjust buttons for mobile layout */
    .book-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn {
        width: 100%;
    }

    /* Slider changes for mobile */
    .slider-container {
        height: auto;
        margin-bottom: 20px;
    }

    .slide img {
        height: auto;
    }

    /* Footer adjustments for smaller screens */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Remove vertical divider */
    .footer-container .vertical-divider {
        display: none;
    }

    .install-app,
    .follow-us {
        text-align: center;
    }

    /* Content Boxes for mobile */
    .content-boxes {
        flex-direction: column;
        align-items: center;
    }

    .content-box {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }

    /* Adjust review card width */
    .review-card {
        width: calc(50% - 20px);
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {

    /* Logo font-size adjustment */
    .logo {
        font-size: 20px;
    }

    /* Navigation padding adjustments */
    nav ul li {
        padding: 5px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 5px;
    }

    /* Sidebar padding for small devices */
    .sidebar {
        padding: 10px;
    }

    /* Adjust book grid layout for small devices */
    .book-grid {
        gap: 40px;
    }

    /* Adjust book card image size */
    .book-card img {
        max-width: 100%;
    }

    /* Footer layout changes for small devices */
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        padding: 10px 0;
        width: 100%;
    }

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

    /* Full width review card */
    .review-card {
        width: 100%;
    }

    /* Content box adjustments for very small screens */
    .content-box {
        padding: 20px;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .content-box h3 {
        font-size: 20px;
    }

    .content-box p {
        font-size: 14px;
    }
}

/* Content Boxes layout */
.content-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
}

/* Individual content box */
.content-box {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure the body and containers do not cause overflow */
body,
html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Large content box */
.large-content-box-container {
    max-width: 1200px;
    margin: 50px auto;
}

.large-content-box {
    background-color: #fff;
    padding: 50px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: justify;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't cause overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.large-content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for mobile */
@media (max-width: 768px) {
    .content-boxes {
        flex-direction: column;
        gap: 30px;
    }

    .large-content-box {
        padding: 30px;
        margin: 20px;
        width: calc(100% - 40px);
        /* Adjust for padding/margin to avoid overflow */
    }
}

@media (max-width: 480px) {
    .large-content-box {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
        /* Further adjust for small screens */
    }
}

/* Sponsors section container */
.sponsors-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Space between the logos */
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sponsor logo container */
.sponsor-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

/* Sponsor logos */
.sponsor-logo {
    max-width: 150px;
    /* Uniform size for logos */
    height: auto;
    object-fit: contain;
    /* Ensure logos fit within the container */
}

/* Vertical separator between logos */
.sponsor-separator {
    width: 2px;
    height: 80px;
    background-color: #ddd;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .sponsors-section {
        flex-direction: column;
        gap: 10px;
    }

    .sponsor-separator {
        width: 80px;
        /* Horizontal line instead of vertical */
        height: 2px;
    }

    .sponsor-logo {
        max-width: 100px;
        /* Smaller logos for mobile */
    }
}

/* Newsletter Subscription Section Styles */
.newsletter-section {
    background-color: #232F3E;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

#newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#email-input {
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px 0 0 5px;
    flex: 1;
    min-width: 250px;
}

.subscribe-btn {
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    background-color: #FF9900;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #F08804;
}

.subscribe-btn:active {
    background-color: #D97B07;
}

@media (max-width: 480px) {
    #newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    #email-input,
    .subscribe-btn {
        border-radius: 5px;
        margin: 5px 0;
    }

    #email-input {
        width: 100%;
    }

    .subscribe-btn {
        width: 100%;
    }
}