*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: pan-y;        /* for better mobile experience */        
}

body{
    font-family:Candara, Georgia, 'Times New Roman', Times, Verdana, sans-serif;
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}

button:hover, a:hover {opacity: 60%;}

a{text-decoration: none; padding:  3vmin; color: black;}

html{
    scroll-behavior: smooth;
    height: 100%;
}

.header_font{
    font-family: Cinzel,Georgia;
    font-size: calc(8px + 3vw + 3vh);
}

/*-----------Nav-section-starts-----------*/
#initials{
    background-color:transparent ;
    font-size:calc(16px + 2vw + 2vh);
    font-family: 'Dancing Script', cursive;
    position: absolute;     
    top: -2px;      /* web site logo isn't fixed stays only at the top of the page */
    left: -2px;     /* opens up email to contact me  */
    border: white 2px solid;
}

#initials:hover{
    opacity: 70%;
    transform: scale(1.2);
}

#initials a{color: white;}

nav{display: inline;}

#menu a{color: rgb(255, 255, 255);}

nav.sticky{
    position: fixed;
    top: 1rem;
    right: calc(8px + 1vw);
    background-color: rgb(30, 46, 118);
    background-size: cover;
    border: 1px solid black;
    border-radius: 20px;
    box-shadow: 0px 2px 5px black;
    z-index: 1002;
    padding: 0.5em;   
}

.navbar{
    font-size:calc(12px + 0.6vw + 0.6vh);
    text-align: right;
    background-color: rgb(9, 34, 63);
    padding-top: 4vh;
}

@media (max-width: 40em) {
    .navbar {
        font-size:calc(8px + 1vw + 1vh);
        padding-top: 3em;
    }
    .button{
        position: relative;     
        z-index: 1;
        padding: 0;
        padding-left: calc(0.5vw + 0.5vh);
        padding-right: calc(0.5vw + 0.5vh);
        text-align: center;
        display: block;
        
    }
}

.button{
    position: relative;
    z-index: 1;
    padding: 0;
    padding-left: calc(0.5vw + 0.5vh);
    padding-right: calc(0.5vw + 0.5vh);
    text-align: center;
}

/*Nav button animations*/

.button:hover{
    position: relative;
    z-index: 1;    
}

.button::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: transform 250ms ease-in;
    border: 1px black solid;
    border-radius: 40px;
    text-align: center;
    font-weight: 100;
    font-family: Cinzel , Arial, Helvetica, sans-serif;
}

.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-section-ends-----------*/

/*-----------Home-section-starts-----------*/
.Home_page{
    width: 100%;
    overflow: hidden;
    background: linear-gradient(rgb(9, 34, 63),rgb(20, 66, 114));
  }

.grid_home{
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "item-9 item-8";
    min-height: 96vh;
    padding-top: 2vmin;
}

.item-8{
    background-image: url(images/profile3.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
    grid-area: item-8;
    margin-right: 0.2em;
    margin-top: 10vmin;
    
}

.item-9{
    font-size: calc(8px + 1vw + 1vh);
    grid-area: item-9;
    text-align: center;
    color: white;
    margin-top: 15vmin;
}

.item-9 p{
    padding-top: 1em;
}
#kirjotus2{
    font-size: 1.8em;
    font-weight: 450;
}


@media (max-width: 80em) {
    .grid_home {
        margin-top: 1em;
        display:block;
        text-align: center;
    }
        .item-8{
            margin-top: 5.5vmin;
            padding: 45vmin;
            width:fit-content;
            margin-left: auto;
            margin-right: auto;
        } 
        .item-9{
            margin-top: 10rem;
        }
}


/*-----------Home-section-ends-----------*/

/*-----------Projects-section-starts-----------*/
.Projects{
    font-size: calc(8px + 3vw + 3vh);
    text-align: center;
    font-weight: 400;
    min-height: 100vh;
    color: white;
    background: linear-gradient(rgb(20, 66, 114),rgb(32, 82, 149));
}

.grid_projects{
    display: grid;
    font-size: 2vmin;
    justify-content: space-evenly;
    padding-left: 2vmin;
    padding-right: 2vmin;
    grid-template-columns: 1fr 1fr;
    gap: calc(8px + 1vw + 1vh);
    place-items: center;
    padding-top: calc(8px + 2vw + 2vh);
}

