@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&display=swap');

/* BASIC STRUCTURES */

*,*::after,*::before {
	/* box-sizing: border-box; */
	box-sizing: border-box;
}

html, body{
	height: 100%;
}

body {
	margin: 0;
	font-size: 20px;
	line-height: 1.3em;
	font-family: 'Josefin Sans', sans-serif;
	color: var(--color-neutral-dark);
	overflow-y: scroll;
	overflow-x: hidden;
}

.header {
    /* background-image: url("../../images/general/header_graphic.png"); */
    color: white;
    background-size: cover;
}

.content{
	flex: 1 0 auto;
	padding: 4.5em 0;
	height: 100%;
}

.footer{
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(211,80,96,1) 45%, rgba(214,113,80,1) 100%);
    padding: 2em 0;
    color: var(--color-white);
}

.semi-footer{
	background-color: var(--color-neutral-light);
	position: relative;
}



/* FORMATTING ELEMENTS */

:root {

	--color-white: #ffffff;

	--color-neutral: #bcbec0;
	--color-neutral-dark: #414042;
	--color-neutral-light: #ebebeb;

	--color-main: #d35060;
	--color-secondary: #d67150;
	--color-accent: #79449A;
}

h1 /*Main Header*/ {
	font-weight: 600;
	margin:0;
	font-size: 1.5em;
	text-transform: uppercase;
	line-height: 1em;
	color: var(--color-main);
}

h2 /*Special Header*/{
	font-size: 1.5em;
	line-height: 1em;
	font-weight: 600;
	margin:0;
	color: var(--color-main);
	text-transform: capitalize;
	margin-bottom: 0.25em;
}

h3 /*Section Header*/{
	font-weight: 600;
	margin: 0;
	font-size: 1.25em;
	line-height: 1em;
	color: var(--color-neutral);
	text-transform: uppercase;
}

h4 /*Subhead*/{
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	color: var(--color-neutral-dark);
	font-size: 0.75em;
}

h5/*Card Header*/{
	margin: 0;
	text-transform: uppercase;
	color: var(--color-main);
	font-size: 18px;
	font-weight: 700;
	text-align: center;
}

h6 /*Caption*/{
	font-size: 16px;
	margin: 0;
	color: var(--color-neutral-dark);
	font-weight: 400;
}

a {
	display: inline-block;
	color: var(--color-main);
	text-decoration: none;
}
	a:hover {
		text-decoration: underline;
	}

ul{
	padding-left: 1em;
	list-style: none;
	margin: 0;
}

ul li::before {
  content: "\2022";
  color: var(--color-main);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

img {
	max-width: 100%;
	display: block;
}

figure {
	margin: 0;
	text-align: center;
}
	figcaption {
		padding: 1em;
		font-size: 0.8em;
		font-weight: 500;
	}





/* LAYOUTS */

.display-flex { display: flex; }
.display-block { display: block; }
.display-inlineblock { display: inline-block; }
.hidden { display:none; }

.flex-stretch { flex: 1; }
.flex-none { flex: none; }
.flex-align-center { align-items: center; }
.flex-top { align-items: flex-start; }
.flex-bottom { align-items: flex-end; }
.flex-justify-center { justify-content: center; }
.flex-column { flex-direction:column; }
.flex-wrap { flex-wrap: wrap; }



.position-relative { position: relative; }
.bottom { 
	position: absolute;
	bottom: 0;
}
.right{
	position: absolute;
	right: 0;
}
.center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* Don't change this, except to modify the width. Don't use percentage. */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.pad{
	padding-left: 2em;
	padding-right: 2em;
}

.section.pad{
	padding-top: 3em;
	padding-bottom: 3em;
}
#projects.section.pad {
	padding-top: 0;
}

.overcrop {
	position: relative;
	overflow: hidden;
}

