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

:root {
  --header-color: #454864;
  --text-color: #f6f5f5;
  --lighter-text-color: #242535;
}

html {
  scroll-behavior: smooth;
  background-color: black;
}

body {
  background-color: black;
  color: var(--text-color);
  overflow: hidden;
  font-family: 'Fira Code', sans-serif;
  width: 65%;
  margin: 0 auto;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}



.main {
  height: 100vh;
  scroll-behavior: smooth;
  overflow: hidden;
}

section {
  height: 100vh;
  padding: 50px;
  z-index: 1;
  overflow: scroll;
  scrollbar-width: none;
}

h1 {
  font-size: 3rem;
  color: var(--header-color);
}

ul {
  margin-left: 1rem;
}

section h1 {
  margin-bottom: 20px;
}

section:first-child h1 {
  margin-bottom: 0;
}

.arrow-parent {
  position: absolute;
  right: 30px;
  bottom: 0px;
}

.arrow {
  color: var(--lighter-text-color);
  cursor: pointer;
  z-index: 10;
  font-size: 10rem;
  position: sticky;
  float: right;
  transition: all ease 0.2s;
}


.intro-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.intro-section * {
  transition: all 0.2s;
}

.intro-section img {
  width: 300px;
  position: absolute;
  right: 0;
  top: 0;
  margin: 50px;
  filter: grayscale(1);
}

.intro-section .title {
  font-size: 3rem;
  text-align: center;
  color: var(--header-color);
  animation: fadeIn 2s;
}

.intro-section .subtitle {
  font-weight: 100;
  opacity: 0;
  animation: fadeIn 2s 2s;
  animation-fill-mode: forwards;
  text-align: center;
}

.intro-section div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.transparent {
  opacity: 0;
}

.intro-section .next {
  font-size: 2rem;
  font-weight: 100;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid var(--text-color);
  opacity: 0;
  animation: arrowFadeIn 2s 4s;
  animation-fill-mode: forwards;

}


@keyframes fadeIn {
  0% {
    display: none;
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes arrowFadeIn {
  0% {
    display: none;
    opacity: 0;
  }

  100% {
    opacity: 1;
    margin-left: 80px;
    display: inline;
  }
}

section .title-bar {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

section .title-bar a {
  color: var(--lighter-text-color);
  text-decoration: none;
  font-size: 3rem;
}

#about-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

#about-page p {
  line-height: 2rem;
  font-size: 1.2rem;
}


#about-page .blinking-cursor {
  color: gold;
  animation: blink 2s;
  animation-iteration-count: infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 100%;
  }
  100% {
    opacity: 0;
  }
}

#skills-page .skills {
  font-size: 20px;
}

#skills-page .skills li {
  margin: 10px 0;
}

.box {
  border: 2px solid var(--lighter-text-color);
  border-radius: 10px;
  padding: 20px;
  margin: 0 15px 30px 15px;
}

.box .top {
  border-bottom: 2px solid var(--lighter-text-color);
  margin-bottom: 15px;
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.box a {
  font-size: 1.5em;
  text-decoration: none;
  color: #242535;
  padding: 0 10px;
  border: 1px solid var(--lighter-text-color);
  border-radius: 7px;
}

#contact-page .options {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 4rem;
}

#contact-page .options li {
  margin: 10px 0;
  font-size: 20px;
  color: var(--text-color);
}

#contact-page .options li:before {
  content: '\2014';
  position: absolute;
  margin-left: -20px;
}

#contact-page .options li a {
  color: var(--text-color);
}

@media screen and (max-width: 850px) {
  body {
    width: 100%;
    overflow: visible;
    height: fit-content;
  }

  section {
    padding: 20px;
    z-index: 1;
    overflow: visible;
    height: fit-content;
    min-height: 100vh;
    margin-top: 1vh;
  }
  
  .box .top {
    flex-direction: column;
  }

  .box a {
    margin-top: 10px;
  }

  section .title-bar a {
    display: none;
  }

  .main {
    height: fit-content;
    scroll-behavior: smooth;
  }

  .intro-section {
    flex-direction: column;
  }

  .intro-section div{
    margin-bottom: 40%;
  }

  .intro-section .next{
    margin-bottom: 15%;
  }
  
  .intro-section .next br{
    display: none;
  }

  #about-page p {
    line-height: 2rem;
    font-size: 1rem;
  }

  #skills-page .skills {
    font-size: 1rem;
  }

  @keyframes arrowFadeIn {
    0% {
      display: none;
      opacity: 0;
  
    }
  
    100% {
      opacity: 1;
      display: inline;
    }
  }
}