.background {
    position: absolute;
}

#main .main-content {
    padding: 0px;
    overflow: hidden;
}

.timeline-wrapper {
    /* height: 1080px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: relative; */
    width: 100%;
    /* height: 1080px; */
    height: 940px;
    overflow: hidden;
    position: relative;
}

.scroller {
    /* height: 1080px; */
    height: 940px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    transition: transform ease 0.3s;
}

.timeline-wrapper .line {
    left: 0;
    top: 50%;
    width: 100%;
    height: 5px;
    background-color: #5A5A5A;
    position: absolute;
    transform: translateY(-50%);
}

/* ========================================================================== */
/* Upper */
/* ========================================================================== */

.timeline-wrapper .item {
    flex-shrink: 0;
    width: 414px;
    box-sizing: border-box;
    padding: 0 42px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline-wrapper .item .upper {
    display: flex;
    flex-direction: row; 
    height: 50%;
    align-items: flex-end;
    box-sizing: border-box;
    /* padding-bottom: 100px; */
    padding-bottom: 64px;
}

.timeline-wrapper .item .upper .content {
    background-color: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    box-sizing: border-box;
    padding: 21px;
    width: 100%;
}

/* ========================================================================== */
/* Knob */
/* ========================================================================== */

.timeline-wrapper .item .meta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}   

.timeline-wrapper .item .knob-upper {
    
}

.timeline-wrapper .item .knob {
    height: 28px;
    width: 28px;
    border-radius: 14px;
    display: block;
    background: #E5E5E5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    margin: 10px 0 12px;
}

.timeline-wrapper .item .knob-lower {
    
}

/* ========================================================================== */
/* Lower */
/* ========================================================================== */

.timeline-wrapper .item .lower {
   height: 50%;
   box-sizing: border-box;
   padding-top: 48px;
   left: 50%;
   position: relative;
   padding-left: 84px;
}

.timeline-wrapper .item .lower .content  {

}

/* -------------------------------------------------------------------------- */
/* Text */
/* -------------------------------------------------------------------------- */
.timeline-wrapper .item .upper .content .title {
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
}

.timeline-wrapper .item .upper .content .text {
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Brändrahnud */
/* -------------------------------------------------------------------------- */

.item-gallery {
    /* height: 100%; */

    height: 50%;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 64px;
}

.upper .content .border-style-1 {
    margin-bottom: 21px;
}

.lower .content .border-style-1 {
    margin-top: 21px;
}

.border-style-1 {
    /* width: 330px;
    height: 220px;
    border-radius: 50px 150px 100px 50px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; */

    width: 220px;
    height: 140px;
    border-radius: 48px 80px 63px 48px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
}


.scroller .border-style-1 {
    cursor: pointer;
    display: block;
}

.border-style-1.top {
    background-position: top;
}

.border-style-1.bottom {
    background-position: bottom;
}

.border-style-1.center {
    background-position: center;
}

.border-style-1.p-75 {
    background-position: 0 75%;
}

.border-style-1.p-25 {
    background-position: 0 25%;
}
/* 
.lower .border-style-1 {
    padding: 35% 50%;
    width: auto;
    height: auto;
    margin-top: 16px;
} */

/* ========================================================================== */
/* Timeline NAV */
/* ========================================================================== */
.timeline-nav {
    top: 0;
    left: 0;
    height: 100%;
    width: 100px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.timeline-nav:hover .knob {
    background-color:#ffffff;
}



.timeline-nav-right {
    left: auto;
    right: 0;
}

.timeline-nav .knob {
    height: 52px;
    width: 52px;
    border-radius: 26px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #E8E8E8;
    pointer-events: none;
}

.timeline-nav .knob img {
    width: 15px;
}

/* ========================================================================== */
/* Timeline Index */
/* ========================================================================== */
/* 
.noUi-horizontal .noUi-handle {
    display: none;
}

.noUi-connect {
    background: #5379E8;
}

.timeline-index {
    width: 70vw;
    margin: 0 auto;
    position: relative;
}

.noUi-horizontal {
    height: 28px;
}

.noUi-target {
    background: #c4c4c4;
    border-radius: 0px;
    border: none;
    box-shadow: none;
} */

.timeline-events-overlay {
    background-color: transparent;
    /* top: 0;
    left: 0; */
    position: relative;
    height: 30px;
    z-index: 1;
    display: flex;
    width: 70vw;
    margin: 0 auto;
    background-color: #c4c4c4;
    /* border: 1px solid #E5E5E5; */
}

.timeline-events-overlay .event {
    height: 100%;
    /* position: absolute; */
    box-sizing: border-box;
    /* transition: background ease 0.3s; */
    cursor: pointer;
    pointer-events: none;
    position: relative;
}

.timeline-events-overlay .event::after {
    content: '';
    position: absolute;
    border-left: 2px solid #E5E5E5;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
}

.timeline-events-overlay .event.constrained {
    background-color: #c4c4c4;
}

/* .timeline-events-overlay .event:hover {
    background-color: #b4b4b4
} */

.timeline-events-overlay .event.active {
    background: #5379E8;
} 

.timeline-index {

}

.timeline-index.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.2);
    /* background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%) */
}

