/********************************************************
* FLEX
********************************************************/ 

.flex-container {
    display: flex;
    flex-flow: row;
    width: 100%;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-column {
    display: flex;
    flex-flow: column;
}

.wrap {
  width: 100%;
}
.module-wrap {
    width: 100%;
}

.valignStart,
.valign-start {
    align-items: flex-start;
}
.valignCenter,
.valign-center {
    align-items: center;
}

.valignStretch,
.valign-stretch {
    align-items: stretch;
}

.alignCenter,
.align-center {
    justify-content: center;
}
.alignEnd,
.align-end {
    justify-content: flex-end;
}
.alignSpaceAround,
.align-space-around {
    justify-content: space-around;
}
.alignSpaceBetween,
.align-space-between {
    justify-content: space-between;
}

.col-w-20,
.col-w-25,
.col-w-30,
.col-w-33,
.col-w-40,
.col-w-50,
.col-w-60,
.col-w-66,
.col-w-70,
.col-w-75,
.col-w-100 {
    width: 100%;
    position: relative;
}

@media screen and (min-width:768px){
    .col-w-25 {
        width: 50%;
    }
	.col-w-33,
    .col-w-50 {
        width: 50%;
    }
}

@media screen and (min-width:1199px){
    .col-w-20 {
        width: 20%;
    }
    .col-w-25 {
        width: 25%;
    }
    .col-w-30 {
        width: 30%;
    }
    .col-w-40 {
        width: 40%;
    }
    .col-w-33 {
        width: 33%;
    }
    .col-w-50 {
        width: 50%;
    }
    .col-w-60 {
        width: 60%;
    }
    .col-w-66 {
        width: 66%;
    }
    .col-w-70 {
        width: 70%;
    }
    .col-w-75 {
        width: 75%;
    }
}


.pad-sm{
	padding: 0.5em;
}

/********************************************************
* INIT
********************************************************/

body {
	margin: 0;
	padding: 0;
	width: 100%;
	color: #0f164d;
	font-family: 'Inter', sans-serif;
	line-height: 1.25em;
	font-weight: 300;
	letter-spacing: 0.05em;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

p {
	margin: 0 0 1em;
}

/********************************************************
* LANG
********************************************************/ 
.lang-block {
    width: 100%;
}
.lang-visible {
    opacity: 1; 
    height: auto;
    transition: height 200ms 0s, opacity 200ms 200ms;
}
.lang-hidden {
    opacity: 0; 
    font-size: 0;
    height: 0;
    transition: height 200ms 0s, opacity 200ms 200ms;
}

.lang-select {
    position: fixed;
    bottom: 1em;
    right: 1em;
}

.lang-select button {
    /*padding: 1em;
    border-radius: 1em;*/
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0px 1px 5px rgba(0,0,0,0.25);
}
.lang-select button img {
    width: 3rem;
    height: 3rem;
    display: block;
}
.lang-hidden  {
    opacity: 0; 
    font-size: 0;
    height: 0;
    transition: height 200ms 0s, opacity 200ms 200ms;
}

/********************************************************
* SECTIONS
********************************************************/

section {
	width: 100%;
}

section:nth-of-type(2) {
	background: linear-gradient(-10deg, #5757ca, #c1eaf1);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	color: #fff;
}

.section-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 5rem 1rem;
	position: relative;
	overflow: hidden;
}

.section-title {
	padding-top: 3rem; 
	padding-bottom: 1rem;
}
.section-title * {
	text-transform: uppercase;
	text-align: center;
}
.section-title * span {
	opacity: 0.6;
}
section:nth-child(odd) .section-title * {
	text-align: center;
}
.section-title p.pre-title {
	font-size: 1em;
	line-height: 1.25em;
	letter-spacing: 0.14em;
}
.section-title h1 {
	font-size: 3em;
	line-height: 1.25em;
	letter-spacing: 0.14em;
	margin: 0.5em 0 0;
	font-weight: 600;
}
.section-title h2 {
	font-size: 2em;
	line-height: 1.25em;
	letter-spacing: 0.14em;
	margin: 0.25em 0 0.5em;
	font-weight: 600;
}
.section-title h3 {
	font-size: 1.5em;
	line-height: 1.25em;
	letter-spacing: 0.14em;
	margin: 0.25em 0 0.5em;
	font-weight: 600;
}
.section-columns {
	max-width: 800px;
	widt: 100%;
	margin: 0 auto;
	
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	grid-gap: 4rem;
	
}

@media screen and (max-width:768px){
	.section-columns {
		grid-template-columns: 1fr;
	}

    .section-title h1 {
        font-size: 2.25em;
    }
    .section-title h2 {
        font-size: 1.75em;
    }
    .section-title h3 {
        font-size: 1.25em;
    }

}

.elemn-opacity {
	opacity: 0.5;
    animation: opacityAnim 5s ease-in-out alternate infinite;
}

.section-image {
	position: relative;
}

.section-image-main {
	background-color: #bcaeff82;
	width: 300px;
	height: 300px;
	
    border-radius: 50% 75% 50% 75% /
                   40% 50% 40% 50%;
    animation: kuplamain 5s ease-in-out alternate infinite;
}

.section-elem-container {
	display: flex;
	justify-content: space-around;
}
.section-elem {
	background-color: #fff;
	width: 50px;
	height: 50px;			
	
		border-radius: 0% 0% 50% 50%;
		animation: kupla 5s ease-in-out infinite;
}

.section-elemB {
	background-color: #5757ca;
	width: 50px;
	height: 50px;			
	
		border-radius: 50% 50% 0% 0%;
		animation: kuplaB 5s ease-in-out infinite;
}
	
.quote-item {
	position: relative;
	font-weight: 400;
	font-size: 1.25em;
	line-height: normal;
	letter-spacing: 0;
	padding: 1.5em 1.5em 1.5em 3em;
	background: #0f164d;
	border-radius: 0.5em;
	height: 100%;
	border: 3px #62ffe2 solid;
}
.quote-item2 {
	border: 3px #7ed4ff solid;
}
.quote-item3 {
	border: 3px #fca0ff solid;
}
.quote-item:before {
    content:'“';
    position: absolute;
	top: 0.25em;
    left: 0.15em;
    font-weight: 400;
    font-size: 4em;
    line-height: 1em;
    text-align: center;
    letter-spacing: 0;
}
.quote-item1:before {
    color: #62ffe2;
}
.quote-item2:before {
    color: #7ed4ff;
}
.quote-item3:before {
    color: #fca0ff;
}

.quote-person {
  font-size: 1rem;
}

.quote-item1 .quote-person {
    color: #62ffe2;
}
.quote-item2 .quote-person {
    color: #7ed4ff;
}
.quote-item3 .quote-person {
    color: #fca0ff;
}

/********************************************************
* TIMELINE / AIKAJANA
********************************************************/ 

.timeline {
    position: relative;
    padding: 0rem 3.75rem 2rem 3.75rem;
    display: flex;
    align-items: center;
}
.timeline::before {
    content: "";
    border-left: 2px dashed #d1d1d1;
    position: absolute;
    left: 0.55rem;
    top: 1rem;
    height: 100%;
}

.timeline.t-pad-small {
    padding-top: 25px;
}
.graph-no-border-left {
    position: relative;
    padding: 0rem 2.75rem 1.5rem 2.75rem;
}
.timeline-event {
	border: 3px #7ed4ff solid;
	padding: 1rem;
	border-radius: 0.5em;
}
.timeline-event.education {
	border: 3px #fca0ff solid;
}
.timeline-event.other {
  	border: 3px #62ffe2 solid;
}

.timeline-event .date {
    padding: 0em;
    width: 100%;
    display: flex;
    align-items: center;
	color: #7ed4ff;
	font-size: 1em;
	line-height: 1em;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.timeline-event.education .date {
	color: #fca0ff;
}
.timeline-event.other .date {
	color: #62ffe2;
}

.timeline-event h3 {
	font-size: 1.25em;
	line-height: 1em;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0.25em 0 0.5em;
}

.timeline-event .detail {
    width: 100%;
    padding: 0.25rem 0;
}

.timeline-event::before {
    content: '';
    font-style: normal;
    font-weight: 900;
    font-size: 15px;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    position: absolute;

	position: absolute;
	top: 0.5rem;
	left: -2.85rem;
	opacity: 1;
	background-color: #ffd222;
	border: 3px #ffe273 solid;
	background-color: #43c1ff;
  	border: 3px #7ed4ff solid;
	width: 1rem;
	height: 1rem;
	
    border-radius: 50% 75% 50% 75% /
                    40% 50% 40% 50%;
    animation: kuplamain 5s ease-in-out alternate infinite;

}

.timeline-event:nth-of-type(odd)::before {	
    border-radius: 50% 75% 50% 75% /
                    40% 50% 40% 50%;
    animation: kuplamain 5s ease-in-out alternate infinite;

}

.timeline-event.education::before {
	background-color: #8080ec;
	border: 3px #b8b8ff solid;
	background-color: #fa58ff;
  	border: 3px #fca0ff solid
}
.timeline-event.other::before {
	background-color: #c1eaf1;
	border: 3px #e6fbff solid;
	background-color: #3fdbbe;
  	border: 3px #62ffe2 solid;
}


.timeline-image {
  max-height: 50px;
  width: auto;
  max-width: 100%;
}

.timeline-wrap:last-child .timeline::before {
    content: "";
    border: none;
} 


@media screen and (min-width: 767px) {
    .timeline {
        width: calc(50% + 1.6rem);
        float: right;
    }
	.timeline-event {
      width: 30em;
    }
    .timeline-event span.detail {
        width: auto;
        text-align: inherit;
    }
    .timeline-event span.detail {
        padding: 0rem 0;
    }
	.timeline::before {
		left: 1.55rem;
	}
    .timeline-wrap:nth-child(odd) .timeline{
        float: left;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }
    .timeline-wrap:nth-child(odd) .timeline::before {
        content: "";
        border-left: 2px dashed #d1d1d1;
        position: absolute;
        left: auto;
        right: 1.5rem;
        xxtop: 0;
        height: 100%;
    }    
    .timeline-wrap:nth-child(odd) .timeline .timeline-event::before {
        content: '';
        position: absolute;
        left:auto;
        right: 0.875rem;
		right: -2.875rem;
    }
    /*
    .timeline-wrap:nth-child(odd) .timeline .timeline-event span.date {
        position: absolute;
        right: -10rem;
        left: auto;
        width: 10rem;
        text-align: left;
        justify-content: flex-start;
    }
	*/


}

@media screen and (max-width: 767px) {
    .timeline {
      padding: 0rem 1.5rem 3rem 2.5rem;
    }
    .timeline-wrap {
        padding: 0 0 0 0.5rem;
        max-width: 100%;
    }
    .timeline-event span.detail {
      text-align: left;
      font-size: 0.9em;
    }
	/*
    .timeline-event span.date {
      left: -9rem;
      width: 9rem;
      font-size: 0.9em;
    }
	*/
    .timeline-image {
      max-height: 40px;
    }
    .past-timeline > p:first-child,
    .future-timeline > p:first-child {
        width: 10.5rem;
    }
}

@media screen and (max-width: 440px) {
    .timeline {
        position: relative;
        padding: 0rem 2.5rem 2rem 2.5rem;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }
    .timeline p {
       line-height: 1.2em;
    }
}


/********************************************************
* Harrastukset
********************************************************/
.grid-container.grid-boxes.content-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    grid-template-areas:
        "area-1 area-2"
        "area-1 area-3"
        "area-4 area-4"
        "area-6 area-6"
        "area-5 area-5";
}

@media screen and (min-width: 991px) {
    .grid-container.grid-boxes.content-box {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 11px;
        grid-template-areas:
            "area-1 area-2 area-3"
            "area-1 area-4 area-4"
            "area-5 area-6 area-6";
        max-width: unset;
    }

    .grid-boxes .area-1 .module-wrap {
        justify-content: flex-start;
    }
}

.grid-boxes .module-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.grid-container.grid-boxes.content-box p {

}

.grid-container.grid-boxes.content-box h1 {
    margin-top: 0px;
    margin-bottom: 10px;
}

.area-1,
.area-2,
.area-3,
.area-4,
.area-5,
.area-6,
.area-7 {
    height: 100%;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    padding: 30px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.area-1:before,
.area-2:before,
.area-4:before,
.area-6:before,
.area-7:before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(2,0,36);
    background: linear-gradient(0deg, rgba(2,0,36,0) 0%, rgba(1,2,40,0.2688608890821954) 84%, rgba(0,8,52,0.7086367994463411) 100%);
}
.area-1 .lang-block,
.area-2 .lang-block,
.area-4 .lang-block,
.area-6 .lang-block,
.area-7 .lang-block {
    position: relative;
}

.area-1 {
    grid-area: area-1;
    border: 3px #62ffe2 solid;
    min-height: 50vh;

    /*background-image: url('img/foxes___a_darker_version_by_tiialle_d7oguhw-fullview.jpg');*/
    background-image: url('img/20210606-crop.jpg');
    background-size: auto;
    background-size: cover;
    -ms-scroll-limit-x-max: moveBG 30s ease infinite;
}

.area-2 {
    grid-area: area-2;
    border: 3px #fca0ff solid;
}

.area-3 {
    grid-area: area-3;
}

.area-4 {
    grid-area: area-4;
    border: 3px #bcaeff solid;
}

.area-5 {
    grid-area: area-5;

    display: inline-flex;
    gap: 15px;
    justify-content: space-around;
    align-items: center;

}
.area-5 svg {
    width: 3rem;
    height: 3rem;
    fill: #fff;
}

.area-6 {
    grid-area: area-6;
    border: 3px #7ed4ff solid;
}

/********************************************************
* ANIMATIONS
********************************************************/

@keyframes kuplamain {
	50% {
	border-radius: 80% 60% 50% 70% /
					45% 50% 50% 60%;
	}
	100% {
	border-radius: 50% 50% 50% 50% /
					50% 55% 50% 60%;
	}
}

@keyframes kupla {
	50% {
	border-radius: 0% 0% 0% 0%;
	}
	100% {
	border-radius: 0% 0% 50% 50%;
	}
}

@keyframes kuplaB {
	50% {
	border-radius: 0% 0% 0% 0%;
	}
	100% {
	border-radius: 50% 50% 0% 0%;
	}
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes moveBG {
	0% {
		background-position: 0% 20%;
	}
	50% {
		background-position: 70% 50%;
	}
	100% {
		background-position: 0% 20%;
	}
}

@keyframes opacityAnim {
	0% {
	    opacity: 0.5;
	}
	100% {
        opacity: 1;
	}
}

@keyframes rotating {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(-360deg);
    }
  }
  .rotating {
    animation: rotating 20s linear infinite;
  }