*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: pan-y;
}

body{
    font-family:Candara, Georgia, 'Times New Roman', Times, Verdana, sans-serif;
    overflow-x: hidden; min-height: 100vh;
}


button:hover, a:hover {opacity: 60%;}

a{text-decoration: none; padding:  3vmin; color: black;}

html{scroll-behavior: smooth;}

/*-----------Nav-----------*/
nav{display: inline;}

#menu a{color: rgb(255, 255, 255);}

nav.sticky{
    position: fixed;
    top: 1.5vmin;
    right: 1.5vmin;
    background-color: rgb(30, 46, 118);
    background-size: cover;
    padding: 1vmin;
    border: 1px solid black;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    z-index: 2;
}

.navbar{
    font-size: 2vmin;
    padding: 4vmin;
    text-align: right;
    background-color: rgb(15, 55, 100);
}

.button{
    position: relative;
    z-index: 1;
}

.button::after{
    content: "";
    position: absolute;
    width: 100%;
    margin-top: 2.5vmin;
    height: 3.5vmin;
    background-color: rgb(0, 0, 0);
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 200ms ease-in;
    border: 1px black solid;
    border-radius: 40px;
}

.button-one::after{
    transform: scaleX(0);
    transform-origin: right;
}
.button-one:hover::after{
    transform:scaleX(1);
    transform-origin: left;
}

.button-two::after{
    transform: scaleX(0);
    transform-origin: right;
}

.button-two:hover::after{
    transform:scaleX(1);
    transform-origin: left;
}

.button-three::after{
    transform: scaleX(0);
    transform-origin: right;
}

.button-three:hover::after{
    transform:scaleX(1);
    transform-origin: left;
}

.button-four::after{
    transform: scaleX(0);
    transform-origin: right;
}
.button-four:hover::after{
    transform:scaleX(1);
    transform-origin: left;
}

.button-five::after{
    transform: scaleX(0);
    transform-origin: right;
}
.button-five:hover::after{
    transform:scaleX(1);
    transform-origin: left;
}
/*-----------Nav-----------*/

/*-----------Home-----------*/
.Home_page{
    min-height: 100vh;
    width: 100%;
    background-color: rgb(15, 55, 100);
}

.grid_home{
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "item-9 item-8";
    padding-top: 15vmin;
    min-height: 100vh;
}

