/* Fonts */
@font-face {
    font-family: 'TheSansYota';
    src: url('../fonts/TheSansYota-W5Plain.woff2') format('woff2'),
    url('../fonts/TheSansYota-W5Plain.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TheSansYota';
    src: url('../fonts/TheSansYota-W7Bold.woff2') format('woff2'),
    url('../fonts/TheSansYota-W7Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* Body */
body {
    -webkit-font-smoothing: antialiased; /* Fix fat fonts on the MacOS */
}

/* Root */
.b-longread-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 54px 0 0;
    font-size: 10px;
    color: #434c5d;
    background: #fff;
}

@media (max-width: 1900px) {
    .b-longread-root {
        font-size: 0.5vw;
    }
}

@media (max-height: 900px) {
    .b-longread-root {
        font-size: 1vh;
    }
}

@media (max-width: 640px) {
    .b-longread-root {
        font-size: 2vw;
    }
}

/* Logo */
.b-longread-logo__img {
    display: block;
    max-width: 100%;
    width: 8.4em;
    height: auto;
}

/* Header */
.b-longread-header {
    position: relative;
    z-index: 100;
    flex: 0 0 auto;
    height: 1px;
}

.b-longread-header__content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    width: 130em;
    margin: 0 auto;
    padding: 0 1.5em;
}

@media (max-width: 640px) {
    .b-longread-header {
        height: auto;
    }
}

/* Content */
.b-longread-content {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 6em 0;
}

.b-longread-content__start,
.b-longread-content__end {
    position: relative;
    flex: 1 1 auto;
}

.b-longread-content__center {
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 130em;
}

.b-longread-content__center > * {
    max-width: 100%;
}

@media (max-width: 640px) {
    .b-longread-content__start,
    .b-longread-content__end {
        display: none;
    }
}

/* Bg */
.b-longread-bg {
    position: absolute;
    top: 50%;
    max-width: 100%;
    width: 40em;
    height: 100%;
    font-size: 1em;
    opacity: 0;
    transform: translate(0, -50%);
    transition: opacity 1.2s;
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 120% auto;
}

.b-longread-bg--active {
    opacity: 1;
}

.b-longread-bg--left {
    right: 0;
    background-position-x: 0;
}

.b-longread-bg--right {
    left: 0;
    background-position: 100%;
}

/* Card */
.b-longread-card {
    max-width: 100%;
    width: 102em;
    min-height: 46em;
    margin: 0 0 5em;
    padding: 2em 2.4em 1.5em;
    border: 0.4em solid #00aeef;
    border-radius: 2em;
}

.b-longread-card--wide {
    width: 120em;
}

.b-longread-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1.5em;
    padding: 0 2.5em;
}

.b-longread-card__content {
    padding: 2.5em 2.5em 2em;
    color: #717174;
    background: #e5f7fd;
    border-radius: 1em;
}

.b-longread-card__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5em 0 0;
}

.b-longread-card__img-container {
    max-width: 100%;
}

.b-longread-card__img {
    display: block;
    max-width: 100%;
    height: auto;
}

.b-longread-card__text {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.b-longread-card__text p {
    font: normal 500 2.4em/1.38 'TheSansYota', sans-serif;
    letter-spacing: 0.005em;
}

.b-longread-card__text--large p {
    font-size: 2.5em;
    line-height: 1.5;
}

.b-longread-card__text a {
    text-decoration: underline;
}

.b-longread-card__text a:hover {
    text-decoration: none;
}

@media (max-width: 640px) {
    .b-longread-card {
        min-height: 0;
        padding-right: 2em;
        padding-left: 2em;
    }

    .b-longread-card__header {
        flex-direction: column;
    }

    .b-longread-card__content {
        padding-right: 2em;
        padding-left: 2em;
    }

    .b-longread-card__text br {
        display: none;
    }
}

/* Button */
.b-longread-btn {
    display: flex;
    align-items: center;
    min-width: 22em;
    max-width: 100%;
    height: 8em;
    padding: 1em 2.4em 1em 1.4em;
    color: #00aeef;
    background: #fff;
    border: 0.4em solid #00aeef;
    border-radius: 3.7em;
    transition-property: color, background-color;
    transition-duration: 0.3s;
}

.b-longread-btn:focus {
    outline: none;
}

@media (min-width: 641px) {
    .b-longread-btn:hover {
        color: #fff;
        background: #00aeef;
    }
}

.b-longread-btn__icon {
    display: block;
    width: 4.8em;
    height: auto;
    margin: 0 1.6em 0 0;
}

.b-longread-btn__title {
    font: normal 700 2em/1 'TheSansYota', sans-serif;
    letter-spacing: 0.005em;
}

/* Buttons */
.b-longread-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: -2em 0 0 -2em;
}

.b-longread-btns__btn {
    margin: 2em 0 0 2em;
}
