body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Dark background */
    color: #ffffff; /* White text */
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1f1f1f; /* Darker header background */
}

header h1 {
    display: flex;
    align-items: center;
    margin: 0;
    color: #ffffff; /* White text */
}

header h1 img {
    margin-right: 10px;
    height: 70px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

a {
    color: yellow;
}

.highlight {
    color: orange;
}

.ebook-image {
    width: 150px; /* Adjust size as needed */
    height: auto;
}
/* nav ul {
    list-style-type: none;
    padding: 0; */
/* } */

/* nav ul li {
    display: inline;
    margin-right: 10px;
} */

.ebook {
    margin-bottom: 20px;
}

/* Add styles for e-book titles */
.ebook-title {
    color: rgb(22, 128, 170);
}

.ebook-title.modified {
    color: orange;
}

/* Add styles for the e-books list to be in two columns */
#ebooks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ebook-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

/* Add styles for the "Go to Cart" link */
#go-to-cart {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

#go-to-cart:hover {
    background-color: #0056b3;
}

/* Add styles for the cart page */
.cart-section {
    margin: 20px 0;
}

.cart-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.cart-item h3 {
    margin: 0 0 10px 0;
}

.cart-item label {
    display: block;
    margin-bottom: 5px;
}

.cart-item input[type="number"] {
    width: 60px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cart-item .total-price {
    font-weight: bold;
}

.cart-buttons {
    margin-top: 20px;
}

.cart-buttons a,
.cart-buttons button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.cart-buttons a:hover,
.cart-buttons button:hover {
    background-color: #0056b3;
}

#total-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
}

#confirm-and-go-to-payments,
#clear-cart {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
}

#confirm-and-go-to-payments:hover,
#clear-cart:hover {
    background-color: #0056b3;
}

#confirm-selection {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

#confirm-selection:hover {
    background-color: #0056b3;
}

nav ul li a {
    font-size: 20px; /* Increased menu title size */
    text-decoration: none;
    color: #ffffff; /* Changed menu title color to white */
    font-weight: bold; /* Made menu titles bold */
}

nav ul li a:visited {
    color: #ffa500; /* Orange for visited links */
}

.page-title {
    text-align: left; /* Left aligned */
    margin: 20px 0;
    font-size: 32px;
    font-weight: bold;
}

.content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.author {
    flex: 1;
    display: flex;
    align-items: flex-start; /* Left aligned */
    flex-direction: column;
    margin-right: 20px;
}

.author img {
    border-radius: 50%;
    height: 100px;
    margin-bottom: 20px;
}

.author-info {
    color: #ffffff; /* White text */
    text-align: left; /* Left aligned */
}

.author-info h2 {
    margin: 0;
}

.author-info p {
    margin: 5px 0;
}

.main-content {
    flex: 2;
    padding: 0 20px;
    text-align: left; /* Left aligned */
}

.blog-titles {
    flex: 1;
    padding-left: 20px;
}

.blog-titles h3 {
    margin-top: 0;
}

.blog-titles ul {
    list-style: none;
    padding: 0;
}

.blog-titles ul li {
    margin-bottom: 10px;
}

.blog-titles ul li a {
    text-decoration: none;
    color: #ffffff; /* White text */
}

.blog-titles ul li a:visited {
    color: #ffa500; /* Orange for visited links */
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1f1f1f; /* Darker footer background */
    color: #ffffff; /* White text */
}

footer p {
    text-align: right;
    padding: 10px 20px;
    color: #fff;
}

#newsletter {
    margin-top: 20px;
}

#newsletter h3 {
    margin: 0 0 10px 0;
}

#newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
}

#newsletter input[type="email"] {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #333; /* Dark input background */
    color: #ffffff; /* White text */
}

#newsletter button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.subscribe-button {
    padding: 5px 8px; /* Adjust padding to fit the text */
    font-size: 14px; /* Adjust font size if necessary */
    border: 1px solid #ccc; /* Optional: border styling */
    background-color: #f8f8f8; /* Optional: background color */
    cursor: pointer; /* Change cursor to pointer */
}

#newsletter button:hover {
    background-color: #0056b3;
}

/* Add styles for the payment page */
.payment-section {
    margin: 20px 0;
}

.payment-method {
    margin-bottom: 20px;
}

.payment-method label {
    display: block;
    margin-bottom: 5px;
}

.payment-method input[type="text"],
.payment-method input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.payment-method button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.payment-method button:hover {
    background-color: #0056b3;
}

.confirmation-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    display: none;
}

.hidden {
    display: none;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #121212; /* Dark background */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form h3 {
    margin-top: 0;
}

.payment-method {
    margin-bottom: 20px;
}

.payment-method label {
    display: block;
    margin-bottom: 5px;
}

.payment-method input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#credit-card-number {
    width: 16ch; /* 16 characters wide */
}

#expiry-date {
    width: 7ch; /* mm/yyyy format */
}

#cvc {
    width: 3ch; /* 3 characters wide */
}

#mbway-number {
    width: 9ch; /* 9 characters wide */
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}