:root {

    /* 1800*/
    --pad: clamp(15px, 10.9vw, 220px);
    --toppad: clamp(30px, 5.7vw, 110px);
    --botpad: clamp(40px, 6.3vw, 120px);

}

@media (max-width: 1500px){
    :root {
        --pad: clamp(15px, 9vw, 450px);

    }
}

@media (max-width: 1200px){
    :root {
        --pad: clamp(15px, 7vw, 450px);
        --widepad: clamp(15px, 5vw, 130px);
    }
}

@media (max-width: 900px){
    :root {
        --pad: clamp(15px, 5vw, 450px);
    }
}

body{
    color: #231F20;
    background: #F0F1F1;
}

.container{
    animation: startopa 0.5s linear forwards;
    animation-direction: alternate;
    opacity: 0;
}

@keyframes startopa {
    from {opacity: 0; }
    to { opacity: 1;}
}

.project-pads{
    padding-left: var(--pad);
    padding-right: var(--pad);   
}

.project-pads-left{
    padding-left: var(--pad);
}

.project-pads-right{
    padding-right: var(--pad);
}

.topbotpad{
    padding-top: var(--toppad);
    padding-bottom: var(--botpad);
}

.toppad{
    padding-top: var(--toppad); 
}

.botpad{
    padding-bottom: var(--botpad);
}


h1, h2, h3, h4, h5, h6{
    font-family: aptosBold;
    color: #312783;
    padding-bottom: 4px;
    padding-top: 4px;
}

h1{
    font-size: var(--font42);
}

h2{
    font-size: var(--font38);
}

h3{
    font-size: var(--font36);
}


h4{
    font-size: var(--font30);
}

h5{
    font-size: var(--font26);
}

h6{
    font-size: var(--font20);
}

p{
    font-size: var(--font18);
    padding-bottom: 1em;
    line-height: 1.35em;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal; 
    color: #312783;
}

a, li{
    font-size: var(--font16);
    color: #312783;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal; 
}

.banner-area-text h1, .banner-area-text h2, .banner-area-text h3, .banner-area-text h4, .banner-area-text h5, .banner-area-text h6, .infotext, .item-puolikas .showcase-area-item-details h3, .item-puolikas .showcase-area-item-details p, .banner-area-content p {
    color: #fff;
}

.showcase-area-item-details {
    display: flex;
    flex-direction: column;
}

.item-puolikas .showcase-area-item-details-inner, .item-kolmasosa .showcase-area-item-details-inner {
    height: 100%;
}

.item-puolikas .showcase-area-item-details, .item-kolmasosa .showcase-area-item-details {
    height: 100%;
}

.btn{
    font-size: var(--font18);
    gap: 15px;
    padding: 4px 0px 2px 0px;
    max-width: fit-content;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 50px;
    margin-bottom: 5px;
    text-transform: uppercase;
}


.btn svg{
    height: var(--font18);
    align-self: center;
    justify-self: center;
}

.button-white {
    background: #fff;
    padding: 10px 20px;
    border-radius: 0px 18px;
}

.button-white span {
    color: #1D155B;
    font-weight: 900;
}

.button-transparent {
    padding: 10px 20px;
    border-bottom: 2px solid #fff;
}

.button-transparent span {
    color: #fff;
    font-weight: 900;
}

.button-green {
    background: #95C11F;
    padding: 10px 40px 10px 20px;
    border-radius: 0px 18px;
    color: #fff;
    font-weight: 900;
}

.button-blue {
    background: #312783;
    padding: 10px 40px 10px 20px;
    border-radius: 0px 18px;
    color: #fff;
    font-weight: 900;
}

.wpcf7-submit {
    width: fit-content;
    background: #312783;
    padding: 10px 40px 10px 20px;
    border-radius: 0px 18px;
    color: #fff;
    font-weight: 900;
    font-family: 'DM Sans';
}

.maps-area-content {
    gap: 32px;
}



#nav-basic {
    padding: 16px;
}

