.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

body {
  font-family: Piazzolla, serif;
  font-size: 20px;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;

  &:hover {
    text-decoration: underline;
  }
}

p:first-child {
  margin-top: 0;
}

p.link {
  margin: 0;
}

p.link>a {
  display: inline-block;
  border: 2px solid #65c888;
  border-radius: 5px;
  background-color: #e6e6e6;
  padding: 4px 6px;
}

menu.menu {
  position: sticky;
  top: 0px;
  background-color: #e6e6e6;
  margin: 0;
  padding: 12px 10%;
  list-style-type: none;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  box-shadow: 0 10px 20px 10px #e6e6e6;

  li {
    flex-basis: max-content;
    white-space: nowrap;
    flex-grow: 1;
    text-align: center;

    &:not(:last-child) {
      border-right: #65c888 2px solid;
    }

    >a {
      display: inline-block;
    }
    &:last-child > a {
      img {
        filter: invert(1);
      }
      &:first-child {
        margin-right: 16px;
      }
    }
  }
}

body>section {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  padding: 12px 10% 5% 10%;

  &:where(:first-of-type, :last-of-type) {
    color: white;
    background-color: black !important;
  }

  &:nth-child(odd) {
    background-color: #e6e6e6;
  }

  &:nth-child(even) {
    background-color: #e5ffee;
  }

  >section {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: inherit;
    gap: 20px;
    padding: 0;
    max-width: 1100px;

    img {
      max-width: 400px;
    }
  }
}

footer {
  background-color: black;
  color: white;
  padding-bottom: 16px;
  text-align: center;
}
section h2 {
  font-size: 2em;
}

.underline {
  text-decoration: underline;
}

.center {
  text-align: center;
}

.grow100 {
  flex-grow: 1;
  width: 100%;
}

.title-h2 {
  flex: 1 1 100%;
  align-self: flex-start;
  width: max-content;
  margin: 0;
}

section.photo-and-text {
  >section {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  h2 {
    flex: 1 1 100%;
  }

  article {
    flex: 1 1 min-content;
    align-self: flex-start;
  }
}

section#tytul {
  background-image: url(img/mudra.jpg);
  background-size: cover;
  text-align: center;
}

section#wskazania {
  align-items: flex-start;

  >section {
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

h1.larger {
  font-size: 3em;
  margin-bottom: 0;
}

h2.larger {
  font-size: 2em;
  margin-top: 0;
}

h3.larger {
  font-size: 1.8em;
}

h4.larger {
  font-size: 1.2em;
}


img.tytul {
  border-radius: 50%;
  width: 100px;
  max-width: 100%;
  margin-bottom: -2em;
}

.big-emoji {
  font-size: 5em;
}

#dolacz :where(h2, h3) {
  text-align: center;
  margin: 0 auto 1em;
}

.carousel {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: 512px;
  overflow-x: scroll;
  gap: 16px;
  scroll-snap-type: both mandatory;
  margin: 0 auto;

  img {
    scroll-snap-align: center center;
    max-width: none;
  }
}

form.join {
  display: flex;
  flex-flow: column nowrap;
  width: 85%;

  input,
  button,
  textarea {
    font-size: 1.1em;
  }

  button {
    background-color: transparent;
    border:hsl(from #e6e6e6 h 40% l) 1px solid;
    color: white;
    border-radius: 8px;
    padding: 4px 8px;
  }

  :is(input, textarea, button)+.error-message {
    display: none;
  }

  :is(input, textarea, button) {
    +.error-message {
      display: none;
    }

    &:invalid+.error-message {
      display: block;
      font-size: 0.7em;
      text-align: right;
    }
  }
}

@media only screen and (max-width: 520px) {
  menu.menu li:not(:last-child) { display: none; }
}

@media only screen and (max-width: 900px) {
  menu.menu li:not(:is(:nth-last-child(2),:last-child)) { display: none; }
  section:is(#wskazania,#co-zyskasz,#inwestycja) > section {
    flex-direction: column-reverse;
    h2.larger.title-h2 {
      font-size: 1.2em;
    }
  }
  section#testimonials h2 { font-size: 1em; }
  body > section > section img, .carousel { max-width: 320px; } 
  .carousel > img {
    width: 100%;
    height: auto;
  }
  footer {
    padding-bottom: 48px;
  }
}