/* --------------------------------------------------------------
# Interesting facts generator
-------------------------------------------------------------- */

.facts-generator {
    align-self: start;
}

.facts-generator [hidden] {
    display: none !important;
}

.facts-category-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.facts-category-select {
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    margin-bottom: 24px;
    padding: 0 46px 0 18px;
    font: inherit;
    font-size: 16px;
    color: #272746;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
}

.facts-category-select:hover,
.facts-category-select:focus {
    border-color: #d8d2e8;
}

.facts-card {
    position: relative;
    margin-bottom: 24px;
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(46, 40, 80, .05);
}

.facts-card--swap {
    animation: facts-card-in .22s ease-out;
}

@keyframes facts-card-in {
    from {
        opacity: .35;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facts-card__eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #8158df;
    text-transform: uppercase;
}

.facts-card__title {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #77758b;
}

.facts-card__text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #272746;
}

.facts-card__source {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.4;
    color: #77758b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.facts-card__source:hover {
    color: #4343a0;
}

.facts-empty {
    margin-bottom: 24px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #77758b;
    text-align: center;
    background: rgba(255, 255, 255, .65);
    border-radius: 16px;
}

.facts-error {
    margin-bottom: 20px;
}

.facts-content-footer {
    justify-content: flex-start;
}

.facts-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

.facts-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media screen and (max-width: 640px) {
    .facts-category-select {
        height: 54px;
    }

    .facts-card {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .facts-card__text {
        font-size: 20px;
    }
}
