:root {
    --light: #ffffff;
    --dark: #231f20;
    --dark-overlay: rgb(16, 12, 13, .7);
    --darkgray: #7f7f7f;
    --midkgray: #bdbdbd;
    --lightgray: #f5f5f5;
    --laakkonen-red: #f51e23;
    --laakkonen-red-muted: #c50015;

    --text-tilt: -20deg;
    --card-shadow: 20px 20px 60px var(--lightgray);

    --hero-slash-width: 170px;
}

::selection {
    background-color: var(--laakkonen-red);
    color: var(--light);
}

body {
    color: var(--darkgray);
    /* font-size: 20px; */
    transition: all 0.3s ease;
    background-color: var(--lightgray);
    font-family: 'Signika';
    font-weight: 300;
}

footer {
    background-color: var(--dark);
    color: var(--light);
    min-height: 250px;
    font-size: 1.3rem;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--laakkonen-red-muted);
    color: var(--light);
}

#premiseListing,
#go_up {
    top: -150px;
    position: relative;
}

.footer-stripe-red {
    /* width: 100vw; */
    height: 10px;
    background-color: var(--laakkonen-red);
}

.footer-stripe-gray {
    /* width: 100vw; */
    height: 20px;
    background-color: var(--midkgray);
}

.text-midgray {
    color: var(--midkgray);
}

.red-bg {
    background-color: var(--laakkonen-red-muted);
    color: var(--light);
}

.red-bg .form-label,
.red-bg .form-check-label {
    color: var(--light);
    font-weight: 400;
}

.red-bg .asterisk,
.red-bg .text-muted {
    color: var(--light)!important;
}

.red-bg .btn-primary {
    background-color: var(--darkgray);
}

.red-bg a {
    color: var(--light);
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 25px;
}

a {
    color: var(--laakkonen-red);
}

button.red-link {
    color: var(--laakkonen-red);
    text-transform: uppercase;
    font-weight: bold;
    background-color: transparent;
    border: none;
    padding: 0px;
}

a.red-link {
    color: var(--laakkonen-red);
    text-transform: uppercase;
    font-weight: bold;
}

.btn {
    padding: 1rem 1.3rem !important;
    text-transform: uppercase !important;
    font-weight: 600;
}

.btn-primary,
.blog-card .blog-info .btn.btn-primary {
    background-color: var(--laakkonen-red);
    border-color: transparent;
    color: var(--light);
}

.btn-secondary,
.blog-card .blog-info .btn.btn-secondary {
    background-color: var(--darkgray);
    border-color: transparent;
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--dark);
    border-color: var(--laakkonen-red);
}

.navbar-collapse {
    background-color: var(--light);
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
    color: var(--laakkonen-red);
}

#siteLogo {
    width: auto;
    height: 90px;
    transition: all 0.3s ease;
}

#mainMenu {
    background-color: var(--light);
    top: -1px;
    padding: 0px;
    transition: all 0.3s ease;
}

.ccm-toolbar-visible #mainMenu.compact.fixed-top {
    top: 48px;
}

#mainMenu a.nav-link {
    text-transform: uppercase;
    font-weight: bold;
    padding: 38px 1.5rem;
}

#mainMenu.compact a.nav-link {
    padding: 18px 1.5rem;
}

#mainMenu a:hover,
#mainMenu a.active {
    color: var(--laakkonen-red);
}

#mainMenu.compact {
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

#mainMenu.compact #siteLogo {
    height: 50px;
    transition: all 0.3s ease;
}

#someHeaderWrapper {
    top: 120px;
}

#someHeaderWrapper a {
    color: var(--dark);
    font-size: 1.8rem;
}

#someHeaderWrapper a:hover {
    color: var(--darkgray);
}

#pageHero {
    min-height: 50vh;
    height: 50vh;
    position: relative;
}

.personell-card .image-area {
    padding-top: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#pageHero h1,
#pageHero h2,
#pageHero h3,
#pageHero h4 {
    color: var(--light);
}

#pageHero #pageHero.frontpage-hero {
    height: 80vh;
}

#pageHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--dark-overlay);
    z-index: 2;
}

