@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  background: url('../images/3.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: rgb(73, 84, 100);
  display: flex;
  height: 70px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  z-index: 999;
}

.nav-colored {
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 500ms ease;
}

.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  color: rgb(41, 46, 53);
}

nav .desktop-nav li {
  display: inline-block;
  padding-left: 20px;
  font-weight: 500;
}

nav .desktop-nav a:hover{
  color: rgb(22, 24, 27);
}

/* Mobile nav style */
.mobile-nav {
  display: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

nav .menu-items {
  display: flex;
}

nav .nav-container li {
  list-style: none;
}

nav .nav-container a {
  color: rgb(255, 255, 255);
  padding: 0.7rem;
  font-weight: 300;
}

nav .nav-container a:hover{
  font-weight: 500;
}

.nav-container {
  display: block;
  position: relative;
  height: 40px;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 25px;
  width: 25px;
  top: 10px;
  right: -1px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 20px;
  width: 25px;
  position: absolute;
  top: 10px;
  right: -1px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 10px;
  background: rgb(73, 84, 100);
}

.nav-container .hamburger-lines .line2 {
  width: 80%;
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

nav .menu-items {
  background-color: rgb(73, 84, 100);
  position: fixed;
  padding-top: 30px;
  height: 100vh;
  width: 80%;
  transform: translateX(150%);
  display: flex;
  flex-direction: column;
  top: 70px;
  margin-right: 40px;
  transition: transform 0.5s ease-in-out;
}

nav .menu-items li {
  margin-bottom: 25px;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(-50%);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.hero {
  margin-top: 70px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro {
  width: 50%;
}

.intro p:nth-child(1) {
  padding-bottom: 0.5em;
}

.intro p {
  color: rgb(41, 46, 53);
  line-height: 2em;
  font-weight: 400;
  font-size: 18px;
}

.hero-picture {
  text-align: center;
}

.hero-picture img {
  width: 100%;
}

svg {
  background-color: rgba(221, 221, 221, 0.5);
}

h2 {
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.about {
  margin-top: -5px;
  background-color: rgba(221, 221, 221, 0.5);
  padding: 0 80px;
  color: rgb(41, 46, 53);
}

.about h2 {
  text-align: center;
  padding-bottom: 20px;
}

.about p {
  padding: 25px 0px 20px;
  color: rgb(41, 46, 53);
  line-height: 1.5em;
  font-weight: 400;
  font-size: 16px;
  text-align: justify;
}

.about h3 {
  display: inline-block;
  padding-right: 50px;
  padding-bottom: 15px;
  border-bottom: 2px solid #6e7c7c;
}

.biodata {
  margin-top: -5px;
  background-color: #6e7c7c;
  text-align: center;
  padding: 50px;
  color: rgb(244, 244, 242);
  text-align: center;
}

.biodata .container {
  padding-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-picture {
  width: 40%;
}

.biodata .container img {
  width: 55%;
  min-width: 200px;
  border-radius: 50%;
  border: 3px dashed rgb(244, 244, 242);
}

.biodata .container .biodata-table {
  width: 35%;
}

.biodata .container td {
  font-size: 18px;
  border-bottom: 1px solid black;
  padding: 10px 20px;
  text-align: left;
}

.history {
  background-color: rgb(211, 222, 220);
  padding: 20px 80px 0px;
  color: rgb(41, 46, 53);
}

.history h2, .trivia h2, .social-media h2{
  padding-bottom: 30px;
}

.history .container {
  display: flex;
  justify-content: space-between;
}

.history li {
  padding-bottom: 10px;
}

.trivia {
  padding: 20px 80px;
  color: white;
  background-color: #6e7c7c;
}

.trivia .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.trivia .cards .box {
  border-radius: 10%;
  display: flex;
  font-size: 18px;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: #A2B1B0;
  padding: 10px;
  margin: 20px;
  width: 180px;
  height: 180px;
  transition: all .1s ease-in;
}

.trivia .cards .box:hover {
  background-color: rgb(211, 222, 220);
  color: rgb(41, 46, 53);
  font-weight: 500;
  border: 1px solid rgba(41, 46, 53, 0.6);
  transform: scale(1.1);
}

.social-media {
  background-color: rgb(211, 222, 220);
  padding: 20px 80px 50px;
  color: rgb(41, 46, 53);
}

.social-media .cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 600px;
  margin: auto;
}

.social-media .cards .box {
  margin: 5px 10px;
  border: 1px solid #6e7c7c;
  text-align: center;
  flex-basis: 45%;
  border-radius: 5px;
  background: linear-gradient(to left, rgb(211, 222, 220) 50%, #6e7c7c 50%) right;
  background-size: 200%;
  transition: .2s ease-out;
}

.social-media a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.social-media .cards .box:hover {
  color: white;
  background-position: left;
}

.source {
  background-color: rgba(221, 221, 221, 0.6);
  padding: 20px 80px 30px;
  color: rgb(41, 46, 53);
  display: flex;
  flex-wrap: wrap;
}

.source h2 {
  text-transform: capitalize;
  text-align: left;
  font-size: 22px;
  padding-bottom: 20px;
}

.credit {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  flex-basis: 75%;
}

.credit a{
  font-weight: 500;
  font-style: italic;
}

.credit li {
  padding-bottom: 10px;
  list-style-position: inside;
}

.creator {
  display: flex;
  padding-left: 30px;
  flex-basis: 25%;
  flex-direction: column;
}

.creator .name {
  margin: 15px 0;
}

.creator > span {
  font-weight: 300;
}

.source img {
  width: 90px;
  border-radius: 50%;
}

footer {
  background-color: #6e7c7c;
  text-align: center;
  height: 100px;
  line-height: 100px;
  color: white;
}

footer a{
  font-weight: 500;
  text-decoration: underline;
}

@media only screen and  (max-width: 800px) {
  nav {
    width: 100%;
    justify-content: space-between;
    padding: 20px 30px;
  }
  .hero, 
  .biodata .container,
  .history .container,
  .source {
    flex-direction: column;
  }
  .intro {
    order: 2;
    width: 100%;
    text-align: center;
  }
  .about, 
  .biodata, 
  .history,
  .trivia,
  .social-media,
  .source {
    list-style-position: inside;
    padding-left: 30px;
    padding-right: 30px;
  }
  .history li {
    list-style: none;
  }
  .trivia .cards .box{
    width: 100%;
    border-radius: 10px;
    font-size: 20px;
    margin-bottom: 10px;
  }
  .biodata .container .biodata-table, 
  .biodata .container .profile-picture,
  .social-media .cards {
    width: 100%;
  }
  .social-media .cards .box {
    flex-basis: 100%;
  }
  .source .credit {
    border: none;
  }
  .source .creator {
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid black;
    align-items: center;
    text-align: center;
  }
  .biodata .container .biodata-table table {
    margin: auto;
  }
  .history .container {
    line-height: 1.5;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
}