:root {
    --light: #ffffff;
    --dark: #333c44;
    --darkgray: #b8d3db;
    --lightgray: #f5f7f8;
    --blue: #119cc7;
    --card-shadow: 20px 20px 60px var(--lightgray);
    --square-up: 0px;
    --blue-hover: #0f86ab;
}


.btn-primary {
    --bs-btn-hover-bg: var(--blue-hover);
    --bs-btn-hover-color: var(--lightgray);
    --bs-btn-hover-border-color: var(--blue-hover);
    --bs-btn-disabled-bg: #87b8c7;
    --bs-btn-disabled-border-color: #87b8c7;
}

.btn-link {
    --bs-btn-hover-color: var(--blue-hover);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark);
    /* font-size: 20px; */
    transition: all 0.3s ease;
    background-color: var(--lightgray);
}

.smaller {
    font-size: 0.7em;
}

a {
    text-decoration: none;
    color: var(--blue);
}

h2,
h3 {
    color: var(--blue);
    font-weight: 500;
}

label,
label.form-label {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0;
}

.dark {
    color: var(--dark);
}

.darkbg {
    background-color: var(--dark);
    color: var(--light);
}

.darkbg a {
    color: var(--light);
}

.light {
    color: var(--light);
}

.lightbg,
.lightbg:hover {
    background-color: var(--light);
    color: var(--dark);
}

.darkgray {
    color: var(--darkgray);
}

.darkgraybg {
    background-color: var(--darkgray);
    color: var(--light);
}

.accordion,
.accordion-item,
button.accordion-button,
.accordion-item:first-of-type .accordion-button,
.accordion-button:not(.collapsed),
.accordion-item:first-of-type,
.accordion-item:last-of-type .accordion-button.collapsed,
.accordion-item:last-of-type {
    border-radius: var(--square-up);
    border-color: var(--light);
    background-color: var(--light);
    box-shadow: none;
}

.accordion-item,
.accordion-item:not(:first-of-type) {
    border-top: 5px solid var(--lightgray);
}

button.accordion-button,
.accordion-button:not(.collapsed) {
    color: var(--blue);
    font-weight: 800;
    font-size: 1.4rem;
}

#constructionSiteForm .accordion-item.error-is-here {
    border-color: #dc3545;
}

#constructionSiteForm .accordion-item.error-is-here .accordion-button {
    color: #dc3545;
}

.btn {
    border-radius: var(--square-up);
    transition: all 0.3s ease;
}

.btn-primary,
.ccm-block-feature-link-text .btn- {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--light);
}

.btn-link {
    color: var(--blue);
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    /* background-color: var(--parikkala-blue);
	border-color: var(--parikkala-blue); */
}

.btn-secondary.active {
    /* background-color: var(--parikkala-lightblue);
	border-color: var(--parikkala-lightblue); */
}

.btn-outline-secondary,
.btn-outline-secondary:hover {
    border-color: var(--dark);
    color: var(--dark);
    background-color: transparent;
    font-weight: 700;
}

.btn-outline-secondary:hover {
    box-shadow: var(--card-shadow);
}

input.form-control,
select.form-control,
textarea.form-control,
div.choices__inner,
select.form-select {
    border-radius: var(--square-up);
    border-color: var(--blue);
    background-color: var(--light);
    padding: .7em .5em;
}

.choices .choices__input {
    background-color: transparent;
}

.choices .choices__input::placeholder {
    color: #000;
}

.input-group span.input-group-text,
.trumbowyg-button-pane {
    background-color: #e7f5f9;
    border-color: var(--blue);
}

.trumbowyg-box.trumbowyg-editor-visible {
    border-color: var(--blue);
}

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

.form-check-input[type=checkbox] {
    border-radius: var(--square-up);
}

#sizeSelector {
    margin: 0px;
    padding: 0px;
    position: relative;
    display: flex;
}

#sizeSelector li {
    float: left;
    list-style: none;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: auto;
}

#sizeSelector button {
    background-color: transparent;
    border: none;
    padding: 0px;
    margin: 0px;
    cursor: pointer;
}

