@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Poppins, sans-serif;
  background-color: #d2e3c8;
  min-height: 100vh;
}

header,
footer {
  background-color: #4f6f52;
  color: white;
}

header {
  position: fixed;
  top: 0;
  z-index: 1;
  display: inline-block;
  width: 100%;
  padding: 20px 110px;
}

header ul {
  list-style: none;
  display: inline-block;
}

main {
  position: relative;
  top: 150px;
  bottom: 150px;
  margin: 20px 110px;
}

main h2,
main h3,
main h4 {
  color: white;
  padding: 5px 20px 5px 20px;
  border-radius: 8px;
}

main h2 {
  display: inline-block;
  background-color: #4f6f52;
}

main h3,
main h4 {
  background-color: #86a789;
  margin-top: 20px;
  margin-bottom: 20px;
}

main h4 {
  background-color: #4f6f52;
  display: inline-block;
  margin-bottom: 10px;
  margin-top: 20px;
}

table {
  float: right;
  max-width: 50%;
  max-height: 443px;
  border: 2px solid #86a789;
  text-align: center;
}

thead {
  background-color: #4f6f52;
  color: white;
}

td {
  border-top: 1px solid #86a789;
  padding: 5px;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  position: relative;
  bottom: -50px;
  display: inline-block;
  width: 100%;
  padding: 20px 210px;
  margin-top: 150px;
}

footer img {
  height: 30px;
  margin-right: 10px;
  margin-left: 10px;
}

#homepage-link {
  text-decoration: none;
  color: white;
}

#html-section {
  visibility: hidden;
}

.section-box {
  margin: 20px;
}

.section-box h2 {
  display: block;
}

.section-box h3 {
  text-align: center;
  margin: 0 auto;
  width: 300px;
}

.section-description,
.definition {
  /* border: 1px solid green; */
  color: #4f6f52;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 20px;
}

.section-description {
  margin-bottom: 30px;
}

.definition-section {
  float: left;
  /* border: 1px solid red; */
  padding: 0 10px 10px 10px;
  max-width: 50%;
  max-height: 443px;
  overflow: scroll;
}

.definition {
  font-size: 18px;
  margin: 0;
  padding-right: 20px;
}

.code-block {
  background-color: #262a32;
  color: white;
  font-family: "IBM Plex Mono";
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  height: 500px;
  overflow: scroll;
}

.code-caption {
  text-align: center;
  font-size: 20px;
  width: 600px;
  margin: 0 auto;
}

.credit a {
  padding: 2px 5px;
  color: #4f6f52;
  font-weight: bold;
  background-color: beige;
}

.footer-text {
  float: left;
}

.footer-icons {
  float: right;
  background-color: #f9faf8;
  padding-top: 10px;
  padding-bottom: 4px;
  border-radius: 10px;
}

.content-divider {
  display: inline-block;
  width: 49%;
}

.code {
  font-family: monospace;
  background-color: beige;
  padding: 3px 2px;
}
