html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  background-color: darkgray;
}

.container {
  width: 1024px;
  margin: 0 auto;
  min-height: 50px;
}

.nav {
  display: flex;
  justify-content: space-around;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.nav-item {
  padding: 12px;
}

.nav-link {
  padding: 0 12px;
  line-height: 50px;
  transition: 0.3s;
  position: relative;
  font-size: 20px;
  font-weight: 300;
  line-height: 50px;
}

li {
  list-style-type: none;
}

main {
  margin-bottom: auto;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.section-profile img {
  width: 30%;
  height: auto;
}

.section {
  width: 50%;
}

.section-profile {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 50px 30px 35px;
}

.section-profile-inner {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #829985;
}

.section-item a {
  color: #829985;
  text-decoration: none;
  transition: color 0.5s;
}

.section-item a:hover {
  color: #4d2323;
}

.section-profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.link {
  text-decoration: none;
  color: #829985;
  transition: color 0.5s;
}

.link:hover {
  color: #5d7260;
}

#code-examples pre {
  /* margin: 0; */
  /* padding: 12px; */
  width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #f5f5f5;
}

#code-examples code {
  display: block;
  font-family: monospace;
  font-size: 14px;
}

footer {
  background-color: darkgray;
  padding: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  color: white;
}

.rs-school-logo {
  width: 120px;
  height: 45px;
  background-repeat: no-repeat;
}

@media (max-width: 1440px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .section {
    width: 100%;
  }
}