#nav-basic-logopart img {
    padding-left: 32px;
}

#nav-basic-links-part {
    justify-self: end;
    align-self: center;
    padding-right: 32px;
}

#nav-basic-links-part a {
    color: #312783;
}

#header-nav .active a {
    color: #312783;
}

#banner-area img {
    aspect-ratio: 12 / 6;
}

.banner-area-content {
    padding-top: 16px;
    padding-bottom: 16px;
    align-self: end;
    background: transparent linear-gradient(270deg, #3127834D 0%, #312783 70%) 0% 0% no-repeat padding-box;
    min-height: 30%;
    display: flex;
    align-items: center;
}

.banner-area-text {
    color: #fff;
    gap: 18px;
    display: grid;
    width: 60%;
    padding: 24px 0px;
}
.banner-sininen {
    background: transparent linear-gradient(270deg, #3127834D 0%, #312783 70%) 0% 0% no-repeat padding-box;
}

.banner-vihrea {
    background: transparent linear-gradient(270deg, #95C11F1A 0%, #95C11F 70%) 0% 0% no-repeat padding-box;
}


.banner-area-info {
    color: white;
}

.infotext {
    padding: 8px 24px;
    border-radius: 0px 0px 0px 16px;
    margin-bottom: 16px;
    padding-right: 70px;
}

.info-vihrea {
    background-color: #95C11F;
}

.info-oranssi {
    background-color: #F39200;
}

.info-sininen {
    background-color: #00B0F0;
}

.banner-area-content {
    justify-content: space-between;
}

#info-area {
    background: #EFEFEF;
}

#info-area h1, #info-area h2, #info-area h3, #info-area h4, #info-area h5, #info-area h6, #info-area p {
    color: #1D155B;
}

#info-area h1, #info-area h2, #info-area h3, #info-area h4, #info-area h5, #info-area h6 {
    padding-bottom: 16px;
}

.info-area-content {
    gap: 32px;
}

.showcase-area-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.showcase-area-item {
    margin-bottom: 24px;
}

.item-kokonainen {
    grid-column: span 12;
    background: #EFEFEF;
    color: #312783;
    display: flex;
}

.item-puolikas {
    display: flex;
    flex-direction: column;
    grid-column: span 6;
    background: #312783;
    color: #fff;
}

.item-kolmasosa {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
    background: #EFEFEF;
    color: #312783;
}

.item-kokonainen img {
    width: 50%;
    border-radius: 0px 25px 25px 0px;
}



.item-kokonainen .showcase-area-item-details {
    align-self: center;
    padding: 32px 74px;
}

.item-puolikas .showcase-area-item-details {
    align-self: center;
    padding: 38px;
}

.item-puolikas img {
    border-radius: 0px 0px 25px 25px;
}

.item-kolmasosa .showcase-area-item-details {
    align-self: center;
    padding: 24px 42px;
}

.item-kolmasosa img {
    border-radius: 0px 0px 25px 25px;
}

.reference-card img {
    aspect-ratio: 16/9;
}

.service-area-content {
    color: #1D155B;
}

.service-area-first {
    display: flex;
    gap: 160px;
}

.service-area-text, .service-area-w7 {
    width: 100%;
}

.service-area-text h1, .service-area-text h2, .service-area-text h3, .service-area-text h4, .service-area-text h5, .service-area-text h6 {
    padding-bottom: 16px;
}

.service-area-undertext {
    max-width: 900px;
    padding: 64px 0px;
}

.service-area-underbox {
    background: #EFEFEF;
    width: 45%;
    padding: 32px;
    border-radius: 0px 25px;
}

.service-area-underbox h5 {
    padding-bottom: 16px;
}

.service-area-underbox p {
    padding-left: 16px;
    padding-bottom: 0px;
}

.service-area-underbox svg {
        max-width: 12px;
}

.service-area-underbox-item {
    display: flex;
    padding-bottom: 4px;
    align-self: flex-start;
}

