/* ===========================================
   GENERAL PAGE STYLES
=========================================== */
body {
  font-family: "Times New Roman", serif;
  margin: 0;
  background-color: GhostWhite;
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
}

/* ===========================================
   LINKS
=========================================== */
/* Light mode link color */
a {
  color: #0645AD; /* standard blue */
}

/* Dark mode link color */
body.dark-mode a {
  color: #81aaff; /* lighter blue for dark background */
}

/* ===========================================
   NAVIGATION BAR
=========================================== */
.topnav {
  overflow: hidden;
  background-color: #f1f1f1;
  text-align: left; /* align items left */
  padding-left: 7px; /* matches image left padding */
}

.topnav a {
  display: inline-block;
  color: black;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 28px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: crimson;
  color: white;
}

/* ===========================================
   DROPDOWN MENU
=========================================== */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown .dropbtn {
  font-size: 20px;
  border: none;
  outline: none;
  color: #ADD8E6;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  z-index: 1;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===========================================
   MAIN CONTENT
=========================================== */
.content {
  width: 80%;
  margin: auto;
  padding: 20px;
  font-size: 1.5em;
  text-align: left;
}

/* ===========================================
   PROFILE IMAGE
=========================================== */
img.profile {
  float: left;
  width: 230px;
  height: auto;
  padding-right: 15px;
  padding-left: 7px;
  margin-top: 0;
}

/* ===========================================
   LINKS ICON SPACING
=========================================== */
.links i {
  margin-right: 10px;
}

/* ===========================================
   DARK MODE STYLES
=========================================== */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Navigation bar dark mode */
.dark-mode .topnav {
  background-color: #333;
}

.dark-mode .topnav a {
  color: #e0e0e0;
}

.dark-mode .topnav a:hover {
  background-color: #555;
  color: white;
}

.dark-mode .topnav a.active {
  background-color: crimson;
  color: white;
}

/* Dropdown dark mode */
.dark-mode .dropdown-content {
  background-color: #444;
}

.dark-mode .dropdown-content a {
  color: #e0e0e0;
}

.dark-mode .dropdown-content a:hover {
  background-color: #555;
}
