/**
 * @file
 * Subtheme specific CSS.
 */

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-Light.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-ExtraBold.ttf") format("truetype");
    font-weight: 900;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/Funnel_Sans/static/FunnelSans-ExtraBoldItalic.ttf") format("truetype");
    font-weight: 900;
    font-style: italic;
}

html #page-wrapper {
    font-family: "Funnel Sans", Helvetica, sans-serif;
    color: #333;
    font-size: 17px;
    text-align: center;
}

#page-wrapper button,
#page-wrapper input,
#page-wrapper optgroup,
#page-wrapper select,
#page-wrapper textarea {
    font-family: "Funnel Sans", Helvetica, sans-serif;
    border-radius: 0px !important;
}

#page-wrapper .content p,
#page-wrapper .content ul {
    margin-bottom: 2rem;
}

#page-wrapper a,
#page-wrapper .link {
    color: #2740a4;
    text-decoration: none;
}

#page-wrapper a:hover,
#page-wrapper a:focus,
#page-wrapper .link:hover,
#page-wrapper .link:focus {
    text-decoration: underline;
}

#page-wrapper .btn-primary {
    background: #2740a4;
    color: #fff;
    border: 2px solid #2740a4;
    padding: 10px 20px;
    font-weight: bold;
}

#page-wrapper .page-link {
    background: #2740a4;
    color: #fff;
    border: 2px solid #2740a4;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 0px !important;
}

#page-wrapper .active>.page-link,
#page-wrapper .page-link.active {
    color: #fff !important;
}

#page-wrapper .btn-secondary {
    background: #fff;
    color: #2740a4;
    border: 2px solid #2740a4;
    padding: 10px 20px;
    font-weight: bold;
}

#page-wrapper .btn-primary:hover,
#page-wrapper .btn-primary:focus #page-wrapper .btn-secondary:hover,
#page-wrapper .btn-secondary:focus {
    background: #000 !important;
    color: #fff !important;
}

#page-wrapper .nav-link {
    color: #333 !important;
}

.history-back-link,
.more-link a {
    padding: 10px 20px;
    background: #fff;
    color: #2740a4 !important;
    border: 2px solid #2740a4;
    padding: 10px 20px;
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    font-weight: bold;
    transition: all 0.3s;
}

.history-back-link:hover,
.history-back-link:focus,
.more-link a:hover,
.more-link a:focus {
    background: #000 !important;
    color: #fff !important;
}

.history-back-link::before {
    content: '\e5c4';
    padding-right: 7px;
    font-family: 'Material Icons Outlined';
}

.more-link a::after {
    content: '\e5c8';
    padding-left: 7px;
    font-family: 'Material Icons Outlined';
}

#page-wrapper img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    margin-bottom: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before,
h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: '';
    margin: 0px 10px;
    width: 40px;
    border-bottom: 3px solid;
    font-size: inherit;
    color: inherit;
    height: 100%;
    display: block;
}

ul.pagination {
    display: flex;
    flex-wrap: wrap;
}

a.visually-hidden-focusable {
    background: #fff;
}

.content ul {
    margin: auto;
    width: fit-content;
    text-align: left;
}

/* HEADER */

nav#navbar-top {
    background-color: #2740a4;
    padding-bottom: 0px;
    padding-top: 10px;
    margin-bottom: 15px;
}

nav#navbar-top .block,
nav#navbar-top .block a {
    color: #fff;
}

nav#navbar-top .mb-3 {
    margin-bottom: 0px !important;
}

nav#navbar-main {
    background-color: #fff;
    padding-bottom: 0px;
    padding-top: 0px;
}

.navbar-brand {
    width: 220px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 85px;
    margin: 0px;
    padding: 0px;
}


.views-row {
    padding-left: 0px;
    padding-right: 0px;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" class="bi bi-list" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/></svg>');
    width: 1.9em;
    height: 1.9em;
}

.navbar-toggler {
    border: none !important;
}


/*FEATURED TOP*/

.featured-top .container {
    max-width: 100%;
    padding: 0px;
    border-bottom: 8px solid #2740a4;
    min-height: 50px;
}

