body {
    font-weight: 300;
    background-image: url(../images/bg-blue.jpg);
    background-size: cover;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 400;
}

.form-control:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(21, 21, 45, 0.5);
    border-color: var(--secondary);
}

.btn {
    text-transform: none !important;
    font-weight: 400;
}

.btn-outline-light {
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
    color: var(--dark) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: var(--light) !important;
    border-color: var(--light) !important;
    color: var(--dark) !important;
}

.btn-secondary {
    padding: 0.7rem 1.6rem !important;
}

.divider {
    display: block;
    position: relative;
    top: 100%;
    transform: none;
    height: auto;
    background-image: none;
    background-size: auto;
    background-repeat: no-repeat;
    pointer-events: none;
}

.divider::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    z-index: 10;
    display: block;
    padding-top: 22.421875%;
    background-image: url(../images/divider-u-beige.svg);
    background-repeat: no-repeat;
}

.custom-font h1,
.custom-font h2,
.custom-font h3,
.custom-font h4,
.custom-font h5,
.custom-font h6 {
    font-family: "EB Garamond", serif;
}

.fa-pencil::before {
    content: "\f040" !important;
}

img, iframe {
    border-radius: 1rem;
}

blockquote {
    border-color: var(--secondary);
}

.slick-pause-icon {
    display: none;
}

/*admin css*/
.admin-page-settings a,
.display-4 .admin-blockactions {
    font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {

    .fade-elem,
    .highlightbox-aw-block .item,
    .block-staffListSelect .content {
        opacity: 0;
        transition: transform 2000ms ease, opacity 0.9s;
        transform: translateY(150px);
    }
    
    .fade-elem.loaded,
    .highlightbox-aw-block .item.loaded,
    .block-staffListSelect .content.loaded {
        opacity: 1;
        transform: translateY(0);
        animation-delay: 0s;
    }

}

@media (min-width: 1280px) {

    .container {
        max-width: 1220px;
    }

    body,
    p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1.2rem !important;
    }

}

@media (min-width: 1400px) {

    .container {
        max-width: 1340px;
    }

    h1, .h1,
    .display-4 h1,
    .display-4 h2,
    .display-4 h3,
    .display-4 h4 {
        font-size: 3.5rem;
    }

    h2, .h2 {
        font-size: 2.75rem;
    }

    h3, .h3 {
        font-size: 2rem;
    }

    h4, .h4 {
        font-size: 1.75rem;
    }

    h5, .h5 {
        font-size: 1.5rem;
    }

    h6, .h6 {
        font-size: 1.25rem;
    }

    .custom-font.h3 {
        font-size: 3rem;
    }

}

@media (max-width: 1199px) {

    h1, .h1,
    .display-4 h1,
    .display-4 h2,
    .display-4 h3,
    .display-4 h4 {
        font-size: 2.5rem;
    }

    h2, .h2 {
        font-size: 2rem;
    }

    h3, .h3 {
        font-size: 1.75rem;
    }

    h4, .h4 {
        font-size: 1.5rem;
    }

    h5, .h5 {
        font-size: 1.25rem;
    }

    h6, .h6 {
        font-size: 1.1rem;
    }

}

@media (max-width: 1024px) {

    blockquote {
        font-size: 1rem !important;
    }

    .btn {
        font-size: 1rem !important;
    }

    /*
    .divider::after {
        padding-top: 29.71497877501516%;
        background-image: url(../images/viiri-2560-pieni-2-mobile.svg);
    }
    */

}

@media (max-width: 991px) {

    .custom-font.h3 {
        font-size: 2.5rem;
    }

}

@media (max-width: 575px) {

    h1, .h1,
    .display-4 h1,
    .display-4 h2,
    .display-4 h3,
    .display-4 h4 {
        font-size: 2rem;
    }

}

@media (max-width: 479px) {

    h1, .h1,
    .display-4 h1,
    .display-4 h2,
    .display-4 h3,
    .display-4 h4 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.55rem;
    }

    h3, .h3 {
        font-size: 1.35rem;
    }

    h4, .h4 {
        font-size: 1.3rem;
    }

    h5, .h5 {
        font-size: 1.2rem;
    }

    h6, .h6 {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem !important;
    }

}