.overlaydiv {
    border: #EFEFEF 3px solid;
    position: absolute;    
    z-index: -1;
}

.overlaydiv-v1 {
    height: 300px;
    width: 500px;
    transform: translateX(-48px) translateY(-48px);
}

.overlaydiv-v2 {
    height: 300px;
    width: 32%;
    transform: translateX(23%) translateY(150%);
}

.overlaydiv-v3 {
    height: 6%;
    width: 52%;
    transform: translateX(51%) translateY(-15px);
}

.overlaydiv-v4 {
    height: 400px;
    width: 80%;
    transform: translateX(38%) translateY(355px);
}

.overlaydiv-v5 {
    height: 500px;
    width: 60%;
    transform: translateX(-22px) translateY(-22px);
}

.overlaydiv-v6 {
    height: 300px;
    width: 57%;
    transform: translateX(38%) translateY(-22px);
}

.wpcf7 {
    width: 100%;
    padding: 32px;
    background: #95C11F;
}

.wpcf7-submit {

}

.wpcf7-form h5 {
    padding-bottom: 8px;
}

.reference-choice-content {
    display: grid;
}

.reference-card {
    background: #312783;
}
.reference-card-content h5, .reference-card-content p {
    color: #fff;
}


.reference-card-content {
    padding: 16px 32px;
}

.reference-choice-textarea {
    padding: 16px 0px;   
}

#categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

#categories p {
    text-transform: uppercase;
}

.categ {
    cursor: pointer;
}

.categ.active {
    border-bottom: 1px solid #312783;
}

.contact-item-img {
    aspect-ratio: 1/1;
    border: 1px solid #312783;
    border-radius: 50%;
    width: 200px;
    margin-right: 8px;
}

.contact-area-item {
    display: flex;
    align-items: center;
    gap: 26px;
}

.contact-area-items {
    gap: 16px;
}

.contact-area-content h2 {
    padding-bottom: 16px;
}

.contact-area-item-details a {
    font-size: var(--font18);
}

.contact-area-content h2, .maps-area-text h2 {
    padding-bottom: 16px;
}

.contact-area-item-details {
    height: 100%;
}

/*Custom fix*/

.contact-area-item-details p {
    padding-bottom: 6px;
}

/* */

#gallery-area {
    padding-top: 0;
}

.ref-area-title, .ref-area-text h5, .ref-area-text p, .ref-area-gallery h5 {
    padding: 16px 8px;
}

.ref-area-text, .reference-area-text p {
    max-width: 800px; 
}

.contact-form-area {
    position: relative;
}


.overlaydiv-contactform {
    width: 531px;
    height: 345px;
}

