/*
KLP - Fremtidsreisen

Fonts

    Headlines: Lyon Display Black
    Sub headlines: Calibre Medium
    Ingress: Calibre Light
    Bodytext: Calibre Medium

Colors
    
    Only large titles are allowed to use dark grey, all other text should be black (white)

    White (klassisk hvit): #FFFFFF / 255,255,255

    Dark grey (Granittgrå): #3D3D3D / 61,61,61
    Light grey (Lys granittgrå): #F0F0F0 / 205,205,205
    
    Green (Fjellgrønn): #0DB28A / 13,178,138
    Light green (Lys fjellgrønn): #CDFAE2 / 205,250,226 
    
    Red (Morgenrød): #E51C66 / 229,28,102
    Light red (Lys morgenrød): #FFE1E1 / 255,225,225

Colors graphs: 

    Greys:
        #3D3D3D #6F6F6F #A1A1A1 #C9CACA
    Reds: 
        #CC376D #DD698F #EE9AB0 #FFCCD2 
    Greens:
        #06B594 #3BCEA8 #6FE6BD #A4FFD1

        

*/
:root {
  --primaryBackground: #fff;
  --primaryText: #000;
  --primaryColor: #722d3e;
  --rotationAngle: 0;
}

html {
  font-size: 100%;
}
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--primaryBackground);
  background-image: url(../images/bg-bottom-skatt.svg);
  background-position: left bottom -16vw;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--primaryText);

  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue",
    Helvetica, Calibri, "Lucida Grande", sans-serif;
  box-sizing: border-box;
}
/*
media query: portrait mode, then use smaller fontsize on body

*/
h1,
h2,
h3,
h4 {
  margin-top: 0px;
}
/*
h1 {
  font-size: 4rem;
}*/
h1 {
  font-size: calc(1.3rem + 2.5vw);
}
h2 {
  font-size: calc(1.2rem + 2.25vw);
}
h3 {
  font-size: calc(1.1rem + 2vw);
  font-size: 3.2rem;
}
h4 {
  color: #0db28a;
  margin-bottom: 0px;
}
p {
  font-size: 1.1rem;
}
.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}
/*
.page {
  margin: auto;
  text-align: center;
}
*/
textarea {
  width: 90%;
}
#background {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
#clouds {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
}
#ground {
  position: absolute;
  bottom: 0px;
  width: 100vw;
  height: 15.625vw;
  overflow: hidden;
}
#lineart {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100vw;
  height: 50vh;
  overflow: hidden;
  opacity: 0;
  /*background: none;*/
  transition-property: all;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
  transition-delay: 0.5s;
}
#lineart.main {
  background-image: url("../images/lineart/main.svg");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 1;
}
#lineart.bicycle {
  background-image: url("../images/lineart/bicycle.svg");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 1;
}
#lineart.exercise {
  background-image: url("../images/lineart/exercise.svg");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 1;
}
#lineart.facilitator {
  background-image: url("../images/lineart/facilitator.svg");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 1;
}
#front {
  position: absolute;
  bottom: -5vh;
  left: 0px;
  width: 2500%;
  height: 100%;
  background-image: url("../images/ground/foreground.svg");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: contain;
  transition-property: all;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  transition-delay: 0s;
}
#middle {
  position: absolute;
  bottom: -5vh;
  left: 0px;
  width: 1500%;
  height: 100%;
  background-image: url("../images/ground/middleground.svg");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: contain;
  transition-property: all;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  transition-delay: 0s;
}
#back {
  position: absolute;
  bottom: -5vh;
  left: 0px;
  width: 1000%;
  height: 100%;
  background-image: url("../images/ground/background.svg");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: contain;
  transition-property: all;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  transition-delay: 0s;
}
#logo {
  position: absolute;
  width: 3rem;
  height: 3rem;
  top: 2rem;
  right: 2rem;
  background-image: url("../images/logo.svg");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
}
#info {
  position: absolute;
  top: 1em;
  left: 1em;
}

.hide {
  pointer-events: none;
  opacity: 0;
}
.btn {
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  border: 0;
  position: relative;
  color: inherit;
  background: none;
  transition: all ease-in-out 0.2s;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem 1rem 0.5rem 1rem;
}
.btn:active {
  outline-width: 0;
}
button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.primary {
  background-color: #fff;
  border: 2px solid #95c3a6;
  color: #000;
  min-width: 12rem;
}
.primary:hover {
  background-color: #95c3a6;
}
.transparent {
  background-color: rgba(255, 255, 255, 0);
  color: #000000;
  font-size: 1rem;
  font-weight: normal;
  margin-top: 1rem;
}
#navback {
  position: absolute;
  bottom: 0px;
  left: 0px;
}

