/*PERUSJUTUT*/
body, html {
    background-color: rgb(245, 245, 245);
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    scroll-behavior: smooth;
}

.linkbutton {
    color: white;
    text-decoration: none;
    padding: 7px;
    background-color: rgb(23, 115, 196);
    border-radius: 5px;
}

.maincontent h1, .maincontent h2, .maincontent h3 {
    color: rgb(49, 49, 49);
}

/*MODALIT*/
#infomodal-fullscreen {
    display: none;
    float: left;
    width: 100%;
    height: 100%;
    position: fixed;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1000;
}

#infomodal {
    color: white;
    display: none;
    background-color: rgb(26, 64, 97);
    position: fixed;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    width: 60%;
    float: left;
    z-index: 1001;
    padding: 15px;
    padding-bottom: 30px;
    border-radius: 2px;
}

#modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    margin: 0;
}

#modal-head {
    margin: 0;
    word-wrap: break-word;
    width: 90%;
}

/*YLÄOSA*/

#topbar {
    background-color: rgb(26, 64, 97);
    color:#fff;
    width:100%;
    position: fixed;
    opacity: 0.95;
    margin: auto;
    overflow: hidden;
    z-index: 1000;
}

#topbar h1 {
    padding-left: 15px;
    font-size: 22px;
}

#topbar a {
    color: #fff;
    text-decoration: none;
}

#frontpic {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://assets.halminen.net/code.jpg);
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 30px;
    padding-right: 30px;
}

#pictexts {
    color: white;
    width: 70%;
}

/*PÄÄSISÄLTÖ*/
.maincontent {
    max-width: 100vw;
    background-color: rgb(245, 245, 245);
    padding-top: 10px;
    padding-bottom: 20px;
}

.maincontent h1 {
    margin-top: 0;
    padding-top: 10px;
    padding-left: 23px;
    padding-right: 23px;
    margin-bottom: 12px;
}

.maincontent p, h2 {
    padding-left: 23px;
    padding-right: 23px;
}

.services {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: auto;
    position: relative;
    z-index: 100;
}

#service {
    flex: 31.2%;
    background-color: rgb(255, 255, 255);
    margin: 10px;
    padding-top: 15px;
    padding-bottom: 30px;
    position: relative;
    box-shadow: 1px 1px 5px rgb(158, 158, 158);
    text-align: center;
    border-radius: 2px;
    border-bottom: 4px solid rgb(26, 64, 97);
    transition: box-shadow 0.5s;
}

#service h1 {
    margin-top: 0;
    padding-top: 10px;
    padding-left: 23px;
    padding-right: 23px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    transition: color 0.5s;
}

#service p, h2 {
    padding-left: 23px;
    padding-right: 23px;
}

#service:hover {
    box-shadow: 2px 2px 7px rgb(26, 64, 97);
    transition: box-shadow 0.5s;
}

#service:hover h1 {
    color:rgb(23, 115, 196);
    transition: color 0.5s;
}

#service ul {
    padding-bottom: 20px;
}

#service a {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0px;
    height: 50px;
    background-color: rgb(38, 93, 141);
    text-align: center;
    color: white;
    text-decoration: none;
    line-height: 50px;
}

.jobs {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 230px;
    overflow-x: auto;
}

.jobs::-webkit-scrollbar {
    display: none;
}

#job {
    flex: 31.2%;
    margin: 10px;
    padding-top: 15px;
    padding-bottom: 30px;
    border-radius: 5px;
    text-align: center;
}

#job img {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 100%;
    object-fit: contain;
}

/*ALAPALKKI*/
.bottom {
    max-width: 100%;
    background-color: rgb(26, 64, 97);
    background-image: url(ttten.svg);
    background-size: cover;
    padding-bottom: 130px;
    position: relative;
}

.bottom a {
    color: white;
    text-decoration: none;
}

.bottom h1 {
    font-size: 18px;
    text-align: center;
    color: white;
}

.bottom table {
    color: white;
    padding-left: 20px;
    padding-top: 20px;
    margin-bottom: 30px;
}

.bottom th {
    text-align: left;
    width: 250px;
}

#footer-logos {
    width: 64px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

.bottom #logolink {
	width: 64px;
    float:left;
    display:inline;
}

.bottom img {
	display: block;
	margin: auto;
    margin-top: 10px;
}

.bottom #credits {
    color: white;
    width: 100%;
    text-align: center;
    padding: 0;
    position: absolute;
    bottom: 5px;
    font-size: 12px;
}

/*EVÄSTESIVUN CSS*/
#cookietablecont {
    overflow-x: auto;
    width: 100%;
}

#cookietable {
    border: 2px solid black;
    border-collapse: collapse;
    margin-left: 23px;
    margin-right: 23px;
}

#cookietable td {
    border-left: 2px solid black;
    padding: 10px;
    border-bottom: 2px solid black;
}

#cookietable th {
    background-color: rgb(41, 93, 139);
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    color: white;
}

/*Mobiilikäyttökokemus (pienemmät laitteet, kuten tabletti ja puhelin)*/
@media only screen and (max-width: 600px) {

	/*YLÄOSA*/
    #pictexts {
        width: 100%;
    }

    #service {
        flex: 60%;
    }

    #job {
        flex: 30.2%;
    }

    #infomodal {
        width: 80%;
    }
}

/*Mobiilikäyttökokemus (pienemmät laitteet, kuten tabletti ja puhelin)*/
@media only screen and (max-height: 520px) {

	/*YLÄOSA*/
    #pictexts p, #pictexts a{
        display: none;
    }

    #pictexts h1 {
        display: block;
        margin-bottom: -3vh;
    }

    #job {
        flex: 45.2%;
    }
}