@media (max-width: 90em) {
    .grid_projects {
        display:grid;
        text-align: center;
        grid-template-columns: 1fr;
        padding-left: 20%;
        padding-right: 20%;
        padding-top: 4em;
    }
}

.external{background-image: linear-gradient(to right, #25262acc, #37383ecc, #151518cc);
}

#external_a a{color: white;}
#external_b a{color: white;}    /* text color on top of project objects */
#external_c a{color: white;}
#external_d a{color: white;}

.item-4{
    padding: calc(8px + 3vw + 3vh);
    background-image: url(images/CSS.png);
    font-size: calc(8px + 2vw + 2vh);
    background-repeat: no-repeat;
    background-size: cover;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    white-space: nowrap;
    text-shadow: 1px 2px 1px rgb(0, 0, 0) ;
}

.item-4:hover{
    transform: scale(1.1);
    transition: 1s;
}

.item-5{
    padding: calc(8px + 3vw + 3vh);
    background-image: url(images/python.png);
    font-size: calc(8px + 2vw + 2vh);
    background-repeat: no-repeat;
    background-size: cover;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    white-space: nowrap ;
    text-shadow: 1px 2px 1px rgb(0, 0, 0) ;
}

.item-5:hover{
    transform: scale(1.1);
    transition: 1s;
}

.item-6{
    padding: calc(8px + 3vw + 3vh);
    background-image: url(images/ps.jpg);
    font-size: calc(8px + 2vw + 2vh);
    background-repeat: no-repeat;
    background-size: cover;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    white-space: nowrap ;
    text-shadow: 1px 2px 1px rgb(0, 0, 0) ;
}

.item-6 span {
    text-shadow: none; /* Disable shadow for gradient spans */
    display: inline-block; /* Ensure it behaves correctly */
}

.item-6:hover{
    transform: scale(1.1);
    transition: 1s;
}

.item-7{
    padding: calc(8px + 3vw + 3vh);
    background-image: url(images/db.jpg);
    font-size: calc(8px + 2vw + 2vh);
    background-repeat: no-repeat;
    background-size: cover;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 100px;
    box-shadow: 0px 10px 30px black;
    white-space: nowrap ;
    text-shadow: 1px 2px 1px rgb(0, 0, 0) ;

}

.item-7:hover{
    transform: scale(1.1);
    transition: 1s;
}
/*-----------Projects-section-ends-----------*/

/*-----------Experience-section-starts-----------*/
.Experience{
    color: white;
    font-size: calc(8px + 1vw + 1vh);
    text-align: center;
    font-weight: 800;
    padding-bottom: 1em;
    background: linear-gradient(rgb(32, 82, 149),rgb(43, 97, 144));
    padding-top: 1em;
}

.experience_header0{
    font-size: calc(8px + 4vw + 4vh);
    padding-top: 1em;
    padding-bottom: 1em;
    z-index: 1;
    display: inline-block;
    font-weight: 500;
    background: transparent;
    
}
.item-2{
    font-size: calc(8px + 1vw + 1vh);
    font-weight: 200;
}

.item-2 p{line-height: calc(12px + 1vw + 1vh);}

.item-1{
    font-size: calc(8px + 1vw + 1vh);
    font-weight: 200;
    line-height: calc(12px + 1vw + 1vh);
}
.item-1 p{line-height: calc(12px + 1vw + 1vh);}

@media (max-width: 60em) {
    .item-2{
        font-size: calc(8px + 1vw + 1vh);
        font-weight: 200;
        padding: 0.5em;
    }
    .item-1{
        font-size: calc(8px + 1vw + 1vh);
        font-weight: 200;
    }
    .item-1 p, .item-2 p{           /* using calc so that the size of the text */
        padding: 0.5em;             /* stays redable even when window is resized */
    }
    .item-1 h3, .item-2 h3{
        padding: 0.5em;
    }
    .heading1{
        line-height: 1em;
    }
}

.container_experience{
    margin-left: 0;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.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;
    margin-left: 2em;
}

.timeline_education{
    position: relative;
    height: 88%;
    margin-left: -1em;
}

@media (max-width: 65em) {
    .timeline_education{
        position: relative;
        height: 86%;
        margin-left: -1em;
    }
}

.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%;
}