#sizeSelector li#medium {
    font-size: 125%;
    margin-bottom: -3px;
}

#sizeSelector li#large {
    font-size: 150%;
    margin-bottom: -4px;
}

#sizeSelector li.selected-letter button {
    text-decoration: underline;
}

.container.wide {
    width: 90vw;
    max-width: 1600px;
}

/* Navbar */

nav.navbar {
    z-index: 3;
    /* Giving little z-index so it shows from behind a hero video */
    background-color: var(--dark);
    color: var(--light);
    min-height: 90px;
}

nav.navbar a {
    color: var(--light);
}

nav.navbar a.dropdown-item {
    color: var(--dark);
}

nav.navbar .navbar-nav .btn {
    padding: .3rem 2rem;
}

nav.navbar .navbar-brand {
    /* padding: 2rem 2rem 0.5rem 2rem;
    margin-bottom: -6rem; */
}

.dropdown-menu {
    border-radius: var(--square-up);
    background-color: var(--light);
    border: none;
}

.dropdown-menu li a.dropdown-item {
    color: var(--dark);
}

.dropdown-menu li a.dropdown-item:hover {
    color: var(--blue);
    background-color: var(--light);
}

li a.dropdown-item.active,
li a.active {
    color: var(--blue);
    background-color: transparent;
}

.navbar-toggler i {
    color: var(--light);
}

.navbar-nav .nav-link.active {
    color: var(--blue);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--blue);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgb(17 156 199 / 10%);
}

.card {
    border-radius: var(--square-up);
    border-color: var(--light);
    box-shadow: 0px 30px 80px -40px rgba(40, 166, 223, 0.39);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    margin: 15px 15px 15px 15px;
    --e-column-margin-right: 15px;
    --e-column-margin-left: 15px;
}


.card h5 {
    color: var(--blue);
}

#siteLogo {
    height: 60px;
    width: auto;
}

@media (max-width: 568px) {
    #siteLogo {
        height: 40px;
    }

    .logo-erp-text {
        font-size: 0.7em;
    }

    .edit-marking,
    .delete-marking {
        width: 100%;
    }

    .delete-marking {
        margin-top: 0.5rem;
    }
}

.navbar-brand {
    font-weight: 800;
    font-size: 2.4em;
}

#socialIcons a,
#socialIconsMobile a {
    color: var(--dark);
    font-size: 1.75rem;
    padding: .5rem;
    border: none;
    padding-top: .75rem;
    transition: all 0.3s ease;
}

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

#socialIconsMobile {
    display: none;
    padding: .5rem .75rem;
}

#socialIconsMobile a {
    font-size: 1rem;
    padding: 0px;
}

.navbar-toggler {
    color: var(--dark);
    padding: 0px;
    border: none;
    font-size: 3rem;
    border-radius: var(--square-up);
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#toastLand {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
}

.toast,
.alert {
    border-radius: var(--square-up);
}

/* Hero area */

#pageHero.lazy video.bg-video {
    opacity: 0;
}

#pageHero {
    text-align: center;
    height: 30vh;
    min-height: 20rem;
    position: relative;
    overflow: hidden;
    display: flex;
}

#pageHero.large-hero {
    height: 70vh;
}

#pageHero h2 {
    font-size: 5em;
    font-weight: 900;
}

#pageHero .ccm-block-feature-link-text p {
    font-size: 1.5em;
}

#pageHero .ccm-block-feature-link-text p:first-of-type {
    margin-top: 4rem;
}

#pageHero .container {
    z-index: 2;
}

.bg-video-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
}

.bg-video-wrapper .bg-video {
    opacity: 1;
    /* position: absolute; */
    object-fit: cover;
    left: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    max-width: unset;
    transition: all 1.5s ease-out;
}

/* General items */

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

h2.section-header {
    font-size: 5rem;
    font-weight: 900;
}

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

.download-material-file {
    position: absolute;
    top: 0;
    left: 0;
}


/* Highlight content */

.highlight-content h2 {
    font-size: 5rem;
    font-weight: 900;
}

.highlight-content a {
    text-decoration: none;
}

