@font-face {
    font-display: swap;
    font-family: Publico Headline;
    font-weight: 500;
    src: url(/publico-headline-medium-web.c5c392ec98c1f52842d2..woff2) format("woff2"),url(/dist/build/fonts/publico-headline-medium-web.e87f35d9d974188baa67..woff) format("woff")
}

@keyframes pan {
    0% {
      background-position: 0 0;
    }
    50% {
      background-position: 100% 0;
    }
    100% {
      background-position: 0 0;
    }
  }

body, html {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Publico Headline, Geneva, Tahoma, sans-serif;
    letter-spacing: 0;
}

#reelsContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

.article {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform 0.2s ease-out;
    animation: pan 30s infinite ease;
    background-position: 0 0;
}


.article:nth-child(1) { transform: translateY(-200%); }
.article:nth-child(2) { transform: translateY(-100%); }
.article:nth-child(3) { transform: translateY(0); }
.article:nth-child(4) { transform: translateY(100%); }
.article:nth-child(5) { transform: translateY(200%); }

#reelsContainer.mover .article {
    transition-duration: 0s !important;
}

/* #reelsContainer:not(.mover) .article {
    animation: pan 30s linear;
    animation-iteration-count: 1;
  }  */

#reelsContainer.up .article:nth-child(3) { transform: translateY(-100%); }
#reelsContainer.up .article:nth-child(4) { transform: translateY(0%); }

#reelsContainer.down .article:nth-child(3) { transform: translateY(100%); }
#reelsContainer.down .article:nth-child(2) { transform: translateY(0%); }


/* .article.moveup:nth-child(3) { transform: translateY(-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.5);
    font-size: 2em;
    text-align: center;
}

.vkmui-Logos--vk {
    fill: #1446dc;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.saved-articles {
    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.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;
}