:root {
  --primary-color: #000;
  --secondary-color: #595959;
  --bg-color: #e5e5e5;
  --font-family: 'Montserrat', sans-serif;
  --font-size-large: 45px;
  --font-size-medium: 22px;
  --font-size-small: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  position: relative;
  padding: 40px;
}

a {
  text-decoration: none;
  transition: color 0.3s;
}

p {
  margin: 0;
  padding: 0;
}

.content-with-sidebar {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  background: #fff;
  width: 1200px;
  margin: 0 auto;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

#language-selector {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 1000;
}

#language-selector a {
  background-color: #b1dcff1f;
  border: 1px solid #6d9bf5;
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

#language-selector a:hover {
  background-color: #6d9bf5;
  color: white;
}

#language-selector a:focus {
  outline: none;
  box-shadow: 0 0 0 2px #007bff;
}

/* Main Content*/

.main-content {
  padding: 72px 72px 60px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.main-content-title {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  color: #000000;
  margin: 20px 0 0 0;
}

/* About Me */

.my-name {
  font-style: normal;
  font-weight: 700;
  font-size: 45px;
  line-height: 55px;
  color: var(--primary-color);
  margin: 0 0 28px 0;
}

.my-profession {
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 17px;
  color: #000000;
  margin: 0 0 18px 0;
}

.my-summary {
  margin-top: 20px;
  background-color: #b1dcff1f;
  text-align: justify;
  border-color: navy;
  border-radius: 5px;
  font-size: var(--font-size-small);
  line-height: 1.6;
  color: var(--primary-color);
}

.my-descr {
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-size-small);
  line-height: 24px;
  color: #595959;
}

.about-me-container {
  margin-bottom: 32px;
}

/* Projects */

.project-item,
.work-duties {
  font-size: var(--font-size-small);
  line-height: 1.6;
  color: var(--primary-color);
}

/* .project-item-link:hover {
  color: #6d9bf5;
  text-decoration: underline;
}

.project-item-link:focus {
  color: #ff00a6;
  text-decoration: underline;
} */

.project-list {
  /* list-style: none; */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 0 16px;
  margin: 8px 0 0 0;
}

.project-item:not(:last-child) {
  margin-bottom: 8px;
}

.projects-container {
  margin-bottom: 32px;
}

.project-item a {
  display: block;
  text-decoration: none;
  color: navy;
}

.project-item a:hover {
  color: #595959;
}

.project-role {
  font-weight: bold;
  display: block;
  margin: 0 auto;
}

.project-link {
  font-family: monospace;
  font-size: 12px;
  color: #595959;
}

.project-link:hover {
  color: #6d9bf5;
}

.project-item-descr {
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-size-small);
  line-height: 24px;
}

/* Work Experience */

.work-experience-container {
  margin-bottom: 44px;
}

.work-experience-position {
  font-style: normal;
  font-weight: 700;
  font-size: var(--font-size-small);
  line-height: 20px;
  color: #000000;
  margin: 0;
}

.work-experience-place {
  margin-bottom: 16px;
}

.work-experience-company {
  color: #6d9bf5;
}

.work-period {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #a8a8a8;
  margin: 8px 0 8px 0;
}

.work-duties {
  font-style: normal;
  text-align: justify;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

.responsibilities {
  padding: 0 0 0 16px;
  margin: 0;
}

/* Sidebar */

.sidebar {
  background: #b1dcff1f;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}

.my-photo {
  margin-top: 40px;
}

/* Contacts */

/* .contacts-type {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #161d2a;
  margin-right: 8px;
} */

.contacts-item {
  margin: 0 0 8px 0;
}

.contacts-number:hover,
.contacts-email:hover {
  color: #6d9bf5;
}

.contacts-number:focus,
.contacts-email:focus {
  color: #ff00a6;
}

.contacts-number {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #161d2a;
}

.contacts-email {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #161d2a;
}

.info-container,
.contacts-container,
.education-container,
.tech-skills-container,
.soft-skills-container,
.languages-container {
  margin: 20px 4px 0 24px;
}

.sidebar-title {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  color: #161d2a;
  margin-bottom: 8px;
}

/* Education */

.education-university {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: #6d9bf5;
  margin: 0 0 12px 0;
}

.education-specialization {
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 17px;
  color: #000000;
  margin: 0 0 8px 0;
}

.education-period {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 15px;
  color: #000f84;
  margin-bottom: 12px;
}

/* Skills */

.skills-list {
  margin: 0;
  padding: 0 0 0 20px;
}

.skills-list-item {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #161d2a;
}

.skills-list:last-child {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    width: 100%;
    padding: 20px;
  }

  .main-content,
  .sidebar {
    padding: 20px;
  }

  .my-name {
    font-size: 30px;
  }
}
