﻿ * { box-sizing: border-box; }
 html { /*scroll-behavior: smooth;*/ }
 body {
  margin: 0;
  font-size: 13px;
 }
 header {
  display: grid;
  grid-template-areas: 'bilddel lankdel';
  justify-content: center;
  background-image: linear-gradient(rgb(40,70,20), rgb(80,150,40));
  height: 109px;
 }
 div#bilddel {
  display: flex;
  width: auto;
 }
 div#lankdel {
  display: flex;
  width: fit-content;
  padding-top: 2px;
 }
 @keyframes bildbak {
  35%   { background-position: 0 0; }
  36%   { background-position: 0 -109px; }
  65%   { background-position: 0 -109px; }
  66%   { background-position: 0 -218px; }
  97%   { background-position: 0 -218px; }
  98%   { background-position: 0 0; }
 }
 @keyframes bildfram {
  8%    { opacity: 1; }
  16%   { opacity: 0; }
  19%   { margin-top: 0; }
  20%   { margin-top: -109px; }
  24%   { opacity: 0; }
  32%   { opacity: 1; }
  40%   { opacity: 1; }
  48%   { opacity: 0; }
  51%   { margin-top: -109px; }
  52%   { margin-top: -218px; }
  56%   { opacity: 0; }
  62%   { opacity: 1; }
  70%   { opacity: 1; }
  78%   { opacity: 0; }
  81%   { margin-top: -218px; }
  82%   { margin-top: 0; }
  86%   { opacity: 0; }
  94%   { opacity: 1; }
 }
 #bildspel {
  grid-area: bildspel;
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  height: 109px;
  overflow: hidden;
  animation-name: bildbak;
  animation-duration: 60s;
  animation-iteration-count: infinite;
 }
 #bild {
  animation-name: bildfram;
  animation-duration: 60s;
  animation-iteration-count: infinite;
  margin-top: 0px;
 }
 #lingvo {
  grid-area: lingvo;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
  width: 45px;
 }
 #lingvo img {
  width: 25px;
  height: auto;
  cursor: pointer;
 }
 #lingvo a {
  margin-top: 5px;
 }
 #lingvo a:last-of-type { margin-top: 20px; }
 div#lankdel > div:first-of-type {
  padding-left: 15px;
 }
 div#lankdel > div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
  justify-content: start;
 }
 div#lankdel > div > a {
  color: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 6px;
 }
 div#lankdel > div > a:hover {
  text-decoration: underline;
 }
 main {
  display: flex;
  justify-content: center;
 }
 iframe {
  width: 920px;
  margin-top: 20px;
  height: 5000px;
  border: 0;
 }

 @media only screen and (max-width: 890px) {
  header {
   grid-template-areas:
    'bilddel'
    'lankdel';
   height: auto;
  }
  div#bilddel {
   width: 469px;
  }
  div#lankdel {
   width: 469px;
   justify-content: space-evenly;
   height: auto;
   padding-left: 50px;
  }
  div#lankdel > div:first-of-type {
   padding-left: 0;
  }
  #bildspel {
   animation-duration: 0;
  }
  #bild {
   animation-duration: 0;
  }
 }
