@view-transition {
  navigation: auto;
}
:root {
  --blue: #2c4c5c;
  --gray: #b8bfc1;
  --yellow: #f3e308;
  --lightBlue: #6c8494;
  --yellowGreen: #9cac54;
  --lightGreen: #97cd97;
  --hackerGreen: #70ffaf;
  --teal: #a7f0dd;
  --white: #f4fcfb;
  --black: #000000;

  /*Margins*/
  --margin-PC: 3.5rem;
  --margin-Tablet: 2.5rem;
  --margin-Phone: 1.5rem;
  /*Breakpoints*/
  --BreakL: 1328px;
  --BreakM: 900px;
  --BreakS: 672px;
}

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

body {
  background: var(--white);
  transition: 0.3s;
  font-family: "Slabo 13px", serif;
  font-style: normal;
}

span {
  color: var(--white);
}

.fade {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

#Intro {
  display: block;
  justify-content: center;
  text-align: center;
  height: 26rem;
  margin: 0 auto;
  background: url("/Images/homepage-background.avif");
  background-size: cover;
  height: 79vh;

  @media (min-width: 900px) {
    text-align: left;
    padding: 0 2rem 0rem 3rem;
    padding-top: 7rem;
    height: 100vh;
  }
}

.Fade-In {
  transition:
    opacity 1.5s,
    translate 1.5s;
  opacity: 1;
  translate: 0 0;

  @starting-style {
    opacity: 0;
    translate: 0 30px;
  }
}

.Fade-In-2 {
  transition:
    opacity 1.5s,
    translate 2.5s;
  opacity: 1;
  translate: 0 0;

  @starting-style {
    opacity: 0;
    translate: 0 30px;
  }
}

#Intro h1 {
  font-size: 1.6rem;
  list-style: none;
  color: var(--black);
  padding-top: var(--margin-Phone);
  @media (min-width: 600px) {
    font-size: 1.8rem;
  }

  @media (min-width: 900px) {
    font-size: 3.75rem;
    padding-top: unset;
  }
}

#My-Dialog {
  position: absolute;
  top: 50%;
  margin: 0 auto;
  padding: 1.2rem;
  line-height: 1.5rem;

  @media (min-width: 672px) {
    max-width: 35%;
  }
}

.No-AI {
  font-size: 1.2rem;
  margin-top: var(--margin-Phone);
  font-weight: bold;

  transition:
    opacity 1.5s,
    translate 2.5s;
  opacity: 1;
  translate: 0 0;

  @starting-style {
    opacity: 0;
    translate: 0 30px;
  }

  @media (min-width: 900px) {
    font-size: 1.8rem;
  }
}

.No-AI-Button {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--yellow);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--blue);

  @media (min-width: 900px) {
    font-size: 1.8rem;
  }
}

dialog[open] {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }
}

dialog {
  transition:
    opacity 500ms ease-out,
    display 600ms allow-discrete,
    overlay 600ms allow-discrete;
  opacity: 0;
}

.Close-Button {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  background-color: var(--blue);
  color: var(--yellow);
  cursor: pointer;
}

#Intro h2 {
  color: var(--black);
  margin-top: var(--margin-Phone);

  margin-right: 2rem;
  line-height: 2rem;

  @media (min-width: 672px) {
    margin-top: var(--margin-Tablet);
  }
}

@media (min-width: 900px) {
  #Intro h2 {
    font-size: 2.5rem;
  }
}
.Facts-Background {
  background-color: var(--yellow);
  transform: skew(14deg);
  width: 70%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: var(--margin-Phone);

  @media (min-width: 900px) {
    margin: 0;
    margin-top: 3rem;
  }
}
#Facts {
  font-size: 1rem;
  transform: skew(-14deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 1.5rem;
  font-weight: bold;
  color: var(--blue);
  height: 6rem;

  @media (min-width: 672px) {
    height: unset;
  }
  @media (min-width: 1328px) {
    font-size: 2rem;
  }
}

#My-Stack-Section {
  .My-Stack-Title {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-top: var(--margin-Phone);

    @media (min-width: 900px) {
      justify-content: left;
    }
  }
  .My-Stack-Heading {
    display: flex;
    background-color: var(--blue);
    transform: skew(14deg);
    width: fit-content;
    padding: 0 2rem;

    @media (min-width: 672px) {
      font-size: 1.8rem;
    }

    @media (min-width: 900px) {
      padding: 1rem 4rem;
      font-size: 3rem;
    }
  }
  .Logo-Container {
    display: flex;
    gap: 1rem;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-top: var(--margin-Phone);

    @media (min-width: 900px) {
      justify-content: left;
      margin-top: var(--margin-Tablet);
    }
  }

  .Logo-Image {
    height: 2rem;
    width: auto;
    opacity: 1;
    transform: translateX(0);
    transition:
      transform 1s ease-out,
      opacity 1s ease-out;
    transition-behavior: allow-discrete;
    @media (min-width: 672px) {
      height: 5rem;
    }
    @starting-style {
      transform: translateX(100%);
      opacity: 0;
    }
    &.One {
      transition-delay: 0.5s;
    }
    &.Two {
      transition-delay: 1s;
    }
    &.Three {
      transition-delay: 1.5s;
    }
    &.Four {
      transition-delay: 1.8s;
    }
    &.Five {
      transition-delay: 2s;
    }
    &.Six {
      transition-delay: 2.2s;
    }
  }
}
