:root {
    --pun: #d5362e;
    --vihr: #91a476;
}

p::selection, h1::selection, h2::selection, h3::selection, a::selection {
    background: rgb(136, 37, 37);
}

.navbar a:visited {
    color: black;
}

a:hover {
    color: rgb(136, 37, 37) !important;
}



@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0%);
    }
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
}

nav {
    background-color: var(--vihr);

    display: flex;
    align-items: center;
}

nav a {
    color: black;
}

.desktop ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

nav ul li {
    list-style-type: none;

    color: black;
    font-size: 2rem;
}

a {
    text-decoration: none;
}

.logos {
    padding: 1rem;
    width: 100%;
}

.logos img {
    width: 20%;
    padding-left: 0.5rem;
}

.desktop {
    display: none;
}

.brgr {
    display: flex;
    align-items: center;

    margin-right: 1rem;

    width: 15%;
}

.close img {
    width: 7%;
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.brgr img {
    width: 80%;
}

.banner img {
    width: 100%;
}

.header {
    text-align: center;
}

h1 {
    font-family: "PT Serif", sans-serif;
    font-weight: 400;
    font-size: 1.350rem;
    padding-inline: 3rem;
}

.hero button {
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;

    background-color: black;

    border-radius: 0.5rem;

    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 0.675rem;
}

button a {
    color: white;
}

.heta {
    margin-top: 2rem;

    text-align: center;

    font-family: "PT Serif", sans-serif;
}

.heta img {
    width: 100%;
}

.heta p {
    padding-inline: 2rem;
}

.vastuut {
    background-color: var(--vihr);

    margin: 1rem;
    padding: 0 1rem 1rem 0;
    border-radius: 0.5rem;

    text-align: left;
}

.vastuut h3 {
    padding: 1rem 0 0 1rem;
}

.vastuut ul li {
    padding-bottom: 0.5rem;
    font-weight: 400;
}

.menu {
    background-color: var(--vihr);
    opacity: 0.98;

    position: fixed;
    top: 0;
    right: 0;
    overflow-x: hidden;

    width: 0;
    height: 100%;

    text-align: center;

    transition: 0.5s;

    padding-top: 5rem;

    z-index: 10;
}

.menu ul {
    margin-top: 5rem;
    padding: 0;
}

.menu li {
    list-style-type: none;
    margin-top: 5rem;
}

.menu li a {
    text-decoration: none;
    text-decoration: underline;
    color: black;

    font-size: 2rem;
}

.vaaliteemat {
    text-align: center;
    position: relative;
}

.vaaliteemat p {
    padding-inline: 2rem;
}

.vaaliteemat h1 {
    font-size: 2rem;
}

.vaaliteemat button {
    background-color: rgb(34, 34, 34);    
    color: white;
}

.op p[data-state="open"], .tyo p[data-state="open"] {
    display: block;
}

.vaaliteemat button::after {
    content: "\25BC";
}

.vaaliteemat button[data-toggle="on"]:after {
    content: "\25B2";
}

.op p, .tyo p {
    display: none;
}

@media only screen and (min-width: 1026px)  {

    .navbar {
        width: 70%;
        height: 100%;
        margin-right: 20rem;
    }

    .logos {
        width: 30%;
    }
/* 
    .logos img {
        width: 5%;
    } */

    .brgr {
        display: none;
    }

    .desktop {
        display: block;
    }

    .hero {
        display: flex;
    }

    .banner {
        width: 60%;
    }

    .banner img {
        width: 100%;
    }

    .header {
        width: 40%;

        text-align: center;

        margin-top: 5rem;
    }

    .header h1 {
        font-size: 3.125rem;
        padding-inline: 2rem;
    }

    .hero button {
        padding: 1.5rem 2.5rem 1.5rem 2.5rem;

        font-size: 1.5rem;
    }

    .heta {
        display: flex;
        flex-direction: row-reverse;

        height: 110%;
        margin-top: 3rem;
    }

    .heta img {
        width: 35%;
        height: 100%;
    }

    .desc {
        width: 65%;
        margin-top: 7rem;
    }


    .desc h2 {
        font-size: 3rem;
    }

    .desc p {
        font-size: 1.325rem;
        padding-inline: 9rem;
    }

    .vastuut {
        display: flex;
        justify-content: space-evenly;
    }

    .luotot h3, .koulut h3 {
        font-size: 1.5rem;
    }

    .luotot ul li, .koulut ul li {
        font-size: 1.325rem;
        font-weight: 400;
    }

    .koulut {
        margin-right: 5rem;
    }

    .vaaliteemat p {
        padding-inline: 10rem;
        font-size: 1.325rem;
    }

    .vaaliteemat h1 {
        font-size: 3rem;
    }

    .vaaliteemat h2 {
        margin-top: 4rem;

        position: relative;
    }

    .temp {
        text-align: center;
    }
    
    .temp h1 {
        font-size: 4rem;
    }
}