
:root {
	--theme-toggle-width: 80px;
	--card-border-radius: 32px;
	--card-shiny-width: 25%;
	
	--header-text-color: #ffaa33;
}

[data-theme="light"] {
	--bg-color: #d4b89b;
	--bg-gradient-header: radial-gradient(circle at 50% 50%, #5b423f 0, #2c1c1d 60%);
	--bg-gradient-body: radial-gradient(at top, #e6cdb4 0%, #bfa385 70%);
    --bg-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%79b6b1AC' fill-opacity='0.025' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), var(--bg-gradient-body);
    --bg-svg: url('data:image/svg+xml,<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="5" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.25"/></svg>'), var(--bg-gradient-body);
	--text-color: #000;
	--theme-icon-margin: 1px;
	--theme-toggle-bg: #e4c7a9;
}


[data-theme="dark"] {
	--bg-color: #202124;
	--bg-gradient-header: radial-gradient(circle at 50% 50%, #2b3644 0, #1a232f 60%);
    --bg-gradient-body: radial-gradient(at top, #262f44 0%, #161b26 70%);
    --bg-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%79b6b1AC' fill-opacity='0.08' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), var(--bg-gradient-body);
    --bg-svg: url('data:image/svg+xml,<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="5" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.15"/></svg>'), var(--bg-gradient-body);
	--text-color: #e9eae1;
	--theme-icon-margin: calc(var(--theme-toggle-width) - 37px);
	--theme-toggle-bg: #33394d;
}

body {
	width: 100%;
	height: 100vh;
	margin: 0px;
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	background: var(--bg-color);
    background-image: var(--bg-svg);
    background-attachment: fixed;
	color: var(--text-color);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.header, .footer {
	background: radial-gradient( circle, #5b423f 0%, #2c1c1d 90%);
	background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(45deg, rgba(0,255,128,0.09) 0, rgba(0,255,128,0.09) 1px, transparent 1px, transparent 20px),
       repeating-linear-gradient(-45deg, rgba(255,0,128,0.10) 0, rgba(255,0,128,0.10) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
        var(--bg-gradient-header);
    background-size: 80px 80px, 40px 40px, 60px 60px, 80px 80px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 40px 40px, center;
	width: 100%;
	color: #e9eae1;
	display: flex;
}

.header {
	font-size: 48px;
	font-weight: bold;
		
	justify-content: center;
	padding: 8px;
	box-shadow: rgba(0, 0, 0, 0.60) 0px 4px 12px, rgba(0, 0, 0, 0.30) 0px 10px 12px;
	box-sizing: border-box;
}


.footer {
	box-shadow: rgba(0, 0, 0, 0.60) 0px -4px 12px, rgba(0, 0, 0, 0.30) 0px -10px 12px;
}


.content {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-flow: column;
}

.language-selection {
	display: flex;
	width: 100%;
	justify-content: end;
	align-items: center;
	margin-right: 80px;
}


.language-icon {
	width: 40px;
	height: 32px;
	cursor: pointer;
	margin-right: 32px;
}


.page-description {
	font-size: 22px;
	text-align: center;
	line-height: 44px;
	margin-bottom: 60px
}


.al-game-selection {
	display: flex;
	justify-content: space-around;
	padding: 40px 80px;
}


.al-game {
	width: 25%;
	border-radius: var(--card-border-radius);
	cursor: pointer;
	position: relative;
	display: flex;
}


.al-game::before {
	position: absolute;
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff30;
	z-index: 2;
	animation: image-shiny-animation 9s infinite linear;
	border-radius: var(--card-border-radius);
	clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}


.al-game:nth-child(1)::before {
	animation-delay: 1s
}


.al-game:nth-child(2)::before {
	animation-delay: 4s
}


.al-game:nth-child(3)::before {
	animation-delay: 7s
}


@keyframes image-shiny-animation {
	/*0% { }
	1% { clip-path: polygon(0 40px, 40px 0, 80px 0px, 0px 80px); }
	20% { clip-path: polygon(0 calc(100% - 40px), calc(100% - 40px) 0, calc(100% - 80px) 0px, 0px calc(100% - 80px)); }
	40% { clip-path: polygon(40px 100%, 100% 40px, 100% 80px, 80px 100%); }*/
	0% { clip-path: polygon(0 0, 1% 0, 1% 100%, 0% 100%); }
	1% { clip-path: polygon(0 0, var(--card-shiny-width) 0, var(--card-shiny-width) 100%, 0% 100%); }
	3% { clip-path: polygon(calc(100% - var(--card-shiny-width)) 0, 100% 0, 100% 100%, calc(100% - var(--card-shiny-width)) 100%); }
	4% { clip-path: polygon(99% 0, 100% 0, 100% 100%, 99% 100%); }
	5%, 100% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
	
}

.al-game-image {
	width: 100%;
	border-radius: 32px;
	transition: ease-out 250ms;
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	position: relative;
}

.al-game:hover .al-game-image {
	transform: scale(1.10);
	filter: brightness(0.45);
}

.al-game:hover::before {
	z-index: -1;
}

.al-game-info {
	position: absolute;
	bottom: 0px;
	left: 0px;
	opacity: 0;
	color: #fff;
	font-size: 18px;
	transition: ease-out 250ms;
	text-shadow: 1px 1px 2px black;
	padding: 16px 32px;
	
}


.al-game:hover .al-game-info {
	opacity: 1;
	transform: scale(1.10);
}



#footer-description {	
	padding: 16px 80px;
	text-wrap: balance;
	text-align: center;
	width: 100%;
}

#theme-toggle {
	width: var(--theme-toggle-width);
	height: 40px;
	border-radius : 20px;
	position: relative;
	display: flex;
	align-items: center;
	margin-left: 40px;
	cursor: pointer;
	background: var(--theme-toggle-bg);
	webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none; 
    user-select: none;
	box-shadow: inset 0 0 2rem 2rem rgba(0, 0, 0, 0.2), inset 0 0.4rem 0.4rem rgba(0, 0, 0, 0.2), inset 0 1rem 1rem rgba(0, 0, 0, 0.2), 0 -0.25em 0.20em rgba(0, 0, 0, 0.10), 0 0.25em 0.25em rgba(255, 255, 255, 0.08);
}

#theme-icon {
	width: 32px;
	height: 32px;
	margin-left: var(--theme-icon-margin);
	background: hsl(from var(--theme-toggle-bg) h s calc(l - 5));
	padding: 3px;
	border-radius: 50%;
	box-shadow: inset 0 0.25rem 0.25rem rgba(255, 255, 255, 0.08), inset 0 -0.25rem 0.25rem rgba(0, 0, 0, 0.2), 0 0.4rem 0.4rem rgba(0, 0, 0, 0.5), 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

