@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

/* Global Reset */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      line-height: 1.5;
    }

    body {
      /*font-family: "Comic Relief", system-ui;*/
      font-family: "Josefin Sans", sans-serif;
      background: #076585;
      background: -webkit-linear-gradient(to right, #076585, #fff);
      background: linear-gradient(to right, #076585, #fff);
      /*background-color: #f5f7fa;*/
      color: #333;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* Navbar */
    header { 
      background: #0f0c29;
      background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
      background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
      color: #fff;
      padding: 15px 20px;
      position: relative;
    }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1100px;
      margin: auto;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      cursor: pointer;
    }

    .logo:hover {
      color: #00fcff;
    }
    
    
    ul {
      list-style-type: none;
      }

    nav {
      display: flex;
      gap: 20px;
      align-items: center;
    }
    
    /* nav ul li {
      list-style-type: none;
      display: flex;
      gap: 20px;
    } */
    
    nav a {
      color: #ecf0f1;
      font-size: 1rem;
      padding: 6px 10px;
      transition: color 0.3s ease;
    }

    nav a:hover {
      color: #1abc9c;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background-color: white;
      transition: all 0.3s ease;
    }

    .mobile-nav {
      display: none;
      flex-direction: column;
      background-color: #34495e;
      position: absolute;
      top: 60px;
      right: 20px;
      width: 200px;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      z-index: 999;
    }

    .mobile-nav a {
      padding: 12px 16px;
      color: #ecf0f1;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav a:hover {
      background-color: #1abc9c;
      color: #fff;
    }

    /* Book Review List */
    .book-list-container {
      max-width: 1100px;
      margin: 40px auto;
      /*display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
      gap: 30px;
      padding: 0 20px;
    }

    /* Footer */
    footer {
      /*background-color: #2c3e50;*/
      color: #ecf0f1;
      background: #0f0c29;
      background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
      background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
      padding: 10px 10px;
      text-align: center;
      margin-top: 40px;
    }

    .social-links a {
      margin: 0 10px;
      color: #ecf0f1;
      font-size: 1rem;
      transition: color 0.3s;
    }

    footer .social-links a:hover {
      color: #1abc9c;
    }

    /* Responsive Behavior */
    @media (max-width: 768px) {
      nav {
        display: none;
      }
      .book-item img {
      width: 50%;
      height: 50%;
      }

      .hamburger {
        display: flex;
      }

      .mobile-nav.show {
        display: flex;
      }

      .book-item img {
        height: 180px;
      }
    }

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #34495e;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  min-width: 160px;
  padding: 5px 0;

}

/* Make the dropdown smaller and neater */
.dropdown-content a {
  display: block;
  padding: 10px 15px;
  font-size: 0.95rem;
  color: #ecf0f1;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #1abc9c;
  color:#ffffff;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown a {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: #ecf0f1;
}

.mobile-dropdown-content {
  display: none;
  background-color: #2c3e50;
  padding-left: 16px;
}

.mobile-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #ecf0f1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-content a:hover {
  background-color: #1abc9c;
  color: #fff;
}
.dropdown-toggle {
  background: none;
  border: none;
  color: #ecf0f1;
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dropdown-toggle:hover {
  color: #1abc9c;
}

ul.bullet {
  list-style: square inside url("sqpurple.gif");
  padding-left: 25px;
}
h1{
  text-align: center;
  padding-top: 35px;
  padding-inline: 5px;
  color:#000080;
  text-decoration: underline dotted #04465d;
  text-underline-offset: 5px;
}

code {
    color:#e83e8c;
    word-wrap: break-word;
    font-size:90%;
  }

code a {
    border-bottom:2px dotted;
  }

code a:hover {
    color:#d81f74;
    text-decoration:underline;
    border-bottom:none;
  }
  
.about-me-section {
  padding: 20px 20px 60px 20px; /* 40px 20px; */
  display: flex;
  justify-content: center;
  background: transparent; /* Keeps your existing background */
}

.about-me-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  align-items: center;
  gap: 30px;
}

.about-me-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ccc;
}

.about-me-text {
  flex: 1;
  min-width: 250px;
}

.about-me-text h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.about-me-text p {
  font-size: 1.1em;
  line-height: 1.6;
  font-family:monospace;
  text-align:justify;
  text-indent: 15px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .about-me-container {
    flex-direction: column;
    text-align: center;
  }

  .about-me-photo img {
    margin: 0 auto;
  }
}

  
   .toggleBtn { 
    color:#07086e;
    background:transparent;
    border: none;
  font-weight: 400;
  padding: 0px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 0.8em;
  box-shadow: 0 2px 6px rgba(200, 201, 247, 0.7);
  font-family: monospace; 
  }
  
  #toggleBtn:hover {
    transform: scale(1.1);
    background: rgba(200, 201, 247, 0.5);
    box-shadow: 0 4px 10px rgba(200, 201, 247, 0.9); 
  }
  #toggleBtn:active {
    transform: scale(0.95);
  }
  #email {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.8);
    color: #0909ad;
    box-shadow: 0 2px 6px rgba(37, 117, 252, 0.2);
    user-select: text;
    transition: background-color 0.3s ease;
    font-family: monospace;
    /*font-weight:bold;*/
  }
  #email:hover {
    background-color: #e6f0ff;
  }