* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
h1,
h2 {
  color: white;
  font-family: "Poppins", sans-serif;
}
#eric {
  color: #000000;
  font-size: 100px;
}

#projectsfont {
  background-color: #3f3f3f;
  color: white;
  text-align: center;
  padding: 15px;
}
#projectshr {
  margin-top: 30px;
  padding: 0px;
  border: 5px solid rgb(0, 0, 0);
}
#projectshrbot {
  padding: 0px;
  border: 5px solid rgb(0, 0, 0);
}
#ericpicture {
  background-color: rgb(63, 63, 63);
  font-family: "Poppins", sans-serif;
  width: 350px;
  height: 450px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  color: white;
  margin-left: 100px;
  margin-top: 80px;
  float: left;
}
/*
#ericpicture{
width: 300px;
height: 400px;
}
*/

#myname {
  text-align: center;
  background-color: rgb(63, 63, 63);
  padding: 20px;
  font-family: "Poppins", sans-serif;
  float: right;
  width: 700px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  margin-top: 100px;
  margin-right: 250px;
  color: white;
  font-size: 40px;
}
i {
  color: white;
  margin: 20px;
  font-size: 60px;
}
#aboutme {
  text-align: center;
  background-color: rgb(37, 37, 37);
  padding: 40px;
  font-family: "Poppins", sans-serif;
  width: 800px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  color: white;
  margin: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 10px;
}
#projectsgame {
  background-color: rgb(63, 63, 63);
  font-family: "Poppins", sans-serif;
  width: 1000px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 70px;
}
#projectsweb {
  background-color: rgb(63, 63, 63);
  font-family: "Poppins", sans-serif;
  width: 1000px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  margin-bottom: 50px;
}
#achievements {
  background-color: rgb(63, 63, 63);
  font-family: "Poppins", sans-serif;
  width: 500px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 50px;
}
#projectboxes {
  text-align: center;
  background-color: rgb(63, 63, 63);
  padding: 10px;
  font-family: "Poppins", sans-serif;
  width: 650px;
  height: 650px;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  color: white;
  margin: auto;
  font-size: 15px;
}
#webpages {
  background-color: rgb(63, 63, 63);
  padding: 20px;
  font-family: "Poppins", sans-serif;
  width: 650px;
  text-decoration: none;
  border: 15px solid rgb(0, 0, 0);
  border-radius: 25px;
  color: white;
  margin: auto;
  font-size: 15px;
}
.links {
  text-decoration: none;
  color: white;
  font-size: 15px;
}
body {
  margin: 0;
  padding: 0;
  background: url(picture/bg.png);
  background-size: cover;
  background-position: center;
  font-family: sans-serif;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.pic {
  margin-top: 50px;
  margin-left: 30px;
}
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  background-color: rgb(255, 255, 255);
  font-family: "Poppins", sans-serif;
  color: rgb(0, 0, 0);
}
.nav-links {
  display: flex;
  background-color: rgb(255, 255, 255);
  justify-content: space-around;
  width: 30%;
  color: rgb(0, 0, 0);
}
.nav-links li {
  list-style: none;
}
.nav-links button {
  list-style: none;
}
.nav-links a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 17px;
}
.burger {
  display: none;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: rgb(0, 0, 0);
  margin: 5px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 1400px) {
  #myname {
    text-align: center;
    background-color: rgb(63, 63, 63);
    padding: 20px;
    font-family: "Poppins", sans-serif;
    float: right;
    width: 650px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 110px;
    margin-right: 150px;
    color: white;
    font-size: 50px;
  }
  #ericpicture {
    margin-left: 80px;
  }
  #eric {
    font-size: 90px;
  }
  #intro {
    font-size: 30px;
  }
}
@media screen and (max-width: 1300px) {
  #myname {
    text-align: center;
    background-color: rgb(63, 63, 63);
    padding: 20px;
    font-family: "Poppins", sans-serif;
    float: right;
    width: 600px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 110px;
    margin-right: 100px;
    color: white;
    font-size: 50px;
  }
  #ericpicture {
    width: 330px;
    height: 420px;
    margin-left: 60px;
    margin-top: 90px;
  }
}
@media screen and (max-width: 1130px) {
  #projectshr {
    width: 1130px;
    margin-top: 30px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }
  #projectshrbot {
    width: 1130px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }

  .nav-links {
    width: 30%;
  }
  .fa-facebook-square {
    font-size: 60px;
    margin: 20px;
    margin-bottom: 10px;
  }
  .fa-twitter-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-instagram-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-github-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-stack-overflow {
    font-size: 60px;
    margin: 20px;
  }
  hr {
    width: 490px;
    margin: auto;
  }
  #ericpicture {
    width: 290px;
    height: 370px;
    color: white;
    margin-left: 50px;
    margin-top: 110px;
    float: left;
  }
  #myname {
    width: 600px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 140px;
    margin-right: 50px;
    color: white;
    font-size: 30px;
    padding: 0px;
  }

  #intro {
    font-size: 25px;
  }
}
@media screen and (max-width: 1024px) {
  .nav-links {
    width: 30%;
  }
  .fa-facebook-square {
    font-size: 60px;
    margin: 20px;
    margin-bottom: 10px;
  }
  .fa-twitter-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-instagram-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-github-square {
    font-size: 60px;
    margin: 20px;
  }
  .fa-stack-overflow {
    font-size: 60px;
    margin: 20px;
  }
  hr {
    width: 450px;
    margin: auto;
  }
  #ericpicture {
    width: 250px;
    height: 330px;
    color: white;
    margin-left: 40px;
    margin-top: 145px;
    float: left;
  }
  #myname {
    width: 520px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 160px;
    margin-right: 50px;
    color: white;
    font-size: 30px;
    padding: 0px;
  }
  #eric {
    font-size: 80px;
  }
  #intro {
    font-size: 25px;
  }
}

