/**
 * @Author: Your name
 * @Date:   2023-05-23 22:22:01
 * @Last Modified by:   Huugo Wahalahti
 * @Last Modified time: 2023-07-07 14:27:20
 */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;250;300;400;500;600;700&display=swap');

:root {
	--primary-color: #e8e8e8;
	--secondary-color: #141414;
	--tertiary-color: #919eb7;
	--quaternary-color: #fff;
	--quinary-color: #f1f1f1;
	--senary-color: #f1f1f1;
	--septenary-color: #f1f1f1;
	--octonary-color: #f1f1f1;
	--nonary-color: #f1f1f1;
	--denary-color: #f1f1f1;
	--warning-color: #e08b8b;
	--huugeli-brand-color: #8bb7af;
}

html {
	background-color: var(--primary-color);
	font-family: 'Unbounded', cursive;
	text-align: center;
	align-items: center;
	justify-content: center;
	scroll-behavior: smooth;
}

@keyframes SizeOutAnim {
	0% {
	  width: 100vw;
	  height: 100vh;
	}
	100% {
		width: 0vw;
		height: 0vh;
	}
  }

  @keyframes FadeOutAnim {
	0% {
	 opacity: 1;
	}
	100% {
		opacity: 0;
	}
  }
  


#mouse-trail {
	background: var(--huugeli-brand-color);
	border-radius: 100%;
	width: 20px;
	height: 20px;
	opacity: 1;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 99999;
	pointer-events: none;
	border: 5px solid var(--primary-color);
	transition: border 0.5s;
} 

.container {
	min-height: 100vh;
}

.animate {
	opacity: 0;
	transition: opacity 1s ease-out; /* Set the animation transition */
}
  
.animate.visible {
	opacity: 1;
}

.namecontainer .name .letter {
	font-size: 8em;
	margin-top: 0;
	margin-bottom: 0;
	font-weight: 1000;
	width: 100vw;
	display: block;
	position: fixed;
	z-index: 15;
	pointer-events: none;
	color: var(--huugeli-brand-color);
    animation: colorAnimation 1s forwards;
	animation-delay: 1s;
}

@keyframes colorAnimation {
	0% {
	  color: var(--huugeli-brand-color);
	}
	100% {
	  color: var(--quaternary-color);
	}
}

#letter-h {
	top: 2vh;
	left: 0vw;
	transition: opacity 0.5s ease;
}
#letter-u1 {
	top: 41vh;
	left: -32vw;
	transition: opacity 0.5s ease;
}
#letter-u2 {
	top: 41vh;
	left: 0vh;
	transition: opacity 0.5s ease;
}
#letter-g {
	top: 41vh;
	right: -32vw;
	transition: opacity 0.5s ease;
}
#letter-o {
	top: 72vh;
	left: 0vw;
	transition: opacity 0.5s ease;
}

#home .innercontainer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

#home.container {
	/* Set background image from url */
	background-image: url("https://images.pexels.com/photos/12498581/pexels-photo-12498581.jpeg");
	/* Center and fit background image no repeat */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

#projects.container {
	/* Set background image from url */
	background-image: url("https://cdn.discordapp.com/attachments/940667711246184478/1005550992898674758/unknown.png");
	/* Center and fit background image no repeat */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--primary-color);
	display: flex;
	justify-content: center;
	align-items: center;
}

#organization.container {
	/* Set background image from url */
	background-image: url("https://images.pexels.com/photos/1809644/pexels-photo-1809644.jpeg");
	/* Center and fit background image no repeat */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--primary-color);
	display: flex;
	justify-content: center;
	align-items: center;
}
#more.container {
	min-height: 100vh;
}

.white {
	color: var(--primary-color);
}
/* Make the image element responsive */
.icon {
	width: 100%;
	max-width: 100px;
	height: auto;
}

img.icon.white {
	filter: invert(100%);
}

#projects .innercontainer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	max-width: 100vw;
}

#home video {
	width: 100%;
	height: 100%;
	position: absolute;
	object-fit: cover;
	z-index: 0;
}

.hometext.hi {
	font-size: 2.25em;
	color: var(--primary-color);
}
.hometext.name {
	font-size: 8em;
	color: var(--primary-color);
}
.hometext.slogan {
	font-size: 2.25em;
	color: var(--primary-color);
}


.center.right {
	text-align: center;
	color: var(--secondary-color);
	padding: 12px;
}

.container .pretitle {
	font-size: 1.5rem;
	margin-bottom: 0;
	margin-top: 1%;
}

