html{
	box-sizing: border-box;
	moz-box-sizing: border-box;
	webkit-box-sizing: border-box;
	webkit-text-size-adjust: none;
}

html,
body{
	background-color: light-dark(var(--light-background), var(--dark-background));
	color: light-dark(var(--light-text), var(--dark-text));
	font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Roboto, sans-serif;
	font-size: 14px;
	font-weight: 400;
	height: auto;
	letter-spacing: -.012em;
	margin: 0;
	padding: 0;
	webkit-font-smoothing: antialiased;
	width: 100vw;
}

*,
*:before,
*:after{
	box-sizing: inherit;
	moz-box-sizing: inherit;
	webkit-box-sizing: inherit;
}

:root{
	module-spacing: 3vh;
	color-scheme: light dark;
	--dark-background: #2e3440;
	--dark-text: #5e81ac;
	--dark-accent: #8fbcbb;
	--light-background: #eceff4;
	--light-text: #5e81ac;
	--light-accent: #88c0d0;
}

/* TEXT STYLES */

h1, h2{
	font-weight: 300;
	margin: 0;
	padding: 0;
	text-align: left;
}

h2, h3, h4{
    text-transform: uppercase;
}

h1{
	font-size: 4em;
	font-weight: 700;
	margin-bottom: 0.5em;
}

h2{
	font-size: 16px;
	height: 30px;
	
}

h3{
	font-size: 20px;
	font-weight: 900;
	height: 10px;
}

h4{
	font-size: 1.1em;
	font-weight: 400;
	height: 10px;
}

a{
	color: light-dark(var(--light-text), var(--dark-text));
	text-decoration: none;
}

a:hover{
	text-decoration: underline;
	webkit-text-decoration-color: light-dark(var(--light-accent), var(--dark-accent));
	webkit-text-decoration-skip: true;
}

.icon{
	font-size: 2.5em;
}

/* ANIMATION */

.fade{
	opacity: 0;
}

@keyframes fadeseq{
	100%	{
		opacity: 1;
	}
}

.fade{
	opacity: 0;
}

.fade{
	animation: fadeseq .3s forwards;
}

.fade:nth-child(2){
	animation-delay: .4s;
}


/* LAYOUT */

#container{
	align-items: stretch;
	justify-items: stretch;
	margin-left: auto;
	margin-right: auto;
	margin-top: 5vh;
	width: 1080px;
}



/* SECTIONS */


#apps_loop{
	border-bottom: 0px solid light-dark(var(--light-accent), var(--dark-accent));
	display: grid;
	grid-column-gap: 0px;
	grid-row-gap: 0px;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 64px;
	padding-bottom: var(--module-spacing);

	display: grid;
	flex-wrap: nowrap;
	grid-column-gap: 20px;
	grid-row-gap: 0px;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: auto;
}

.apps_icon{
	height: 64px;
	margin-right: 1em;
	padding-top: 15px;
}

.apps_icon svg{
	height: 32px;
	width: 32px;
}

.apps_icon span{
	font-size: 2.5em;
	line-height: 3rem;
}

.apps_item{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	height: 64px;
	margin: 0;
}

.apps_text{
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	overflow: hidden;
}

.apps_text a{
	font-size: 1em;
	font-weight: 500;
	text-transform: uppercase;
}

.apps_text span{
	color: light-dark(var(--light-accent), var(--dark-accent));
	font-size: 0.8em;
	text-transform: uppercase;
}


#links_loop{
	display: grid;
	flex-wrap: nowrap;
	grid-column-gap: 20px;
	grid-row-gap: 0px;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: auto;
}

#links_item{
	line-height: 1.5rem;
	margin-bottom: 2em;
	webkit-font-smoothing: antialiased;
}

#links_item h4{
	color: light-dark(var(--light-accent), var(--dark-accent));
}

#links_item a{
	display: block;
	line-height: 2;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1200px)
{
	#container
	{
		align-items: stretch;
		justify-items: stretch;
		margin-bottom: 1vh;
		margin-left: auto;
		margin-right: auto;
		width: 90%;
	}
    
	#apps_loop{
		grid-template-columns: 1fr 1fr 1fr;
		width: 100%;
	}

	#links_loop	{
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media screen and (max-width: 768px)
{
	#container
	{
		align-items: stretch;
		justify-items: stretch;
		margin-bottom: 1vh;
		margin-left: auto;
		margin-right: auto;
		width: 90%;
	}
    
	#apps_loop{
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	#links_loop	{
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 576px)
{
	html{
		font-size: calc(16px + 6 * ((100vw - 320px) / 680));
	}

	#container{
		align-items: stretch;
		justify-items: stretch;
		margin-bottom: 1vh;
		width: 90%;
	}

	h1{
		font-size: 4em;
		height: auto;
		margin-bottom: 0em;
	}

	h2{
		font-size: 1em;
		height: auto;
		margin-bottom: 0em;
	}

	h3{
		font-size: 1em;
	}

	#apps_loop{
		grid-column-gap: 0px;
		grid-row-gap: 0px;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.apps_icon{
		height: 64px;
		margin-right: 0.8em;
		padding-top: 14px;
	}

	.apps_icon span{
		font-size: 2em;
		line-height: 2.5rem;
	}
    
	#links_loop{
		display: grid;
		flex-wrap: nowrap;
		grid-column-gap: 20px;
		grid-row-gap: 0px;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
}
