:root {
  /*--blue: #005185;*/
  --blue: #083653;
  --light-blue: #33749D;
  /* Yellow skal også deklareres nedenfor under fill i svg i background af avatar-blokken */
  --yellow: #FFD473;
  --padding: min(50px, 5vw);
  --gap: min(50px, 5vw);
  --test-svg: #990000;
  --blok-size: min(400px, 90vw);
  --landscape: calc(var(--blok-size) * 2 + 3 * var(--gap));
}

* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'FucxedCapsLatin';
  src: url('../fonts/fucxedcapslatin-regular.woff') format('woff');
}

html {
  background: var(--blue);
}

body {
  font-family: 'FucxedCapsLatin', Helvetica, sans-serif;
  font-size: 22pt;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  justify-content: flex-start;
  padding: var(--padding);

  max-width: var(--landscape);
  gap: var(--gap);
  transition:margin 0.2s ease-in-out;
}

section {}

h1 {
  font-size: min(72pt, 19vw);
  line-height: 0.85em;
}

h3 {
  font-size: 0.6em;
  color: var(--blue);
  font-kerning: none;
  letter-spacing: 0.07em;
  border-bottom: 2px solid currentcolor;
  width: 40%;
  margin-top: -7%;
}

p {
  width: 65%;
  min-width: 200px;
}

div:first-of-type p {
  line-height: 1em;
  margin: 0.8em 0 0 0;
  padding-top: 0.8em;
  width: 70%;
  border-top: 5px solid var(--yellow);
  font-size:min(22pt, 5vw);
}

div.blok {
  width: var(--blok-size);
  height: var(--blok-size);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  transition: width 0.5s, margin 0.5s;
  transform-origin: center right;
  position: relative;
}

div.blok:not(:first-of-type) {
  gap: 20px;
}

div.blok:nth-child(4n+1),
div.blok:nth-child(4n+4) {
  background-color: var(--light-blue);
  color: var(--yellow);
}

div.blok:nth-child(4n + 2),
div.blok:nth-child(4n + 3) {
  background-color: var(--yellow);
  color: var(--light-blue);
}

div.blok:nth-child(2) {
  background-color: transparent;
}
span.noshow{
  overflow: hidden;
  height:0;width:0;
}

div.blok:nth-child(2)::before {
  content: '';
  fill:var(--yellow);
  background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="%23FFD473" d="M0,0v400h400V0H0ZM200,348c-81.74,0-148-66.26-148-148S118.26,52,200,52s148,66.26,148,148-66.27,148-148,148Z" /></svg>');
  position: absolute;
  width: var(--blok-size);
  height: var(--blok-size);
}

div.blok:nth-child(2)::after {
  content: url('../imgs/avatar.svg');
  display: block;
  position: absolute;
  bottom: -6px;
  left: 0;
  width: var(--blok-size);
}

div.blok.noshow {
  height: 0;
  overflow-y: hidden;
  flex-basis: 0;
  flex-shrink: 3;
}

div.blok.double {
  /*width: calc(400px * 2 + var(--gap));*/
  transition: all 0.5s ease-in;
  flex-grow:2;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

span {
  width: var(--wrap-size);
  height: 10px;
  background-color: #FFD473;
}
span#useless{
  display:none;
  width:var(--landscape);
}
#formMenneske, #formMenneske input{
  transition: all 0.5s ease-in-out;
}
#formMenneske{
  height:48px;
  margin-top:inherit;
  overflow:hidden;
}
#formMenneske input{
  transform: translateY(0);
}
input{
  font-size:20px;
  padding:0.5em 1em;
}

#formMenneske.noshow{
  height:0;
  margin-top:-20px;
}

#formMenneske.noshow input{
  transform: translateY(-5em);
}

@media only screen and (orientation: portrait){
  div.blok:nth-child(4n+2):not(.double, .avatar),
  div.blok:nth-child(4n+3):not(.double, .avatar), div.blok.a2 {
    height: 5vw;
  }
}

@media only screen and (max-width: var(--landscape)) {
  :root {
    --padding: 2.5vw;
    --gap: 2.5vw;
  }

  div.blok:nth-child(4n+2):not(.double, .avatar),
  div.blok:nth-child(4n+3):not(.double, .avatar), div.blok.a2 {
    height: 5vw;
  }

  .blok:nth-child(1) {
    order: 1;
  }

  .blok:nth-child(2) {
    order: 2;
  }

  .blok:nth-child(3) {
    order: 4;
  }

  .blok:nth-child(4) {
    order: 3;
  }

  .blok:nth-child(5) {
    order: 5;
  }

  .blok:nth-child(6) {
    order: 6;
  }

  .blok:nth-child(7) {
    order: 7;
  }

  .blok:nth-child(8) {
    order: 8;
  }
}

@media only screen and (min-width:1200px) {}