html {
    background-color: rgb(250, 250, 250);
    width: 100%;
    height: 100%;
    margin: 0;
}

header {
  margin-bottom: 3em;
}

body {
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1.5em;
  font-weight: 100;
  color: black;
}

 section {
  margin: 2% 0;
}

#mail-link {
  color: black;
  text-decoration: none;
}

.in-text-link {
  color: black;
  text-decoration: underline;
}

#mail-link:hover, .in-text-link:hover {
  color: black;
  background-color: lightyellow;
  padding: 0.5em 0em;
  font-weight: bold;
}

/* home-page */
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
}
.column {
  flex-basis: 50%;
  flex: 50%;
  max-width: 50%;
  padding: 0 4px;
}
.column img {
  display: block;
  margin-top: 8px;
  vertical-align: middle;
}
.home-container {
  position: relative;
}

.home-proj-info {
  display: none;
  transition: .5s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.home-container:hover img {
  opacity: 0.1;
  transition-duration: 0.5s;
}

.home-container:hover .home-proj-info {
  display: inline-block;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.button-back-to-top {
  text-align: center;
}

code {
  padding: 0.3em;
  display: inline-block;
  background-color: lightyellow;
}

.block-proj-content {
  margin: 3% 12%;
}

.block-proj-img {
  margin: 0 12%;
}
.block-proj-img img, .block img {
  width: 100%;
}

.block-center-para {
    margin: 4em 24%;
    width: 100%;
}

/* Styling for the navigation button and submit button */
div.button-view-pg a{
  font-family: "Karla", Arial, sans-serif;
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: none;
  padding: 5px 8px;
  color: black;
  border: solid 1.2px black;
  z-index: 2;
}
.button-view-pg a:hover {
  text-decoration: none;
  font-weight: 500;
  transition-duration: 0.3s;
  background-color: black;
  color: white;
  transition: 0.5s;
  transform: translateX(12px);
}

a {
  text-decoration: none;
  color: black;
}
/*
  TEXT ELEMENTS -------------------
*/
h1 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  font-size: 1.6rem;
  color: black;
  margin-top: 0;
  margin-bottom: 0.2em;
}

h2 {
  display: block;
  text-transform: uppercase;
  font-family: "Karla", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  margin-top: 1em;
  margin-bottom: 5em;
  color: grey;
  font-weight: 400;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: black;
  margin-top: 0;
  margin-bottom: 0.2em;
}

h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}

h5 {
  font-family: "Karla", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.8em;
  color: black;
  margin-top: 0;
  margin-bottom: 0;
}

h6 {
  font-family: "Karla", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.4em;
  line-height: 2.3em;
  font-size: 0.9rem;
  font-weight: 400;
  /* width: 70%; */
  width: 100%;
}

/* Styling Main navigation */
.nametag {
  position: absolute;
  left: 8%;
  margin-top: 0;
  z-index: 10;
}

.nametag a{
  font-family: "Karla", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: black;
}

.horizontal-bar {
  padding-top: 1em;
}

.nav-right {
  position: absolute;
  right: 8%;
  margin-top: 0;
  z-index: 10;
  display: block;
}
.nav-right a, #style-guide-nav a{
  font-family: "Karla", Arial, sans-serif;
  font-size: 0.8rem;
  margin: 0em 0.6em;
  font-weight: bold;
  color: rgb(30, 30, 30);
  border-bottom: solid lightgrey 2px;
}
.nav-right a:hover {
  border-bottom: none;
  transition-duration: 0.5s;
  color: black;
}

/* Styling for the navigation bar in responsive webpages*/
.dropdown {
  cursor: pointer;
  position: absolute;
  right: 8%;
  margin-top: 0;
  z-index: 10;
  display: none;
}

.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  background-color: lightyellow;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-family: "Karla", Arial, sans-serif;
  font-size: 1.5rem;
  color: black;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: lightgrey;
}

.overlay .closebtn {
  position: absolute;
  top: 0;
  right: 8%;
  font-size: 40px;
}

/* Styling projects display panel*/
* {
	box-sizing: border-box;
}

.container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.block {
	flex-basis: 35%;
  padding-left: 1%;
  z-index: -3;
}
.block-right {
  margin-left: -3%;
	flex-basis: 65%;
  z-index: 1;
}

.block-right-normal {
  flex-basis: 65%;
  padding-left: 5%;
}
.block-right-normal p {
  width: 70%;
}

.big-text {
  display: block;
}

.big-text a{
  position: relative;
  font-size: 21vw;
  color: rgb(240, 240, 240);
  opacity: 0.5;
  letter-spacing: 0.2em;
  font-weight: bold;
  z-index: -1;
  float: right;
}

.block img {
  filter: brightness(95%);
}

.block-next-proj {
  flex-basis: 50%;
  align-items: center;
}
.block-next-proj img{
  object-fit: cover;
  width: 100%;
  height: 30%;
}

footer {
  margin-top: 2em;
  margin-right: 1.5em;
  margin-bottom: 1em;
  text-align: right;
  font-size: 0.8em;
}


@media screen and (max-width: 992px) {
  body {
    line-height: normal;
  }

  .horizontal-bar {
    position: fixed;
    background-color: rgb(250, 250, 250);
    top: 0;
    width: 100%;
    height: 50px;
    width: 100%;
    z-index: 10;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    margin-bottom: 1.5em;
  }
  h3 {
    font-size: 1.3em;
  }

  .block-right-normal p {
    width: 85%;
  }
  .block {
    flex-basis: 40%;
    height: 100%;
  }
  .block-right, .block-right-normal {
    flex-basis: 60%;
    height: 100%;
  }
  #margin-16 {
    display: none;
  }
  .block-proj-content {
    margin: 3% 8%;
  }
  .block-proj-img {
    margin: 0 8%;
  }
  .block-center-para {
      margin: 2% 8%;
      width: 100%;
  }

  .big-text {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  .nav-right {
    display: none;
  }
  .dropdown {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  body {
		margin-bottom: 5%;
  }

  .block {
    flex-basis: 100%;
    margin: 0 2%;
  }
  .block img {
    object-fit: cover;
    height: 600px;
  }
  .block-right {
    flex-basis: 100%;
    margin: 0 5% 15% 5%;

  }

  .block-right-normal {
    flex-basis: 100%;
    margin: 0 2%;
  }

  #block-about {
    flex-basis: 100%;
    margin: 0 4%;
  }

  h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 0.6rem;
    margin-bottom: 2em;
  }
  p {
    width: 100%;
  }

  .block-right-normal p {
    width: 100%;
    padding-right: 2%;
  }
  .button-view-pg a:hover {
    transform: translateX(0);
  }

  .column {
    flex-basis: 100%;
    max-width: 100%;
  }
}
