html, body {
    font-family: var(--font-family-base);
    font-size: 62.5%;
    box-sizing: border-box;
    height: 100%;
}

@media screen {
    body {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
}


@media print {

    body {
		display: block;
		overflow: visible !important;
		overflow-y: visible !important;
    }

    body .d-flex {
        display: block !important;
    }

    .template__content    {
        display: block !important;
    }

}

h1 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    font-size: 3.42rem;
    text-rendering: optimizeLegibility;
}

h2 {
    font-family: var(--font-family-base);
    font-weight: bolder !important;
    font-size: 3.24rem;
    color: var(--secondary);
}

h3 {
    font-size: 2.16rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: 1.8rem;
}

h4 {
    font-size: 1.53rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: 1.8rem;
}

h6 {
    font-size: 1.44rem;
    color: #000;
    font-weight: var(--font-weight-bold);
}
/*
a {
    color: var(--secondary);
}

a:hover {
    color: var(--secondary);
}
*/

a button {
    cursor: pointer;
}

#site-content {
    margin-bottom: 9rem;
}

#site-content.etusivu {
    margin-bottom: 3.6rem;
}

.btn-blue {
    font-size: 1.62rem;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    padding: 2px 30px;
    color: #fff;
    background-color: var(--secondary);
    border: solid 1px var(--secondary);
    border-radius: 5px;
    margin: 5% 0;
}

.btn-blue:hover {
    background-color: #c50084;
    border-color: #c50084;
}

.btn-white {
    background-color: #fff;
    padding: 0.5em 0.9em;
    border: solid 1px rgba(0, 44, 95, 0.2);
    border-radius: 3px;
    font-size: 1.44rem;
    font-weight: bold;
    color: var(--secondary);
    height: fit-content;
}

.btn-white:hover {
    background-color: #e8f1f4;
}

.btn-lightblue {
    font-size: 1.44rem;
    font-family: var(--font-family-base);
    font-weight: bold;
    padding: 2px 20px;
    color: #fff;
    background-color: var(--primary);
    border: solid 1px var(--primary);
    border-radius: 5px;
    margin: 5% 0;
    position:absolute;
}
/*
article, aside, dialog, figcaption, figure, footer, julkinenpalvelu-header header, hgroup, main, nav, section {
    z-index: 1;
}
*/

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

    /*#site-content {
        min-height: 100%;
    }*/
    h2 {
        font-size: 2.7rem;
    }

    .row {
        margin:0;
    }

    .btn-blue {
        margin: auto;
        display: block;
        width: 100%;
    }
}


.puoluerahoitukset {
    margin-top: 3.6rem;
}

/* Extran tyylejä */

/* Extran tyylejä */

.ohjeet {
    font-weight: bold;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ohjeet .fas {
    font-size: 2.7rem;
    color: var(--primary);
    margin-left: 0.9rem;
}

.puoluerahoitukset {
    margin-top: 3.6rem;
}

hr {
    width: 100%;
    border: solid 1px var(--secondary);
}

.puoluelistaus {
    width:100%;
    display: grid;
    grid-template-columns: 33% 33% 33%;
}

.puoluelistaus a {
    color: #1e34a1;
    border-bottom:none;
}

.puoluelistaus li:before {
    content: "\f054" !important;
    color: var(--secondary) !important;
    font-weight: 900;
    font-family: "Font Awesome 5 Pro";
    display: inline-block;
    font-size: 1.26rem;
    width: 1.8rem;
    margin-left: -1.8rem;
}

span.nimi {
    color: var(--primary);
}

.actions-buttons {
    display: flex;
    justify-content: flex-end;
}

.actions-buttons a {
    margin: 0.9rem;
}

.actions-buttons a:hover {
    color: #fff;
    text-decoration: none;
}

.switch-toggle {
    float: left;
    background: #fff;
    border: solid 1px var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    position:absolute;
    top: 0.3rem;
    right: 0.3rem;
}
.switch-toggle input {
    position: absolute;
    opacity: 0;
}
.switch-toggle input + label {
    padding: 3px 10px;
    float:left;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--secondary);
    margin:0 !important;
}
.switch-toggle input:checked + label {
    background: var(--secondary) !important;
    color: #fff !important;
}

.switch-toggle label:nth-child(2)  {
    width: 30px !important;
}

.switch-toggle label:last-child {
    width: 50px !important;
    /*text-align: right;*/
}
.disabled {
    pointer-events: none;
}

.toggle-option {
    display: flex;;
    float: right;
    color: var(--secondary);
}

.toggle-cell .switch-toggle {
    right: auto;
}

input.kirjoita {
    border: none !important;
    width: 100%;
    background-color: transparent;

}

input.kirjoita-summa {
    text-align:right;
    color: var(--secondary);
}

input.kirjoita:focus {
    border: none !important;
}

input.kirjoita::placeholder {
    font-style: italic;
    color: var(--secondary);
}