/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


/**
*
*
* ------ Swedish space authority advent calendar ------
*
*
*/

/**
 * Font declarations
 **/

 /* poppins-300 - latin */
 @font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v20-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-300.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-regular - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-italic - latin */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/poppins-v20-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-italic.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-500 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v20-latin-500.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-500.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-500.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-500italic - latin */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/poppins-v20-latin-500italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-500italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-500italic.svg#Poppins') format('svg'); /* Legacy iOS */
}
/* poppins-600 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v20-latin-600.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/poppins-v20-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v20-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/poppins-v20-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../fonts/poppins-v20-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/poppins-v20-latin-600.svg#Poppins') format('svg'); /* Legacy iOS */
}
h2 {
  font-weight: 600;
  font-size: 2.5rem;
}
h3, h4 {
  font-weight: 600;
  font-size: 1.2rem;
}
h5 {
  font-size: 1.2rem;
  font-style: italic;
}
p {
  font-size: 1.2rem;
}
@media (max-width: 960px) {
  h2 {
    font-size: 2rem;
  }
}

:root {
  /* Typography */
	--global-font-family: "Poppins", sans-serif;
	--highlight-font-family: "Poppins", sans-serif;
	--global-font-size: 18;
	--global-font-line-height: 156%;
  --global-font-color: #fff;
}
body {
  color: var(--global-font-color);
	font-family: var(--global-font-family);
	font-size: var(--font-size-regular);
	line-height: var(--global-font-line-height);
  -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--highlight-font-family);
	font-weight: 600;
	clear: both;
}




/* SWIPE TEST */
/* .calendar.swipe {
    width: 4000px;
    overflow: auto;
    display: flex;
    flex-direction: row;
    max-width: unset;
} */
/* .calendar.swipe .flap {
  position: static!important;
  width: 400px;
  height: 80%;
  margin: 2rem;
} */
/* .calendar.swipe .flap:hover {
  transform: unset;
} */
/* .calendar.swipe .flap .content.visible {
  top: calc(50% - 150px);
  left: calc(10% - 150px);
  height: auto;
  position: absolute;
  width: 300px;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInY;
  animation-name: flipInY;
  animation-duration: 1s;
  
} */
/* @-webkit-keyframes flipInY {
  from {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
} */
/* @keyframes flipInY {
  from {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
} */


/* TRAVEL*/


.calendar.travel {
  display: block;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  /* background: url(../img/rymd.png); */
}
.calendar.travel.temp {
  background: url(../img/rymd.png);
}

.calendar.travel .flap.start{
  display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  position: relative;
  padding: 0;
  /* background: url(../img/rymd.png); */
  min-width: 100vw;
}

.about-content {
  padding: 2rem;
  /* max-width: 80%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  -webkit-animation-name: slideInDown;
  animation-name: slideInDown;
  animation-duration: 0.7s;
  z-index: 99999;
  animation-fill-mode: both;
  overflow: auto;
  top: 2rem;
  width: 100vw;
  position: absolute;
  max-height: calc(100vh - 4rem);
}
.about-content * {
  max-width: 700px;
}
.about-content details {
  font-size: 1rem;
}
.about-content a{
  color: #fff;
  font-size: 1.2rem;
}
.about-content h2 {
  font-size: 1.5em;
}

.calendar.travel .start img{
  width: 100%;
}

.calendar.travel .start .solar-system{
  width: 100%;
  transition: all ease-in-out 0.5s;
  position: absolute;
}

.calendar.travel .start .solar-system.move{ 
  /* width: 10%; */
  opacity: 0;
}

.calendar.travel .pre-start img{
  width: auto;
}
.calendar.travel .pre-start {
  margin: 3rem auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 600px;
    align-items: center;
}

.calendar.travel .pre-start .logo{
  max-width: 200px;
  padding-top: 2rem;
  z-index: 99;
}
@media (min-width: 959px) {
  .calendar.travel .pre-start .logo{
    position: absolute;
    right: 2rem;
    top: 2rem;
  }
}
.calendar.travel .logo{
  max-width: 200px;
  padding-top: 2rem;
  z-index: 99;
}
@media (min-width: 959px) {
  .calendar.travel .logo{
    position: absolute;
    right: 3rem;
    top: 3rem;
    padding-top: 0;
  }
}