.highlight-content .ccm-block-feature-link-text .btn {
    margin-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

#buttonPlace {
    position: fixed;
    width: 100%;
    z-index: 10;
    bottom: 10px;
    left: 0px;
    padding: 20px;
}

.quick-button {
    font-size: 3rem;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 30px;
    z-index: 10;
}

.quick-button.open-quick-dial {
    left: 20px;
}

.quick-button.add-new-marking {
    right: 20px;
}

.quick-button:hover {
    color: var(--blue-hover);
    cursor: pointer;
}

.modal-content {
    border-radius: var(--square-up);
}

.tts-comment:nth-child(odd) {
    background-color: var(--lightgray);
}

#mestaRow .mestalist:nth-child(even) {
    background-color: var(--lightgray);
}

@media (max-width: 768px) {

    .modal-lg,
    .modal-xl {
        --bs-modal-width: 95vw;
    }
}

/* Footer */

footer a {
    text-decoration: none;
}

/* Datatables */
div.dataTables_wrapper select {
    padding-left: 10px;
    padding-right: 30px;
}

/* Inputs*/

.label-top-margin {
    /* if we need to line button with inputs with labels */
    margin-top: 32px;
}

.user-card.user-deactivated {
    opacity: 0.5;
}

.user-card .btn-group .btn {
    border-radius: var(--square-up);
}

.user-card .progress {
    border-radius: var(--square-up);
}

/* Back to Top */
#backToTop {
    position: fixed;
    right: -2px;
    bottom: 110px;
    padding: 5px 15px;
    font-size: 2rem;
    background-color: var(--dark);
    color: var(--light);
    border-radius: var(--square-up);
    border: 2px solid var(--light);
    transition: all 0.3s ease;
    z-index: 100;
}

#backToTop:hover {
    padding: 5px 30px 5px 15px;
}

#backToTop.hiding {
    right: -80px;
}

/* Accessability settings */

body.medium {
    font-size: 1.5em;
}

body.large {
    font-size: 2em;
}

/* Dropzone */
.dropzone.processing-off .dz-progress {
    display: none;
}

.wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}

.signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 13px;
    transition: all 0.3s ease;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--lightgray);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--dark);
    /* border-radius: var(--square-up); */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

/* Mobile and other different size screen things */

@media (max-width: 1450px) {
    .container.wide {
        width: 100%;
    }
}

@media (max-width: 1350px) {}

@media (max-width: 1200px) {
    nav.navbar .navbar-brand {
        padding: .5rem;
    }
}

@media (max-width: 991px) {
    #socialIcons {
        display: none;
    }

    #socialIconsMobile {
        display: flex;
    }

    nav.navbar .container.wide {
        padding-left: 0px;
        padding-right: 0px;
    }

    nav.navbar .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav.navbar .nav-item:first-of-type {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .show > .nav-link {
        background-color: var(--dark);
        color: var(--light);
    }

    nav.navbar .navbar-nav .btn {
        padding: .5rem 2rem;
        width: 100%;
    }

    #pageHero h2 {
        font-size: 3em;
    }

    #pageHero .ccm-block-feature-link-text p {
        font-size: 1.2em;
    }

    #pageHero {
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #pageHero.large-hero {
        height: 60vh;
        min-height: 500px;
    }
}

@media (max-width: 800px) {}

@media (max-width: 500px) {}

/* Users */

/* Fontit / Fonts */

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regural.tff');
    font-weight: 100;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-ThinItalic.ttf');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-ExtraLight.ttf');
    font-weight: 200;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-ExtraLightItalic.ttf');
    font-weight: 200;
    font-style: italic;
}

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

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-LightItalic.ttf');
    font-weight: 300;
    font-style: italic;
}

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

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Italic.ttf');
    font-weight: 400;
    font-style: italic;
}

/* @font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Medium.ttf');
    font-weight: 500;
} */

/* @font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-MediumItalic.ttf');
    font-weight: 500;
    font-style: italic;
} */

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

/* @font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-SemiBoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
} */

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

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Black.ttf');
    font-weight: 900;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-BlackItalic.ttf');
    font-weight: 900;
    font-style: italic;
}