@import 'fonts.css';

/* These are CSS variables. You can quickly change the style of the most 
important elements here without changing the CSS code below. */

:root {
	--body-background: #101010;

	/* Text colors */
	--header-text-color: #fff;
	--box-text-color: #fff;
	--border-radius: 5px;

	--links-text-color: #fff;
	--links-border-radius: 100%;
	--links-size: 50px;
	--links-font-size: 1.6em;

	/* STYLES */
	--box-background: transparent;
	--links-background: rgba(255,255,255, 10%);

	--progress-bar-background: rgba(0,0,0, 0.2);
	--progress-bar-border: 1px solid rgba(255,255,255, 0.1);
	--progress-bar-value-color: #222;

	--progress-bar-border-radius: 20px;
	--progress-bar-padding: 10px;

	--soft-box-shadow-large: 0px 0px 50px rgba(255,255,255, 30%);
	--soft-text-shadow-large: 0px 0px 30px rgba(0,0,0, 40%);
	--soft-text-shadow-small: 0px 2px 5px rgba(0,0,0, 100%);

	--main-padding: 20px;

	/* Width of the middle area */
	--container-width: 600px;
}


* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	word-wrap: break-word;
	-webkit-appearance: none;
	padding: 0px; 
	margin: 0px;
} 

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

body, html {
	height: 100%;
}

body {
	background: var(--body-background);

	/* Fonts */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
	font-weight: 400;

	/* Layout */
	display: grid;
	width: 100%;
	height: 100%;

	/* 1fr = 100% of the (remaining) available space left and right */
	grid-template-columns: 1fr var(--container-width) 1fr;

	/* A period signifies an empty cell. 
	Repeating the name of an element causes the content to span those cells. */
	grid-template-areas: ". header ."
						 ". links ."
						 "text text text";

	justify-content: center;
	align-content: center;
}

/* STANDARDS
Headlines, normal links, text fields and formatting
*/

a {
	color: var(--box-text-color);
	opacity: 80%;
	text-decoration: none;
}

a:hover {
	opacity: 100%;
}

input, textarea, button, select {
	border-radius: var(--border-radius);
	color: var(--box-text-color);
}

input::placeholder,
textarea::placeholder {
	color: rgba(255,255,255, 50%);
}

p:last-child { margin-bottom: auto; }
		   p { margin-bottom: 15px; line-height: 23px; }

/* Layout CSS starts here */
.inner-container {
	width: var(--container-width);
	padding: var(--main-padding);
	margin: 0 auto;
}

header {
	grid-area: header;
	font-family: Poppins;
	font-weight: 400;
	font-size: 3em;
	text-shadow: var(--soft-text-shadow-large);
	color: var(--header-text-color);
	letter-spacing: 7pt;
	text-align: center;
}

/* Logo */
.logo .space {
	width: 5px;
	display: block;
}

[data-letter]:before {
	content: attr(data-letter);
	font-size: 1em;
	opacity: 20%;
}

[data-letter="R"]:before,
[data-letter="G"]:before {
	content: attr(data-letter);
	color: inherit;
	opacity: 1;
	animation: glow-1 2s linear reverse infinite;
}

[data-letter="R"]::after,
[data-letter="G"]:not(:first-of-type):after {
	content: '';
	width: 100%;
	-webkit-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	-moz-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	animation: pulsing-light 2s linear reverse infinite;
}

[data-letter="R"]::after,
[data-letter="G"]:not(:first-of-type):after {
	content: '';
	width: 100%;
	-webkit-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	-moz-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	animation: glow-1 2s linear reverse infinite;
}

[data-letter="A"],
[data-letter="R"] {
	animation: pulsing-light 2s linear reverse infinite;
	position: relative;
}

#text {
	grid-area: text;
	background: var(--box-background);
	color: var(--box-text-color);
	text-shadow: var(--soft-text-shadow-small);
	border-radius: var(--border-radius);
}

.footer {
	margin-top: var(--main-padding);
}

#links {
	grid-area: links;
}

#links .inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, var(--links-size));
	grid-auto-rows: var(--links-size);
	grid-gap: 10px;
	justify-content: center;
}

