/*
 * Somas lobbyskärm.
 * Measurements are taken from the Angular build that ran 2020-2026 (main.1b266fbab0210b8f937f.js),
 * at the screen's resolution 1920x1080. Written for Chrome 74 (Philips BDL4550D): no flex gap.
 */

*, :after, :before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #fff;
}

h1, h2, h3, h4 {
  font-weight: 700;
  font-family: "PT Sans", sans-serif;
  margin: 0 0 1.2em;
  line-height: 1em;
  text-transform: uppercase;
}
h2 { font-size: 26px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 15px; line-height: 1.8em; }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; }

/* The video column and the visits column share this width, so their edges line up. */
:root { --left-column: 67.1875%; }

/* Header ------------------------------------------------------------------ */

#header {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 6vh;
  margin: 0 0 10px;
  color: #fff;
  background: #0064a9;
}

#date_time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 6%;
  padding: 0 20px;
  border-right: 3px solid #fff;
  font-size: 20px;
  line-height: 1em;
  font-weight: 700;
  text-align: center;
  text-transform: lowercase;
}

#vader {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 94%;
  padding: 0 100px 0 50px;
}

#vader .credits {
  position: absolute;
  bottom: -20px;
  right: 5px;
  font-style: italic;
  color: #c1c1c1;
  font-size: 12px;
}

#vader_karusell {
  position: relative;
  width: 100%;
}

#vader_karusell:after {
  content: '';
  position: absolute;
  top: 0;
  right: -2px;
  width: 4px;
  height: 100%;
  background: #0064a9;
  z-index: 9999;
}

#vader_karusell .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 1s;
}

#vader_karusell .slide.active { opacity: 1; }

#vader .dagens_vart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 18%;
}
#vader .dagens_vart h2 { font-size: 22px; margin: 0; }
#vader .dagens_vart h3 { font-size: 20px; margin: 0; opacity: .8; }

#vader .vader_holder {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 80%;
}

#vader .tidpunkt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: 12%;
  text-align: center;
}

#vader .tidpunkt i {
  display: block;
  margin: 0 15px 0 0;
  font-size: 36px;
  font-style: normal;
}

#vader .tidpunkt .info {
  width: 50%;
  font-weight: 700;
  text-align: left;
  line-height: 1em;
}
#vader .tidpunkt .time { display: block; margin: 0 0 3px; font-size: 17px; color: rgba(255, 255, 255, .7); }
#vader .tidpunkt .temp { display: block; font-size: 17px; }

/* Video and news ---------------------------------------------------------- */

.main {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: calc(67vh - 9px);
}

.valkomst_video {
  position: relative;
  flex: 0 0 var(--left-column);
  width: var(--left-column);
  padding: 0 10px;
  overflow: hidden;
}

/* The video fills its area, so it ends exactly at the visits banner whatever the screen's proportions.
   At 1920x1080 the area is 16:9 like the video, so nothing is cropped. */
.valkomst_video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.valkomst_video video.active { visibility: visible; }

/* The memory player lies exactly on top of the streaming player. */
.valkomst_video #video_memory {
  position: absolute;
  top: 0;
  left: 10px;
  width: calc(100% - 20px);
  height: 100%;
}

.nyheter {
  flex: 1 1 auto;
  min-width: 0;
  padding: 70px 60px 80px;
}

.nyheter h2 { font-size: 42px; color: #0064a9; }

.nyheter .news_item {
  position: relative;
  width: 100%;
  max-height: 121px;
  margin: 0 0 50px;
  overflow: hidden;
}

.nyheter .news_item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .01) 1%, #fff 100%);
}

.nyheter .news_item h3 { margin: 0; line-height: 24px; }
.nyheter .news_item span { display: block; margin: 4px 0 10px; font-weight: 700; color: #999; }
.nyheter .news_item p { line-height: 1.5em; }

/* Footer ------------------------------------------------------------------ */

#footer {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 25vh;
}

#besok {
  position: relative;
  flex: 0 0 var(--left-column);
  width: var(--left-column);
  padding: 0 10px;
  overflow: hidden;
}

#besok h2 {
  margin: 0 0 10px;
  padding: 16px 40px;
  font-size: 28px;
  color: #fff;
  background: #0064a9;
}

#besok .no_visits {
  position: relative;
  margin: 70px 0 0;
  font-size: 26px;
  color: #ccc;
  text-align: center;
}

#besok .no_visits:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  width: calc(100% - 80px);
  height: 2px;
  background: #ccc;
  transform: translateY(-50%);
  z-index: -5;
}

#besok .no_visits:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 350px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: -1;
}

#besokslider {
  position: relative;
  width: 100%;
  height: 199px;
  overflow: hidden;
}

#besokslider:after, #besokslider:before {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 50;
}
#besokslider:before { left: 0; background: linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0) 99%, rgba(255, 255, 255, 0) 100%); }
#besokslider:after { right: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 1%, #fff 100%); }

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

.ticker-wrap {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding-left: 100%;
  overflow: hidden;
  box-sizing: content-box;
}

.ticker-wrap .ticker {
  display: inline-block;
  height: 100%;
  padding-right: 100%;
  white-space: nowrap;
  box-sizing: content-box;
  animation: ticker 30s linear infinite;
}

.ticker-wrap .ticker__item { display: inline-block; padding: 0 2rem; }
.ticker-wrap .ticker__item h3 { margin: 32px 0 20px; font-size: 30px; }
.ticker-wrap .ticker__item .row { margin: 0 0 5px; font-size: 26px; }
.ticker-wrap .ticker__item strong { display: inline-block; width: 110px; color: #0064a9; }

#kpi_bcf {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

#kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 55%;
  padding: 105px 0;
  text-align: center;
  background: #0064a9;
}
#kpi .val { font-size: 96px; font-weight: 700; line-height: 1em; color: #fff; }
#kpi .label { font-size: 32px; font-weight: 700; line-height: 1em; color: #90d1ff; }

#slc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45%;
}
#slc img { width: 74%; height: auto; }
#slc h3 { margin: 30px 0 10px; font-size: 22px; }
#slc h4 { margin: 0; font-size: 18px; line-height: 1.4em; color: #a0a0a0; text-align: center; }

#version {
  position: absolute;
  bottom: 0;
  right: 5px;
  font-size: 12px;
  color: #c1c1c1;
}
