@keyframes pan {
    0% {
      background-position: 10% 0;
      background-size: 110%; /* Starts zoomed in */
    }
    100% {
      background-position: 100% 0;
      background-size: 120%; /* Starts zoomed in */
    }
}

html.standalone {
    height: 100vh;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    letter-spacing: 0;
}

.vk {
    --color:  #1446dc;
    --font-family: Publico Headline, Geneva, Tahoma, sans-serif;
 }
 
 .folkbladet {
     --color: #b22d2c;
     --font-family: open sans,Geneva,Tahoma,sans-serif;
 }

 .vasterbottningen {
    --color: #009540;
    --font-family: PT Serif Bold,Georgia,serif;
 }

 .lokaltidningen {
    --color: #0a51a1;
    --font-family: PT Serif Bold,Georgia,serif;
 }

 .mellanbygden {
    --color: #ff0001;;
    --font-family: PT Serif Bold,Georgia,serif;
 }

 .nordsverige {
    --color: #222;
    --font-family: PT Serif Bold,Georgia,serif;
 }


.vk .vkmui-Logos--vk {
    opacity: 1;
    width: 50px;
    height: 50px;
}

.folkbladet .vkmui-Logos--folkbladet {
    opacity: 1;
    right: 20px;
    width: 200px;
}

.vasterbottningen .vkmui-Logos--vasterbottningen {
    opacity: 1;
    width: 200px;
    height: 50px;
}

.lokaltidningen .vkmui-Logos--lokaltidningen {
    opacity: 1;
    width: 200px;
    height: 50px;
}

.mellanbygden .vkmui-Logos--mellanbygden {
    opacity: 1;
    width: 200px;
    height: 50px;
}

.nordsverige .vkmui-Logos--nordsverige {
    opacity: 1;
    width: 200px;
    height: 50px;
}

.vkmui-logos {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    fill: var(--color); 
    opacity: 0;
}

html.standalone .vkmui-logos {
    top: 60px;
}

.progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 5px;
    z-index: 1000;
    background-color: var(--color);
    transition-property: width;
}

#reelsContainer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    user-select: none;
}

.article {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: background-position 30s;
}

.article.animation {
    background-position-x: 100%;
}

.article h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 2em;
    text-align: center;
    font-family: var(--font-family);
}

@media screen and (min-width: 1200px) {
    .article h1 {
        font-size: 3em;
        bottom: 20px;
        top: auto;
        padding: 0;
        margin: 0;
        left: 20px;
        right: 80px;
        text-align: left;
        transform: none;
    }
    
}


.saved-articles {
    font-family: "Open Sans",Arial,sans-serif;
    position: absolute;
    background-color: white;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.saved-articles.empty {
    display: none;
}

.saved-articles.open {
    top: env(safe-area-inset-top, 20px);
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    width: auto;
    height: auto;
    justify-content: left;
    align-items: start;    

    display: flex;
    flex-direction: column;    
}

.saved-articles h2 {
    padding: 0;
    margin: 0;
}

.saved-articles h3 {
    display: none;
}

.saved-articles h2.animate {
    animation: pulse 0.5s;
}

.saved-articles h2 span {
    display: none;
} 


.saved-articles.open h2 {
    display: none;
}

.saved-articles.open h3 {
    display: block;
}

.saved-articles #savedArticles {
    display: none;
}


.saved-articles.open #savedArticles {
    display: block;
    flex-grow: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.saved-article {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.saved-article > :first-child {
    flex: 0 0 30%;
}

.saved-article > :last-child {
    flex: 0 0 70%;
}

.saved-article .img {
    margin-right: 10px;
    background: center center / cover no-repeat;
    height: 51px;
    width: 90px;  
      
}

.saved-article h3 {
    margin: 0;
}

h4 {
    margin: 0;
}

.saved-articles .close-button {
    display: none;
}

.saved-articles.open .close-button {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
}

.saved-articles .clear-button {
    display: none;
}

.saved-articles.open .clear-button {
    display: block;
    position: absolute;
    bottom: 20px;
    right: 20px;
    

    border:1px solid black;
    border-radius: 5px;
    padding: 5px;
}