.calendar.travel .about-content .characters {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.calendar.travel .about-content .characters div {
  flex-basis: calc(50% - 4.5rem);
  width: 100%;
  margin-bottom: 1rem;
  background: #0C243E;
  padding: 2rem;
}
.calendar.travel .about-content .characters div:nth-child(odd){
  margin-right: 1rem;
}

.calendar.travel .about-content .characters img {
  width: 100%;
  display: block;
  /* height: 150px; */
  margin: auto;
  max-width: unset;
}
.calendar.travel .sun {
  background: url(../img/solsystemet-solen.png);
  position: absolute;
  left: 0;
  height: 100%;
  min-width: 35%;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.destinations {
  display: flex;
  flex-wrap: nowrap;
  /* position: absolute;
  left: 30px; */
  left: 0;
  position: relative;
  /* transition: all ease-in-out 2s; */
  transition: all ease-in-out 8s;
  background: url(../img/rymd.png);
  margin: 0 -2400vw;
  padding: 0 2400vw;
  overflow: hidden;
}
.calendar.travel .flap {
  min-width: calc(100% - 4rem);
  height: calc(100vh - 4rem);
  padding: 2rem;
  border: unset;
  background-size: 90%;
  /* background-size: 60vh; */
}
.calendar.travel .flap.first {
  background-image: url(../img/bgr/earth.png);
  /* background-size: 125px; */
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap.second {
  background-image: url(../img/bgr/earth.png);
  /* background-size: 225px; */
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._3 {
  background-image: url(../img/bgr/iss.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._4,
.calendar.travel .flap._18 {
  background-image: url(../img/bgr/moon.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._5,
.calendar.travel .flap._6,
.calendar.travel .flap._7
 {
  background-image: url(../img/bgr/mars.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._8{
  background-image: url(../img/bgr/venus.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._9{    
  background-image: url(../img/bgr/venus.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._10{    
  background-image: url(../img/bgr/mercury.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._11{    
  background-image: url(../img/bgr/asteriodbelt.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._12{    
  background-image: url(../img/bgr/jupiter.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._13{    
  background-image: url(../img/bgr/jupiter.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._14{    
  background-image: url(../img/bgr/komet.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._15{    
  background-image: url(../img/bgr/saturn.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._16{    
  background-image: url(../img/bgr/uranus.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._19{    
  background-image: url(../img/bgr/mats.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._20{    
  background-image: url(../img/bgr/rymdskrot.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._21{    
  background-image: url(../img/bgr/mats_rymdskrot_webb.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._22{    
  background-image: url(../img/bgr/james-webb.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._23{    
  background-image: url(../img/bgr/neptune_and_pluto.png);
  background-repeat: no-repeat;
  background-position: center;
}
.calendar.travel .flap._24{    
  background-image: url(../img/bgr/earth_and_moon.png);
  background-repeat: no-repeat;
  background-position: center;
}

.calendar.travel .spaceship {
  background-image: url(../img/raket-med-leia-och-djuren-luvor.png);
  position: absolute;
  /* top: calc(50vh - 90px);
  left: calc(50vw - 90px);
  width: 180px;
  height: 180px; */
  top: calc(40vh - 90px);
  left: calc(32vw - 90px);
  left: calc(45vw - 90px);
  width: 400px;
  height: 400px;
  z-index: 9;
  background-size: cover;
  width: 45vh;
  height: 45vh;
}
@media (max-width: 960px) {
  .calendar.travel .spaceship {
    width: 250px;
    height: 250px;
    left: calc(62% - 125px);
    top: calc(44% - 125px);
  }
  .about-content {
    width: 100%;
    max-width: calc(100% - 4rem);
    align-items: flex-start;
    height: 100vh;
    overflow: auto;
    max-height: calc(100vh - 4rem);
  }
  .calendar.travel .about-content .characters div {
    flex-basis: 100%;
  }
  .calendar.travel .about-content .characters div:nth-child(odd) {
    margin-right: 0;
  }
  
}

.spaceship-flames{
  transition: all ease-in-out 0.5s;
  position: absolute;
  left: -125px;
  bottom: -20px;
  width: 250px;
  width: 22vh;
  z-index: 6;
  left: -29%;
  bottom: 0%;
  /* top: calc(40vh + 100px);
  left: calc(45vw - 230px); */
}
.lost-in-space {
  animation-name: lost-in-space;
  transform-origin: center bottom;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.engine-trubble {
  animation-name: engine-trubble;
  animation-duration: 6.5s;
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-delay: 0.5s;
}
.calendar.travel .spaceship.jump-up {
  animation-name: jump-up;
  transform-origin: center bottom;
  animation-duration: 3.2s;
  animation-iteration-count: 1;
  animation-fill-mode: both;
  z-index: 9999;
}
.travel-time {
  animation-name: travel;
  /* transform-origin: center bottom; */
  animation-duration: 8s;
  animation-iteration-count: 1;
  animation-fill-mode: both;
  /* animation-delay: 2s; */
  z-index: 9999;
}
.calendar.travel .btn {
  color: #fff;
  text-decoration: none;
  /* border: 2px solid #fff; */
  padding: 1rem;

  color: #000;
  text-decoration: none;
  border-radius: 40px;
  padding: 1.25rem;
  background-color: #EF625B;
  font-weight: 600;
}
.calendar.travel .btn.to-start,
.calendar.travel .btn.to-home {
  margin-right: 1rem;
}
.calendar.travel .date-picker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5vh;
  left: calc(50vw - 140px);
  z-index: 25;
}
.date-picker{
  position: absolute;
  top: 6rem;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.date-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0.5rem;
  transition: all ease-in-out .2s;
  padding: 2px;
  background: #000;
  width: 30px;
  display: block;
  height: 30px;
  margin: 6px;
  text-align: center;
  line-height: 1.5;
  border-radius: 50%;
  font-size: 20px;
}
.date-link:focus, .date-link:hover, 
.date-link.selected {
  
  /* padding: 0; */
  color: #000;
  background: #EF625B;
  border-radius: 50%;
}

.unclickable {
  opacity: 0.5;
}
.unclickable:focus, .unclickable:hover {
  color: #fff;
  background: #000;
  cursor: not-allowed;
}


/* traveling */
.calendar.travel .destinations.to-second{
  left: -100vw;
}



@keyframes lost-in-space {
  from {
		transform: translate3d(0, -10px, 0);
	  }

	  50% {
		transform: translate3d(0, 10px, 0);
    
	  }
	
	  to {
		transform: translate3d(0, -10px, 0);
    
	  }
}

@keyframes jump-up {
  from {
		/* transform: translate3d(0, 0, 0); */
	  }

	  50% {
		/* transform: translate3d(0, 100%, 0); */
    /* margin-top: -60vh; */
    margin-top: -70vh;
	  }
	
	  to {
		/* transform: translate3d(0, -100%, 0); */
    /* margin-top: 100vh;
    visibility: hidden; */
    margin-top: -100vh;
		rotate: 24deg;
	  }
}

@keyframes engine-trubble {
  from {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }
  12% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  16% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
  
}


@-webkit-keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, -32px, 0);
    transform: translate3d(0, -32px, 0);
  }
}

@-webkit-keyframes slideOutUp {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
}
@keyframes slideOutUp {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
}
.closed {
  animation-name: slideOutUp;
}
.calendar.travel .flap {
  position: relative;
}
.calendar.travel .flap .content.visible {
  /* top: calc(50% - 150px);
  left: calc(10% - 150px);
  height: auto;
  position: absolute;
  width: 300px;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important; */
  -webkit-animation-name: slideInDown;
  animation-name: slideInDown;
  animation-duration: 0.7s;
  z-index: 99;
  animation-fill-mode: both;
  overflow: auto;
  animation-delay: 1.5s;
}




/* REGULAR */
.calendar {
  /* width: 100vw;
  max-width: calc(100% - 4rem);
  height: 100vh;
  max-height: calc(100vh - 4rem);
  position: relative;
  background: url(../img/dummy_bgr.jpg);
  background-size: cover;
  padding: 2rem; */
}
.scroll-content {
  /* max-width: 670px; */
}
.flap {
  display: flex;
  border: 2px solid white;
  min-width: 100px;
  min-height: 100px;
  width: 100px;
  height: 100px;
  align-items: center;
  justify-content: center;
}
.flap a {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  justify-content: center;
  align-content: center;
  color: #fff;
  text-decoration: none;
  transition: all .3s ease-in-out
}
.flap .content{
  position: absolute;
  width: calc(100vw - 6rem);
  min-height: calc(100vh - 6rem);
  max-height: calc(100vh - 6rem);
  background: #000;
  color: #fff;
  flex-direction: column;
  padding: 3rem;
  display: flex;
  -webkit-animation-name: slideOutUp;
  animation-name: slideOutUp;
  animation-duration: 0.7s;
  animation-fill-mode: both;
  overflow: auto;
  animation-delay: 1.5s;
  z-index: 99;
  animation-delay: 0s;
  /* top: calc(50% - 150px); */
  /* left: calc(50% - 150px); */
}
.flap .content * {
  max-width: 700px;
}
.flap .content h1 {
  display: block;
  width: 100%;
}
.flap .content img {
  max-width: 40%;
  margin: 0 auto;
}
.flap .content ul {
  padding-left: 1rem;
  font-size: 1.2rem;
}
.flap .content .aside ul {
  font-size: 1rem;
  padding-left: 1rem;
}

.flap .content .date-img {
  max-width: 1150px;
  margin-bottom: 3rem;
  height: auto;
}

.flap .content .inner-content {
  display: grid;
  /* grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: repeat(5, 1fr); */
  grid-template-columns: 0.6fr 2fr 1.4fr;
  grid-template-rows: 1fr;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  max-width: 1150px;
  width: 100%;
  align-self: center;
}
.story { 
  grid-area: 1 / 2 / 2 / 3;
  font-size: 1.2rem; 
}


.aside { 
  grid-area: 1 / 3 / 2 / 4; 
  
}
.aside p {
  font-size: 1rem;
}

.aside details {
  margin: 1rem 0;
  background: #0C243E;
  padding: 2rem;
}


.flap .aside details img {
  max-width: 100%;
}
.flap .aside a {
  text-decoration: underline;
  color: #fff;
  display: inline;
}

.flap .content a {
  /* color: #000; */
}
.flap .content.visible {
  display: flex;
}
.calendar.travel .close {
  cursor: pointer;
  align-self: start;
  /* position: relative; */
  padding-left: 3rem;
  position: sticky;
  top: 2rem;
  left: 10%;
}

.close:before, .close:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 25px;
  width: 3px;
  background-color: #000;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}

.flap a h2 {
  margin: 0;
  align-self: center;
}


/* Pratbubbla */
.bubble {
  position: absolute;
  width: 300px;
  height: 240px;
  top: calc(29vh - 90px);
  left: calc(65vw - 90px);
  /* left: 65%; */
  /* top: 25%; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  font-family: "Comic Sans", "Comic Sans MS", "Comic Neue", sans-serif;
  background-image: url(../img/bubbla-red.png);
  background-repeat: no-repeat;
  background-size: 100%;
  /* -webkit-animation-name: wobble;
  animation-name: wobble; */
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
  -webkit-transform-origin: center;
  transform-origin: center;
  animation-duration: 0.5s;
  /* animation-delay: 1.5s; */
  /* opacity: 0; */
  transition: all ease-in-out 0.2s;
  line-height: 1.15;
  z-index: 8;
}
.bubble span {
  margin-top: -0.5rem;
}
.bubble:focus, .bubble:hover {
  color: #000;
}

@media (max-width: 960px) {
  .bubble {
    width: 250px;
    height: 190px;
    left: calc(58vw - 90px);
    top: 20%;
    background-size: contain;
    background-image: url(../img/bubbla-red-down.png);
    background-position: center;
    font-size: 1rem;
  }
  .calendar.travel .close {
    left: 0;
    top: 0.5rem;
   }
  .calendar.travel {
    max-height: 100vh;
  }
  .calendar.travel .date-picker-wrapper {
    flex-direction: column;
    left: unset;
    /* right: 0; */
    top: 1rem;
    align-items: flex-start;
  }

  .calendar.travel .date-picker-wrapper a.btn {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
  }
  .calendar.travel .logo {
    padding-top: 1rem;
    padding-left: 1rem;
    max-width: 33%;
    position: absolute;
    right: 1rem;
  }
  .date-picker {
    position: static;
    /* background: rgb(0, 0, 0, 0.7); */
  }
  .spaceship-flames {
    left: -43%;
    bottom: -8%;
    width: 160px;
    
  }
  .calendar.travel .flap {
    /* background-position: bottom!important; */
    background-size: 175%;
  }
  .flap .content .date-img {
    max-width: 100%;
    margin-top: 1rem;
  }
  .flap .content .inner-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .calendar.travel .btn.to-home {
    display: none;
  }
  .story details {
    /* max-height: 60vh;
    overflow: auto; */
  }
}
@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}
@-webkit-keyframes wobble {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  15% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }

  30% {
    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }

  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }

  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }

  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes wobble {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  15% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }

  30% {
    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }

  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }

  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }

  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes travel {
  /* from {
    transform: translate(0, 0,);
  }

  15% {
    transform: translate3d(25%, 0, 0) ;
  }

  25% {
    transform: translate3d(40%, 90%, 0) ;
  }

  30% {
    transform: translate3d(130%, -10%, 0) ;
  }
  40% {
    transform: translate3d(125%, -50%, 0) ;
  }
  50% {
    transform: translate3d(110%, -65%, 0) ;
  }
  60% {
    transform: translate3d(90%, -65%, 0) ;
  }
  70% {
    transform: translate3d(70%, -65%, 0) ;
  }
  80% {
    transform: translate3d(30%, -45%, 0) ;
  }
  90% {
    transform: translate3d(15%, -20%, 0) ;
  }

  to {
    transform: translate(0, 0,);
  } */





  /* from {
    transform: translate(0, 0,);
  }
  5% {
    transform: translate3d(0, -50%, 0) ;
  }
  10% {
    transform: translate3d(0, 0, 0) ;
  } */

  /* from {
  transform: translate(0, 0,);
  }
  5% {
    transform: translate3d(0, -50%, 0) ;
  }
  10% {
    transform: translate3d(0, 0, 0) ;
  }
 85% {
    transform: translate3d(0, 0, 0) ;
  }
  90% {
      transform: translate3d(0, -50%, 0) ;
  }
 to {
    transform: translate(0, 0,);
 } */
from {
 transform: translate(0, 0,);
  }
  5% {
    transform: translate3d(0, -50%, 0) ;
  }
  10% {
    transform: translate3d(0, 0, 0) ;
  }
 50% {
    transform: translate3d(0, 0, 0) ;
  }
  55% {
    transform: translate3d(0, -50%, 0) ;
  }
 60% {
    transform: translate3d(0, 0, 0) ;
  }
 to {
    transform: translate(0, 0,);
 }

}

/* .fold-out {
  overflow: hidden;
  max-height: 150px;
  
}

.fold-out.open {
  overflow: auto;
  max-height: unset;
} */
/* accordion */
summary {
  list-style-image: none;
  position: relative;
  cursor: pointer;
}
summary::-webkit-details-marker,
summary::marker {
  display: none;
  list-style-image: none;
  content: '';
}

summary:after {
  content: "";
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  transition: all 0.3s ease-out;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  position: absolute;
  top: -5px;
  right: 0;
}
.about-content summary::after{
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  right: 1.5rem;
}

details[open] summary:after {
  content: "";
  transform: rotate(-135deg);
  margin-top: 8px;
}