:root {
  box-shadow: border-box;
  background-color: #000000;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.fp-watermark {
  display: none;
}

@font-face {
  font-family: "KanitR";
  font-weight: 400;
  src: url("assets/fonts/kanit-regular-webfont.woff2") format("woff2"),
    url("assets/fonts/kanit-regular-webfont.woff") format("woff");
}

.viewport1 {
  min-height: 100vh;
}

.top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0;
}

svg:hover {
  cursor: pointer;
}

svg:hover .p1 {
  fill: white;
  transition: 0.3s;
}

svg:not(:hover) .p1 {
  fill: gray;
  transition: 0.3s;
}

.navbar {
  list-style-type: none;
  color: white;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* Navbar underline */
.navbar li {
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  position: relative;
  /* Underline Position*/
}

.navbar li:after {
  content: "";
  position: absolute;
  bottom: -10px;
  height: 1px;
  width: 0%;
  left: 0;
  background-color: red;
  transition: 0.3s;
}

.navbar li:hover {
  cursor: pointer;
}

.navbar li:hover:after {
  width: 100%;
}

/* Navbar Underline (END) */

.personal {
  margin-top: 20rem;
  margin-bottom: 0;
  padding-bottom: 0;
  text-align: center;
}

p {
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  text-align: center;
}

h1 {
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 4rem;
}

.name {
  color: red;
  position: relative;
}

/* Alternating Animation Start*/

.name:after {
  content: "";
  position: absolute;
  bottom: -5px;
  height: 1px;
  width: 10%;
  left: 0;
  background-color: red;
  animation: alter 1.2s ease-in-out 0s infinite alternate;
}

.media {
  display: none;
  justify-content: center;
  margin-top: 20%;
}

@keyframes alter {
  0% {
    right: 0;
    left: 0;
  }

  50% {
    right: 100%;
  }

  100% {
    left: 90%;
  }
}

@media (width <=781px) {
  .image {
    display: none;
  }

  .media {
    display: flex;
  }

  .personal {
    margin-top: 15rem;
  }
}

@media (width <=850px) or (height <=709px) {
  p,
  h1,
  .name {
    font-size: 2rem;
  }
}

/* Project Section*/

.viewport2 {
  background-color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout {
  border: 1px solid yellow;
}

h2 {
  color: black;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 5rem;
  position: relative;
}

.contain {
  border: 1px solid black;
}

.outline {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  gap: 4em;
  margin-bottom: 3rem;
  height: 100%;
}

.cards {
  width: 70%;
  border: 3px solid black;
  border-radius: 100px;
  display: flex;
  justify-content: center;
}

.cards3 {
  width: 70%;
  border: 3px solid black;
  border-radius: 100px;
  display: flex;
  justify-content: center;
}

.cards:hover {
  cursor: pointer;
  animation: grow 0.3s linear 0s 1 forwards;
}

.cards2 {
  width: 70%;
  border: 3px solid black;
  border-radius: 100px;
  display: flex;
  justify-content: center;
}

.cards2:hover {
  cursor: pointer;
  animation: grow 0.3s linear 0s 1 forwards;
}

.cards1 {
  width: 70%;
  border: 3px solid black;
  border-radius: 100px;
  display: flex;
  justify-content: center;
}

.cards1:hover {
  cursor: pointer;
  animation: grow 0.3s linear 0s 1 forwards;
}

@keyframes grow {
  100% {
    border: 10px solid black;
  }
}

.off {
  animation: shrink 0.3s linear 0s 1 forwards;
}

@keyframes shrink {
  100% {
    border: 3px solid black;
  }
}

.dynamic {
  color: black;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  text-align: center;
  position: relative;
}

.dynamic1 {
  color: black;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  text-align: center;
  position: relative;
}

.dynamic2 {
  color: black;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  text-align: center;
  position: relative;
}

.underline:after {
  content: "";
  position: absolute;
  bottom: -10px;
  height: 3px;
  left: 0;
  background-color: red;
  width: 100%;
  transition: 0.3s;
}

@media (width <=850px) or (height <=709px) {
  .dynamic,
  .dynamic1,
  .dynamic2 {
    font-size: 2rem;
  }
}

.viewport3 {
  min-height: 100vh;
}

.about {
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 4rem;
  text-align: center;
}

.aboutinfo {
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 4rem;
  text-align: start;
}

.img {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textt {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: fit-content;
  padding-left: 1rem;
  padding-right: 1rem;
}

.working {
  padding-left: 1rem;
  text-align: center;
  width: 100%;
  font-size: 3rem;
}

.red {
  color: red;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 5rem;
  line-height: 2rem;
}

.building {
  font-size: 3rem;
}

.js {
  width: 20%;
}

.logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.red2 {
  color: red;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 2rem;
}

@media (width <=921px) {
  .red {
    font-size: 3rem;
  }

  .working {
    font-size: 1rem;
  }

  .red2 {
    font-size: 2rem;
  }
}

.coming2 {
  color: red;
}

.coming {
  color: black;
}