.timeline-index-handle {
    background: #5379E8;
    height: 100%;
    width: 300px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    cursor: pointer;
}

.triangle {
    position: absolute;
    top: 100%;
    right: -0.5em;
}

.fa-triangle {
}

.indicator-box {
    position: absolute;
    top: 0;
    height: 100%;
    width: 0;
    left: 0;
    background-color: red;
    cursor: pointer;
}

.indicator-overlay {
    left: 0;
    width: 0px;
    height: 100%;
    position: absolute;
    top: 0;
    background: #c4c4c4;
    z-index: 1;
}

.transitionLeft {
    transition: left ease 0.4s;
}

.transitionWidth {
    transition: width ease 0.4s;
}

.year_in_index {
    position: absolute;
    margin-top: 40px;
    pointer-events: none;
}

/* ========================================================================== */
/* Smaller sizes */
/* ========================================================================== */
.timeline-item {
    font-size: 14px;
} 

.timeline-wrapper .item .upper .content .title {
    /* font-size: 11pt; */
    font-size: 14px;
    line-height: 1.6em;
    font-weight: bold;
}

.timeline-wrapper .item .upper .content .text {
    /* font-size: 11pt; */
    font-size: 14px;
    line-height: 1.6em;
}

/* ========================================================================== */
/* Layout CSS */
/* ========================================================================== */
.blob-blue {
    position: absolute;
    right: 0;
    top: 0;
    width: 1516px;
}

.timeline-nav .arrow-button {
    background-color: #E5E5E5;
}

.history-swiper-container {
    
    /* display: flex;
    flex-direction: row;
    flex-wrap: nowrap; */
}

.history-swiper-wrapper {
    flex-wrap: nowrap;
}

.history-swiper-container .swiper-slide {
    
}

.swiper-slide {
    width: 80vw;
    height: 80vw;

    max-width: 400px;
    max-height: 400px;
    
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.swiper-slide .content {
    width: 100%;
    flex-grow: 1;
    background-color: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    padding: 16px 21px 29px;
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.swiper-slide.lower-content .content {
    background: #7495F8;
    color: #ffffff;
}

.swiper-index {
    width: 80vw;
    margin: 0 auto;
}

.swiper-index .noUi-horizontal {
    border: none;
    height: 5px;
    border-radius: 0;
    box-shadow: none;
    background-color: #5A5A5A;
}

.swiper-index .noUi-horizontal .noUi-handle {
    width: 28px;
    height: 28px;
    top: -12px;
    border-radius: 14px;
    background: #e5e5e5;
    border: none;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.25);
    outline: 0;
    cursor: pointer;
}

.swiper-index .noUi-horizontal .noUi-handle::before,
.swiper-index .noUi-horizontal .noUi-handle::after {
    display: none;
}

.swiper-index .noUi-connect {
    background: #7495F8;
}

.noUi-tooltip {
    opacity: 0;
    pointer-events: 0;
    transition: opacity ease 0.4s;
    border-radius: 18px;
    min-width: 4em;
}

.noUi-active .noUi-tooltip {
    opacity: 1;
}

@media only screen and (max-width: 575px) {
    .people .person {
        padding-left: 17px;
        padding-right: 17px;
    }

    .swiper-slide .content {
        font-size: 13px;
    }

}