.card {
    padding: 2.5em;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    height: fit-content;
    width: 100%;
}
	.container>.card {
	    margin: 1.5em 0;
	}

	.card>:first-child { margin-top: 0; }
	.card>:last-child { margin-bottom: 0; }


	.card-white {
		background-color: var(--color-white);
	}
	.card-light {
		background-color: var(--color-neutral-light);
	}
	.card-medium{
		background-color: var(--color-neutral);
	}
	.card-dark {
		background-color: var(--color-neutral-dark);
		color: white;
	}
	.card-center{
		text-align: center;
	}
	.card-flat {
		padding: 0;
	}
	.card-section {
		padding: 1.6em 1em;
	}
	.card-image{
		padding: 0;
	}
	.card-image img{
		width: 100%;
	}
	.card-tab{
		height: 4em;
		padding: 0.5em;
		align-items: center;
		display: flex !important;
		justify-content: center;
	}


.view-window {
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	position: relative;
	overflow: hidden;
	height: 50vh;
	margin-top: 1em;
	margin-bottom: 1em;
	text-align: center;

	display: flex;
	align-items: center;
	justify-content: center;
}
	.view-window>:first-child {
		max-height: calc(100% - 3em);
		max-width: calc(100% - 4em);
	}

.text-centered{ text-align: center; }
.text-right{ text-align: right; }
.text-left{ text-align: left; }
.text-small{ font-size: 0.8em; line-height: 1.2em;}

.dash{ vertical-align: 2px; }




/* NAV */

.navbar{
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0;
}

.navbar li{
	padding: 0.75em 0;
	text-align: center;
	font-size: 16px;
}
	.navbar li:first-child{
		padding-right: 1.5em;
	}
	.navbar li:last-child{
		padding-left: 1.5em;
	}
	.navbar li::before{
		content: none;
	}


.nav-material {
	flex: none;
}
.nav-material ul {
	list-style-type: none;
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 0;
	font-family: 'Josefin Sans', sans-serif;
	display: flex;
	flex-wrap: wrap;
}
	.nav-material li{
		flex: 1;
		text-align: center;
	}
	.nav-material a {
		color: var(--color-neutral-dark);
		transition-duration: 0.4s;
		display: block;
		text-decoration: none;
		position: relative;
		padding-top: 0.5em;
		padding-bottom: 0.5em;
	}
	.nav-material a:hover{
		color: var(--color-main);
	}
	.nav-material a::after{
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 0;
		content:'';
		background-color: var(--color-main);
		transition: all 0.3s;
	}

.nav-wrapper{
	display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 0;
}
.nav-logo{
	flex: none;
}
.nav-spacer{ flex: 1; }

.nav-dropdown {
	max-height: 0;
	margin: 0;
	list-style-type: none;
	text-align: center;
	transition-duration: 1s;
	background: linear-gradient(90deg, rgba(211,80,96,1) 45%, rgba(214,113,80,1) 100%);
	padding: 0;
	text-transform: uppercase;
	transition: padding 0.5s ease, opacity 0.5s linear, margin 0.5s, max-height 0.5s ease;
	opacity: 0;
	border-radius: 10px;
	margin-bottom: 0;
}
	.nav-dropdown.active{
		max-height: 10em;
		opacity: 1;
		padding: 1em 0;
		margin-bottom: 2em;
	}
	.nav-dropdown li{
		padding: 0em;
		opacity: 0;
		transition: padding 0.5s ease;
	}
		.nav-dropdown li::before{
			content: none;
		}
		.nav-dropdown.active li{
			opacity: 1;
			padding: 0.5em;
		}
	.nav-dropdown a{
		text-decoration: none;
		color: var(--color-white);
	}



/* SIDE NAV */

.side-nav{
	position: fixed;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
	list-style-type: none;
	z-index: 3;
	cursor: pointer;
	display: visible;
}
	.side-nav li:not(:last-child) {
		padding-bottom: 0.25em;
	}
	.side-nav li::before{
		content: none;
	}

.nav-icon svg path {
	transition: 0.3s ease;
	fill: var(--color-neutral);
}
	.nav-icon:hover svg path,
	.active .nav-icon svg path {
		fill: var(--color-main);
	}



/* HAMBURGER */

/* Codes borrowed from: https://codepen.io/erikterwan/pen/EVzeRP */

#menuToggle {
  display: none;
  flex: none;
  position: relative;
  
  z-index: 6;
  -webkit-user-select: none;
  user-select: none;
  height: fit-content;
}