.container .title {
	font-size: 3rem;
	margin-top: 0;
	margin-bottom: 1%;
}

.container a.dark {
	color: var(--secondary-color);
	text-decoration: none;
}

.container.whitebg {
	background-color: var(--primary-color);
}

.separatingmaterial {
	min-height: 25vh;
	color: var(--primary-color);
	padding-top: 3px;
	padding-bottom: 3px;
	margin-top: 3px;
	margin-bottom: 3px;
	/* Center contents vertically, stack on each other & align left */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: right;
	text-align: right;
}

#joinscouts.separatingmaterial {
	/* Set background image from url */
	background-image: url("../images/2019-08-03_236959 Harri Halmejärvi.jpg");
	/* Center and fit background image no repeat */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.title.separatortext {
	margin: 0;
}

.separatingmaterial > * {
	padding-right: 5rem;
}

.textlink.light {
	color: var(--primary-color);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-content: center;
}

.card {
	min-height: 25vh;
	background-color: var(--primary-color);
	color: var(--primary-color);
	padding: 20px;
	text-align: left;
	/* Center and fit background image no repeat */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	border: 5px solid var(--secondary-color);
	border-radius: 5px;
	display: flex;
	justify-content: left;
	align-items: center;
	box-sizing: border-box;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .15s ease-in-out;
	transition: .15s ease-in-out;
	z-index: 1;
}

.card:hover {
	-webkit-transform: scale(1.15);
	transform: scale(1.15);
	z-index: 2;
}

.card .content {
	padding: 20px;
	position: relative;
	z-index: 2;
}

.card .content * {
	margin: 0;
}

.card .content .title {
	font-size: 1.75rem;
}

.card .content .type {
	font-weight: 350;
}

.card .cardlink {
	color: var(--primary-color);
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 2;
}

.textlink {
	position: relative;
	color: var(--secondary-color);
	z-index: 2;
}

.textlink.light {
	color: var(--primary-color);
}

.textlink.nodecoration {
	text-decoration: none;
}

.textlink::before {  
	transform: scaleX(0);
	transform-origin: bottom right;
}

.textlink:hover::before {
	transform: scaleX(1);
	transform-origin: bottom left;
}
  
.textlink::before {
	content: " ";
	display: block;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	inset: 0 0 0 0;
	background: var(--huugeli-brand-color);
	z-index: -1;
	transition: transform .3s ease;
}

.card .overlay {
	position: absolute;
	top: 0;
	left: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
	width: 100%;
	height: 100%;
}

.hometext {
	margin: 0;
}


/* Image bg links */
.card#volunteering1 {
	background-image: url("https://images.pexels.com/photos/7854043/pexels-photo-7854043.jpeg");
}
.card#volunteering2 {
	background-image: url("https://images.pexels.com/photos/9774951/pexels-photo-9774951.jpeg");
}
.card#volunteering3 {
	background-image: url("https://images.pexels.com/photos/9727456/pexels-photo-9727456.jpeg");
}
.card#volunteering4 {
	background-image: url("https://images.pexels.com/photos/11237312/pexels-photo-11237312.jpeg");
}
.card#volunteering5 {
	background-image: url("https://images.pexels.com/photos/11872279/pexels-photo-11872279.jpeg");
}
.card#volunteering6 {
	background-image: url("https://images.pexels.com/photos/6073116/pexels-photo-6073116.jpeg");
}
.card#volunteering7 {
	background-image: url("https://images.pexels.com/photos/7276947/pexels-photo-7276947.jpeg");
}
.card#volunteering8 {
	background-image: url("https://images.pexels.com/photos/1366921/pexels-photo-1366921.jpeg");
}
.card#volunteering9 {
	background-image: url("https://images.pexels.com/photos/4976402/pexels-photo-4976402.jpeg");
}

/* Optimizations for mobile devices */
@media (max-width: 768px) {
	.card-grid {
	  grid-template-columns: 1fr;
	}
	.card {
		padding: 5px;
	}
	.namecontainer {
		display: none;
	}
	.hometext.hi {
		font-size: 2em;
	}
	.hometext.name {
		font-size: 3.25em;
	}
	.hometext.slogan {
		font-size: 2em;
	}
	.separatingmaterial > * {
		padding-right: 1rem;
	}
	.container .title {
		font-size: 2rem;
	}
}


.background {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
	/* Fit the video to the div */
	object-fit: cover;
}
.video-container .filter {
	z-index: -1;
	position: inherit;
	background: rgba(0,0,0,.4);
	width: 100%;
	height: 100%;
}