#heroHeadLine::before {
    content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 567 1000'%3E%3Cpolygon points='376.76 4 557.43 4 198.65 995.93 14.94 995.93 376.76 4' fill='%23f51e23' /%3E%3C/svg%3E");
    min-height: 15px;
    display: inline-block;
    position: absolute;
    left: calc((var(--hero-slash-width) - 20px) * -1);
    height: auto;
    width: var(--hero-slash-width);
}

#heroHeadLine {
    position: relative;
    margin-left: var(--hero-slash-width);
}

#heroTextLine {
    color: var(--light);
    padding: 0px 10px;
    font-size: 1.3rem;
    text-align: left;
    -moz-transform: scale(1) rotate(0deg) translate(0px, 0px) skew(var(--text-tilt), 0deg);
    -webkit-transform: scale(1) rotate(0deg) translate(0px, 0px) skew(var(--text-tilt), 0deg);
    -o-transform: scale(1) rotate(0deg) translate(0px, 0px) skew(var(--text-tilt), 0deg);
    -ms-transform: scale(1) rotate(0deg) translate(0px, 0px) skew(var(--text-tilt), 0deg);
    transform: scale(1) rotate(0deg) translate(0px, 0px) skew(var(--text-tilt), 0deg);
}

#heroTextLine h2 {
    font-size: 4em;
    line-height: 5rem;
    color: var(--light);
}

#heroHeadLine h1,
#heroHeadLine h2,
#heroHeadLine h3,
#headerQuickContact h1,
#headerQuickContact h2,
#headerQuickContact h3 {
    color: var(--light);
}

#headerQuickContact p:last-of-type {
    margin-bottom: 0px;
}


.frontpage-first-pick-wrapper h3 {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
}

.frontpage-second-pick-wrapper h3 {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.frontpage-first-pick-wrapper h4 {
    color: var(--midkgray);
    font-weight: bold;
}

.pick-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 200px;
    height: 100%;
}

.frontpage-first-pick.pick-img {
    min-height: 500px;
}

.newest-wrapper h4 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--darkgray);
}

.red-line {
    width: calc(100%/6);
    height: 10px;
    background-color: var(--laakkonen-red);
    position: relative;
    right: 0px;
}

#newestTopics .black-line {
    width: calc(100%/2);
    height: 10px;
    background-color: var(--dark);
}

#history {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#history table {
    width: 100% !important;
    border-color: transparent;
    border-collapse: separate;
    border-spacing: 0 1em;
}

.ccm-area-block-list table tr {
    border-bottom: solid 2px grey;
}

#history table tr {
    vertical-align: top;
    margin-bottom: 20px;
}

#history table td {
    min-width: 100px;
}

.asterisk {
    color: var(--laakkonen-red);
}

.form-tab {
    display: none;
    transition: display .3s ease-in-out;
}

.form-tab.active {
    width: 100%;
    display: block;
    transition: display .3s ease-in-out;
}

.form-label {
    font-weight: bold;
    color: var(--dark);
}

.form-check-input,
.form-check-input[type=checkbox] {
    border-radius: 0px;
    padding: 0.6rem;
}

.form-check-label {
    padding: 0.17rem;
    color: var(--dark);
}

input:not([type="checkbox"]):not([type="radio"]),
.form-control,
input.form-control,
select.form-select,
textarea.form-select {
    padding: 1rem 1.3rem;
    border-radius: 0px;
}

.form-check-input:checked {
    background-color: var(--laakkonen-red);
    border-color: var(--laakkonen-red);
}

.premise-images {
    height: 60vh;
    /* overflow: hidden; */
}

.premise-card {
    display: inline-block;
    width: 100%;
}

.premise-card h4,
.premise-card h5 {
    color: var(--darkgray);
}

.premise-flag {
    position: absolute;
    bottom: 10px;
    background-color: var(--laakkonen-red);
    padding: .7rem 1.2rem;
    left: -10px;
    color: var(--light);
    font-weight: 600;
    text-transform: uppercase;
}

.premise-img {
    height: 250px;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.pagination .page-item span,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 0;
}

