@font-face {
  font-family: 'agency fb';
  src: url(../fonts/agency_fb.ttf);
}

* {
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  --yellow: #FFEB00;
  --dark-gray: #222222;
}

body {
  width: 100%;
  height: 100vh;
  font-family: 'agency fb';
  background: #f7f8fe;
  overflow-x: hidden;
}

.container {
  width: 100%;
  background-color: var(--dark-gray);
  padding: 6rem 0;
}

.container-width {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

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

.main {
  background-image: url(../images/medicine.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.about-me,
.my-projects {
  background-color: #fff;
}

.knowledge {
  background-color: var(--yellow);
}

.knowledge-content {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  justify-content: center;
}

.knowledge-content__item {
  display: flex;
  margin: 1rem 2rem 1rem 0;
  min-width: 250px;
}

.knowledge-content__item__left {
  background-color: var(--dark-gray);
  border-radius: 50%;
  padding: 18px;
  width: 30px;
  height: 30px;
}

.knowledge-content__item__icon {
  width: 28px;
  height: 28px;
}

.knowledge .title-knowledge {
  background-color: var(--dark-gray);
  color: #fff;
}

.knowledge .title-knowledge-mobile {
  display: none;
}

.knowledge-content__item__container {
  margin-left: 1rem;
}

.knowledge-content__item__container__title {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-me {
  background-color: var(--dark-gray);
  padding: 0 0;
}

.title-contact {
  margin: 6rem 0;
}

.contact-me__image-container img {
  max-width: 300px;
  margin: 0 2.5rem 0 5rem;
}

.contact-me__input-container {
  margin: 6rem 0;
  width: 100%;
}

.contact-me__input-container__input textarea {
  height: 200px;
}

.contact-me__input-container__input select {
  width: 100%;
}

.contact-me__input-container form {
  width: 100%;
}

input[type=text], select, textarea {
  width: calc(100% - 12px);
  padding: 12px 0 12px 12px;
  border: 1px solid #ccc;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: var(--yellow);
  color: var(--dark-gray);
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  float: right;
}

.submit-row {
  margin-top: 1rem;
}

input[type=submit]:hover {
  background-color: var(--yellow);
}

.contact-me__input-container__label {
  float: left;
  width: 20%;
  margin-top: 6px;
  color:#fff;
}

.contact-me__input-container__input {
  float: left;
  width: 80%;
  margin-top: 6px;
  overflow: hidden;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

h3 {
  text-transform: uppercase;
}

ul {
  list-style: none;
}

.nav-container {
  width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  flex: 0 0 50%;
  background: var(--yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo h1 {
  font-weight: 300;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 2;
}

.logo span {
  font-size: 60px;
  line-height: 1;
}

.menu-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  padding-top: 50px;
  z-index: 10;
}

.menu-links ul {
  width: 100%;
}

.menu-links ul li {
  padding: 10px;
  color: #494949;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-links ul a {
  text-decoration: none;
  color: unset;
}

.menu-links ul li:hover {
  background: #494949;
  color: #fff;
}

.menu-links ul a:hover {
  text-decoration: none;
}

.project-architecture {
  background-color: #fff;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  justify-content: center;
}

.project-gallery__item {
  max-width: 200px;
  margin: 5px;
}

.project-gallery__item__container {
  filter: brightness(100%);
}

.project-gallery__item__container:hover {
  filter: brightness(40%);
  cursor: pointer;
  transition: all 0.5s ease;
}

.project-gallery__item__container__title {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.scrolldown {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.scrolldown-rotate {
  display: grid;
  padding: 60px;
}

.scrolldown a {
  display: inline-block;
  text-decoration: none;
  color: unset;
  height: 20px;
  transform: rotate(-90deg);
}

.scrolldown-rotate-line {
  display: inline-block;
  width: 60px;
  height: 0.5px;
  background: black;
  transform: rotate(-90deg);
}

.text {
  position: absolute;
  top: 25%;
  right: 100px;
  transform: translateY(-50%);
  text-align: right;
  color: #494949;
  z-index: 20;
}

.text .title {
  font-size: 8rem;
}

.title-block {
  min-width: 110px;
  background: var(--yellow);
  padding: 20px 0 0 12px;
}

.title-project {
  color: var(--dark-gray);
}

.about-me .content-block {
  width: 50%;
  margin-left: 3rem;
  margin-top: 2rem;
}

.about-me .container-middle .image-block {
  position: relative;
  width: 200px;
  margin-left: 30px;
}

.about-me .container-middle .image-block img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px
}

.watchnow {
  position: absolute;
  top: 70%;
  right: 0;
  transform: translateY(-50%);
  background: var(--yellow);
  padding: 30px 180px 30px 30px;
  z-index: 20;
}

.watchnow a {
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 3px solid var(--dark-gray);
  padding-bottom: 5px;
}

.fa-play {
  color: #fff;
  font-size: 20px;
  margin-right: 20px;
  cursor: pointer;
}

.signature img {
  width: 180px;
  margin-top: 2rem;
}

.media {
  position: absolute;
  bottom: 35px;
  right: 0;
  padding: 20px;
}

.about-me-media {
  position: relative;
  bottom: 0px;
  padding: 10px 20px 20px 0px;
}

.about-me-media ul li {
  background: var(--yellow);
  margin-right: 1rem;
}

.media .fa {
  width: 20px;
  height: 20px;
  text-align: center;
}

.media ul li {
  display: inline-block;
  padding: 18px 20px;
  font-size: 20px;
  color: #494949;
  cursor: pointer;
  border-radius: 50%;
}

.media ul li:hover {
  background: var(--yellow);
}

.ellipse-container {
  width: 608px;
  height: 608px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  margin: 0 auto;
  z-index: 10;
}

.ellipse {
  position: absolute;
  top: 0;
  border-radius: 50%;
  border-style: solid;
}

.ellipse.thin {
  width: 100%;
  height: 100%;
  border-width: 1px;
  border-color: #494949;
  opacity: .5;
}

.ellipse.thick {
  width: 93%;
  height: 93%;
  border-width: 10px;
  border-color: #fff;
  transform: rotate(-45deg);
  top: 12px;
  left: 12px;
}

.ellipse.yellow {
  width: 93%;
  height: 93%;
  border-width: 10px;
  border-color: var(--yellow) transparent;
  transform: rotate(-45deg);
  top: 12px;
  left: 12px;
  animation: ellipseRotate 15s ease-in-out infinite;
}

@keyframes ellipseRotate {
  0% {
    transform: rotate(-45deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}

.circle1,
.circle2 {
  border-style: solid;
  width: 64px;
  height: 64px;
  border-width: 1px;
  border-color: rgba(0,0,0,.5);
  border-radius: 50%;
  position: absolute;
}

.circle1 {
  top: 150px;
  left: 150px;
}

.circle2 {
  bottom: 150px;
  right: 130px;
}

.circle1::before,
.circle1::after,
.circle2::before,
.circle2::after {
  content: '';
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.circle1::before,
.circle2::before {
  width: 12px;
  height: 12px;
  background: #fff;
  z-index: 1;
}

.circle1::after,
.circle2::after {
  width: 40px;
  height: 40px;
  background: var(--yellow);
}

.circle1 span,
.circle2 span {
  position: absolute;
  top: 25px;
  width: 100px;
  font-size: 14px;
}

.circle1 span {
  left: 75px;
}

.circle2 span {
  left: -90px;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: var(--yellow);
  top: 0%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay h1 {
  font-size: 100px;
  letter-spacing: 20px;
}

.overlay span {
  font-size: 30px;
  letter-spacing: 3px;
}

@media screen and (max-width: 1200px) {
  .main {
    background-color: #D0D0D0;
    background-color: linear-gradient(135deg, rgba(166,166,166,1) 25%, rgba(217,217,217,1) 75%);
    background-image: url(../images/face.png);
    background-position-x: 40vw;
    background-repeat: no-repeat repeat;
    background-size: contain;
    background-position-y: initial;
  }
  .container {
    padding: 3rem 0;
  }
  .scrolldown {
    display: none;
  }
  .media {
    bottom: 0;
  }
  .wrapper .text {
    display: none;
  }
  .wrapper .watchnow {
    display: none;
  }
  .wrapper .ellipse-container {
    display: none;
  }
  .scrolldown {
    padding-top: 0px;
  }
  .overlay h1 {
    font-size: 60px;
    letter-spacing: 12px;
  }
  .overlay span {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .container-middle {
    display: block;
  }
  .title-block {
    padding: 1rem 0 1rem 1.5rem;
    width: 60vw;
    margin-bottom: 2rem;
  }
  .knowledge .title-knowledge {
    display: none;
  }
  .knowledge .title-knowledge-mobile {
    display: block;
  }
  .knowledge-content__item {
    margin: 1rem 0;
  }
  .signature {
    text-align: center;
  }
  .about-me .content-block {
    margin: 2rem 0 0 0;
    width: 100%;
  }
  .about-me .container-middle .image-block {
    display: none;
  }
  .about-me-media {
    text-align: center;
    padding: 10px;
  }
  .title-contact {
    margin: 0;
  }
  .contact-me__image-container img {
    display: none;
  }
  .contact-me__input-container {
    margin: 2rem 0;
  }
  .contact-me__input-container form {
    max-width: 70vw;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-me__input-container__input textarea {
    height: 120px;
  }
  .contact-me__input-container__input {
    width: 100%;
  }
  .row {
    display: grid;
  }
}

@media screen and (max-width: 992px) {
  .container-width {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media only screen and (min-width: 768px) {
  input[type=submit] {
    margin-left: auto;
    margin-right: auto;
    width: 120px;
  }
}

@media screen and (max-width: 600px) {
  .contact-me__input-container__label, .contact-me__input-container__input, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }

  .overlay h1 {
    font-size: 40px;
    letter-spacing: 10px;
  }
  
  .overlay span {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .contact-me__input-container form {
    max-width: 90vw;
  }
}

.overlay {
  animation-name: slideOut;
  animation-iteration-count: once;
  animation-timing-function: ease-in-out;
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  z-index: 1000;
}

.yellow {  
  animation-name: spin;
  animation-duration: 4000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes slideOut {
  0% {
    transform: translateY(0%);
  }
  40% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-120%);
  }
}

@keyframes spin {
  from {
      transform:rotate(0deg);
  }
  to {
      transform:rotate(360deg);
  }
}