:root {
	--main-area-margin-x: 20vw;
	--color-red: #69140a;
	--color-green: #00382f;
}

@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Poiret+One&display=swap');

* {
	margin: 0;
	box-sizing: border-box !important;
	font-family: "Poiret One";
	font-weight: bold;
}

img, nav a, .button {
	user-select: none !important;
}

a {
	text-decoration: none;
}

a span {
	position: relative;
}

a span::before {
	content: "";
	position: absolute;
	display: block;
	width: 100%;
	height: 2px;
	bottom: 0;
	left: 0;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

a span:hover::before {
	transform: scaleX(1);
}

h1, h2, h3, h4, h5, h6, .title {
	font-family: "Dela Gothic One";
}

h2, h3, h4, h5, h6 {
	color: var(--color-green);
}

img {
	max-height: 100%;
	max-width: 100%;

	object-fit: cover;
	object-position: center;
}

.full-width {
	width: 100%;
}

.decorated {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;

	margin-bottom: 2rem;

	width: 100%;

	column-gap: 1vw;
}

.decorated .text {
	font-family: inherit;

	padding: 0 4vw;

	white-space: nowrap;

	flex: 1;
	flex-basis: 1;
	flex-grow: 0;
	flex-shrink: 0;
}

.decoration-line {
	display: block;

	height: 4px;
	width: 100%;
	min-width: 10vw;

	flex: 1;
	flex-shrink: 1;
	flex-basis: 1;
}

div.main-container {
	display: grid;
	min-height: 100vh;
	grid-template-areas:
		"header"
		"content"
		"footer";
	grid-template-rows: 7rem auto max-content;
	grid-template-columns: 100vw;
	width: 100vw;
}

a.button {
	all: unset;
	cursor: pointer;
	display: inline-block;
	border-radius: 7px;
	text-align: center;
	background-color: var(--color-red);
	color: white;
	font-weight: 550;
	border-radius: 5rem;
	transition: 400ms background-color, 400ms color;
}

a.button:hover {
	background-color: white;
	color: var(--color-red);
}

.square-tile {
	background-color: var(--color-green);
	color: white;

	width: 24rem;

	border-radius: 10px;

	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;

	padding: 0.75rem;

	row-gap: 0.5rem;
}

.square-tile :is(img, .bg-img) {
	border-radius: 10px;

	height: 20rem;
	width: auto;
	aspect-ratio: 1 / 1;
}

.square-tile .bg-img {
	background-position: center;
	background-size: cover;
}

.square-tile .date {
	font-size: 1.7rem;
}

.square-tile .button {
	width: 18rem;
	height: 3rem;

	font-size: 1.8rem;

	line-height: 3rem;
}

.data-block {
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
}

a.data {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: flex-start;
}

a.data .icon {
	height: 100%;
	margin-right: 1vw;
}

a.data .icon img {
	aspect-ratio: 1 / 1;
}

.tile-column-list {
	width: 100%;
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.tile-row-list {
	width: 100%;
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: flex-start;
}

.tile-row-list.row-3 {
	gap: 2rem;
	
	max-width: 76rem;

	flex-wrap: wrap;
}

.tile.img.left .img {
	order: 1;
}

.tile.img.right .img {
	order: -1;
}

.system-message {
	padding: 0.5rem 10%;
	margin: 1.5rem 0;

	background-color: #7bbc8b;
	color: white;

	font-size: 1.5rem;
	line-height: 2rem;

	border-radius: 25px;

	text-align: center;
}

.mobile {
	display: none;
}

@media screen and (width < 1140px) {
	div.main-container {
		grid-template-rows: 5rem auto max-content;
	}

	.decoration-line {
		min-width: unset;
	}

	.square-tile {
		width: 20rem;
	}

	.square-tile :is(img, .bg-img) {
		height: 16rem;
	}

	.square-tile .button {
		width: 18rem;
		height: 3rem;

		font-size: 1.8rem;

		line-height: 3rem;
	}

	.tile-column-list {
		flex-flow: column nowrap;
		align-items: center;
	}

	.tile-row-list {
		width: 100%;
		display: flex;
		flex-flow: column;
		justify-content: flex-start;
		align-items: center;
	}

	.tile-row-list.row-3 {
		max-width: unset;

		flex-wrap: nowrap;
	}

	.tile.img .img {
		order: unset;
	}
}

@media screen and (width < 700px) {
	.mobile {
		display: block;
	}

	.non-mobile {
		display: none;
	}
}
