/* Variabler */
  

/* Teckensnitt */

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Lazer.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Lazer.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Lazer.ttf") format("truetype");
       font-weight: 50;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Thin.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Thin.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Thin.ttf") format("truetype");
       font-weight: 100;
       font-display: swap;
       font-style: normal;
}


@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-ExtraLight.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-ExtraLight.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-ExtraLight.ttf") format("truetype");
       font-weight: 200;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Light.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Light.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Light.ttf") format("truetype");
       font-weight: 300;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Regular.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Regular.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Regular.ttf") format("truetype");
       font-weight: 400;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Medium.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Medium.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Medium.ttf") format("truetype");
       font-weight: 500;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-SemiBold.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-SemiBold.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-SemiBold.ttf") format("truetype");
       font-weight: 600;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Bold.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Bold.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Bold.ttf") format("truetype");
       font-weight: 700;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: "Documan STC";
  src: url("/teckensnitt/DocumanSTC-Heavy.woff2") format("woff2"),
       url("/teckensnitt/DocumanSTC-Heavy.woff") format("woff"),
       url("/teckensnitt/DocumanSTC-Heavy.ttf") format("truetype");
       font-weight: 800;
       font-display: swap;
       font-style: normal;
}



/* Grundinställning */

*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body{
    margin: 0;
    padding: 0;
    font-family: "Documan STC", monospace;
}

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

p{
    line-height: 1.26;
    text-align: left;
    cursor: crosshair;
}

em{
    cursor: text;
}

/* Typografi */

body{
    font-size: 40px;
    line-height: 1.3em;
    hyphens: none;
    -webkit-font-smoothing: antialiased;
	  -moz-osx-font-smoothing: antialiased;
	  font-smoothing: antialiased;
}

h1{
    font-size: 27vw;
    font-weight: 50;
    font-style: normal;
    line-height: 0.78em;
    text-align: center;
    margin: -0.2em 0 0 0;
    padding: 0;
}

h2{
    font-weight: 300;
    font-size: 4rem;
    line-height: 1;
    padding: 0;
    margin: 0;
}

h3{
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

a{
    transition: all;
    transition-duration: 500ms;
    font-style: normal;
}

#erik a:hover{
  color: white;
}

/* Layout */

header{
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    animation: header-anim 60s infinite;
    overflow: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#meny{
  position: absolute;
  right: 2rem;
  top: 2rem;
  display: flex;
  line-height: 1;
  z-index: 10;
}

#knapp-1{
  background: white;
  border-radius: 42px;
  padding: 0.1em 0.4em;
  mix-blend-mode: normal;
  transition: all 0.3s ease;
}

#knapp-2{
  background: black;
  color: white;
  padding: 0.1em 0.3em 0.2em;
  mix-blend-mode: normal;
  transition: all 0.3s ease;
}

#knapp-1:hover{
  transform: rotate(-45deg);
}

#knapp-2:hover{
  margin:0 0 0 20px;
}

#meny:hover > #knapp-1{
  background: black;
  color: white;
  mix-blend-mode: multiply;
}

#meny:hover > #knapp-2{
  background: white;
  color: black;
  mix-blend-mode: screen;
}

main{
    position: relative;
    margin: 0;
}

section{
    display: flex;
    flex-direction: column;
    padding: 50px;
    margin: 0;
    flex-wrap: nowrap;
}

#erik{
    padding:0;
    margin: 0;
    flex-direction: row;
    align-items: top;
    flex-wrap: wrap;
    margin-top: 100vh;
    min-height: 100vh;
}

#erik div{
    max-width: 50%;
    padding:0.5em;
    margin:0px;
}

#erik div:first-child{
    animation: sve-anim 60s infinite;
    border-right: 30px dashed black;
}

#erik div:last-child{
    animation: eng-anim 60s infinite;
    border-right: 40px dotted black;
}

#erik div p{
    padding:0px;
    margin:0 0 2rem 0;
}

#erik div ul{
  padding:0px;
  margin:0 0 2rem 0;
}

#erik div ul li{
  list-style:square;
  list-style-position: inside;
}


/* Animation */

@keyframes header-anim {
    0% {
      background-color: yellow;
    }
    25% {
        background-color: coral;
      }
    50% {
        background-color: cornflowerblue;
      }
    75% {
        background-color: indigo;
      }
    100% {
      background-color: yellow;
    }
  }

  @keyframes sve-anim {
    0% {
      background-color: coral;
    }
    25% {
        background-color: indigo;
      }
    50% {
        background-color: yellow;
      }
    75% {
        background-color: cornflowerblue;
      }
    100% {
      background-color: coral;
    }
  }

  @keyframes eng-anim {
    0% {
      background-color: cornflowerblue;
    }
    25% {
        background-color: yellow;
      }
    50% {
        background-color: indigo;
      }
    75% {
        background-color: coral;
      }
    100% {
      background-color: cornflowerblue;
    }
  }


/* Responsivitet */

  @media only screen and (max-width: 600px) {

  
    body{
        font-size: 28px;
    }

    section{
        padding: 30px;
    }

    h1{
        font-size: 30vh;
        -webkit-transform: rotate3d(0, 0, 1, -90deg);
        transform: rotate3d(0, 0, 1, -90deg);
        text-align: left;
        margin: 0 0.1em 0 0;
    }

    h2{
      font-size: 2.8rem;
  }

  p{
    hyphens:manual;
  }

    #erik div{
        max-width: 100%;
    }

  @media (orientation: portrait) {
  

    #meny{
      position: absolute;
      left: 2rem;
      top: 2rem;
      display: flex;
      line-height: 1;
      z-index: 10;
    }
    

  }