@font-face {
    font-family: 'Typewriter';
    src: url('../fonts/type.woff2') format('woff2');
}

*, *:before, *:after, a {
    box-sizing: border-box;
    outline: none;
}

html {
    font-size: 100%;
}

body {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background-color: #000000;
    font-family: 'Typewriter';
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
}

a:link, a:visited, a:focus, a:hover {
    outline: none;
    text-decoration: none;
    color: #A38872;
}

input, textarea, button, select {
    outline: none;
    font-family: 'Typewriter';
    font-size: 100%;
    -webkit-appearance: none;
}

.delimeter_1rem { width: 100%; height: 1rem; }
.delimeter_2rem { width: 100%; height: 2rem; }

.center_800_to_320 {
    margin:0 auto;
    display: block;
    width: 100%;
    max-width: 800px;
}

.center_740_to_320 {
    margin:0 auto;
    display: block;
    width: 100%;
    max-width: 720px;
}

#menu_gap {
    width: 100%;
    height: 96px;
}

/* видео фон */
.bg_video {
    position: fixed;
    top: calc(50% + 6rem);
    left: 50%;
    min-width: 100%;
    min-height: 100vh;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);

    background-image: url(../images/askstalin_video.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#bg_dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -95;
    background: rgba(0,0,0,0.7);
}

#bg_papers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -90;
    background-image: url(../images/askstalin_bg.png);
    background-size: 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.main_body {
    width: 100%;
}

.block_next_line_text {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.block_next_line {
    width: 100%;
    text-align: center;
    animation: move_arrow 1s infinite alternate;
}

#block_next {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-image: url(../images/down_icon.svg);
    background-size: 1.5rem auto;
    background-position: bottom center;
    background-repeat: no-repeat;
    cursor: pointer;
}

@keyframes move_arrow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.archive_header {
    position: relative;
    width: 100%;
    background-image: url(../images/askstalin_port_mob.png);
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.archive_header:before{
    content: "";
    display: block;
    padding-top: 35%;
}

.archive_paper {
    width: 100%;
    position: relative;
    padding: 46px;
    color: rgba(0, 0, 0, 0.8);
}

.archive_paper::before {
    position: absolute;
    content: '';
    inset: 0;
    background: #fed;
    border-radius: 4px 4px 4px 4px;
    filter: url(#wobble);
    z-index: -10;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 1);
    background-image: url(../images/oldpaper.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* шкаф */
.archive_cabinet {
    position: relative;
    width: 100%;
    background-image: url(../images/archive.jpg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.8);
}

.archive_cabinet:before{
    content: "";
    display: block;
    padding-top: 100%;
}

.archive_cabinet_row {
    position: absolute;
    width: 100%;
    left: 0;

    display: -webkit-flex;
    display: flex;

    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;

    -webkit-justify-content: space-between;
    justify-content: space-between;
}

#archive_cabinet_row1 {
    height: 27%;
    top: 0;
}

#archive_cabinet_row2 {
    height: 23%;
    top: 27%;
}

#archive_cabinet_row3 {
    height: 23%;
    top: 50%;
}

#archive_cabinet_row4 {
    height: 27%;
    top: 73%;
}

.archive_cabinet_cell {
    width: 33%;
    cursor: pointer;
}

.archive_cabinet_cell_empty {
    width: 33%;
}

/* шкаф для мобильных */
.archive_cabinet_mob {
    position: relative;
    width: 100%;
    background-image: url(../images/archive_mob.jpg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.8);
    display: none;
}

.archive_cabinet_mob:before{
    content: "";
    display: block;
    padding-top: 184%;
}

.archive_cabinet_mob_row {
    position: absolute;
    width: 100%;
    left: 0;

    display: -webkit-flex;
    display: flex;

    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;

    -webkit-justify-content: space-between;
    justify-content: space-between;
}

#archive_cabinet_mob_row1 {
    height: 22%;
    top: 0;
}

#archive_cabinet_mob_row2 {
    height: 18%;
    top: 22%;
}

#archive_cabinet_mob_row3 {
    height: 19%;
    top: 40%;
}

#archive_cabinet_mob_row4 {
    height: 19%;
    top: 59%;
}

#archive_cabinet_mob_row5 {
    height: 22%;
    top: 78%;
}

.archive_cabinet_mob_cell {
    width: 50%;
    cursor: pointer;
}



/* карточка */
.card_page_layer {
    width: 100%;
    position: absolute;
    left: 0;
    top: 730px;
    z-index: 50;
    padding-bottom: 2rem;
    display: none;
}

.card_animate {
    animation-name: animate-pop;
    animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
    animation-duration: 0.5s;
}

@keyframes animate-pop {
    0% {
        opacity: 0;
        transform: scale(0.1, 0.1);
    }

    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}

#card_page {
    position: relative;
    cursor: pointer;
}

.card_page_photo {
    position: absolute;
    left: 5%;
    top: 0;
    width: 45%;
    padding: 16px;
    background-color: #FFFFFF;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    transform: rotate(4deg);
    border-radius: 3px;
    background-image: url(../images/oldpaper2.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.card_page_image {
    width: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 3px;
    opacity: 0.8;
    mix-blend-mode: luminosity;
}

.card_page_image:before{
    content: "";
    display: block;
    padding-top: 75%;
}

.card_page_skrepka {
    position: absolute;
    left: 25%;
    top: -40px;
    width: 10%;
    height: 80px;

    background-image: url(../images/skrepka.png);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

.card_page_photo_place {
    display: inline-block;
    width: 55%;
    float: left;
}

.card_page_photo_place:before{
    content: "";
    display: block;
    padding-top: 65%;
}

.card_page_close_line {
    width: 100%;
    margin-top: 32px;
    text-align: center;
}

.card_page_close {
    display: inline-block;
    cursor: pointer;
    border: 1px solid #000000;
    padding: 8px;
    border-radius: 8px;
}

.block_share_line_text {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.block_share_line {
    width: 100%;
    text-align: center;
}

#block_share {
    display: inline-block;
    opacity: 0.7;
}

.block_view_link_line {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.block_view_link_line a {
    width: 100%;
    text-align: center;
    color: #000000;
}

.block_view_link {
    display: inline;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #000000;
}

.block_view_trailer_header {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.block_view_trailer {
    width: 100%;
    border-radius: 16px;
    background-color: #000000;
}

.block_view_trailer_text {
    margin-top: 2rem;
}

.block_view_trailer .plyr {
    width: 100%;
    border-radius: 16px;
}

#block_lit {
    font-size: 80%;
    opacity: 0.8;
}

#block_button {
    display: block;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 70;
    width: 15vw;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.8);
    line-height: 0;
    border-radius: 8px;
    border: 1px solid #A38872;
}

#block_button img {
    width: 100%;
    border-radius: 8px;
}

@media all and (min-width: 1px) and (max-width: 800px) {
    #menu_gap { height: 64px; }
    .center_800_to_320 { padding-left: 1rem; padding-right: 1rem; }
    .center_740_to_320 { padding-left: 1.8rem; padding-right: 1.8rem; }
    .archive_paper { padding: 16px; font-size: 90%; }
    .archive_cabinet { display: none; }
    .archive_cabinet_mob { display: block; }
    .card_page_photo { padding: 8px; }
    .card_page_skrepka { width: 20%; top: -20px; height: 40px; }
    .block_share_line { margin-bottom: 1rem; }
    #block_button { bottom: 16px; right: 16px; width: 40vw; }
}