@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=close,menu');

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
}


h2, h3, h4, h5, h6, p+p { margin: 1vh 0 0 0; }
h1 { margin: 2vh 0; }
code { font-family: monospace; }
hr { margin: 1vh 0; }
summary > h2 { display: inline; }
details {
  outline: none;
  margin: 2vh 0;
}

img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  clear: both;
}

img.max-30{ max-width: 30%; }
img.max-50{ max-width: 50%; }

html {
  width: 100%;
  height: 100%;
  overflow: hidden scroll;
}

body {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid: auto auto 1fr auto / 1fr;
  justify-content: center;
}

body > header { padding: 5vh 12vw 0 12vw; }
body > nav { margin: 2vh 12vw; }
body > footer {
  padding: 0 12vw 5vh 12vw;
  background: #fff;
}

body > main {
  background: #fff;
  background: linear-gradient(to bottom, #fff0 0%, #ffff 10vh);
  padding: 2vh 17vw;
}

canvas#background {
  touch-action: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 75%;
  z-index: -10;
}

#hero { border-radius: 10px; }
#nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
#nav-logo img { height: 18px; }

nav {
  top: 2vh;
  position: sticky;
  display: flex;
  flex-flow: row nowrap;
  list-style-type: none;
  border-radius: 10px;
  background: hsl(130, 75%, 20%, 30%);
  background: hsl(130, 85%, 12%, 75%);
  background: #fff3;
  backdrop-filter: saturate(180%) blur(10px);
  color: #fff;
  color: hsl(130, 75%, 20%);
  color: #000;
  box-shadow: 0 5px 15px 0 #0002;
  overflow: hidden;
  z-index: 100;
  font-weight: bold;
}
nav a {
  position: relative;
  padding: 1vh 1vw;
  min-width: 8vw;
  display: grid;
  place-content: center;
  text-decoration: none;
  color: inherit;
}
nav .mobile-nav { display: none; }

nav a:hover{
  backdrop-filter: brightness(.75);
  text-decoration: underline #000 1px solid;
}

.external-form {
  width: 100%;
  height: 150vh;
}

section.flex {
  display: flex;
  flex-flow: column nowrap;
  gap: min(5vh, 50px);
}

article.banner {
  margin: 2vh 0;
  padding: 3vh 5vw;
  background-color: hsl(130, 80%, 95%);
  border-radius: 25px;
}

article.card {
  border-radius: 10px;
  box-shadow: 0px 5px 15px 0px #0003;
  padding: 3vh 3vw;
  animation-timeline: view();
  animation-name: carouselle;
}

@keyframes carouselle {
  entry 0% {
    transform: scale(.85);
    opacity: 40%;
  }
  entry 70% {
    transform: scale(1);
    opacity: 100%;
  }
  exit 30% {
    transform: scale(1);
    opacity: 100%;
  }
  exit 100% {
    transform: scale(.85);
    opacity: 40%;
  }
}

@media (width < 500px) {
  body > header{ display: none; }
  body > main { padding: 2vh 12vw; }
  body > nav {
    margin: 0;
    border-radius: 0;
    top: 0;
    height: 48px;
    padding: 0 5vw;
  }
  body > nav .mobile-nav {
    position: fixed;
    display: block;
    top: 12px;
    right: 5vw;
    width: 24px;
    height: 24px;
  }
  body > nav input[type=checkbox] { width: 100%; height: 100%; opacity: 0;}
  body > nav .mobile-nav::before {
    content: 'menu';
    font-size: 24px;
    line-height: 24px;
    position: absolute;
    font-family: 'Material Symbols Outlined';
  }
  body > nav:not(:has(input:checked)) a:not(:first-child) { display: none; }
  body > nav .mobile-nav:has(input:checked)::before { content: 'close'; }
  body > nav:has(input:checked){
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 10vh 0 50vh 0;
    font-size: 24px;
    flex-flow: column nowrap;
    justify-content: space-evenly;
  }
}