* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  width: 100%;
  background-image: linear-gradient(to bottom, #ffede1, #f1e1cc);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
}
a:focus {
  outline: none;
}

/* ------------------------------------ */
/* ------------ navigation ------------ */

nav {
  background-color: white;
  opacity: 0.98;
  width: 100%;
  padding: 8px 0px 8px 20px;
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  color: dimgray;
  font-size: 18px;
  letter-spacing: 5px;
  text-decoration: none;
  border-radius: 100%;
  padding: 4px 3px 4px 8px;
}

nav a:hover,
nav a:focus {
  background-color: #f5e0ce;
  -webkit-transition: background-color 0.4s;
  transition: background-color 0.4s, color 0.3s;
}

.title {
  margin: 4px 40px 4px 0;
}

.menu {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: 40px;
}

.menu li {
  margin: 4px 20px;
  list-style: none;
}

/* -------------------------------------- */
/* --------------- header --------------- */

header {
  width: 96%;
  padding: 20%;
  margin: 120px auto;
  background-image: url('./img/main-background.jpg');
  background-size: cover;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  color: peachpuff;
  font-size: 35px;
  font-weight: normal;
  letter-spacing: 20px;
  padding-left: 15px;
  text-align: center;
}

header a {
  text-decoration: none;
}

h1:hover {
  color: white;
  -webkit-transition: color 0.4s;
  transition: color 0.4s;
}

/* -------------------------------------------- */
/* ------------ articles, general ------------- */

#work-top,
#text-top,
#about-top {
  height: 10px;
  width: 100%;
}

article {
  width: 100%;
  margin: 150px auto;
}

h2 {
  color: dimgray;
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 20px;
  padding-left: 15px;
  margin: 30px 0;
  text-align: center;
  width: 100%;
}

h3 {
  color: dimgray;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 7px;
}

p {
  color: dimgray;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  max-width: 70ch;
  margin: 10px 0;
}

.description {
  background-color: white;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 15px;
}

/* ------------------------------------------ */
/* ------------- article work --------------- */

.specific-work {
  margin: 100px auto;
  width: 100%;
}

.work h3 {
  display: block;
  width: 96%;
  max-width: 800px;
  margin: 20px auto;
}

.work img {
  border-radius: 15px;
  height: auto;
  margin: 20px auto;
  display: block;
}

.link-img-big {
  width: 96%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

.img-big,
.img-small {
  width: 100%;
}

.link-img-small {
  width: 40%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.double-image {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.double-image .link-img-small {
  width: 100%;
  display: inline;
  margin: 0 20px;
}

.video {
  background-color: black;
  height: auto;
  width: 96%;
  max-width: 800px;
  padding: 10px;
  margin: 20px auto;
  border-radius: 15px;
}

.work-description {
  width: 85%;
  max-width: 700px;
  padding: 10px 20px;
  margin-top: 40px;
}

/* ------------------------------------------ */
/* ------------- article about -------------- */
.about {
  margin: 150px auto 100px;
}

.about-me h3 {
  color: dimgray;
  margin-top: 40px;
}

/* ---------------------------------------- */
/* ---------------- footer ---------------- */

footer {
  padding: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.icon-link {
  width: 44px;
  height: 44px;
  padding: 8px;
  font-size: 28px;
  color: dimgray;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

span:hover {
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.1);
  transition: transform 0.3s;
}

/* ------------------------------------------- */
/* ------ media query phone and tablet ------- */

@media only screen and (max-width: 800px) {
  /* --------- navigation --------- */
  nav {
    width: 100%;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
  }

  nav a:focus {
    background-color: white;
    color: dimgray;
  }

  .title a,
  .menu li {
    width: 100%;
    margin: 11px 0;
  }

  .title,
  .menu {
    width: 100%;
    margin: 10px 0 0 0;
    padding: 0;
    display: block;
    text-align: center;
  }

  /* ---------- header ---------- */
  header {
    margin: 260px auto 150px;
  }

  h1 {
    font-size: 26px;
  }

  /* ---------- articles ---------- */
  article {
    margin: 60px auto;
  }

  h2 {
    font-size: 24px;
    margin: 180px auto 30px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  .work img {
    height: auto;
    max-width: 800px;
    margin: 10px auto;
    display: block;
    border-radius: 15px;
  }

  .double-image {
    display: block;
  }

  .link-img-small,
  .double-image .img-small {
    width: 80%;
  }

  .video {
    width: 96%;
  }

  .pdf {
    height: 600px;
  }
}