.featured-top .block {
    padding-left: 0px;
    padding-right: 0px;
}

.view-id-kuvat.view-display-id-block_1 img {
    border-top: 8px solid #2740a4;
    min-width: 100%;
    height: 600px;
    max-height: 600px;
    object-fit: cover;
}


/*MAIN*/

#main {
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
}

#block-kannuksenkuljetus-barrio-page-title {
    position: absolute;
    left: 0px !important;
    margin-top: -130px;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#block-kannuksenkuljetus-barrio-page-title h1.title::before,
#block-kannuksenkuljetus-barrio-page-title h1.title::after {
    display: none;
}

#block-kannuksenkuljetus-barrio-page-title h1.title {
    display: flex;
    background: #2740a4;
    padding: 20px 40px;
    color: #fff;
    width: fit-content;
}


/*FEATURED BOTTOM*/
.featured-bottom {
    background: #2740a4;
    color: #fff;
}

.featured-bottom .block {
    color: #fff;
    padding: 40px 0px;
}

.view-id-kuvat.view-display-id-block_2 .flexslider {
    border: none !important;
    margin: 0px !important;
    background-color: #2740a4;
    display: flex;
    flex-direction: column;
}

.view-id-kuvat.view-display-id-block_2 .slides {
    margin: 0px;
    display: flex;
    background: #000;
}

.view-id-kuvat.view-display-id-block_2 .slides li {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.view-id-kuvat.view-display-id-block_2 .slides li * {
    max-height: 100%;
}

.view-id-kuvat.view-display-id-block_2 .slides img {
    width: 100% !important;
    height: 100% !important;
    max-height: 600px;
    object-fit: contain;
}

.flex-control-nav {
    bottom: 0px !important;
    z-index: 99;
    display: flex;
    justify-content: center;
    order: 1;
}

.flex-control-nav li {
    margin: 0px !important;
    padding: 10px 6px !important;
    background-color: #fff !important;
}

.flex-control-nav li:first-child {
    background-color: transparent !important;
    padding-left: 20px !important;
    background-size: cover;
    background-position: left;
}

.flex-control-nav li:last-child {
    background-color: transparent !important;
    padding-right: 20px !important;
    background-size: cover;
    background-position: right;
}

.flex-direction-nav {
    width: 100% !important;
    display: flex;
    justify-content: center;
    margin: 0px !important;
    margin-top: -10px !important;
    padding-bottom: 10px;
}

.flex-direction-nav a {
    height: 50px !important;
}

.flexslider .flex-direction-nav a {
    display: block;
    opacity: 1;
    top: 0px !important;
    position: relative !important;
    width: 35px;
}

.flex-direction-nav .flex-prev {
    left: 0px !important;
}

.flex-direction-nav .flex-next {
    right: 0px !important;
}

.flex-direction-nav a::before {
    padding: 4px;
}

.flex-direction-nav a.flex-prev::before {
    font-size: 0px;
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/></svg>');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2f2f2f;
    border: 0px solid #000;
    border-radius: 50% 0% 0% 50%;
}

.flex-direction-nav a.flex-next::before {
    font-size: 0px;
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2f2f2f;
    border: 0px solid #000;
    border-radius: 0% 50% 50% 0%;
}

.flex-control-thumbs li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.flex-control-thumbs li img {
    height: 100% !important;
    width: 200px;
    object-fit: contain;
    background: #000;
}


/*FOOTER*/

footer.site-footer {
    background: #000;
    font-family: "Funnel Sans", Helvetica, sans-serif;
    letter-spacing: initial;
    font-size: initial;
    padding: 40px 0px;
    margin-top: 100px;
}

footer .site-footer__bottom {
    margin-top: 0px;
    border: none;
}

.site-footer__bottom .region {
    margin-left: 0px;
    margin-right: 0px;
}

footer.site-footer .content {
    color: #fff;
    letter-spacing: initial;
    font-size: initial;
}

.site-footer__bottom .block h2 {
    margin: revert;
}

.site-footer h2 {
    color: inherit !important;
}

@media screen and (max-width:991px) {}

@media screen and (max-width:767px) {}