@media (max-width: 50em) {
    .container_education{
        margin-left: 0;
        position: relative;
        background-color: inherit;
        width: 100%;
        margin-right: -8em;
    }                               /* readjusting for smaller resolutions */
}           
@media (max-width: 35em) {
    .container_education{
        margin-left: 0;
        position: relative;
        background-color: inherit;
        width: 100%;
        margin-right: -10em;
    }
}


.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_JAMK{
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-left: 0; 
}

.container_education_JAMK::after {
    content:"";
    position: absolute;
    width: 15vw;
    height: 0;
    border: 1px dashed #ffffff;
    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: 15vw;
    height: 0;
    border: 1px dashed rgb(255, 255, 255);
    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: 15vw;
    height: 0;
    border: 1px dashed rgb(255, 255, 255);
    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: 4;
    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-left: white 2px solid;
    border-radius: 30px;
    box-shadow: 0px 10px 30px black;
    padding: 1vmin;
    display: block;
    position: relative;
    z-index: 1;
    text-align: center;
    font-style: oblique;
}

.experience_header1{  
    display: inline-block;
    font-size: calc(8px + 2vw + 2vh);
    position: relative;
    z-index: 1;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    background:transparent;
    top: 0;
    font-weight: 200;
    transform: translate(0% , -20%);
    margin-bottom: 1em;
}

.timeline_work{
    position: relative;
}

.timeline_work::after {
    content: '';
    position: absolute;
    width: 0px;
    top: 11vmin;
    bottom: 13vmin;
    right: 0;
    border: 2px solid rgb(42, 41, 41);
    border-radius: 10%;
    z-index: 2;
}
@media (max-width: 60em) {
    .timeline_work::after {
        top: 11vmin;
        bottom: 25vmin;
    }
}
@media (max-width: 56em) {
    .timeline_work::after {
        top: 11vmin;
        bottom: 30vmin;
    }
}
@media (max-width: 45em) {
    .timeline_work::after {
        top: 11vmin;
        bottom: 35vmin;
    }
}
@media (max-width: 40em) {
    .timeline_work::after {
        top: 11vmin;
        bottom: 40vmin;
    }
}
@media (max-width: 30em) {
    .timeline_work::after {
        top: 11vmin;
        bottom: 57vmin;
    }
}


.container_work_experience{
    margin-left: 0;
    position: relative;
    background-color: inherit;
    border-radius: 0;
}

.container_work{
    margin-right: 10vmin;
    position: relative;
    background-color: inherit;
    width: 80%;
    margin-left: 1em;
}

.container_work::after {
    content:"";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #000000;
    border-radius: 50%;
    z-index: 2;
    top: 11vmin;
    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_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 rgb(255, 255, 255);
    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: 3;
    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 rgb(255, 255, 255);
    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: 3;
    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 rgb(255, 255, 255);
    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: 3;
    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-right: white 2px solid;
    border-radius: 30px;
    box-shadow: 0px 10px 30px black;
    position: relative;
    z-index: 1;
    text-align: center;
    font-style: oblique;
    padding: 0.5em;
}

.heading1{
    font-weight: 1000;
    padding-bottom: 10px;
    font-style: normal;
}

.experience_header{
    margin-bottom: 2em;
    font-size: calc(8px + 2vw + 2vh);
    position: relative;
    z-index: 1;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    display: inline-block;
    background:transparent;
    top: 0em;
    font-weight: 200;
    margin-top: 1em;
}

@media (max-width: 40em) {
    .grid_experience {
        text-align: center;
        place-content: center;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "item-1"
        "item-2" ; 
    }
    .experience_header p{line-height: 1em;}
}
/*-----------Experience-section-ends-----------*/

/*-----------About-section-starts-----------*/
.About{
    text-align: center;
    font-size: 10vmin;
    font-weight: 400;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 100%;
    color: white;
    background: linear-gradient(rgb(43, 97, 144),rgb(201, 224, 232));
}

.grid_about{
    width: 100%;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    "item-10 item-11"; 
    gap: 2vmin;
    justify-content: center;
    justify-items: center;

}

.item-10 {
    font-size: calc(8px + 1vw + 1vh);
    line-height: calc(12px + 1vw + 1vh);
    word-spacing: 2px;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 3vmin;
    grid-area: item-10;
    margin-left: 5vmin;
    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: calc(12px + 1vw + 1vh);
    position: relative;
}

.text-about{
    position: relative;
}