#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0;
  z-index: 2;
  
  -webkit-touch-callout: none;
}

 
.hamburger div
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: var(--color-neutral);
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

/* .hamburger div:first-child
{
  transform-origin: 0% 0%;
} */

.hamburger div:last-child
{
  transform-origin: 0% 50%;
}

#menuToggle input:checked ~ .hamburger div:first-child
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: var(--color-main);
}


#menuToggle input:checked ~ .hamburger div:nth-child(2)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ .hamburger div:nth-child(3)
{
  transform: rotate(-45deg) translate(0, -1px);
  background: var(--color-main);
}


/* ICONS */

.logo img,
.icon img{
    height: 100%;
    display: block;
    margin: 0 auto;
}

.logo.XS,
.icon.XS{
	height:1.5em;
	width: 1.5em;
}

.logo.small{
	height: 2.75em;
	width: 2.75em;
}

.icon.small {
    height: 2em;
    width: 2em;
}

.logo.medium,
.icon.medium {
    height: 4em;
    width: 4em;
}

.logo.large, 
.icon.large{
    height: 6em;
    width: 6em;
}

.logo.XL, 
.icon.XL{
    height: 10em;
    width: 10em;
}




/* IMAGES */

.image-contain,
.image-cover {
	height: 100%;
	width: 100%;
	object-position: center;
	vertical-align: text-bottom;
}
.image-cover {
	object-fit: cover;
}
.image-contain {
	object-fit: contain;
}
.image-fit {
	max-width: 100%;
	vertical-align: text-bottom;
}

.image-circle {
	position: relative;
	height: auto;
}
	.image-circle img {
		width: 100%;
		object-fit: cover;
		object-position: center;
		border-radius: 50%;
		vertical-align: text-bottom;
		box-shadow: 0px 0px 10px var(--color-neutral);
	}

	.image-circle.small{
		width: 5em;
	}
	.image-circle.medium{
		width: 8em;
	}

