:root {
	--color-primary: #7a45ff;
	--color-one: #fd6786;
	--color-two: #ffd068;
	--color-white: #ffffff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
	font-family: 'Blomberg';
	src: url('./assets/fonts/Blomberg.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: 'Blomberg', sans-serif;
}

.container {
	position: relative;

	height: 100vh;
	max-height: 100vh;
	color: var(--color-white);
	background-color: var(--color-primary);
	font-size: 1.5rem;
	overflow: hidden;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.game-area-container {
	position: relative;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.game-area {
	padding: 1rem;
	background-color: var(--color-white);
	border-radius: 1rem;

	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.75rem;
}

.circle {
	display: block;
	height: 3.5rem;
	width: 3.5rem;
	background-color: var(--color-primary);
	border-radius: 50%;
	cursor: pointer;
}

.player {
	position: relative;
	margin-bottom: 2rem;
	transition:
		top 1000ms linear,
		left 150ms linear;
	cursor: default;
}

.player1 {
	background-color: var(--color-one);
}

.player2 {
	background-color: var(--color-two);
}

.restart-button {
	position: absolute;
	top: 1rem;
	left: 1rem;

	height: 2.5rem;
	width: 2.5rem;
	padding: 0.5rem;
	color: black;
	background-color: var(--color-white);
	border-radius: 10px;
	cursor: pointer;
}

.shake {
	animation: shakeX;
	animation-duration: 2000ms;
}

.falling {
	animation: falling 1500ms forwards;
}

@keyframes falling {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(500px);
	}
}

@media (max-width: 600px) {
	.container {
		font-size: 1rem;

		gap: 0.5rem;
	}

	.game-area {
		padding: 0.5rem;
		border-radius: 0.5rem;

		gap: 0.5rem;
	}

	.circle {
		height: 2rem;
		width: 2rem;
	}
}
