/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/*
Colors used
Background color: #B8C0CC
Text Color (Dark Gray): #03110B;
Primary Color (Purple): #5C4E0A;
Secondary Color (Orange): #e0b354;
 */

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  padding: 0;
  margin: 0;
  background-color: #d7e4f8;
}

body {
  padding: 0;
  background-color: #d7e4f8;
  margin: 0 0 100px;
}

h1 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

h2 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

h3 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

h4 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

h5 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

h6 {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

strong {
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
}

p {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

li {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

span {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

label {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

input {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

textarea {
  color: #03110b;
  font-family: 'Roboto Mono', monospace;
}

a {
  text-decoration: none;
  color: #17a2b8;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 16px;
}

a:hover {
  color: #a58d12;
}

a:active {
  color: red;
}

ul {
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
}

li {
  padding: 5px;
  padding-left: 25px;
}

li a {
  font-family: Roboto;
}

.main-container {
  width: 1200px;
  margin: 0 auto;
}

/* HEADER */

.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  background-color: #fafafa;
  border-bottom: 1px solid #c1c1c1;
  overflow: auto;
  padding-top: 10px;
}

.page-header__logo {
  margin: 0;
  margin-left: 10px;
  padding: 5px;
}

.page-header__nav {
  margin-right: 10px;
}

.menuitem {
  padding-right: 10px;
}

/* HEADER */

/* INDEX */

.profile {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 25px 1fr;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10%;
  margin-top: 12%;
}

.img {
  text-align: center;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.profile-img {
  width: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 50%;
}

.text {
  -ms-grid-column-align: left;
  justify-self: left;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

/* INDEX */

/* MY WORK */

.work {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, 320px);
  gap: 20px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-bottom: 50px;
}

.project {
  display: -ms-grid;
  display: grid;
  background-color: #fff;
  border: 1px solid #c1c1c1;
  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.project a {
  padding: 10px;
}

.thumbnail {
  width: 100%;
  height: 180px;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}

.post-preview {
  background-color: #fff;
  padding: 15px;
}

.post-title {
  color: black;
  margin: 0;
}

.post-intro {
  color: #4b5156;
  font-size: 16px;
}

/* MY WORK */

/* FOOTER */

.page-footer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100px;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  text-align: center;
  margin-bottom: 20px;
}

.social-media {
  display: flex;
  justify-content: space-between;
  min-width: 25%;
  margin: 0 auto;
}

.page-footer nav a {
  padding: 5px;
  transition: transform 0.2s;
}

.page-footer nav a:hover,
.page-footer nav a:focus {
  animation: spin 1s ease-in-out;
}

@keyframes spin {
  0% {
    transform: scale(1) rotateZ(0deg);
  }

  50% {
    transform: scale(1.2) rotateZ(180deg);
  }

  100% {
    transform: scale(1) rotateZ(360deg);
  }
}

/* FOOTER */

/* CONTACT */

.contact-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  text-align: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#contact-form {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #c1c1c1;
  padding: 15px;
  border-radius: 5px;
  background-color: #fafafa;
}

.contact-form label {
  line-height: 2.7em;
}

.contact-form textarea {
  min-height: 100px;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: undefined;
  border-radius: 5px;
  border: 1px solid #c1c1c1;
  font-size: 14px;
}

#submit-btn {
  margin-top: 10px;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff;
  background-color: #000;
  border: none;
}

#submit-btn:hover,
#submit-btn:focus {
  cursor: pointer;
  opacity: 0.8;
}

/* CONTACT */

/* ABOUT ME */

#skills {
  text-align: center;
}

.description {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 45px;
}

.about-img {
  width: 90%;
}

.about-text {
  width: 90%;
  margin: 40px auto;
  line-height: 2em;
  padding: 0 25px;
}

.skills-table {
  margin: 0 auto;
  padding-bottom: 50px;
}

table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
  text-align: center;
}

.button {
  margin: 20px auto;
  width: 25%;
  text-align: center;
  border: none;
  display: block;
  font-family: inherit;
  background-color: #357b70;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 3px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  -webkit-transition: 0.2s opacity;
  -o-transition: 0.2s opacity;
  transition: 0.2s opacity;
}

.button:hover,
.button:focus {
  cursor: pointer;
  opacity: 0.8;
}

.berlin-illustration {
  margin: 50px auto;
  display: block;
  width: 100%;
}

.sun {
  -webkit-animation: 4s color-change infinite alternate linear;
  animation: 4s color-change infinite alternate linear;
}

@-webkit-keyframes color-change {
  0% {
    fill: #edc655;
  }

  50% {
    fill: #fcffad;
  }

  100% {
    fill: #f76414;
  }
}

@keyframes color-change {
  0% {
    fill: #edc655;
  }

  50% {
    fill: #fcffad;
  }

  100% {
    fill: #f76414;
  }
}

.cloud-front {
  -webkit-animation-duration: 30s;
  animation-duration: 30s;
  -webkit-animation-name: cloud-move;
  animation-name: cloud-move;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
}

@-webkit-keyframes cloud-move {
  from {
    -webkit-transform: translate(0, 50px);
    transform: translate(0, 50px);
  }

  to {
    -webkit-transform: translate(200px, 50px);
    transform: translate(200px, 50px);
  }
}

@keyframes cloud-move {
  from {
    -webkit-transform: translate(0, 50px);
    transform: translate(0, 50px);
  }

  to {
    -webkit-transform: translate(200px, 50px);
    transform: translate(200px, 50px);
  }
}

.cloud-back {
  -webkit-animation: 34s cloud-move-reverse infinite alternate linear;
  animation: 34s cloud-move-reverse infinite alternate linear;
}

@-webkit-keyframes cloud-move-reverse {
  from {
    -webkit-transform: translate(446px, 48px);
    transform: translate(446px, 48px);
  }

  to {
    -webkit-transform: translate(100px, 48px);
    transform: translate(100px, 48px);
  }
}

@keyframes cloud-move-reverse {
  from {
    -webkit-transform: translate(446px, 48px);
    transform: translate(446px, 48px);
  }

  to {
    -webkit-transform: translate(100px, 48px);
    transform: translate(100px, 48px);
  }
}

/* ABOUT ME */

/* MEDIA QUERIES */

@media all and (max-width: 1200px) {
  .main-container {
    width: 95%;
  }
}

@media all and (max-width: 525px) {
  .page-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
  }

  .page-header__logo {
    margin: 0;
  }

  [role="menubar"] {
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0;
  }

  .page-header-nav__item {
    padding-left: 10px;
  }

  .profile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-bottom: 50px;
  }

  .img {
    text-align: center;
    margin-top: 45px;
  }

  .text {
    text-align: center;
  }
}