.image-square{
	height: 15em;
	background-color: var(--color-neutral-dark);
}
	.image-square img{
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

.image-responsive img {
	width: 100%;
}
.image-web{
	display: block;
}
.image-mobile{
	display: none;
}
.image-display{
	height: 15em;
}

.center-child {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.hero{
	margin: 0;
	background-image: url("../../images/home_hero.png");
	background-position-x: -9em;
	background-position-y: 0;
	overflow: visible;
	background-repeat: no-repeat;
	background-size: contain;
	height: 100%;
}

.hero-image{
	position: absolute;
	max-width: 55%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-left: 6em;
}

.overlay {
    position: relative;
    overflow: hidden;
}

.overlay div {
    left: 0;
    bottom: 0;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s;
}
    .overlay:hover div {
        opacity:1;
    }
    .overlay img {
        transition:all 0.5s;
        transform:scale(1,1);
    }
    .overlay:hover img {
        transform:scale(1.4,1.4);
    }

 iframe{
 	border-radius: 10px;
 	box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
 }




/* SPACING */

hr{
	border: none;
	height: 2px;
	background-color: var(--color-neutral-light);
}

hr.spacer{
	border: none;
	height: 0px;
	background-color: transparent;
	border-width: 0;
}
	.spacer.XL {
		margin: 1.5em 0;
	}
	.spacer.large {
		margin: 1em 0;
	}
	.spacer.medium {
		margin: 0.75em 0;
	}
	.spacer.small{
		margin: 0.5em 0;
	}
	.spacer.XS{
		margin: 0.25em 0;
	}

	.spacer.vertical.large {
		margin: 0 1em;
	}
	.vertical-spacer.medium {
		margin: 0 0.5em;
	}
	.vertical-spacer.small{
		margin: 0 0.25em;
	}



/* BUTTONS */

.form-button {
	display: block;
	width: 100%;
	padding: 0.5em 1em;
	font-family: 'Josefin Sans', sans-serif;;
	font-weight: 400;
	-webkit-appearance: none;
	border-width: 0;
	border-radius: 50px;
	background-color: var(--color-main);
	outline: 0;
	vertical-align: baseline;
	color: var(--color-white);
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition-duration: 0.4s;
}
	.form-button:active{
		background-color: var(--color-neutral-dark);
	}
	.form-button:hover{
		background-color: var(--color-neutral-dark);
		transform: translateY(-1px);
	}
.form-button.small{
	font-size: 1em;
}
.form-button.half{
	width: 50%;
}
.form-button.secondary{
	background-color: var(--color-neutral-dark);
	color: white;
}
	.form-button.secondary:active{
		background-color: var(--color-accent);
	}
	.form-button.secondary:hover{
		background-color: var(--color-accent);
	}

.title-bar{
	display: block;
	width: 100%;
	padding: 0.5em 1em;
	font-family: 'Josefin Sans', sans-serif;;
	font-weight: 400;
	-webkit-appearance: none;
	vertical-align: baseline;
	color: var(--color-white);
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition-duration: 0.4s;
	background: linear-gradient(90deg, rgba(211,80,96,1) 45%, rgba(214,113,80,1) 100%);
}



/* ANIMATION */

.fade-in {
	animation: fadein 1s ease;
}
	@keyframes fadein {
		from { transform: translateY(10em); opacity: 0; }
		to { transform: translateX(0); opacity: 1; }
	}

.fade {
  animation: fade 1.5s;
  animation-delay: 0.5s;
}
	@keyframes fade {
	  from {opacity: .4}
	  to {opacity: 1}
	}

.scroll-element{
	transform: translateY(5em);
	transition: transform 1.25s ease, opacity 1.5s ease;
	opacity: 0;
}
.in-view.scroll-element{
	transform: translateY(0);
	opacity: 1;
}

.scroll-element.horizontal{
	transform: translateX(-5em);
}
.in-view.scroll-element.horizontal{
	transform: translateX(0);
}



/* FOOTER */

.copyright{
	font-size: 0.75em;
}

.footer h2{
	color: white;
}

.social a {
	margin: 0.25em;
}

.social-icon svg path {
	transition: 0.3s ease;
	fill: var(--color-white);
}
	.social-icon:hover svg path {
		fill: var(--color-neutral-dark);
	}




/* PROJECTS */


.karabox-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #EBD3F9;
}

.bellygood-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #FFE1A4;
}

.bond-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #ffbfbd;
}
.convertio-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #CEE6FF;
}
.karabox2-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #fff0dc;
}

.coco-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #ffbf8f;
}

.typejournal-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #FFE9D5;
}

.comikz-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #e5e5e5;
}

.holidays-hero{
	margin: 0;
	background-repeat: no-repeat;
	background-color: #AFD6FF;
}

.kl24-hero {
	margin: 0;
	background-repeat: no-repeat;
	background-color: #c1cbff;
}

h1.number{
	font-size: 2.5em;
}





/* RESPONSIVE */

@media (max-width:1200px) {
	.side-nav { display: none; }
	.hero-image { max-width: 70%; }
	.hero { position: relative; }
	.hero { height: 70%; }
	.card-tab { height: 3em; }
}


@media (max-width:900px) {
    .overlay div{ opacity: 1 !important; }
    .hero { height: 60%; background-position-x: -5em; }
    .hero-image { max-width: 90%; top: 40%; margin-left: 0; padding: 0 3em;}
    #about h1 { text-align: center; }
}

@media (max-width:700px) {
	.image-web{ display: none; }
	.image-mobile { display: block; }
}

@media (max-width:600px) {
	.hero-image { max-width: 100%; }
	.hero { height: 50%; }
	.pad{ padding-left: 1em; padding-right: 1em; }
	body{ font-size: 18px; }
	.form-button.half{ width: 100%; }
	#menuToggle{ display: block; }
    .logo img{ display: inline;}
    .nav-material{ display: none;}
    .nav-wrapper{ padding: 0.75em 0; }
    .navbar{ opacity: 0; margin: 0 0;}
}

@media (max-width:400px) {
    .hero { height: 40%; background-position-x: -5em; }
    .hero-image { padding: 0 1em; }
    body{ font-size: 16px; }
}

@media (max-width: 200px) {
	body{ font-size: 14px; }
}