*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

:root {
  --clr-primary: #0082e6;
  --clr-secondary: #1b9bff;
  /* --clr-tertiary: #1e3144; */
  --clr-tertiary: #13193f;
  --clr-grey: #aaaab1;
  --clr-lightgrey: #e8e8e8;
  --clr-highlight: #0e0bdb;
}

body {
  font-family: "Montserrat", "Kanit", sans-serif;
  position: relative;
  padding-bottom: 80px;
  min-height: 100vh;
  min-width: 320px;
}

/* svg animation test */

#iconpathmr {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 695;
  stroke: red;
  stroke-dashoffset: 695;
  animation: sign 5s ease;
  animation-fill-mode: forwards;
}

#iconpath {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 695;
  stroke: red;
  stroke-dashoffset: 695;
  animation: sign 5s ease;
  animation-fill-mode: forwards;
  animation-delay: 750ms;
}

@keyframes sign {
  to {
    stroke-dashoffset: 0;
  }
}

/* navigation */

#logo {
  position: relative;
  top: 5px;
  left: 10px;
  height: auto;
  width: 70px;
  /* max-width: 10%; */
}

nav {
  /* background: var(--clr-primary); */
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 27%, rgba(0, 130, 230, 1) 100%);
  height: 80px;
  width: 100%;
}

label.logo {
  color: white;
  font-size: 35px;
  line-height: 80px;
  padding: 0 100px;
  font-weight: bold;
}

.username {
  color: white;
  font-size: 20px;
  /* text-transform: uppercase; */
  padding: 0px 10px;
}

nav ul {
  float: right;
  margin-right: 20px;
  z-index: 1;
}

nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav ul li a {
  color: white;
  font-size: 18px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 7px 13px;
}

li a.active,
li a:hover {
  background: var(--clr-secondary);
  transition: 0.5s;
}

.checkbtn {
  color: white;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

/* Animation of small hamburger */

#nav-icon {
  width: 60px;
  height: 45px;
  float: right;
  margin: 15px 30px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 9px;
  width: 100%;
  background: #ffffff;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 18px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 36px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 39px;
  left: 8px;
}

/* Main */

main {
  background-color: white;
  margin: 10px;
}

.about {
  border: 1px solid var(--clr-primary);
  border-radius: 20px 20px 20px 20px;
  max-width: 700px;
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.about h2 {
  text-align: center;
}

.about p {
  margin: 30px 10px;
}

.about span {
  color: red;
}

/* Footer */

footer {
  color: white;
  /* background: var(--clr-primary); */
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 27%, rgba(0, 130, 230, 1) 100%);
  position: absolute;
  height: 80px;
  width: 100%;
  bottom: 0;
  text-align: center;
  margin-top: auto;
  padding: 10px;
  /* box-shadow: 0 100vh 0 100vh var(--clr-primary); */
}

footer hr {
  width: 80%;
  height: 1px;
  background-color: black;
  margin: 5px auto;
  border: none;
}

.back-to-top a {
  color: white;
  font-size: 0.7rem;
  margin-top: 10px;
}

/* Media Queries */

@media (max-width: 952px) {
  label.logo {
    font-size: 30px;
    padding-left: 50px;
  }
  nav ul li a {
    font-size: 16px;
  }
}

@media (max-width: 858px) {
  #nav-icon {
    display: block;
  }
  .checkbtn {
    display: block;
  }
  nav ul {
    opacity: 96%;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--clr-tertiary);
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }
  nav ul li a {
    font-size: 20px;
  }
  a.active,
  a:hover {
    background: none;
    color: #0082e6;
  }
  #check:checked ~ ul {
    left: 0;
  }
}
