* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    background-color: #EDE9E1;
    color: #333;
}

header {
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

nav a.active {
    border-bottom: 2px solid #333;
}

.heading {
    text-align: center;
    margin: 100px 0;
}

.heading h1 {
    font-size: 48px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.heading h3 {
    font-size: 24px;
    color: #555;
    font-weight: normal;
    margin-bottom: 20px;
}

.heading p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 20px;
}

.form-group {
    display: flex;
    justify-content: flex-end;
    margin: 20px;
    align-items: center;
}

.dropdown {
    margin-left: 10px;
}

.form-group label h6 {
    margin: 0;
    margin-right: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 100px;
}

.hero .image-number-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.hero img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero img:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
}

.hero .number {
    font-size: 140px;
    color: #E5ED37;
    font-weight: bold;
    position: absolute;
    bottom: -110px;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vh;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.popup h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #E5ED37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup strong {
    color: #ffffff;
}

.popup p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.popup .amazon-link {
    margin-top: 20px;
}

.popup .amazon-link a {
    display: inline-block;
    margin: 0 10px;
}

.popup .amazon-link a img {
    width: 90px;
    height: auto;
    transition: transform 0.2s ease;
}

.popup .amazon-link a img:hover {
    transform: scale(1.2);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #333;
    color: white;
}

.page-item.active .page-link {
    background-color: #333;
    color: white;
    border-color: #333;
}

#prev,
#next {
    font-size: 18px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background-color: black;
    font-weight: 900;
}

/* Add these media queries after the existing CSS */

@media (max-width: 768px) {
    header {
        flex-direction: row;
        gap: 20px;
        text-align: center;
        padding: 20px 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .heading {
        margin: 50px 0;
        padding: 0 15px;
    }

    .heading h1 {
        font-size: 32px;
    }

    .heading h3 {
        font-size: 20px;
    }

    .heading p {
        font-size: 16px;
        padding: 0 15px;
    }

    .hero {
        margin: 50px 10px;
        gap: 30px;
    }

    .hero .image-number-wrapper {
        margin-bottom: 80px;
    }

    .hero img {
        width: 250px;
    }

    .hero .number {
        font-size: 100px;
        bottom: -80px;
    }

    .popup {
        width: 90vw;
        height: 60vh;
        padding: 15px;
    }

    .popup h2 {
        font-size: 22px;
    }

    .popup p {
        font-size: 16px;
    }

    .popup .amazon-link a img {
        width: 70px;
    }

    .logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .heading h1 {
        font-size: 28px;
    }

    .heading h3 {
        font-size: 18px;
    }

    .hero img {
        width: 200px;
    }

    .hero .number {
        font-size: 80px;
        bottom: -70px;
    }

    .popup h2 {
        font-size: 20px;
    }

    .popup p {
        font-size: 14px;
    }

    .popup .amazon-link a img {
        width: 60px;
    }
}

/* Add a mobile menu button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
        background-color: #EDE9E1;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: center;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        width: auto;
        padding: 10px;
    }
}