body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Helvetica', sans-serif;
    background-color: #F5F5FF;
}

/* Night Mode Styles */
:root {
  --background-color: #1a1a2e; /* Dark background for night mode */
  --text-color: #e6e6e6; /* Light text for better readability in night mode */
  --link-color: #4e9f3d; /* A green that stands out against the dark background but isn't too bright */
}

html.night-mode,body.night-mode {
  background-color: var(--background-color);
  color: var(--text-color);
}

body.night-mode a {
  color: var(--link-color);
}

body.night-mode header,
body.night-mode footer {
  background-color: var(--background-color);
}

body.night-mode #searchBox {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter for visibility */
  color: var(--text-color);
  border-color: var(--text-color); /* Borders should also be lighter to be visible */
}

body.night-mode #searchButton {
  background-color: var(--link-color);
}

.brand {
    margin-bottom: 20px;
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-size: 6em;
    display: block;
      color: #fff;
      text-shadow: -4px 4px #ef3551,
               -8px 8px #f48fb2;
}

.main-content {
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Center-aligns children horizontally */
  justify-content: center; /* Center-aligns children vertically */
  min-height: 100vh; /* Optional: Takes full viewport height */
}

.search-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center
    padding: 10px;
}

@keyframes fadeInOut {
    0%,100% { opacity: 0; }
    50% { opacity: 1; }
}

#searchBoxContainer::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #adb5bd;
    opacity: 1; /* Firefox */
    animation: fadeInOut 3s infinite;
}

#searchBoxContainer:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #adb5bd;
    animation: fadeInOut 3s infinite;
}

#searchBoxContainer::-ms-input-placeholder { /* Microsoft Edge */
    color: #adb5bd;
    animation: fadeInOut 3s infinite;
}

#searchBoxContainer {
    width: 100%;
    padding: 2px 2px;
    border-radius: 30px; /* Makes the search box curvy */
    margin-right: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    text-indent: 20px;
}

#searchButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4285F4; /* Google blue */
    border-radius: 30px;
    color: white;
    border: none;
    cursor: pointer;
}

#searchButton:hover {
    background-color: #357AE8; /* Darker Google blue */
}

.top-right-menu, footer {
    position: fixed;
    font-size: 0.8rem;
}

.top-right-menu {
    display: flex; /* This will apply Flexbox to your nav container */
    align-items: center; /* This will vertically center the items in the nav */
    justify-content: flex-end;
    top: 10px; /* Gives space from the top edge */
    right: 10px;
}

#settingsIcon img {
    height: 25px;
    width: auto;
    display: none;
    vertical-align: middle;
}

footer {
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

footer a, .top-right-menu a {
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
    transform: scale(1);
    font-weight: 400;
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
}

footer a:hover, .top-right-menu a:hover {
  /* Scale up text slightly */
  transform: scale(1.1);
  /* Visual weight increase, without changing the layout */
  font-weight: 700;
}

/* Positioning the toggle switch container */
#toggleSwitchContainer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000; /* Ensures it's on top of other elements */
}

/* Toggle switch styles (as provided) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px; /* Reduced width */
  height: 20px; /* Reduced height */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; /* Reduced height */
  width: 16px; /* Reduced width */
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px); /* Adjusted for smaller size */
  -ms-transform: translateX(20px); /* Adjusted for smaller size */
  transform: translateX(20px); /* Adjusted for smaller size */
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px; /* Adjusted for smaller size */
}

.slider.round:before {
  border-radius: 50%;
}

