body,
html {
  /*background: grey;*/
  background-color: yellow;
  background: url("https://wallpaperbat.com/img/271123-abstract-dark-yellow-wallpaper.jpg");
  background-repeat: repeat;
  background-size: cover;
  height: 100%;
  margin: 0px;
  font-family: sans-serif;
}

/*Navbar*/

#navbar > a {
  display: block;
  margin-left: 5em;
  margin-right: 5em;
  text-decoration: none;
  text-transform: uppercase;
  color: #f0d20e;
  font-weight: 900;
}

a:hover {
  opacity: 0.7;
}

#navbar {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  background: black;
  position: fixed;
  width: 100%;
  top: 0px;
  padding: 3em;
  z-index: 1;
  border-bottom: 4px solid #f0d20e;
}

/*    Welcome section   */
#welcome-section {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  margin: 0px;
  background-color: #d2a813;
  background-image: linear-gradient(315deg, #d2a813 0%, #000000 74%);
}

#welcome-text > h1 {
  font-size: 3rem;
  color: #f0d20e;
  font-weight: 900;
  font-style: oblique;
}

#welcome-text > p {
  font-size: 2rem;
  color: black;
  font-weight: 700;
}

#welcome-text {
  text-align: center;
  width: 100%;
}

/* Projects section*/
#projects {
  background-color: #000000;
  background-image: linear-gradient(147deg, #000000 0%, #434343 74%);
  border-radius: 10%;
  box-shadow: 5px 10px 18px #888888;
  width: 60%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 2em;
  padding: 3em;
  margin-top: 7em;
}

#projects > h1 {
  width: 100%;
  font-size: 2rem;
  color: #f0d20e;
  font-weight: 900;
}
.project-tile {
  width: 300px;
  height: 300px;
  justify-self: center;
  border: 5px solid black;
}

.project-description {
  width: inherit;
  height: inherit;
  position: absolute;
}

#desc-1 {
  background-image: url("../images/tribute_page.png");
  background-size: cover;
}
#desc-2 {
  background-image: url("../images/survey_form.png");
  background-size: cover;
}
#desc-3 {
  background-image: url("../images/landing_page.png");
  background-size: cover;
}
#desc-4 {
  background-image: url("../images/documentation.png");
  background-size: cover;
}

#project-text {
  position: relative;
  width: inherit;
  height: inherit;
  display: none;
  background: black;
  opacity: 0.8;
}

#project-text > a {
  color: white;
  text-decoration: none;
  font-weight: 900;
}

#project-text > a:hover {
  color: yellow;
}

.project-tile:hover #project-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

/*    Contact-me section   */
#contact-me {
  background-color: black;
  margin-top: 8em;
  text-align: center;
  width: auto;
  margin-left: 0px;
  margin-right: 0px;
  padding: 8em;
}
#contact-me > h1 {
  color: #f0d20e;
  font-weight: 900;
  font-size: 3rem;
}

#contact-me > a {
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
}

#contact-me > p {
  color: white;
  font-weight: 500;
  font-size: 1rem;
}

@media screen and (max-width: 1100px) {
  #navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    padding-left: 1em;
    padding-right: 1em;
    z-index: 1;
  }
  #navbar > a {
    margin-left: 0;
    margin-right: 0;
    padding: 1rem;
  }

  #welcome-section {
    margin-top: 15em;
    padding-top: 8em;
    padding-bottom: 10em;
    margin-right: 0px;
    margin-left: 0px;
    width: 100%;
    height: 30vh;
  }

  #welcome-text {
    text-align: center;
    width: 100%;
  }

  /* Projects section*/
  #projects {
    background-color: #000000;
    background-image: linear-gradient(147deg, #000000 0%, #434343 74%);
    border-radius: 0%;
    box-shadow: none;
    width: 100%;
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: stretch;
    padding: 0px;
  }
  #projects > h1 {
    width: auto;
    padding: 1.5em;
    font-size: 1.5rem;
    color: #f0d20e;
    font-weight: 900;
    display: block;
  }
  .project-tile {
    padding: none;
    width: 100%;
    margin: auto;
    border: 5px solid black;
  }

  .project-description {
    padding: 0px;
    width: 100%;
    margin: 0px;
    position: absolute;
  }

  #project-text {
    padding: 0px;
    width: 100%;
    margin: 0px;
    position: relative;
  }

  #contact-me {
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
    padding-bottom: 3em;
  }

  #contact-me > h1 {
    color: #f0d20e;
    font-weight: 900;
    font-size: 2rem;
  }

  #contact-me > a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-weight: 900;
    font-size: 1rem;
    margin-right: 0px;
    margin-left: 0px;
  }

  #contact-me > p {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    margin-right: 0px;
    margin-left: 0px;
  }
}
