* {
  margin: 0;
  padding: 0;
}

::selection {
  background-color: rgba(235, 195, 48, 0.5);
}

html {
  scroll-behavior: smooth;
}

@media screen and (min-width: 1025px) {

  /*Navigation*/
  nav #cb {
    display: none;
  }

  .logo {
    display: inline-block;
    font-family: "Odibee Sans", sans-serif;
    font-size: 1.5em;
    width: 45px;
    outline: none;
    margin: 15px 40px 15px 0;
    float: left;
  }

  #logoImg {
    object-fit: contain;
    max-width: 100%;
    height: auto;
  }

  .logo:hover {
    cursor: pointer;
  }

  nav {
    position: fixed;
    z-index: 1000;
    height: auto;
    /* min-height: 65px; */
    padding-left: 5vw;
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.8);
  }

  nav ul li {
    display: inline-block;
    list-style: none;
    outline: none;
    margin: 15px 20px 15px 0;
  }

  nav ul li a {
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    text-decoration: none;
  }

  nav ul li:hover>a {
    cursor: pointer;
  }

  /*front page*/
  #wrapper {
    padding: 5vh 5vw;
  }

  #container1 {
    float: left;
    display: block;
    position: relative;
    width: 34.5vw;
    height: 90vh;
    min-width: 350px;
    min-height: 500px;
    margin-left: 5vw;
    margin-top: 5vh;
    box-sizing: border-box;
    background-image: url("pictures/self.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    margin-bottom: 15px;
  }

  #container2 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    width: 44.5vw;
    /* height: 90vh; */
    min-width: 350px;
    min-height: 90vh;
    margin-left: 5vw;
    margin-top: 5vh;
    padding: 0 2.5vw;
    padding-top: 2.5vh;
    box-sizing: border-box;
    background-color: transparent;
    overflow: visible;
    margin-bottom: 15px;
  }

  #container2 #text {
    width: 100%;
  }

  #container2 h1 {
    width: 100%;
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 2.5em;
    z-index: 1;
    text-align: left;
  }

  /* #container2 h1::before {
    content: '';
    position: absolute;
    background-color: #333;
    height: 2px;
    width: 100px;
    bottom: 0;
    left: 0;
    z-index: -1;
  } */
  #container2 p {
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 2em;
    text-align: justify;
  }

  #container2 a {
    width: auto;
    border: none;
    outline: none;
    padding: 5px;
    margin-top: 25px;
    display: inline-block;
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 1.5em;
  }
}

/*Mobile Version*/
@media screen and (max-width: 1024px) and (min-width: 320px) {

  /*Hamburger menu*/
  nav .hamburg {
    position: relative;
    float: left;
    display: block;
    background: #555;
    width: 50px;
    height: 50px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    border-radius: 4px;
  }

  .line {
    position: absolute;
    display: block;
    width: 44px;
    height: 4px;
    left: 3px;
    border-radius: 3px;
    background-color: white;
    transition: 0.5s;
    transform-origin: center;
  }

  .line:nth-child(1) {
    top: 12px;
  }

  .line:nth-child(2) {
    top: 24px;
  }

  .line:nth-child(3) {
    top: 36px;
  }

  nav #cb {
    display: none;
  }

  nav #cb:checked~ul {
    display: block;
    -webkit-animation: fade 0.5s ease-out;
    animation: fade 0.5s ease-out;
  }

  nav #cb:checked~.hamburg .line {
    transform: rotate(-45deg);
  }

  nav #cb:checked~.hamburg .line:nth-child(1) {
    opacity: 0;
  }

  nav #cb:checked~.hamburg .line:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
  }

  @keyframes fade {
    0% {
      opacity: 0;
    }

    50% {
      opacity: 0.5;
    }

    100% {
      opacity: 1;
    }
  }

  @-webkit-keyframeskeyframes fade {
    0% {
      opacity: 0;
    }

    50% {
      opacity: 0.5;
    }

    100% {
      opacity: 1;
    }
  }

  /*navigation*/
  nav {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .logo {
    position: absolute;
    width: 50px;
    font-family: "Odibee Sans", sans-serif;
    font-size: 2.5em;
    top: 10px;
    left: 10px;
    outline: none;
  }

  #logoImg {
    object-fit: contain;
    max-width: 100%;
    height: auto;
  }

  nav ul {
    display: none;
    background-color: rgba(255, 255, 255, 0.75);
    text-align: center;
  }

  nav ul li {
    display: inline-block;
    list-style: none;
    outline: none;
    margin: 15px 20px 15px 0;
  }

  nav ul li a {
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 1.25em;
    font-weight: normal;
    text-decoration: none;
  }

  nav ul li:hover>a {
    cursor: pointer;
  }

  #wrapper {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
  }

  #container1, #container2 {
    /* float: left; */
    display: block;
    position: relative;
    width: 90vw;
    height: 65vh;
    min-width: 300px;
    min-height: 500px;
    margin-bottom: 25px;
    box-sizing: border-box;
  }

  #container1 {
    background-image: url("pictures/self.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 5vh;
  }

  #container2 {
    padding: 5vw;
    height: auto;
  }

  #container2 h1 {
    /* position: relative; */
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 2em;
    z-index: 1;
  }

  #container2 p {
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 1em;
    text-justify: inter-word;
  }

  #container2 a {
    width: auto;
    border: none;
    outline: none;
    padding: 5px 5px 5px 0;
    margin-top: 25px;
    display: inline-block;
    color: rgba(47, 53, 66, 1.0);
    font-family: "Spartan", sans-serif;
    font-size: 1.5em;
  }
}