* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.main {
  width: 100%;
  display: flex;
  flex-direction: row;
  background-color: #F0EFF1;
}

nav {
  width: 250px;
  height: 100vh;
  padding: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  border-bottom: 1px solid #cecece;
  border-right: 1px solid black;
  color: #F0EFF1;
  background-color: #9F45D7;
}

.nav-link {
  width: 250px;
  margin: 0 auto;
  padding: 1rem 0;
  display: block;
  text-align: center;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #cecece;
}

.main-content {
  width: calc(100% - 250px);
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-header {
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  border-bottom: 2px solid black;
  color: white; 
}

.main-section {
  width: 100%;
  text-align: left;
  border-bottom: 1px solid black;
}

.main-section ul {
  width: 700px;
  margin: 1rem 4rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: monospace;
  border-radius: 5px;
  color: #FFDE59;
  background-color: #252525;
}

.main-section li {
  list-style: none;
}

.headers {
  margin: 0;
  padding: 1rem 2rem;
  font-size: 2rem;
  font-weight: 600;
  font-family: sans-serif;
  border-bottom: 1px solid black;
  color: white;
  background-color: #9F45D7;
  box-shadow: 0 5px 5px black;
}

p {
  padding: 0 4rem;
  font-size: 1rem;
  font-family: sans-serif;
  color: black;
}

.indent {
  margin-left: 1rem;
}

.indent-2 {
  margin-left: 2rem;
}

nav li:hover a {
  cursor: pointer;
  color: #FFDE59;
  background-color: black;
}

.footer-dev {
  width: calc(100% - 250px);
  margin-left: 250px;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-shadow: 0 0 5px black;
  color: white;
  background-color: #9F45D7;
}

.footer-dev a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: color 0.3s ease;
}

.footer-dev a:hover {
  color: #FFDE59;
}
/* Tablet screens */
@media (max-width: 1024px) {
  nav {
    width: 200px;
  }

  .main-content {
    width: calc(100% - 200px);
    margin-left: 200px;
  }

  .footer-dev {
    width: calc(100% - 200px);
    margin-left: 200px;
  }

  .main-section ul {
    width: 90%; /* shrink code blocks */
    margin: 1rem auto;
  }

  .headers {
    font-size: 1.6rem;
  }

  p {
    padding: 0 2rem;
  }
}
/* Mobile screens */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  nav {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 2px solid black;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .footer-dev {
    width: 100%;
    margin-left: 0;
  }

  .main-section ul {
    width: 95%;
    margin: 1rem auto;
    font-size: 0.9rem;
  }

  .headers {
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  p {
    padding: 0 1rem;
    font-size: 0.95rem;
  }
}
/* Extra-small screens */
@media (max-width: 480px) {
  .headers {
    font-size: 1.2rem;
    text-align: center;
  }

  .main-section ul {
    font-size: 0.8rem;
  }

  p {
    font-size: 0.8rem;
  }

  .nav-header {
    font-size: 1rem;
  }
}