.item-8{
    background-image: url(images/profile3.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    grid-area: item-8;
    margin-right: 10px;
    margin-top: 50px;
}

.item-9{
    font-size: 2.5vmin;
    margin-left: 4vmin;
    grid-area: item-9;
    text-align: center;
    color: white;
    margin-top: 15vmin;
}

@media (max-width: 60em) {
    .grid_home {
        min-height: 50vh;
        gap: 1vmin;
        background-size: contain;
        margin-left: 10%;
        margin-right: 10%;
        justify-content: center;
        display:block;
        text-align: center;
        place-content: center;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "item-8"
        "item-9";
    }
}

@media (max-width: 60em) {
    .item-8{
        margin-top: 5vmin;
        padding: 40vmin;    
        margin-right: auto;
        width: 100%
    }  
}
/*-----------Home-----------*/

/*-----------Projects-----------*/
.Projects{
    font-size: 9vh;
    text-align: center;
    font-weight: 400;
    min-height: 100vh;
    background-color: rgb(20, 66, 114);
    color: white;
}

.grid_projects{
    display: grid;
    font-size: 2vmin;
    justify-content: space-evenly;
    padding-left: 2vmin;
    padding-right: 2vmin;
    grid-template-columns: 1fr 1fr;
    gap: 1vmin;
    place-items: center;
}

@media (max-width: 40em) {
    .grid_projects {
        display:block;
        text-align: center;
    }
}

.external{background-image: linear-gradient(to right, #2741ebcc, #3b48dbcc, #2305a9cc);}

#external_a a{color: white;}

.item-4{
    padding: 8vmin;
    background-image: url(images/project4.PNG);
    font-size: 5vmin;
    background-repeat: no-repeat;
    background-size: cover;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
}

.item-4:hover{
    transform: scale(1.1);
    transition: 1s;
}

.item-5{
    padding: 15vmin;
    background-color: rgb(255, 255, 255);
    font-size: 1vmin;
    color: #000000;
}

.item-6{
    padding: 15vmin;
    background-color: rgb(255, 255, 255);
    font-size: 1vmin;
    color: #000000;
}

.item-7{
    padding: 15vmin;
    background-color: rgb(255, 255, 255);
    font-size: 1vmin;
    color: #000000;
}
/*-----------Projects-----------*/

/*-----------Experience-----------*/
.Experience{
    color: white;
    font-size: 8vmin;
    text-align: center;
    font-weight: 800;
    min-height: 210vh;
    background-color: rgb(32, 82, 149);
}

.experience_header0{
    padding: 2vmin;
    font-size: 8vmin;
    position: relative;
    z-index: 1;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
}

.container_experience{
    margin-left: 0;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.container_experience::after{
    content:"";
    position: absolute;
    width: 30vmin;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: -16.46vmin;
    bottom: 0;
    left: 20vmin;
    box-shadow: 0px 10px 30px black;
}

.container_experience::before{
    content:"";
    position: absolute;
    width: 0;
    height: 24vmin;
    border: 1px dashed black;
    border-radius: 1000%;
    z-index: 0;
    top: -16.3vmin;
    bottom: 0;
    left: 50vmin;
    box-shadow: 0px 10px 30px black;
}

.grid_experience{
    width: 100%;
    display: grid;
    box-sizing: border-box;
    gap: 10vmin;
    justify-items: center;
    align-items: center;
    grid-template-areas: 
    "item-1"
    "item-2" ; 
    font-size: 2vmin;
    text-align: center;
}

.timeline_education{
    position: relative;
    height: 88%;
}

.timeline_education::after {
    content: '';
    position: absolute;
    width: 0px;
    top: 8vmin;
    bottom: 0;
    left: 0;
    border: 2px solid rgb(42, 41, 41);
    border-radius: 10%;
}

.container_education{
    margin-left: 0;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.container_education::after{
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgb(255, 255, 255);
    border: 2px solid #000000;
    border-radius: 50%;
    z-index: 1;
    top: 8vmin;
    bottom: 0;
    left: -15px;
    background-image:url(images/mortarboard.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2.3px;
    background-position-y: 4px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_education::before{
    content:"";
    position: absolute;
    width: 1000%;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 8vmin;
    bottom: 0;
    left: 15px;
    box-shadow: 0px 10px 30px black;
}

.container_education_JAMK{
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-left: 0; 
}

.container_education_JAMK::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    left: 0;
    box-shadow: 0px 10px 30px black;
}

.container_education_JAMK::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    left: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/jamk.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2px;
    background-position-y: 10px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_education_steiner{
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-left: 0;
}

.container_education_steiner::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    left: 0;
    box-shadow: 0px 10px 30px black;
}

.container_education_steiner::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    left: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/book.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2px;
    background-position-y: 4px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_education_other{
    position: relative;
    background-color: inherit;
    width: 100%; 
    margin-left: 0;
}

.container_education_other::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    left: 0;
    box-shadow: 0px 10px 30px black;
}

.container_education_other::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    left: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/license.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2px;
    background-position-y: 3px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.content_education{
    background-color: #2c2b2b;
    display:block;
    line-height: 3vmin;
    margin-left: 50px;
    border: 1px solid black;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    padding: 1vmin;
    display: block;
    position: relative;
    z-index: 1;
    text-align: center;
    font-style: oblique;
}

.experience_header1{  
    padding: 2vmin;
    font-size: 4vmin;
    position: relative;
    z-index: 1;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
}

.timeline_work{
    position: relative;
}

.timeline_work::after {
    content: '';
    position: absolute;
    width: 0;
    top: 7vmin;
    bottom: 10vmin;
    right: 0;
    border: 2px solid rgb(42, 41, 41);
    border-radius: 10%;
}

.container_work_experience{
    margin-left: 0;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.container_work_experience::before{
    content:"";
    position: absolute;
    width: 0;
    height: 22.7vmin;
    border: 1px dashed black;
    border-radius: 10000%;
    z-index: 0;
    top: 6.9vmin;
    bottom: 0;
    left: 0;
    box-shadow: 0px 10px 30px black;
}

.container_work{
    margin-right: 10vmin;
    position: relative;
    background-color: inherit;
    width: 80%;
}

.container_work::after {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #000000;
    border-radius: 50%;
    z-index: 1;
    top: 8vmin;
    bottom: 0;
    right: -15px;
    background-image:url(images/briefcase.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2.3px;
    background-position-y: 1.5px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_work::before{
    content:"";
    position: absolute;
    width: 1000%;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 7.91223931vmin;
    bottom: 0;
    right: 15px;
    box-shadow: 0px 10px 30px black;
}

.container_work_k{
    margin-right: 10vmin;
    position: relative;
    background-color: inherit;
    width: 100%;   
}

.container_work_k::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    right: 0;
    box-shadow: 0px 10px 30px black;
}

.container_work_k::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    right: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/Kesko-Logo.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2px;
    background-position-y: 1.5px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_work_e{
    margin-right: 10vmin;
    position: relative;
    background-color: inherit;
    width: 100%;
    height: 100%;
}

.container_work_e::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    right: 0;
    box-shadow: 0px 10px 30px black;
}

.container_work_e::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    right: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/church.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-x: 2.5px;
    background-position-y: 1px;
    background-color: rgb(255, 255, 255);
    transform: translate(0,-50% );
}

.container_work_c{
    margin-right: 10vmin;
    position: relative;
    background-color: inherit;
    width: 100%;   
}

.container_work_c::after {
    content:"";
    position: absolute;
    width: 20vw;
    height: 0;
    border: 1px dashed black;
    border-radius: 10px;
    z-index: 0;
    top: 50%;
    bottom: 0;
    right: 0;
    box-shadow: 0px 10px 30px black;
}

.container_work_c::before {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 100%;
    z-index: 1;
    top: 50%;
    right: -15px;
    box-shadow: 0px 10px 30px black;
    transform: translate(0,-50% );
    background-image:url(images/caverion.png);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position-x: 0.2px;
    background-position-y: 0.5px;
    background-color: rgb(245, 245, 245);
    transform: translate(0,-50% );
}

.content_work{
    background-color: #2c2b2b;
    display:block;
    line-height: 3.5vmin;
    margin-right: 50px;
    border: 1px solid black;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    display:block;
    position: relative;
    z-index: 1;
    text-align: center;
    font-style: oblique;
}

.heading1{
    font-weight: 1000;
    padding-bottom: 10px;
    font-style: normal;
}

.experience_header{
    padding: 2vmin;
    font-size: 3vmin;
    position: relative;
    z-index: 1;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
}

@media (max-width: 40em) {
    .grid_experience {
        text-align: center;
        text-align: center;
        text-align: center;
        place-content: center;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "item-1"
        "item-2" ; 
    }
}
/*-----------Experience-----------*/

/*-----------About-----------*/
.About{
    text-align: center;
    font-size: 10vmin;
    font-weight: 400;
    min-height: 100vh;
    background-color: rgb(44, 116, 179);
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 100%;
    color: white;
}

.grid_about{
    width: 100%;
    display: grid;
    box-sizing: border-box;
    gap: 1vmin;
    justify-items: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "item-10 item-11" ; 
}

.item-10 {
    font-size: 2vmin;
    line-height: 4vmin;
    word-spacing: 2px;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 3vmin;
    grid-area: item-10;
    margin-left: 2vmin;
    margin-bottom: 2vmin;
    color:white;
}
 
.item-10::before{
    content: "";
    background-color: rgb(0, 0, 0);
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 50px;
    box-shadow: 0px 10px 30px black;
    position: absolute;
    inset: 0;
    opacity: 60%;
    background-size: cover;
}

.hello{
    font-size: 4vmin;
    position: relative;
} 
.text-about{
    position: relative;
}

.item-11{
    background-image: url(images/about.jpg);
    background-repeat: no-repeat;
    height: 60vmin;
    width:50vmin;
    background-size: cover;
    grid-area: item-11;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 50px;
    box-shadow: 0px 10px 30px black;
    margin-bottom: 2vmin;
}

@media (max-width: 40em) {
    .About {
        min-height: 140vh;
    }
}

@media (max-width: 40em) {
    .grid_about {
        grid-template-columns: 1fr;
        grid-template-areas: 
        "item-10"
        "item-11" ; 
    }
}

@media (max-width: 40em) {
    .item-11 {
        height: 10em;
        width: 90%;
    }
}
/*-----------About-----------*/

/*-----------Contact-----------*/
.Contact{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgb(201, 224, 232);
    padding: 0;
    width: 100%;
}

.contact_me{
    top: 10vmin;
    display: flex;
    position: absolute;
    font-size: 5vmin;
    font-weight: 300;
}

.contact_sqaure{
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 1vmin;
    
}

.contact_sqaure span{
    position: absolute;
    inset: 0;
    border: 2px solid black;
    opacity: 0.5;
}

.contact_sqaure span:nth-child(1){
    border-radius: 62% 38% 80% 20% / 50% 66% 34% 50% ;
    animation: animateSquare 6s linear infinite;
}

.contact_sqaure span:nth-child(2){
    border-radius: 47% 53% 48% 52% / 31% 52% 48% 69%  ;
    animation: animateSquare 8s linear infinite;
}

.contact_sqaure span:nth-child(3){
    border-radius: 48% 52% 61% 39% / 51% 77% 23% 49%  ;
    animation: animateSquare2 10s linear infinite;
}

@keyframes animateSquare{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

@keyframes animateSquare2{
    0%
    {
        transform: rotate(360deg);
    }
    100%
    {
        transform: rotate(0deg);
    }
}

.contact_profile img{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px black solid;
    top: 2vmin;
    
}

.contact_info{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 1vmin;
    overflow: hidden;
    padding: 20px;
    gap: 10px;
}

.linkedin{
    background-image: url(images/linkedin.png);
    width: 50px;
    height: 50px;
    background-size: contain;
    border-radius:50%;
    border: 1px black solid;
    background-color: white;
    position: relative;
    display: flex;
}

.linkedin:hover{
    opacity: 70%;
    transform: scale(1.2);
}

.mail{
    background-image: url(images/email.png);
    width: 50px;
    height: 50px;
    background-size: contain;
    border-radius:50%;
    border: 1px black solid;
    background-color: white;
    position: relative;
    display: flex;
}

.mail:hover{
    opacity: 70%;
    transform: scale(1.2);
}

.contact_bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px 50px;
    background: rgb(8,95,119);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_bottom .waves{
    position: absolute;
    left: 0;
    bottom: 0;
    top: -100px;
    width: 100%;
    height: 100px;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
    background-size: contain;
    background-size: 1000px 100px;

}

.contact_bottom .waves#wave1{
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animate 3.5s linear infinite;
}

.contact_bottom .waves#wave2{
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animate2 4.5s linear infinite;
}

.contact_bottom .waves#wave3{
    z-index: 998;
    opacity: 0.2;
    bottom: 15px;
    animation: animate 5.34s linear infinite;
}

.contact_bottom .waves#wave4{
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animate2 6.234s linear infinite;
}

@keyframes animate{
    0%
    {
        background-position-x: 1000px ;
    }
    100%
    {
        background-position-x: 0px ;
    }
}

@keyframes animate2{
    0%
    {
        background-position-x: 0px ;
    }
    100%
    {
        background-position-x: 1000px ;
    }
}
/*-----------Contact-----------*/

@media (max-width: 40em) {
    .item-4 , .item-5 , .item-6 , .item-7 , .item-8 , .item-9 {
        display:block;
        text-align: center;
        margin-left: auto;
    }
}
