body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  /* Light mode default */
  background-color: lightgrey;
  color: black;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: white;
}
  
/* Stylizing for header, section, and footer */
header, section, footer {
  padding: 20px;
  max-width: 800px;
  margin: auto;
  background: white;
  margin-top: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

body.dark-mode header,
body.dark-mode section,
body.dark-mode footer {
  background: #1e1e1e;
}

body.dark-mode #darkModeToggle {
  background: #333;
  color: white;
}

/* Set light mode text color to black */
h1, h2 {
  color: #333;
}

/* Changes the text color in dark mode to white */
body.dark-mode h1,
body.dark-mode h2 {
  color: #f0f0f0;
}

/* Hyperlink coloring */
a {
  color: #0077cc;
}
body.dark-mode a {
  color: #80bfff;
}

/* Toggle button */
#darkModeToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  background: #eee;
  border-radius: 5px;
}

/* set new header-flex type */
.header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

/* set how the profile image will look */
/* set to circular frame */
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* makes image responsive for small screens */
@media (max-width: 600px) {
  /* sets center header image */
  .header-flex {
    flex-direction: column;
    text-align: center;
  }
  /* About page grid becomes single column */
  .image-grid{
    grid-template-columns: 1fr;
  }
}

/* adds option for lists to not have bullets */
li.no-bullet {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}


/* Create new video class to change size for mobile viewing */
.responsive-video {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 1rem auto;
}

/* Stylize the side bar menu button on the top right of the screen */
#menuToggle {
  font-size: 20px;
  margin: 10px;
  position: fixed;
  top: 10px;
  right: 10px;  
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 10000;
}

/* side bar comes in from right side of screen */
#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: #333;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  transition: transform 0.3s ease;
  transform: translateX(100%);   
}

#sidebar.show {
  transform: translateX(0);
}

/* sidebar coloration */
#sidebar a {
  color: white;
  text-decoration: none;
  text-align: center;
  display: block; /* Makes each link take full space of sidebar */
  width: 100%;
}

/* Add padding so the menu and first child do not overlap */
#sidebar a:first-child {
  margin-top: 60px;
}

/* Add hovering coloration */
#sidebar a:hover {
  background: #444;
}

/* image grid for about page */
.image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 1rem;
}

/* image grid image settings */
.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

