html,
body {
  overscroll-behavior-x: contain;
}

html {
  scroll-behavior: smooth;
  width: 100vw;
  user-select: none;
  overflow-x: hidden;
  box-sizing: border-box;
}

address>a {
  cursor: pointer;
  color: whitesmoke;
}

body {
  margin: 0;
  width: 100vw;
}

header {
  display: flex;
  height: 100vh;
  max-height: 100vh;
}

body>img {
  z-index: 3;
  position: fixed !important;
  top: 2px;
  left: 5px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  transition-duration: 0.5s;
}


.aboutInfo {
  margin: 20vh 50px;
  color: ghostwhite;
  font-size: clamp(2rem, 6vmin, 6rem);
  font-family: Share Tech, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.list {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5 !important;
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: flex-end;
  background-color: transparent;
  font-family: Verdana, Corbel, Roboto, sans-serif;
  transition-duration: 0.3s;
}

.list a {
  color: ghostwhite;
  line-height: 1.2;
  font-size: clamp(1rem, 2.5vw, 1.875rem);
  padding: 5px 7px;
  text-decoration: none;
  transition-duration: 0.3s;
}

.list a:hover {
  transform: translateY(5px);
  color: #fff;
  text-shadow: 0px 0px 10px ghostwhite;
}

.list a:active {
  background-color: #007f88;
}

.welcome>p {
  margin: 0 0 90px 0;
  text-align: center;
  color: white;
  font-size: clamp(2rem, 10vw, 5rem);
}

#introDesc {
  margin-top: 7vh;
  color: #2bf335;
  width: 100vw;
  text-align: center;
  font-weight: bold;
  font-size: clamp(1.2rem, 4.5vw, 2.5rem);
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
}

.welcome {
  padding: 37.5px 20px 20px 20px;
  background-image: url("../photos/intro.jpg");
  width: 100%;
}

.welcome>div {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: -50px;
  height: 60%;
}

main {
  overflow: hidden;
  background-color: rgb(2, 2, 44);
}

#bio {
  padding-top: 50px;
  padding-bottom: 50px;
}

#bio>section {
  display: flex;
  flex-direction: column;
  height: 75%;
  justify-content: space-evenly;
}

#bio a {
  font-family: Arial;
  text-align: center;
  font-size: clamp(0.9rem, 3vw, 1.5rem);
  color: white;
  margin-top: 15px;
  text-decoration: dashed;
}

footer {
  height: 100vh;
  background-color: rgb(2, 2, 44);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

footer address {
  text-align: center;
  color: white;
  font-size: clamp(1rem, 4vw, 1.8rem);
  font-weight: bold;
  font-family: Segoe UI, sans-serif;
  text-decoration: underline;
}

button#closeNav,
button#openNav {
  z-index: 1;
  display: none;
  background: transparent;
  width: min-content;
  height: min-content;
  border: none;
}

button#openNav {
  position: fixed;
  top: 10px;
  right: 10px;
}

button#closeNav {
  margin-top: 10px;
  margin-bottom: 10px;
}

.appear {
  left: 75vw !important;
}

@media (max-width: 700px) {
  button#closeNav {
    display: block
  }

  button#openNav {
    display: block;
  }

  .list {
    top: 0;
    left: 100vw;
    height: min-content;
    flex-direction: column;
    width: 23vw;
    padding-left: 50px;
    align-items: flex-end;
    height: 100vh;
    background-color: rgb(2, 2, 44);
    justify-content: normal;
  }

  .list>a {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.certificates {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
}

.projects {
  position: relative;
}

#currentProject {
  margin-top: 50px;
  display: block;
  text-align: center;
  font-size: 5vh;
  color: ghostwhite;
  background: linear-gradient(rgba(0, 0, 0, 0), black 50%);
  padding-bottom: 20px;
}

.projects>div#portals {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: pan-y;
}

.project {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
  width: 24vmax;
  height: 34vmax;
  border-radius: 10px;
  pointer-events: none;
}

.project.main {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.project.left {
  transform: translate(-150%, -50%) scale(0.7);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.project.right {
  transform: translate(50%, -50%) scale(0.7);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.project.exit-left {
  transform: translate(-250%, -50%) scale(0.5);
  opacity: 0;
  z-index: 0;
}

.project.exit-right {
  transform: translate(150%, -50%) scale(0.5);
  opacity: 0;
  z-index: 0;
}

.projects>div#navigation {
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  z-index: 2;
  justify-content: space-between;
  align-items: center;
  padding-left: 3vw;
  padding-right: 3vw;
}

div#navigation>button {
  border-radius: 20px;
  position: relative;
  top: -50px;
}

header>hr {
  width: 100vw;
}

.certificate {
  width: 35vmax;
  margin: 12px;
  animation: certificateBounce 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes certificateBounce {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px) scale(1.01);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

#introText {
  position: relative;
  top: 0;
  left: 0;
  font-family: Consolas, sans-serif;
}

hr {
  border: 2px solid #777777;
  margin: 0;
}

h1 {
  text-align: center;
  font-family: Comic Sans MS;
  color: white;
  text-decoration: underline;
  font-size: clamp(1.5rem, 6vw, 3rem);
}

i {
  color: #fff;
  cursor: pointer;
}

/* RESPONSIVE TWEAKS ONLY FOR NON-FONT STUFF */

@media (max-width: 845px) {
  .welcome {
    padding-top: 50px;
  }
}

@media (max-width: 420px) {
  .me {
    justify-content: space-between;
    margin: 0 7px;
    margin-top: -50px;
  }
}

@media (max-width: 554px) {
  .list>a {
    line-height: 1.4;
  }
}

@media (max-width: 660px) {
  .welcome {
    padding-top: 10px;
  }
}

@media (max-width: 2000px) {
  .welcome {
    object-fit: contain;
  }
}

@media (max-height: 1091px) {
  .welcome {
    object-fit: contain;
  }
}

@media (max-width: 526px) {
  .project {
    width: 400px;
  }
}

@media (max-width: 444px) {
  .project {
    width: 320px;
  }
}

body>iframe {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
}

@media (max-width: 430px) {
  body>iframe {
    display: none;
  }
}

body {
  overflow-x: hidden;
}

/* container */
.particles {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

/* each particle */
.particles span {
  position: absolute;
  width: 6px;
  height: 6px;

  background: rgba(0, 140, 255, 0.6);
  border-radius: 50%;

  box-shadow: 0 0 10px rgba(0, 140, 255, 0.8);

  animation: float linear infinite;
}

/* movement */
@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) translateX(40px);
    opacity: 0;
  }
}