.page-link {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--laakkonen-red);
}

.active > .page-link,
.page-link.active {
    background-color: var(--laakkonen-red);
    border-color: var(--laakkonen-red);
    color: var(--light);
}

.page-link:hover {
    color: var(--laakkonen-red);
}

.ccm-image-slider-inner .rslides li img {
    object-fit: fill;
    object-position: 50% 50%;
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.premise-highlight {
    background-color: var(--light);
    /* color: var(--dark); */
}

.premise-highlight h1,
.premise-highlight h2,
.premise-highlight h3 {
    /* color: var(--light); */
}

.personell-card {
    text-decoration: none;
}

.personell-card a {
    display: block;
}

.contact-image {
    padding-top: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.partner-listed-logo {
    max-height: 70px;
    width: auto;
    max-width: 100%;
}

.nav-tabs .nav-link {
    padding: 1rem 1.3rem;
    color: var(--laakkonen-red);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    border-radius: 0px;
}

.nav-tabs .nav-link.active {}

.footer-laakkonen-logo img {
    height: 160px;
    width: auto;
}

/* div.ccm-area,
div.ccm-area-disabled,
div.ccm-block-edit {
    z-index: 5;
} */

#openMeganosto {
    position: sticky;
    bottom: 30px;
}

#megaNostoWrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow-y: scroll;
}

/* Fontit / Fonts */

@font-face {
    font-family: 'Signika';
    src: url('../fonts/Signika-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Signika';
    src: url('../fonts/Signika-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Signika';
    src: url('../fonts/Signika-Semibold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Signika';
    src: url('../fonts/Signika-Bold.ttf');
    font-weight: 700;
}

/* Media*/

@media (max-width: 1320px) {
    #mainMenu a.nav-link {
        padding: 1rem;
        height: auto;
    }

}

@media (max-width: 1199px) {
    #mainMenu a.nav-link {
        padding: 1rem 1.5rem;
        height: auto;
    }

    #mainMenu .collapse.show a.nav-link.active,
    #mainMenu .collapsing a.nav-link.active {
        color: var(--light);
        background-color: var(--dark);
    }

    .navbar-collapse {
        margin-top: -10px;
    }

    .navbar .container.wide {
        padding: 0;
    }
}


@media (max-width: 1119px) {
    :root {
        --hero-slash-width: 130px;
    }

    #heroTextLine {
        font-size: .9rem;
    }
}

@media (max-width: 991px) {
    #categoryButtons .btn {
        padding: 0.5rem!important;
        font-size: 0.9rem;
        font-weight: 400;
    }

    #mainMenu a.nav-link {
        padding: 1rem 1.5rem;
    }

    #heroTextLine.not-frontpage-line h2 {
        text-align: center;
    }

    #heroHeadLine::before {
        left: calc((var(--hero-slash-width) - 35px) * -1);
    }

    #openMeganosto {
        bottom: 0;
        width: 100%;
    }

    #megaNostoWrapper .container.h-100 {
        height: unset!important;
    }

    .ccm-toolbar-visible #megaNostoWrapper {
        margin-top: 48px;
        height: calc(100% - 48px);
    }
}

@media (max-width: 800px) {
    :root {
        --hero-slash-width: 80px;
    }

    #heroTextLine h2 {
        font-size: 3em;
        line-height: 4rem;
    }
}

@media (max-width: 767px) {
    :root {
        --hero-slash-width: 80px;
    }

    #heroTextLine h2 {
        line-height: 2.5rem;
    }

    #heroHeadLine::before {
        left: calc((var(--hero-slash-width) - 25px) * -1);
    }

    #heroTextLine h1,
    #heroTextLine h2,
    #heroTextLine h3 {
        margin-bottom: 25px;
    }

    .frontpage-first-pick.pick-img {
        min-height: 200px;
    }

}

@media (max-width: 500px) {

    :root {
        --hero-slash-width: 60px;
    }

    #heroTextLine h2 {
        font-size: 2em;
    }

    /* #heroHeadLine::before {
        left: calc((var(--hero-slash-width) - 50px) * -1);
    } */
}