@media (max-width: 600px) {
  nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    list-style: none;
  }

  nav li a {
    display: inline-block;
    padding: 8px 16px;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    white-space: nowrap;
    border-radius: 20px;
    text-align: center;
  }
  .Interests_table thead {
    display: none;
  }

  .Interests_table tbody tr {
    display: block;
    width: 100%;
  }

  .Interests_table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .Interests_table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
  }
}

body {
  display: grid;
  grid-template-columns: fit-content(200px) 1fr;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

main {
  min-width: 0;
  overflow-x: hidden;
}

nav > ul {
  padding: 10px;
  margin: 0;
  list-style-type: none;
  background-color: rgb(183, 240, 183);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

nav li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid white;
  margin: 5px;
  font-size: 1.25rem;
  white-space: nowrap;
}

nav li a:hover {
  background-color: green;
}

@keyframes change-size-h1 {
  0% {
    font-size: 36px;
  }
  50% {
    font-size: 50px;
  }
  100% {
    font-size: 36px;
  }
}

h1 {
  text-align: center;
  font-size: 36px;
  margin: 20px 0;
}
h1:hover {
  animation: change-size-h1 5s;
}

h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 15px;
}
@keyframes change-size-h4 {
  0% {
    font-size: 24px;
  }
  50% {
    font-size: 30px;
  }
  100% {
    font-size: 24px;
  }
}

h4 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 15px;
}

h4:hover {
  animation: change-size-h4 5s;
}
.contact-info,
.story,
.About-Me,
.Interests,
.Project_Dates {
  width: 95%;
  margin: 20px auto;
  padding: 40px;
  border-radius: 10px;
  box-sizing: border-box;
}
.story {
  background-color: lightblue;
}
.contact-info {
  background-color: lightcoral;
}
.About-Me {
  background-color: lightcoral;
}
button {
  background-color: darkgreen;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.Interests {
  background-color: lightblue;
  font-size: 1rem;
}

.Interests_column {
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
  text-align: center;
  justify-content: center;
}

.Projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
}

.Projects {
  width: 95%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 10px;
  background-color: rgb(183, 240, 183);
  text-align: center;
}
.Projects img {
  display: block;
  margin: 0 auto 15px auto; /* centers image and adds space below */
}

.Projects li {
  list-style-position: inside;
  padding-left: 20px;
  margin: 0;
}

.Projects a {
  display: block;
}

.Projects button {
  display: block;
  margin: 0 auto;
}
.About-Me img {
  display: block;
  margin: 20px auto;
  width: 300px;
  border-radius: 10px;
}

.Project_Dates {
  background-color: rgb(236, 234, 142);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: center;
}

th,
td {
  border: 1px solid black;
  padding: 12px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

button:hover {
  background-color: #2e8b57;
}