@media screen and (max-width: 900px) {
  #ericpicture {
    width: 230px;
    height: 300px;
    margin-left: 30px;
    margin-top: 155px;
  }
  #myname {
    width: 420px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 180px;
    margin-right: 50px;
    color: white;
    font-size: 30px;
    padding: 0px;
  }
  .fa-facebook-square {
    font-size: 60px;
    margin: 7px;
    margin-bottom: 10px;
  }
  .fa-twitter-square {
    font-size: 60px;
    margin: 7px;
  }
  .fa-instagram-square {
    font-size: 60px;
    margin: 7px;
  }
  .fa-github-square {
    font-size: 60px;
    margin: 7px;
  }
  .fa-stack-overflow {
    font-size: 60px;
    margin: 7px;
  }
  hr {
    width: 340px;
    margin: auto;
  }

  #eric {
    font-size: 60px;
  }
  #intro {
    font-size: 25px;
  }
}

@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  #projectshr {
    width: 768px;
    margin-top: 30px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }
  #projectshrbot {
    width: 768px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }
  .fa-facebook-square {
    font-size: 50px;
    margin: 7px;
    margin-bottom: 10px;
  }
  .fa-twitter-square {
    font-size: 50px;
    margin: 7px;
  }
  .fa-instagram-square {
    font-size: 50px;
    margin: 7px;
  }
  .fa-github-square {
    font-size: 50px;
    margin: 7px;
  }
  .fa-stack-overflow {
    font-size: 50px;
    margin: 7px;
  }
  hr {
    width: 250px;
    margin: auto;
  }
  #myname {
    padding: 0px;
    width: 380px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 200px;
    margin-right: 10px;
    color: white;
    font-size: 30px;
  }
  #eric {
    font-size: 40px;
  }
  #intro {
    font-size: 20px;
  }
  #ericpicture {
    width: 200px;
    height: 250px;
    color: white;
    margin-left: 20px;
    margin-top: 180px;
    float: left;
  }

  .logo {
    position: relative;
    right: 44px;
  }

  .nav-links li {
    opacity: 0;
  }
  .nav-links {
    position: absolute;
    right: 0px;
    height: 92vh;
    top: 10vh;
    background-color: #ffffff;
    flex-direction: column;
    display: flex;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }
  .burger {
    display: block;
  }
  .nav-active {
    transform: translateX(0%);
  }
}
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
/*.logo{
      margin-right: 100px;
      margin-left: -100px;
      position: relative;
  }*/

ul li {
  display: inline-block;
  padding: 5px 10px;
  font-size: 24px;
  font-weight: bold;
  margin: 10px;
  position: relative;
}
ul li a {
  text-transform: uppercase;
  text-decoration: none;
}
ul li:before {
  position: absolute;
  content: "";
  width: 50px;
  height: 20px;
  border-top: 5px solid #000000;
  border-left: 5px solid #000000;
  left: 0;
  top: 0;
  transition: 0.3s;
  opacity: 0;
}

ul li:after {
  position: absolute;
  content: "";
  width: 50px;
  height: 20px;
  border-right: 5px solid #000000;
  border-bottom: 5px solid #000000;
  right: 0;
  bottom: 0;
  transition: 0.3s;
  opacity: 0;
}

ul li:hover:before {
  left: -10px;
  top: -10px;
  opacity: 1;
}
ul li:hover:after {
  right: -10px;
  bottom: -10px;
  opacity: 1;
}
ul li.scrolling {
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  opacity: 1;
}

.dropbtn {
  display: flex;
  border: 2px solid white;
  font-family: "Poppins", sans-serif;
  cursor: default;
  background-color: white;
  color: rgb(0, 0, 0);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgb(255, 255, 255);
}
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #ffffff;
}

.slider {
  width: 600px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
}

.slides {
  width: 500%;
  height: 500px;
  display: flex;
}
.slides input {
  display: none;
}
.slide {
  width: 20%;
  transition: 1s;
}

.slide img {
  width: 600px;
  height: 500px;
}

.navigation-manual {
  position: absolute;
  width: 600px;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}
.manual-btn {
  border: 2px solid #000000;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: 1s;
}
.manual-btn:not(:last-child) {
  margin-right: 40px;
}

