* {
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgb(234, 245, 242);
}

.header {
  display: flex;
  flex-direction: row;
  position: fixed;
  top: 0;
  margin: 0 auto;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background-color: rgb(173, 196, 190);
  opacity: 90%;
  padding: 1%;
}

.header__items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.logo {
  width: 20%;
}

.logo__cat {
  width: 40px;
  padding: 1px;
  border-radius: 50%;
  border: 1px solid #708974;
}

.nav {
  width: 80%;
}

.nav__items {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50%;
  list-style: none;
}

.nav__link {
  line-height: 50px;
  transition: 0.3s;
}

.nav__item a {
  text-decoration: none;
  font-family: "Baskervville SC", serif;
  font-size: 28px;
  font-weight: bold;
  color: #42694b;
  transition: color 0.3s;
}

.nav__item a:hover {
  color: #292d29;
  text-decoration: underline;
}

.main__container {
  width: 80%;
  margin: 7% 10% 1% 10%;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}

.section {
  width: 45%;
  padding-left: 30px;
  padding-right: 20px;
  margin: 10px;
  text-align: justify;
  border-bottom: 3px dotted green;
  border-radius: 10px;
  background-color: rgb(245, 250, 249);
}

.main__items {
  line-height: 30px;
}

#profile,
#profile__photo {
  text-align: center;
}

.myphoto {
  width: 15%;
  margin: 1% auto;
  padding: 1px;
  border-radius: 50%;
  border: 3px solid #708974;
  transition: transform 1s ease-in-out;
}

.myphoto:hover {
  transform: scale(1.3);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.section__title {
  font-family: "Baskervville SC", serif;
  font-weight: 900;
  font-style: normal;
  font-size: 2rem;
  background: linear-gradient(90deg, #c9f47a, #42694b);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientShift 3s linear infinite;
}

.title__discr {
  font-family: "Baskervville SC", serif;
  font-weight: 900;
  font-size: 2rem;

  font-style: normal;
  color: #42694b;
}

.text {
  font-size: 20px;
}

.course {
  display: block;
  padding-top: 20px;
}

span {
  font-weight: 600;
}

.main__items {
  list-style-type: square;
}

.project__link,
.contact__link {
  font-size: 20px;
  text-decoration: none;
  color: black;
  transition-duration: 0.3s;
}

.project__link:hover {
  color: #42694b;
  font-weight: bolder;
}

.contact__link:hover {
  color: white;
}

.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  background-color: rgb(173, 196, 190);
}

.footer__git a {
  display: flex;
  justify-content: start;
}

#contacts {
  display: flex;
  justify-content: start;
  justify-items: center;
}

.main__items.contact {
  padding: 0;
  list-style: none;
}

.icon__footer {
  width: 20%;
  transition: transform 0.5s ease-in-out;
}

.icon__footer:hover {
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .header {
    padding: 0;
  }

  .logo__cat {
    width: 25px;
  }

  .nav__item a {
    font-size: 14px;
  }

  .main__container {
    flex-direction: column;
    margin: 60px auto 10px auto;
    width: 90%;
    padding: 1px;
  }

  .section {
    width: 95%;
    padding-left: 5px;
    border-bottom: 1px dotted green;
    border-radius: 3px;
    background-color: rgb(245, 250, 249);
  }

  .section__title {
    font-size: 18px;
  }
  .title__discr {
    font-size: 16px;
  }

  .text {
    font-size: 14px;
  }

  .project__link,
  .contact__link {
    font-size: 14px;
  }

  .main__items {
    padding-left: 14px;
  }

  .main__items.contact {
    margin: 0;
  }

  .myphoto {
    width: 20%;
    margin-top: 1%;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .footer__git a {
    display: flex;
    justify-content: center;
    justify-items: center;
  }

  .icon__footer {
    width: 20%;
  }
}
