* {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Oswald', sans-serif;
	line-height: 1.2;
	padding: 25vh 0;
	background: #fcfcfc;
}

.grid,
a,
.decor {
	-webkit-transition: .3s all ease-in;
	-o-transition: .3s all ease-in;
	-moz-transition: .3s all ease-in;
	transition: .3s all ease-in
}

.grid {
	width: 50vw;
	margin: 15px auto;
	display: grid;
	grid-template-columns: auto 1fr 1fr 1fr .5fr;
	grid-template-rows: auto 1fr 1fr auto auto;
	grid-gap: 5px 10px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.grid:hover {
	background: #e0e8ff;
}

h1,
h2 {
	font-weight: 600;
	font-size: 50px;
}

h1 {
	grid-column: 2 / 4;
	text-align: right;
	margin: 0;
	text-transform: uppercase;
	border-top: 5px solid #202020;
}

h2 {
	color: #3e66e6;
	-webkit-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	writing-mode: vertical-rl;
	grid-column: 3 / 4;
	grid-row: 2 / 5;
	margin-top: 5px;
	margin-right: 5px;
}

ul {
	grid-column: 1 / 3;
	grid-row: 4 / span 2;
	font-weight: 700;
	line-height: 1.2;
	-webkit-align-self: end;
	-ms-flex-item-align: end;
	align-self: end;
	list-style-type: none;
	padding: 0;
}

ul li {
	border-bottom: 5px solid #202020;
	text-align: left;
	padding: 2px 0;
}

p {
	border-top: 5px solid #202020;
	border-bottom: 5px solid #202020;
	font-weight: 700;
	grid-row: 3;
	grid-column: 4 / 6;
	-webkit-align-self: end;
	-ms-flex-item-align: end;
	align-self: stretch;
}

a {
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	height: 100%;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	background: #ddd;
	color: #3e66e6;
	text-transform: uppercase;
	font-size: 22px;
}

a:hover {
	color: #2245b3
}

.decor-1 {
	grid-column: 3 / 6;
	grid-row: 5;
	border-bottom: 25px solid #3e66e6;
}

.decor-2 {
	grid-column: 4 / 6;
	grid-row: 1 /2;
	border-top: 25px solid #3e66e6;
}

.decor-3,
.decor-4,
.decor-5 {
	border-right: 25px solid #3e66e6;
}

.decor-3 {
	grid-column: 1 / 2;
	grid-row: 1 /4;

}

.decor-4 {
	grid-column: 5 / 5;
	grid-row: 1 / 3;
}

.decor-5 {
	grid-column: 5 / 5;
	grid-row: 4 / 6;
}

.grid:hover .decor {
	border-color: #2245b3
}

@media screen and (max-width:1000px) {
	body {
		padding: 50px 0
	}
	.grid {
		-webkit-transform: rotate(0);
		-moz-transform: rotate(0);
		-ms-transform: rotate(0);
		-o-transform: rotate(0);
		transform: rotate(0);
		width: 90%;
		max-width: 650px;
	}
}

@media screen and (max-width:600px) {
	h1 {
		grid-column: 2 / 6;
		grid-row: 1/2;
		padding: 25px 35px 5px;
	}
	h2 {
		-webkit-writing-mode: horizontal-tb;
		-ms-writing-mode: lr-tb;
		writing-mode: horizontal-tb;
		grid-column: 1 / 6;
		grid-row: 4 / 6;
		padding: 25px 35px 35px 10px;
		border-left: 5px solid #202020;
	}

	ul {
		grid-column: 2 / 4;
		grid-row: 2 / span 2;
	}
	.decor-1 {
		grid-column: 1 / 6;
	}
}

@media screen and (max-width:450px) {

	h2 {
		grid-row: 2 / 3;
		border: 0;
		padding: 15px 35px;
	}
	ul {
		grid-column: 3 / 6;
		grid-row: 3 / 3;
	}


	p {
		grid-row: 4;
		grid-column: 1 / 5;
		border: 0;
		padding: 5px 0;
	}

	a {
		padding: 15px;
		border-left: 5px solid #3e66e6;
		background: #202020;
		color: #fcfcfc;
	}
	a:hover {
		background: #ddd;
		border-color: #202020
	}
}

@media screen and (max-width:375px) {
	h1,
	h2 {
		font-size: 35px
	}
}
