/* Reset styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styles */
body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  background-color: #f2f2f2;
  max-width: 100%;
}

body.dark-mode header {
  background-color: #222;
  color: #fff;
}

.dark-mode header button {
  color: white;
}
button {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #0069d9;
  color: white;
}
/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

header a {
  text-decoration: none;
  color: #333;
}

header h1 {
  font-size: 1.5rem;
}

header button {
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  color: #333;
  transition: all 0.3s ease-in-out;
}

header button:hover {
  transform: scale(1.1);
}

/* FAQ section styles */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  padding-top:25px;
}

.faq li {
  margin-bottom: 1rem;
  list-style: none;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq li .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
}

.faq li .faq-question:hover {
  background-color: #f2f2f2;
}

.faq li .faq-question:after {
  content: "+";
  font-weight: bold;
  margin-left: auto;
}

.faq li .faq-question.active:after {
  content: "-";
}

.faq li .faq-answer {
  /*display: none;*/
  padding: 1rem;
}

.faq li .faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Dark mode styles */
body.dark-mode {
  color: #f2f2f2;
  background-color: #333;
}

header.dark-mode {
  background-color: #444;
  color: #f2f2f2!important;
}

header.dark-mode a {
  color: #f2f2f2!important;
}

header.dark-mode button {
  color: #f2f2f2;
}

.faq.dark-mode li {
  background-color: #444;
  color: #f2f2f2!important;
}

.faq.dark-mode h3 {
  color: #f2f2f2!important;
}

.faq.dark-mode li .faq-question:hover {
  background-color: #333;
}

.faq.dark-mode li .faq-answer {
  background-color: #333;
}

.dark-mode-switch {
  display: flex;
  align-items: center;
}

.dark-mode-toggle {
  opacity: 0;
  position: absolute;
}

.dark-mode-toggle + label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.dark-mode-toggle + label i {
  position: absolute;
  left: 2px;
  top: 2px;
  transition: all 0.3s ease;
}

.dark-mode-toggle + label i.fa-sun {
  color: #f1c40f;
}

.dark-mode-toggle + label i.fa-moon {
  color: #f39c12;
}

.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background-color: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-track:before {
  position: absolute;
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #fff;
  top: 4px;
  left: 4px;
  transition: all 0.3s ease;
}

.dark-mode-toggle:checked + label .toggle-track {
  background-color: #4cd964;
}

.dark-mode-toggle:checked + label .toggle-track:before {
  transform: translateX(26px);
}
.dark-mode-switch .toggle-track {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top:5px;
}

.dark-mode-switch .toggle-track i {
  margin-right: 10px;
}

#sun-icon, #moon-icon{
  color: orange;
}

#home-icon{
  color: dodgerblue;
}

section h2 {
  padding-top: 20px;
  padding-left: 20px;
}

.fas{
  font-size: 35px;
  margin-right:20px;
}

.dark-mode .faq li {
  background-color: #444444;
}

.dark-mode .faq h3 {
  background-color: #222;
  color:white;
}

.dark-mode .faq li .faq-question:hover {
  background-color: #6d6d6d !important;
}

/* Default style */
#search {
  padding: 10px 15px;
  border: none;
  border-radius: 0px;
  font-size: 16px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-right: 10px;
  width:95%;
}

/* Dark mode style */
.dark-mode #search {
  background-color: #444;
  color: #fff;

}

/* Search icon */
#search-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  fill: #333;
}

/* Dark mode search icon */
.dark-mode #search-icon {
  fill: #fff;
}

.search-container{
  padding-top:25px;
  max-width: 800px;
  margin:0 auto;
}

