/* Hero slidemenu carousel*/

main > section:nth-of-type(1) li h2 {
  color: var(--off-white);
}

main > section:nth-of-type(1) ul {
  max-width: 100%;
  height: 32em;
  display: flex;

  margin: 0;
  padding: 0;
  list-style: none;
  
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-snap-stop: always;
  transition: ease-in;

  anchor-name: --my-carousel;
  
  scroll-marker-group: after;
}

main > section:nth-of-type(1) li {
  padding-left: 1em;
  padding-right: 1em;

  display: flex;
  margin: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  list-style-type: none;
  background: linear-gradient(#000000b2, #000000b2), url(./images/hero1.jpg);
  background-size: cover;

  color: var(--off-white);
  font-weight: bold;

  flex: 0 0 100%;
  
  scroll-snap-align: center;
}

main > section:nth-of-type(1) p {
  text-align: center;
}

main > section:nth-of-type(1) li:nth-of-type(2) {
  background: linear-gradient(#000000b2, #000000b2), url(./images/hero2.jpg);
  background-size: cover;
}

main > section:nth-of-type(1) li:nth-of-type(3) {
  background: linear-gradient(#000000b2, #000000b2), url(./images/hero3.jpg);
  background-size: cover;
}

main > section:nth-of-type(1) ul::scroll-marker-group {
  position: absolute;
  position-anchor: --my-carousel;
  top: calc(anchor(bottom) - 70px);
  justify-self: anchor-center;

  display: flex;
  justify-content: center;
  gap: 1em;
}

main > section:nth-of-type(1) li::scroll-marker {
  content: "";
  width: 1em;
  height: 1em;
  background-color: transparent;
  border: 0.2em solid var(--off-white);
  border-radius: 50%;
}

main > section:nth-of-type(1) li::scroll-marker:target-current {
  background-color: var(--off-white);
}

main > section:nth-of-type(1) li a {
    background-color: var(--sushi-red);
    padding: 1em;
    border-radius: 2em;
    text-decoration: none;
    color: var(--off-white);
    margin-top: 1em;
}

main > section:nth-of-type(1) li a:hover {
    background-color: var(--off-white);
    color: var(--back-grey);
}

/* main article*/
main article {
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  flex-direction: column;
  max-height: max-content;
}

main article > section {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;

  text-align: center;
}

/*main article first section welcome - 3 buttons */

main article > section:first-of-type h2 {
  order: 2;
}

main article > section:first-of-type p {
  order: 2;
}

main article > section:first-of-type svg{
  width: 10em;
  order: 1;

  fill: var(--back-grey);
}

main article > section:first-of-type svg circle {
  fill: var(--sushi-red);
}

  @media (prefers-color-scheme: dark) {
    main article > section:first-of-type svg{
      fill: var(--off-white);
    }

    main article > section:first-of-type svg circle {
      fill: var(--sushi-red);
    }
}

main article > section:first-of-type section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  order: 2;
}

main article > section:first-of-type section a {
  margin-top: 1em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--sushi-red);
  border-radius: 0;
  width: 8em;
  text-align: center;
  padding: 1rem;
  height: max-content;
}

main article > section:first-of-type section a:hover {
  background-color: var(--sushi-red);
  color: var(--off-white);
}

main article > section:first-of-type section a img {
  width: 5rem;
}

/* Why section */

main > article > section:last-of-type {
  height: auto;
  padding-bottom: 3em;
}

main article > section:last-of-type a  {
  text-decoration: none;
  color: var(--sushi-red);
  font-weight: bold;
}

main article > section:last-of-type a svg polyline {
fill: none;
stroke: var(--sushi-red);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 13em;
align-self: center;
}

@media screen and (min-width: 768px) {
  main article {
    display: flex;
    flex-direction: row;

    padding: 0;
  }

  main article > section {
    width: 50%;
    justify-content: center;
    align-items: center;
    height: auto;

    padding: 4em;
  }

  main article > section:last-of-type {
    align-items: flex-start;
    align-self: center;
    border-left: solid var(--sushi-red) 0.3em;
    padding-left: 1em;
  }

  main article section:last-of-type p {
    text-align: start;
  }

}