#links a {
	display: flex;
	vertical-align: center;
	justify-content: center;
	box-shadow: var(--soft-box-shadow-large);
	background: var(--links-background);
	border-radius: var(--links-border-radius);
	align-items: center;
	color: var(--links-text-color);
	text-shadow: var(--soft-text-shadow-small);
	font-size: var(--links-font-size);
	border: 1px solid #fff;
	box-shadow: 0px 0px 10px rgba(255,255,255, 0.5), 
				var(--soft-box-shadow-large);
}

#links a > i {
	transition: transform .2s;
}

#links a:hover > i {
	transform: scale(1.5);
}

/* Bar style */
#progress .bar {
	background: var(--progress-bar-background);
	border-radius: calc(var(--progress-bar-border-radius) + calc(var(--progress-bar-border-radius) / 2));
	display: block;
	margin-bottom: 3px;
	text-shadow: var(--soft-text-shadow-small);
	border: var(--progress-bar-border);
	padding: 5px;
}

#progress .bar span {
	background: var(--progress-bar-value-color);
	border-radius: var(--progress-bar-border-radius);
	padding: var(--progress-bar-padding);
	display: inline-block;
	overflow-wrap: normal;
	border: 1px solid #fff;
	box-shadow: 0px 0px 10px rgba(255,255,255, 0.5), 
				var(--soft-box-shadow-large);
}

#progress .bar span::after {
	content: '';
	width: 100%;
	-webkit-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	-moz-box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	box-shadow: -30px 0px 50px 5px rgba(255,255,255, 100%);
	animation: pulsing-light 2s linear reverse infinite;
}

/* Value style */
#progress [data]::before {
	content: attr(data);
	margin-right: 10px;
	font-weight: bold;
}


/* Mobile adjustments */

@media only screen and (max-width: 768px) {
	body {
		grid-template-columns: 100%;
		grid-template-areas: "header"
							 "links"
							 "text";
	}

	header {
		font-size: 2.3em;
	}

	#links .inner-container {
		display: grid;
		grid-template-columns: repeat(auto-fit, 40px);
		grid-auto-rows: 40px;
		grid-gap: 10px;
		justify-content: center;
	}

	.inner-container {
		width: 100%;
	}

	#links a {
		font-size: 1.3em;
	}

}

/* Logo animation frames */
@keyframes glow-1 {
	0% {
		opacity: 40%;
	}
	5% {
		opacity: 50%;
	}
	10% {
		opacity: 60%;
	}
	15% {
		opacity: 70%;
	}
	20% {
		opacity: 50%;
	}
	25% {
		opacity: 100%;
	}
	30% {
		opacity: 50%;
	}
	35% {
		opacity: 10%;
	}
	40% {
		opacity: 20%;
	}
	45% {
		opacity: 50%;
	}
	60% {
		opacity: 100%;
	}
	70% {
		opacity: 80%;
	}
	80% {
		opacity: 40%;
	}
	90% {
		opacity: 40%;
	}
	100% {
		opacity: 100%;
	}
}

@keyframes pulsing-light {
	0% {
		opacity: 20%;
	}
	5% {
		opacity: 30%;
	}
	10% {
		opacity: 25%;
	}
	15% {
		opacity: 50%;
	}
	25% {
		opacity: 80%;
	}
	30% {
		opacity: 45%;
	}
	35% {
		opacity: 15%;
	}
	40% {
		opacity: 25%;
	}
	45% {
		opacity: 20%;
	}
	60% {
		opacity: 90%;
	}
	70% {
		opacity: 40%;
	}
	80% {
		opacity: 45%;
	}
	90% {
		opacity: 20%;
	}
	100% {
		opacity: 40%;
	}
}

@keyframes pulsing-letters {
	0% {
		opacity: 20%;
	}
	5% {
		opacity: 30%;
	}
	10% {
		opacity: 25%;
	}
	15% {
		opacity: 50%;
	}
	25% {
		opacity: 40%;
	}
	30% {
		opacity: 30%;
	}
	35% {
		opacity: 15%;
	}
	40% {
		opacity: 25%;
	}
	45% {
		opacity: 40%;
	}
	60% {
		opacity: 15%;
	}
	70% {
		opacity: 20%;
	}
	80% {
		opacity: 30%;
	}
	90% {
		opacity: 20%;
	}
	100% {
		opacity: 40%;
	}
}