.item-11{
    background-image: url(images/hat\ \(1\).JPG);
    background-repeat: no-repeat;
    height: calc(100px + 25vw + 25vh);
    width:calc(80px + 20vw + 20vh);
    background-size: cover;
    grid-area: item-11;
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 50px;
    box-shadow: 0px 5px 10px black;
    margin-bottom: 2vmin;
    position: relative;
}

@media (max-width: 85em) {
    .grid_about {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "item-10"
        "item-11" ;
        gap: 1vmin;
        justify-content: center;
        justify-self: center;
        width: 100%;
    }
}                                   /* readjusting for smaller resolutions */

@media (max-width: 85em) {
    .item-11 {
        justify-content: center;
        justify-self: center;
        
    }
}
@media (max-width: 85em) {
    .item-10 {
        margin: 1em;
        
    }
}

@media (max-width: 40em) {
    .item-10 {
        margin: 1em;
        line-height: 1.2em;
    }
}
/*-----------About-section-ends-----------*/

/*-----------Contact-section-starts-----------*/
.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{
    text-align: center;
    font-size: 4em;
    font-weight: 300;
    padding-bottom: 5em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.contact_middle{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding-top: 25em;
}

.contact_sqaure{
    position: relative;
    width: 25em;
    height: 25em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_sqaure span{
    position: absolute;
    inset: 0;
    border: 2px solid black;
    opacity: 0.5;
}                       /* squiggly lines around self portrait */

.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);
    }
}           /* Animations for squiggly lines */

@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: 4em;
    height:4em;
    background-size: contain;
    border-radius:50%;
    border: 1px black solid;
    background-color: white;
    position: relative;             /* linkedin link */
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin:hover{
    opacity: 70%;
    transform: scale(1.2);
}

.mail{
    background-image: url(images/email.png);
    width: 4em;
    height: 4em;
    background-size: contain;
    background-repeat: no-repeat;       /* email link */
    border-radius:50%;
    border: 1px black solid;
    background-color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-contact{
    height: 100%;
    width: 100%;
}

.mail:hover{
    opacity: 70%;
    transform: scale(1.2);
}

.contact_bottom{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
}

.contact_bottom .waves{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;        /* footer waves */
    height: 10em;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
    background-size: cover;
    background-size: 2500px 10em;
}

.contact_bottom .waves#wave1{
    z-index: 997;
    opacity: 1;
    bottom: 0;
    animation: animate 4.5s linear infinite;
    background-color: rgb(201, 224, 232);
}

.contact_bottom .waves#wave2{
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animate2 5.5s linear infinite;
}

.contact_bottom .waves#wave3{
    z-index: 998;
    opacity: 0.2;
    bottom: 15px;
    animation: animate 6.34s linear infinite;
}

.contact_bottom .waves#wave4{
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animate2 7.234s linear infinite;
}

@keyframes animate {
    0% {
        background-position-x: 2500px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes animate2 {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 2500px;
    }
}

/* Wave animations */
@media (max-width: 40em) {
    .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_bottom {
        position: absolute;
        bottom: 0;
        width: 100%;
        display: flex;
    }

    .contact_bottom .waves {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 5em;
        background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
        background-size: 1000px 5em;
        background-repeat: repeat-x;
        will-change: transform;
    }

    .contact_bottom .waves#wave1 {
        z-index: 997;
        opacity: 1;
        bottom: 0;
        animation: waveTransform 6.5s linear infinite;
    }

    .contact_bottom .waves#wave2 {
        z-index: 999;
        opacity: 0.5;
        bottom: 10px;
        animation: waveTransformReverse 7.5s linear infinite;
    }

    .contact_bottom .waves#wave3 {
        z-index: 998;
        opacity: 0.2;
        bottom: 15px;
        animation: waveTransform 8.34s linear infinite;
    }

    .contact_bottom .waves#wave4 {
        z-index: 999;
        opacity: 0.7;
        bottom: 20px;
        animation: waveTransformReverse 9.234s linear infinite;
    }

    @keyframes waveTransform {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-1000px);
        }
    }

    @keyframes waveTransformReverse {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(1000px);
        }
    }
}
/*-----------Contact-section-ends-----------*/

@media (max-width: 40em) {
    .item-4 , .item-5 , .item-6 , .item-7 , .item-8 , .item-9 {
        display:block;
        text-align: center;     /* centering items from many different sections */
        margin-left: auto;
    }
}
