body {
    font-family: Arial, sans-serif;
    background-image: url('https://www.transparenttextures.com/patterns/old-wall.png');
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
  }

header {
    text-align: center;
    background: linear-gradient(90deg, #7c1604, #031e4c); /* Updated gradient */
    color: white;
    padding: 20px 0;
  }

* {
    transition: background-color 0.3s, color 0.3s;
  }

#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
  }
  
.dark-mode #darkModeToggle {
    background: white;
    color: black;
  }

  body.dark-mode {
    background-color: black;
    color: #ffffff;
  }

.dark-mode h2{
    color: red;
  }

.dark-mode header {
    background-color: #333;
  }
  
.dark-mode nav {
    background-color: #444;
  }
  
.dark-mode .book {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #555;
  }
  
.dark-mode .book *important {
    color: white ;
  }
  
.dark-mode #searchBar, 
.dark-mode #sortOptions {
    background-color: #333;
    color: white;
    border: 2px solid white;
  }

h2{
    color : #7c1604;
  }

nav {
    display: flex;
    justify-content: center;
    background-color: #7c1604;
    font-size: 18px;
    font-weight: bolder;
  }
  
nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    padding: 10px 15px;
  }
  
nav a:hover {
    background-color: #9e290e;;
    border-radius: 5px; /* Smooth corners for the hover effect */
  }

main {
    padding: 20px;
  }

.section {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  /* Apply .section styles to #quoteSection */
#quoteSection {
  margin-bottom: 40px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
  }

/* Dark mode styling (same as .section) */
.dark-mode .section, 
.dark-mode #quoteSection {
  background: #2a2a2a;  /* Dark Mode Background */
  color: white;  /* Text Color */
  border: 1px solid white;
  box-shadow: 0 4px 8px rgb(255, 255, 255,0.6);
  }

#quoteText {
    opacity: 1;
    transition: opacity 1s ease-in-out;
  }

#resources ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    list-style: none;
    padding: 0;
  }

#resources ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #7c1604;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

#resources ul li a {
    text-decoration: none;
    color: white;
  }

#resources ul li:hover {
    transform: scale(1.1);
    background-color: #7c1604;;
  }

.focus-mode {
    background-color: #ff5722;
    color: white;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    cursor: pointer;
  }

.focus-mode.active {
    background-color: #c62828;
  }

.book-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

.book-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 200px;
  }

.book-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

.book-item img:hover {
    transform: scale(1.1); /* Slightly enlarge image on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect on hover */
  }

.book-item h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
  }

.book-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
  }

.book-item .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #7c1604;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }

.book-item .btn:hover {
    background-color: #3700b3;
  }

.marquee {
    background-color: #7c1604;
    color: white;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }

.contact-us {
    background-color: maroon;
    color: white;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
  }

.contact-us h3 {
    font-size: 1.5rem;
  }

.contact-us p {
    font-size: 1rem;
    margin: 10px 0;
  }

.contact-us a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }

.contact-us a:hover {
    text-decoration: underline;
  }

#pomodoro {
    text-align: center;
    margin-top: 40px;
    height: 500px;
  }

#timer {
    font-size: 2rem;
    margin: 10px ;
  }

#timer button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #7c1604;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

#timer button:hover {
    background-color: #3700b3;
  }

#timer input {
    padding: 10px;
    margin: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
  }

#progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
  }

#progress-bar {
    height: 20px;
    width: 0;
    background-color: #7c1604;
    transition: width 0.3s;
  }

footer {
    text-align: center;
    background: #333;
    color: white;
    padding: 10px 0;
    margin-top: 40px;
  }

.footer-note {
    background-color: #7c1604;
    color: white;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
  }

.footer-note p {
    margin: 10px 0;
  }

.footer-note a {
    margin: 0 10px;
    text-decoration: none;
    color: inherit;
  }

.footer-note img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

a img{
    border-radius: 50%;

  }

/* ============================= */
/* 📱 Mobile Responsive Styling  */
/* ============================= */

/* General adjustment for smaller screens */
@media (max-width: 768px) {
  header {
    padding: 15px 10px;
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    font-size: 16px;
  }

  nav a {
    margin: 8px 0;
    padding: 8px 12px;
    display: block;
  }

  .section, 
  #quoteSection,
  .book-item {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  .book-list {
    flex-direction: column;
    gap: 15px;
  }

  .book-item {
    width: 90%;
    margin: 0 auto;
  }

  #resources ul {
    flex-direction: column;
    gap: 15px;
  }

  #resources ul li {
    width: 80px;
    height: 80px;
    font-size: 0.8rem;
  }

  #timer input {
    width: 100%;
    max-width: 280px;
  }

  #darkModeToggle {
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* For very small screens (phones <480px) */
@media (max-width: 480px) {
  header {
    font-size: 0.9rem;
    padding: 10px;
  }

  h2 {
    font-size: 1.2rem;
  }

  nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .book-item h3 {
    font-size: 1rem;
  }

  .book-item p {
    font-size: 0.9rem;
  }

  #timer {
    font-size: 1.5rem;
  }

  #timer button {
    width: 100%;
    max-width: 200px;
    margin: 8px auto;
    display: block;
  }

  footer, .footer-note {
    font-size: 0.9rem;
    padding: 8px;
  }
}
