* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Jost", serif;
    min-height: 100vh;
    background: url("japan.jpg") no-repeat center center/cover;
    background-attachment: fixed;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}

.navbar-logo {
    font-family: 'Tilt Warp';
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navbar-menu li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: #000000;
    background: #e6d3c7;
    border: 2px solid #000000;
}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 5000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff;
    transition: all 0.3s ease-in-out;
}


.navbook {
    display: flex;
    padding: 40px;
}

.book-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
    padding: 40px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.book-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 280px;
    padding-bottom: 10px; 
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.book-card h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    color: #333;
}

.book-card p {
    font-size: 0.95rem;
    color: #666;
    padding: 0 10px;
    min-height: 60px;
}

.price {
    display: block;
    font-weight: 600;
    color: #000;
    margin: 10px 0;
}

.buy-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-btn:hover {
    background: #ff2c2c;
}


body.payment-page {
    font-family: Arial, sans-serif;
    background: url("japan.jpg") no-repeat center center/cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.payment-container {
    display: flex;
    width: 90%;
    max-width: 1100px;
    gap: 40px;
}

.book-info {
    width: 40%;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
}

.book-info img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
}

.book-info h2 {
    font-family: "Jost", serif;
    margin-top: 15px;
}

.book-info p {
    font-size: 20px;
    font-weight: bold;
}

.payment-form {
    width: 60%;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    position: relative;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #E6D3C7;
    color: black;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgb(0 0 0 / 70%);
    transition: 0.3s ease;
}

.back-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px #E6D3C7;
}

.payment-form h2 {
    margin-top: 10px;
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #4e54c8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background: #3b40a4;
}

#message {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}


@media (max-width: 880px) {
    .navbar-menu {
        display: none !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem;
        position: fixed;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 100;
    }

    .navbar-menu.active {
        display: flex !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .payment-container {
        flex-direction: column;
        gap: 20px;
    }

    .book-info,
    .payment-form {
        width: 100%;
    }

    .book-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}