#vid {
  opacity: 0;
  transition: all ease-in-out 0.5s;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
}
#videoplayer {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
}
#pages {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0px;
  left: 0px;
}
.page {
  margin: auto;
  text-align: center;
  justify-content: center;
  align-items: center;
  align-content: center;

  pointer-events: none;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0px;
  left: 0px;
  /*transform: scale(0.5);*/
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

@media screen and (min-width: 1024px) {
  .page {
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
  }
}
.current {
  pointer-events: all;
  /*transform: scale(1);*/
  opacity: 1;
  display: flex;
  /*flex-direction: column;*/
}

@media screen and (min-width: 1024px) {
  .current {
    transition-duration: 1s;
    transition-delay: 1.5s;
  }
}

.previous {
  pointer-events: none;
  /*transform: scale(1);*/
  opacity: 0;
}

@media screen and (max-width: 1024px) {
  .previous {
    display: none;
  }
}

.pageWrapper {
  max-width: 70rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
  /*
  padding: 5rem;
  position: absolute;
  top: 0px;
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  min-width: calc(100vw - 10rem);
  min-height: calc(100vh - 10rem);
  */
}
.ex-range .pageWrapper {
  /*max-width: 41.5em;*/
}
.video .pageWrapper {
  max-width: 100vw;
}
.player {
  height: calc(100vw * 9 / 16);
}
.video iframe {
  /*height: inherit;*/
  max-height: calc(80vw * 9 / 16);
  width: 80vw;
}

input[type="text"],
input[type="number"] {
  background-color: #ffffff;
  /*appearance: none;
  border: 0px;*/
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  text-align: center;
}

.ex-choose input[type="checkbox"] {
  opacity: 0;
  width: 0;
}
.ex-choose input[type="checkbox"] + label {
  width: 22em;
  text-align: center;
  font-size: 0.9rem;
  border: 2px solid #0db28a;
  padding: 0.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  cursor: pointer;
}

.ex-choose input[type="checkbox"]:checked + label {
  background-color: #77d1b8;
}

* {
  /*outline: 1px solid #f00;*/
}

.video {
  /*background-color: #000000;
  background-color: #e4f2e7;*/
}

video {
  width: 100%;
  height: 100%;
}

#debugID {
  position: absolute;
  bottom: 1.5rem;
  left: 0.5rem;
  display: none;
}

#url {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 1rem;
}

#debug {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  opacity: 0.3;
}
#debug:hover {
  opacity: 1;
}

.noerror {
  display: none;
}
.error {
  /*
  color: red;
  margin-top: 0px;*/
  max-width: 40ch;
  text-align: center;
  margin: 1rem auto;
  color: rgb(168, 46, 57);
  padding: 16px;
  border: 1px solid rgb(232, 232, 232);
  border-radius: 3px;
}

.legend {
  text-align: left;
  display: flex;
  justify-content: center;
}
.legend > div {
  width: 3rem;
  height: 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.currentvalue {
  color: #000;
  font-size: 1.1rem;
}

.ex-range-wrapper p,
.ex-range-wrapper input {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  body {
    font-size: calc(0.4rem + 1.5vw);
  }
  h2 {
    font-size: calc(1.1rem + 3vw);
  }
  .ex-range-wrapper {
    max-width: 90vw;
    font-size: 1rem;
  }
}
.hidden {
  display: none;
}

#backnav {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
}
.iconbtn {
  border: 0px;
  background: none;
  cursor: pointer;
  margin-top: 1rem;
  margin-left: 1rem;
  width: 4rem;
  height: 4rem;
}
.iconbtn img {
  width: 100%;
}

img {
  width: 100%;
}

.postit {
  background-color: #ffff88;
  margin: 0.5rem;
  min-width: 15rem;
  max-width: 25rem;
  text-align: left;
  padding: 1rem;
  box-shadow: 1px 3px 10px 0px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--rotationAngle));
}
.v1 {
  background-color: #fff;
}
.v2 {
  background-color: #e3f5ea;
}
.v3 {
  background-color: #f9ede2;
}
.v4 {
  background-color: #e8e8e8;
}
.v5 {
  background-color: #cde1f9;
}

table {
  border-collapse: collapse;
}
th,
td {
  padding: 0.25em 0.5em 0.25em 1em;
  text-align: left;
}
th {
  background-color: #6f2c3f;
  color: #fff;
  vertical-align: text-bottom;
}
td {
  vertical-align: text-top;
}
tr:nth-child(odd) {
  background-color: #e3f5ea;
}

.andeby tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.5);
}

div.andeby {
  background-color: #fff;
  background-image: url("../images/bg-andeby-landscape.png");
}

.andeby button.primary {
  border-color: #465d88;
}
.andeby button.primary:hover {
  background-color: #465d88;
}
