:root {
  --text: #2F4858;
  --background: #FFFAEA;
  --primary: #3B3A38;
  --secondary: #D8AA9B;
  --tertiary: #5692C1;
  --accent: #009178;
  --current-grad: #843967;
  --taken-grad: #315BAF;
}

html, body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  font-family: "Source Code Pro", monospace;
  font-size: 1rem;
  color: var(--text);
}

h1 a {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.4rem;
}

h3 {
  font-weight: 500;
  color: var(--secondary);
  margin-top: 1.4rem;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

h4 {
  font-weight: 500;
  margin-bottom: 0.2rem;
  margin-top: 0.1rem;
  font-size: 1.1rem;
  color: var(--tertiary);
}

ul {
  margin: 0;
}

li {
  margin-bottom: .1rem;
  margin-top: .1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
  transition: color .2s;
}

a:hover {
  color: #7878de;
}

blockquote {
  border-left: 4px solid #ccc;
  padding: 10px;
  margin: 0;
}

.bio1, .bio2 {
  text-align: justify;
  text-justify: inter-word;
}

.content {
  text-align: left;
  padding: 25px 41px 41px 41px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
  max-width: 50rem;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.no-bullet {
  padding: 0;
  margin: 0;
}

.no-bullet li {
  list-style-type: none;
  white-space: pre-wrap;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.current {
  color: var(--tertiary);
}

.current-undergrad {
  color: var(--tertiary);
}

.current-grad {
  color: var(--current-grad);
}

.taken-undergrad {
  color: var(--text);
}

.taken-grad {
  color: var(--taken-grad);
}

.coursework {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.semester {
  flex: 1;
  margin-right: 1rem;
}

.semester:last-child {
  margin-right: 0;
}

/* Color Legend Styles */
.color-legend {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
}

.color-legend h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary);
  text-align: center;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.color-square {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 10px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.current-undergrad-color {
  background-color: var(--tertiary);
}

.current-grad-color {
  background-color: var(--current-grad);
}

.taken-undergrad-color {
  background-color: var(--text);
}

.taken-grad-color {
  background-color: var(--taken-grad);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .color-legend {
    bottom: 10px;
    right: 10px;
    padding: 12px;
    min-width: 180px;
  }
  
  .legend-item {
    font-size: 0.8rem;
  }
  
  .color-square {
    width: 14px;
    height: 14px;
  }
}