.manual-btn:hover {
  background: #ffffff;
}
#radio1:checked ~ .first {
  margin-left: 0;
}
#radio2:checked ~ .first {
  margin-left: -20%;
}
#radio3:checked ~ .first {
  margin-left: -40%;
}
#radio4:checked ~ .first {
  margin-left: -60%;
}
.navigation-auto {
  position: absolute;
  display: flex;
  width: 600px;
  justify-content: center;
  margin-top: 460px;
}
.navigation-auto div {
  border: 2px solid white;
  padding: 5px;
  border-radius: 10px;
  transition: 1s;
}
.navigation-auto div:not(:last-child) {
  margin-right: 40px;
}
#radio1:checked ~ .navigation-auto .auto-btn1 {
  background: #000000;
}
#radio2:checked ~ .navigation-auto .auto-btn2 {
  background: #ffffff;
}
#radio3:checked ~ .navigation-auto .auto-btn3 {
  background: #ffffff;
}
#radio4:checked ~ .navigation-auto .auto-btn4 {
  background: #ffffff;
}

@media screen and (max-width: 630px) {
  #projectshr {
    width: 630px;
    margin: auto;
    margin-top: 30px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }
  #projectshrbot {
    width: 630px;
    padding: 0px;
    border: 5px solid rgb(0, 0, 0);
  }
  body {
    overflow-x: hidden;
  }
  hr {
    width: 170px;
    margin: auto;
    margin-bottom: 10px;
  }
  .fa-facebook-square {
    font-size: 32px;
    margin: 4px;
    margin-bottom: 10px;
  }
  .fa-twitter-square {
    font-size: 32px;
    margin: 4px;
  }
  .fa-instagram-square {
    font-size: 32px;
    margin: 4px;
  }
  .fa-github-square {
    font-size: 32px;
    margin: 4px;
  }
  .fa-stack-overflow {
    font-size: 32px;
    margin: 4px;
  }
  #myname {
    padding: 0px;
    width: 250px;
    border: 15px solid rgb(0, 0, 0);
    border-radius: 25px;
    margin-top: 210px;
    margin-right: 10px;
    color: white;
    font-size: 30px;
  }
  #eric {
    font-size: 30px;
  }
  #intro {
    font-size: 20px;
  }
  #ericpicture {
    width: 200px;
    height: 250px;
    color: white;
    margin-left: 13px;
    margin-top: 180px;
    float: left;
  }
  .nav-active {
    transform: translateX(0%);
  }
}
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
.logo {
  margin-right: 100px;
}

ul li {
  display: inline-block;
  padding: 5px 10px;
  font-size: 24px;
  font-weight: bold;
  margin: 10px;
  position: relative;
}
ul li a {
  text-transform: uppercase;
  text-decoration: none;
}
ul li:before {
  position: absolute;
  content: "";
  width: 50px;
  height: 20px;
  border-top: 5px solid #000000;
  border-left: 5px solid #000000;
  left: 0;
  top: 0;
  transition: 0.3s;
  opacity: 0;
}

ul li:after {
  position: absolute;
  content: "";
  width: 50px;
  height: 20px;
  border-right: 5px solid #000000;
  border-bottom: 5px solid #000000;
  right: 0;
  bottom: 0;
  transition: 0.3s;
  opacity: 0;
}

ul li:hover:before {
  left: -10px;
  top: -10px;
  opacity: 1;
}
ul li:hover:after {
  right: -10px;
  bottom: -10px;
  opacity: 1;
}
ul li.scrolling {
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  opacity: 1;
}

.dropbtn {
  display: flex;
  border: 2px solid white;
  font-family: "Poppins", sans-serif;
  cursor: default;
  background-color: white;
  color: rgb(0, 0, 0);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgb(255, 255, 255);
}
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #ffffff;
}

.slider {
  width: 600px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
}

.slides {
  width: 500%;
  height: 500px;
  display: flex;
}
.slides input {
  display: none;
}
.slide {
  width: 20%;
  transition: 1s;
}

.slide img {
  width: 600px;
  height: 500px;
}

.navigation-manual {
  position: absolute;
  width: 600px;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}
.manual-btn {
  border: 2px solid #000000;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: 1s;
}
.manual-btn:not(:last-child) {
  margin-right: 40px;
}

.manual-btn:hover {
  background: #ffffff;
}
#radio1:checked ~ .first {
  margin-left: 0;
}
#radio2:checked ~ .first {
  margin-left: -20%;
}
#radio3:checked ~ .first {
  margin-left: -40%;
}
#radio4:checked ~ .first {
  margin-left: -60%;
}
.navigation-auto {
  position: absolute;
  display: flex;
  width: 600px;
  justify-content: center;
  margin-top: 460px;
}
.navigation-auto div {
  border: 2px solid white;
  padding: 5px;
  border-radius: 10px;
  transition: 1s;
}
.navigation-auto div:not(:last-child) {
  margin-right: 40px;
}
#radio1:checked ~ .navigation-auto .auto-btn1 {
  background: #000000;
}
#radio2:checked ~ .navigation-auto .auto-btn2 {
  background: #ffffff;
}
#radio3:checked ~ .navigation-auto .auto-btn3 {
  background: #ffffff;
}
#radio4:checked ~ .navigation-auto .auto-btn4 {
  background: #ffffff;
}