footer {
    background: #312783;
    padding-top: 64px;
    padding-bottom: 64px;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6, .footer-content a{
    color: #fff;
}

footer p {
    color: #C7D7DE;
}

footer p {
    max-width: 600px;
}

.footer-title {
    padding-bottom: 8px;
}

.footer-content a {
    width: fit-content;
    padding: 4px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-pages {
    display: flex;
    border-top: 1px solid #5F52C8;
    border-bottom: 1px solid #5F52C8;
    gap: 26px;
    margin-bottom: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.sub-menu {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #312783;
}

.sub-menu li a {
    color: #fff;
    text-decoration: none;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mySlides {
    position: absolute;
    width: 80%;
    top: 0;
    left: 10%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1;
    height: 100%;
}

.mySlides.active {
    opacity: 1;
    z-index: 3;
}

.mySlides img {
    cursor: pointer;
    height: 100%;
}

.mySlides.prev-slide {
    opacity: 0.6;
    transform: translateX(-102%);

    z-index: 2;
    cursor: pointer;
}

.mySlides.next-slide {
    opacity: 0.6;
    transform: translateX(102%);

    z-index: 2;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 100;
    background-color: #27389682;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: #273896;
    color: white;
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
  }
  
  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }
  

/*Samppi*/ 
@media (max-width: 1700px) {
    .overlaydiv-v2 {
        height: 300px;
        width: 460px;
        transform: translateX(17%) translateY(140%);
    }
    .overlaydiv-v4 {
        height: 400px;
        width: 80%;
        transform: translateX(40%) translateY(296px);
    }  
}

@media (max-width: 1600px) {
    .overlaydiv-v2 {
        height: 300px;
        width: 460px;
        transform: translateX(10%) translateY(130%);
    }
    .overlaydiv-v4 {
        height: 400px;
        width: 80%;
        transform: translateX(40%) translateY(296px);
    }  
    .contact-area-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1500px) {
    .overlaydiv-v2 {
        height: 300px;
        width: 460px;
        transform: translateX(5%) translateY(117%);
    }
}

@media (max-width: 1400px) {
    .overlaydiv-v3 {
        height: 400px;
        width: 52%;
        transform: translateX(59%) translateY(-15px);
    }   
    .overlaydiv-v4 {
        height: 400px;
        width: 80%;
        transform: translateX(41%) translateY(252px);
    }
    .overlaydiv-v6 {
        height: 300px;
        width: 60%;
        transform: translateX(38%) translateY(-22px);
    }
}

@media (max-width: 1200px) {
    .overlaydiv-v2 {
        height: 300px;
        width: 400px;
        transform: translateX(-12px) translateY(-15px);
    }
    .overlaydiv-v4 {
        height: 400px;
        width: 80%;
        transform: translateX(44%) translateY(258px);
    }
    .overlaydiv-v6 {
        height: 300px;
        width: 63%;
        transform: translateX(38%) translateY(-22px);
    }
} 

@media (max-width: 1000px) {
    .service-area-first {
        flex-direction: column;
    }
    .service-area-text, .wpcf7, .service-area-underbox {
        width: calc(100% - var(--pad) var(--pad));
    }
    .overlaydiv-v3 {
        height: 400px;
        width: 52%;
        transform: translateX(67%) translateY(-15px);
    }   
    .overlaydiv-v4 {
        height: 400px;
        width: 80%;
        transform: translateX(28%) translateY(254px);
    }
    .contact-area-items {
        grid-template-columns: repeat(1, 1fr);
    }
    .contact-area-item-details {
        width: 100%;
    }
}

@media (max-width: 800px) {
    #banner-area {
        display: block;
    }
    .banner-area-content {
        display: block;
    }
    .banner-area-text {
        width: 100%;
    }
    .banner-area-text .button-white {
        margin-bottom: 24px;
    }
    .item-kokonainen {
        flex-direction: column;
    }
    .item-kokonainen img, .item-puolikas img, .item-kolmasosa img {
        width: 100%;
        border-radius: 0px 0px 25px 25px;
    }
    .item-kokonainen .showcase-area-item-details, .item-puolikas .showcase-area-item-details, .item-kolmasosa .showcase-area-item-details {
        padding: 38px;
    }
    .item-puolikas, .item-kolmasosa {
        grid-column: span 12;
    }
    .footer-pages {
        flex-direction: column;
    }
    .overlaydiv-v3 {
        height: 400px;
        width: 52%;
        transform: translateX(75%) translateY(-15px);
    }   
    .overlaydiv-v6 {
        height: 300px;
        width: 66%;
        transform: translateX(38%) translateY(-22px);
    }
}

@media (max-width: 600px) {
    .slideshow-container {
        height: auto;
    }
    .overlaydiv-v1 {
        height: 200px;
        width: 300px;
    }
    .overlaydiv-v2 {
        height: 200px;
        width: 300px;
    }
    .overlaydiv-v3 {
        display: none;
    }   
}

@media (max-width: 400px) {

}

.btn:hover svg, .bigbtn svg{
    animation: sarrow 0.3s infinite linear;
    animation-direction: alternate;
}

@keyframes sarrow {
    from {margin-left: 0px;}
    to {margin-left: 8px;}
}