:root {
	/*color*/
	--text: white;
	--bg: black;
	--accent1: rgb(255, 125, 255);

	/*margin*/
	--margin-outside: 1rem;
	--margin-bottom: 3rem;

	@media screen and (min-width: 550px){
		--margin-outside: 1rem;
		--margin-bottom: 2rem;
	}
	@media screen and (min-width: 850px){
		--margin-outside: 1rem;
		--margin-bottom: 2rem;
	}

	--max-width: 800rem;
}

/*global*/
body{
	color: var(--text);
	background-color: var(--bg);
	text-decoration: none;
}

/*hover*/
a:hover{
	color: var(--accent1);
}
@media screen and (max-width: 550px){
	.grid_link:hover .grid_image img {
    transform: perspective(1000px) rotateY(-15deg);
}
}

.grid_link:hover .grid_image{
	opacity: 1;
}

/*header*/
.page_title{
	font-size: 5.5rem;
	text-align: center;
	line-height: 0.85;
	letter-spacing: -0.05rem;
	padding-top: var(--margin-bottom);
	padding-left: var(--margin-outside);
	padding-right: var(--margin-outside);
}
/*grid*/
.grid_link{
	text-decoration: none;
		@media screen and (min-width: 550px) and (max-width: 850px){
			display: grid;
			grid-template-rows: 2.5rem auto;
			height: 100%;
		}
}
.grid-wrapper{
	display: grid;
	grid-template-columns: 1fr;
		@media screen and (min-width: 550px) and (max-width: 850px){
			grid-template-columns: 1fr 1fr;
		}
	gap: var(--margin-bottom);
		@media screen and (min-width: 850px){
			gap: 0;
		}
		@media screen and (min-width: 550px) and (max-width: 850px){
			gap: 0;
		}
}
.grids{
	display: block;
	margin-top: var(--margin-bottom);
}
.grid{
	border-top: 1px solid white;
		@media screen and (min-width: 850px){
			border-top: none;
		}
		@media screen and (min-width: 550px) and (max-width: 850px){
			border-left: 1px solid white;
		}
	padding-top: .25rem;
	padding-left: var(--margin-bottom);
	padding-right: var(--margin-bottom);
		@media screen and (min-width: 550px) and (max-width: 850px){
			
			padding-left: 0;
			padding-right: 0;
		}
}
.grid_text{
	
	line-height: 0.9;
	font-size: 1.375rem;
		@media screen and (min-width: 850px){
			font-size: 2.75rem;
		}
		@media screen and (min-width: 550px) and (max-width: 850px){
			font-size: 1.375rem;
		}
	@media screen and (min-width: 850px){
		text-align: center;
		
	}
}
.grid_image{
	@media screen and (min-width: 850px){
		opacity: 0;
		position: fixed;
		
	}
	width: 15rem;
		@media screen and (min-width: 550px) and (max-width: 850px){
			width: 100%;
		}
	padding-top: var(--margin-bottom);
	padding-bottom: var(--margin-bottom);
		@media screen and (min-width: 550px) and (max-width: 850px){
			padding-top: 0;
			padding-bottom: 0;
		}
	margin-left: auto;
	margin-right: auto;
	img{
		padding-top: 1.5rem;
		width: 100%;
		transition: transform 300ms ease;
		display: block;
		
	}
}
/*desktop hover random*/
@media screen and (min-width: 850px) {

    .grid:nth-child(4n + 1) .grid_image {
        top: 3rem;
        left: 3rem;
    }

    .grid:nth-child(4n + 2) .grid_image {
        top: 3rem;
        right: 3rem;
    }

    .grid:nth-child(4n + 3) .grid_image {
        bottom: 3rem;
        left: 3rem;
    }

    .grid:nth-child(4n + 4) .grid_image {
        bottom: 3rem;
        right: 3rem;
    }
}
