﻿*, *:after, *:before {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

body {
    margin: 8px;
}

button {
    border: none;
}

.tiedote-holder a[id] {
    display: block;
    height: 90px; /* this is the height of your header */
    margin-top: -85px; /* this is again negative value of the height of your header */
    visibility: hidden;
}

.btn-no-styling {
    background: none;
    border: none;
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

#blazor-error-ui {
    background: #fbe2e2;
    bottom: 10px;
    border-radius: 5px;
    border: 1px solid #b32121;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    right: 10px;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 30%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5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pbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.palkka-nav-link {
    cursor: pointer;
}

.content-padding {
    padding-top: 30px;
}

.validation-message {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #960505;
}

a {
    color: #047857;
    text-decoration: none;
}


/* LOADER */

.loader-holder {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #047857;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.input-info-container {
    max-height: 0px;
    padding: 0;
    transition: max-height 250ms ease-in-out,padding 50ms ease-in-out;
    overflow: hidden;
}

.input-info-text {
    background: #F9FAFB;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.05);
    padding: 14px 24px;
}

*[infoparent] input:focus ~ .input-info-container,
*[infoparent] label:focus-within ~ .input-info-container {
    max-height: 400px;
    padding: 1px 3px 3px 1px;
}

label {
    position: relative;
}

    label[required]::after {
        content: '*';
        position: absolute;
        left: 100%;
    }

/** Etusivujen otsikot **/

.index-info-title, .kotitalous-info-title, .yritys-info-title, .tyontekijat-info-title, .harjoittelu-info-title {
    height: auto;
    align-self: stretch;
    flex-grow: 0;
    font-size: 3em;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: -1.5px;
    text-align: left;
    color: #000000;
    font-family: 'Inter-ExtraBold', Sans-serif;
    margin-top: 0.2em;
}

    .index-info-title .text-style-1,
    .kotitalous-info-title .text-style-1,
    .yritys-info-title .text-style-1,
    .tyontekijat-info-title .text-style-1,
    .harjoittelu-info-title .text-style-1 {
        color: #047857;
    }

.index-info-container,
.kotitalous-info-container,
.yritys-info-container,
.tyontekijat-info-container,
.harjoittelu-info-container {
    margin-top: 68px;
}

.index-info-content,
.kotitalous-info-content,
.yritys-info-content,
.tyontekijat-info-content,
.harjoittelu-info-content {
    flex-grow: 0;
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: left;
    color: #4b5563;
    margin-top: 20px;
}

@media (max-width: 999.98px) {
    .index-info-title, .kotitalous-info-title, .yritys-info-title, .tyontekijat-info-title, .harjoittelu-info-title {
        font-size: 2.5em;
    }
}


@media (max-width: 799.98px) {
    .index-info-title, .kotitalous-info-title, .yritys-info-title, .tyontekijat-info-title, .harjoittelu-info-title {
        height: auto;
        align-self: stretch;
        flex-grow: 0;
        font-size: 2em;
        font-stretch: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: -1.5px;
        text-align: left;
        color: #000000;
        font-family: 'Inter-ExtraBold', Sans-serif;
    }

        .index-info-title .text-style-1,
        .kotitalous-info-title .text-style-1,
        .yritys-info-title .text-style-1,
        .tyontekijat-info-title .text-style-1,
        .harjoittelu-info-title .text-style-1 {
            color: #047857;
        }

    .index-info-content,
    .kotitalous-info-content,
    .yritys-info-content,
    .tyontekijat-info-content,
    .harjoittelu-info-content {
        flex-grow: 0;
        font-size: 20px;
        font-weight: normal;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.4;
        letter-spacing: normal;
        text-align: left;
        color: #4b5563;
        margin-top: 20px;
    }

    .newsletter-item-title {
        font-size: 3.5vw;
        font-weight: 800;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: left;
        align-self: stretch;
        padding: 0;
    }
}

@media (max-width: 450px) {
    .index-info-title, .kotitalous-info-title, .yritys-info-title, .tyontekijat-info-title, .harjoittelu-info-title {
        height: auto;
        align-self: stretch;
        flex-grow: 0;
        font-size: 9vw;
        font-stretch: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: -1.5px;
        text-align: left;
        color: #000000;
        font-family: 'Inter-ExtraBold', Sans-serif;
    }

        .index-info-title .text-style-1,
        .kotitalous-info-title .text-style-1,
        .yritys-info-title .text-style-1,
        .tyontekijat-info-title .text-style-1,
        .harjoittelu-info-title .text-style-1 {
            color: #047857;
        }

    .index-info-content,
    .kotitalous-info-content,
    .yritys-info-content,
    .tyontekijat-info-content,
    .harjoittelu-info-content {
        flex-grow: 0;
        font-size: 4vw;
        font-weight: normal;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.4;
        letter-spacing: normal;
        text-align: left;
        color: #4b5563;
        margin-top: 20px;
    }

    .newsletter-item-title {
        font-size: 6vw;
        font-weight: 800;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: left;
        align-self: stretch;
        padding: 0;
    }

    body {
        margin: 0px;
    }
}

.highlight {
    font-weight: bolder;
    position: relative;
}
/*.row-error::after {
    content: '!';
    font-size: 1.3em;
    text-align: center;
    font-weight: bolder;
    position: absolute;
    left: -400px;
    top:20%;
    width: 25px;
    height: 25px;
    background-color: red;
    color: white;
    border-radius: 100vh;
}

.highlight::before {
    content: '✎';
    font-size: 1.7em;
    text-align: center;
    font-weight: bolder;
    position: absolute;
    left: 140px;
    top: 10%;
    width: 25px;
    height: 25px;
    background-color: transparent;
    color: black;
    border-radius: 100vh;
}*/

table[kokoelma] {
    width: 100%;
    border-collapse: collapse;
}

span.code-red {
    color: red;
}

table[kokoelma] td.row-error {
    border: 2px solid red;
    border-radius: 2px;
}

table[kokoelma] td:nth-of-type(1) {
    width: 50%;
}

table[kokoelma] td[elakeotsikko] {
    text-align: center;
    font-size: 1.2em;
}

table[kokoelma] td:nth-of-type(2) {
    width: 50%;
}

table[kokoelma] > tbody > tr > td {
    padding: 1rem;
}


table[kokoelma] > tbody > tr:nth-of-type(2n) {
    background-color: #D5D7D8;
}

.select-valinta[kokoelma] {
    margin-top: 10px;
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    border: solid 1px #d1d5db;
    background-color: #fff;
}
