html {
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #F5F7FA;
}

.wrapper {
  width: 95%;
  max-width: 1240px;
  margin: auto;
}

/* header styles */
.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0.5rem;
  border-bottom: #A8A8A8 solid 0.2rem;
  padding: 0.3rem;
  background-color: #ffffff;
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
}

.header_about {
  display: inline-block;
  color: #595959;
  font-weight: 700;
}

.header_link {
  color: #595959;
  text-decoration: none;
}

.nav {
  display: inline-block;
}

.nav_list_item {
  display: inline-block;
  list-style-type: none;
  margin: 0 0.5rem;
}

.nav_list_item_link {
  color: #595959;
  text-decoration: none;
}

/* main styles */
.content_wrapper {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  margin: 0.6rem 0;
}

.main_content {
  background-color: #ffffff;
  box-shadow: 0.3rem 0.3rem 1.2rem rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 60%;
}

.name {
  font-style: normal;
  font-weight: bold;
  font-size: 3rem;
  line-height: 4rem;
  margin: 1rem 0 3rem 0;
}

.about_quote {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: #595959;
  margin: 0 0 0 40%;
  text-align: right;
}

.projects {
  margin: 2.5rem 0 3rem 0;
}

.main_title {
  font-style: normal;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1.7rem;
  margin: 0 0 0.5rem 0;
}

.projects_list {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: #595959;
  padding: 0;
  margin-left: 1rem;
}

.projects_item::marker {
  font-weight: bold;
}

.projects_item_link {
  color: #595959;
  text-decoration: none;
  margin-left: 1rem;
}

.bold_item {
  font-weight: bold;
}

.black_item {
  color: #000000;
}

.code_example,
.skills,
.languages {
  margin: 3rem 0 0 0;
}

.code_item {
  color: #595959;
  font-size: 0.9rem;
}

.code_description {
  font-style: italic;
  font-size: 0.8rem;
}

.code_link {
  color: #595959;
}

.skills_list {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  padding: 0;
  margin-left: 1rem;
}

.skills_list li::marker {
  color: #FB6D3A;
}

.education {
  margin: 3rem 0 0 0;
}

.education_item {
  font-style: normal;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.3rem;
  margin: 0;
}

.education_speciality {
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.1rem;
  margin: 0.7rem 0;
}

.education_date {
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1rem;
  color: #A8A8A8;
  margin: 0 0 0.8rem 0;
}

.languages_list {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  padding: 0;
  margin-left: 1rem;
}

.languages_list li::marker {
  color: #FB6D3A;
}

/* sidebar styles */
.sidebar {
  background-color: #1E2939;
  padding-top: 1.5rem;
  width: 40%;
  color: #fff;
}

.photo {
  width: 90%;
  margin: 0 5% 3rem 5%;
  border-radius: 0.5rem;
}

.sidebar_title {
  font-style: normal;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.7rem;
  margin: 0 0 0.7rem 0;
}
.contacts {
  margin-left: 2.5rem;
  margin-top: 3rem;
}

.fa-solid,
.fa-regular,
.fa-brands {
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.5rem;
  margin-right: 0.3rem;
}

.contact_link {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: #8E949C;
  text-decoration: none;
}

.contact_item {
  margin: 0;
}

/* footer styles */
.footer {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  border-top: #A8A8A8 solid 0.2rem;
  padding: 0.3rem;
  background-color: #ffffff;
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer a,
.footer span {
  display: inline-block;
  margin: 0 1rem;
  color: #8E949C;
}

.school_logo {
  height: 1rem;
}

.footer_link {
  text-decoration: none;
}

/* media queries */
@media (max-width: 1024px) {
  html {
    font-size: 14px;
  }
}


@media (max-width: 910px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 800px) {
 .nav_list {
   display: none;
 }

  .content_wrapper {
    flex-direction: column-reverse;
  }

  .main_content {
    width: 100%;
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  .photo {
    width: 30%;
  }
}