@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');

body {
	background: #262a2b;
	font-family: 'Tenor Sans', sans-serif;
	margin: 0;
	min-height: 100%;
	letter-spacing: 0.2;
	color: #b7b7b7;
}

h1 {
	font-size: 45px;
	font-weight: 200;	
	text-align: center;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	margin-top: 60px;
	margin-bottom: 120px;
}

footer {
	text-align: center;
	font-size: 20px;
	padding-bottom: 15px;
	margin-top: auto;
	padding-top: 200px;
}

a {
	text-decoration: none;
	color: #b7b7b7;
	font-weight: bold;
}

svg {
	position: relative;
    top: 5px;
}

.tilesWrap {
	padding: 0;
	margin: 0 auto;
	list-style: none;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
}

.tilesWrap li {
	display: block;
	width: 20%;
	min-width: 200px;
	max-width: 230px;
	padding: 60px 20px 40px;
	position: relative;
	margin: 25px;
	min-height: 20vh;
	background: #262a2b;
	border: 1px solid #252727;
	text-align: left;
	box-shadow: 0 0 20px rgb(0,0,0,0.5);
}

.tilesWrap li h2 {
	font-size: 55px;
	color: #b7b7b7;
	margin: 0;
	position: absolute;
	opacity: 0.075;
	top: 35px;
	right: 10px;
	transition: all 0.3s ease-in-out;
}

.tilesWrap li h3 {
	font-size: 28px;
	color: #b7b7b7;
	margin-bottom: 5px;
	padding-bottom: 10px;
}

.tilesWrap li p {
	font-size: 18px;
	color: #b7b7b7;
	margin-top: 5px;
}

.site-button {
	background: transparent;
	border: 1px solid #b7b7b7;
	padding: 10px 20px;
	color: #b7b7b7;
	position: relative;
	transition: all 0.3s ease-in-out;
	transform: translateY(-40px);
	opacity: 0;
	cursor: pointer;
	overflow: hidden;
	z-index: 3;
	font-family: 'Tenor Sans', sans-serif;
	border-radius: 0;
	font-size: 14px;
	font-weight: bold;
	display: block;
}

.site-button:before {
	content: '';
	position: absolute;
	height: 100%;
	width: 120%;
	background: #b7b7b7;
	top: 0;
	opacity: 0;
	left: -140px;
	border-radius: 0 20px 20px 0;
	z-index: -1;
	transition: all 0.3s ease-in-out;
}

.tilesWrap li:hover button {
	transform: translateY(5px);
	opacity: 1;
}

.site-button:hover {
	color: #262a2b;
}

.site-button:hover:before {
	left: 0;
	opacity: 1;
}

.site-button.popup-button {
	transform: none;
	opacity: 1;
	margin: 0 auto;
	z-index: 3;
}

.tilesWrap li:hover h2 {
	top: 15px;
	opacity: 0.25;
}

.tilesWrap li:before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	z-index: -1;
	background: #fff;
	transform: skew(2deg, 2deg);
}

.tilesWrap li:after {
	content: '';
	position: absolute;
	width: 40%;
	height: 100%;
	left: 0;
	top: 0;
	background: rgba(255, 255, 255, 0.02);
	z-index: 0;
	pointer-events: none;
}

.tilesWrap li:nth-child(1):before {
	background: #f2709c;
	background: -webkit-linear-gradient(to right, #ff9472, #f2709c);
	background: linear-gradient(to right, #ff9472, #f2709c);
}

.tilesWrap li:nth-child(2):before {
	background: #c21500;
	background: -webkit-linear-gradient(to right, #e6ca70, #cb55d2);
	background: linear-gradient(to right, #e6ca70, #cb55d2);
}

.tilesWrap li:nth-child(3):before {
	background: #FC354C;
	background: -webkit-linear-gradient(to right, #0ABFBC, #FC354C);
	background: linear-gradient(to right, #0ABFBC, #FC354C);
}

.tilesWrap li:nth-child(4):before {
	background: #fc8535;
	background: -webkit-linear-gradient(to right, #fc8535, #0abf55);
	background: linear-gradient(to right, #fc8535, #0abf55);
}

.tilesWrap li:nth-child(5):before {
	background: #c21500;
	background: -webkit-linear-gradient(to right, #dfdc2f, #ad28b4);
	background: linear-gradient(to right, #dfdc2f, #ad28b4);
}

.tilesWrap li:nth-child(6):before {
	background: #4db2b6;
	background: -webkit-linear-gradient(to right, #4db2b6, #6e33ce);
	background: linear-gradient(to right, #4db2b6, #6e33ce);
}

.tilesWrap li:nth-child(7):before {
	background: #C9FFBF;
	background: -webkit-linear-gradient(to right, #FFAFBD, #C9FFBF);
	background: linear-gradient(to right, #FFAFBD, #C9FFBF);
}

.tilesWrap li:nth-child(8):before {
	background: #518081;
	background: -webkit-linear-gradient(to right, #b67c4d, #474870);
	background: linear-gradient(to right, #b67c4d, #474870);
}

.tilesWrap li:nth-child(9):before {
	background: #99ad4f;
	background: -webkit-linear-gradient(to right, #9e4db6, #2adb89);
	background: linear-gradient(to right, #9e4db6, #2adb89);
}

.tilesWrap li:nth-child(10):before {
	background: #604fad;
	background: -webkit-linear-gradient(to right, #c5364e, #cfdb2a);
	background: linear-gradient(to right, #c5364e, #cfdb2a);
}

/* Popup */

.popup {
	background: rgba(0, 0, 0, 0.67);
	position: fixed;
	display: none;
	z-index: 9999;
	height: 100%;
	width: 100%;
	left: 0;
	top: 0;
	backdrop-filter: blur(3px);
	font-size: 18px;
}

.wrapper {
	max-width: 600px;
    width: 70%;
    position: fixed;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background: #2d2e2e;
    padding: 40px 40px 30px;
}

.wrapper:before {
	content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: #fff;
    transform: skew(2deg, 2deg);
	background: #b1b1b1;
}

.wrapper:after {
	content: '';
    position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #262a2b;
	z-index: 1;
	box-shadow: 0 0 20px rgb(0,0,0,0.5);
}

.wrapper > p {
	margin: 0 0 25px 0;
	text-align: center;
	position: relative;
    z-index: 3;
}



@media screen and (max-width: 1024px) {	
	.tilesWrap {
		padding-bottom: 40px;
	}

	footer {
		font-size: 18px;
		padding: 0 0 15px 0;
	}

	.tilesWrap li h3 {
		font-size: 24px;
	}

	.tilesWrap li p {
		font-size: 18px;
	}

	.tilesWrap li {
		width: unset;
		min-width: 30%;
		max-width: 230px;
	}

	.site-button {
		transform: translateY(0);
		opacity: 1;
	}

	h1 {
		width: 80%;
		padding: 20px;
		font-size: 28px;
		margin: auto;
		display: block;
	}
}

@media screen and (max-width: 768px) {	

	.tilesWrap li {
		width: unset;
		min-width: 35%;
		max-width: 35%;
	}

	footer {
		font-size: 14px;
	}
}

@media screen and (max-width: 613px) {	

	.tilesWrap li {
		width: unset;
		min-width: 70%;
		max-width: 70%;
	}

	footer {
		font-size: 12px;
	}
}