/* styles.css - Main stylesheet for Faastop website */

body {
  margin-top: 0px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  margin: 0;
  padding: 0;
  color: #111;
}

.w3-top {
  position: sticky;
  top: 0;
}

.underlined-heading {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 28px auto;
  padding: 0 16px;
}

/* Card styles */
.card {
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 8px;
  margin: 10px 0;
  background: #fff;
  transition: all 0.3s ease;
}

.card:hover {
  background-color: #f9f9f9;
  border-color: #ddd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Link styles */
.field-link, .branch-link, .subject-link, .chapter-link, .topic-link, .notes-link {
  text-decoration: none;
  color: #333;
  display: block;
}

/* Header styles */
.page-header {
  font-size: 22px;
  margin-bottom: 8px;
  text-decoration: underline;
}

.hint {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}

/* div1 styling for main content */
#div1 {
  width: 100%;
}

/* Table styles */
#table_one {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#table_one td, #table_one th {
  border: 1px solid #ddd;
  padding: 8px;
}

#table_one tr:hover {background-color: #ddd;}

#table_one th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #0c0e0d;
  color: white;
}

/* Responsive design */
@media screen and (min-width: 1366px) {
  #div1 {
    width: 60%;
  }

  #left_ad_for_larger_display,
  #right_ad_for_larger_display {
    width: 20%;
    top: 30px;
    height: auto;
    max-height: none;
    position: sticky;
    border: 2px solid lightgray;
  }
}

@media screen and (max-width: 1365px) {
  #left_ad_for_larger_display,
  #right_ad_for_larger_display {
    display: none !important;
  }
}

/* WhatsApp specific */
@media screen and (min-width: 992px) {
  .whatsapp {
    display: none;
  }
}

@media screen and (max-width: 990px) {
  .whatsapp_web {
    display: none;
  }
}

/* Dark mode */
.dark-mode {
  background-color: #4f6668;
  color: white;
}

.dark-mode-icon {
  font-family: 'your-font-name';
  font-size: 2px;
}

.responsive-image {
  max-width: 100%;
  height: auto;
}

/* Sidebar and layout */
#div1, #div3 {
  width: 100%;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Sidebar styling for div2 */
#div2 {
  width: 350px;
  height: 100%;
  background-color: #333;
  color: white;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2;
  overflow-y: auto;
}

#div2 h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #555;
  padding-bottom: 10px;
}

#div2 ul {
  list-style-type: none;
  padding: 0;
}

#div2 ul li {
  margin: 15px 0;
}

#div2 ul li a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
  background-color: #444;
  border-radius: 5px;
}

#div2 ul li a:hover {
  background-color: #555;
  cursor: pointer;
}

/* div3 styling */
#div3 {
  height: 100%;
  background-color: #333;
  color: white;
  padding: 20px;
  position: fixed;
  top: 0px;
  z-index: 2;
  overflow-y: auto;
}

#div3 h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #555;
  padding-bottom: 10px;
}

#div3 ul {
  list-style-type: none;
}

#div3 ul li {
  margin: 15px 0;
}

#div3 ul li a {
  color: rgb(221, 12, 12);
  text-decoration: none;
  padding: 10px;
  display: block;
  background-color: #cdb2b2;
  border-radius: 5px;
  text-align: center;
  text-shadow: 4px 4px 6px #555;
  font-size: 50px;
  font-family: fantasy;
  padding-top: 50;
}

#div3 ul li a:hover {
  background-color: #555;
  cursor: pointer;
}

/* Dropdown styles */
.dropdown-btn {
  text-decoration: none;
  font-size: 22px;
  display: block;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  margin: 15px 0;
  color: black;
  text-decoration: none;
  padding: 10px;
  display: block;
  background-color: red;
  border-radius: 5px;
}

.dropdown-btn2 {
  text-decoration: none;
  font-size: 15px;
  color: #818181;
  display: block;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  margin: 15px 0;
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
  background-color: #444;
  border-radius: 5px;
}

.active {
  background-color: rgb(38, 216, 22);
  color: black;
}

.dropdown-container {
  display: none;
  background: none;
  color: #5cc33a;
  padding-left: 8px;
}

.fa-caret-down {
  float: right;
  padding-right: 8px;
}

/* SEO meta info - hidden from users */
.meta-info {
  display: none;
}