@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&family=Indie+Flower&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,700;1,6..12,300;1,6..12,400;1,6..12,500;1,6..12,700&family=Shadows+Into+Light&display=swap');

*,
*::before,
*::after {
	box-sizing: border-box;
}
* {
	margin: 0;
}
body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}
input,
button,
textarea,
select {
	font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}
#root,
#__next {
	isolation: isolate;
}
li,
ul,
ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vw-h-screen {
	height: 100vh;
	width: 99vw;
	background: hsl(211, 100%, 22%);
	.content {
		margin-top: 2rem;
		margin: 1rem;
		max-width: 1920px;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}
}

.field {
	height: 80vh;
	width: 60vw;
	background: hsl(125, 100%, 40%);
	display: flex;
	flex-direction: row;
	align-items: start;
	margin: 1rem;
	border-radius: 4px;
	padding: 1rem;
	border: 6px solid rgba(15, 15, 15, 0.8);
	overflow: hidden;

	._players {
		height: 100%;
		display: flex;
		flex-direction: row;
		align-content: flex-start;
		gap: 1rem;
		flex-wrap: wrap;
	}
}

.bench {
	&.left {
		height: 80vh;
		width: 20vw;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: start;
		z-index: 10;
		&::before {
			content: '';
			z-index: -10;
			position: absolute;
			top: 0;
			left: 0;
			height: 100%;
			width: 40%;
			background: #351e10;
		}
	}
	&.right {
		height: 80vh;
		width: 20vw;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: end;
		z-index: 10;
		&::before {
			content: '';
			z-index: -10;
			position: absolute;
			top: 0;
			right: 0;
			height: 100%;
			width: 40%;
			background: #351e10;
		}
	}

	.team-title {
		font-size: 1.5rem;
		color: white;
		position: relative;
		z-index: 10;
		top: -2.6rem;
		background-color: rgb(0, 29, 54);
		text-align: center;
		text-transform: uppercase;
		margin-right: auto;
		margin-left: auto;
		border-radius: 1rem 1rem 1rem 1rem;
		width: 100%;
	}
}

.player {
	width: 150px;
	margin-bottom: 0.5rem;
	z-index: 50;
	display: flex;
	flex-direction: column;
	position: relative;
	height: fit-content;
	.player-img {
		height: 150px;
		width: 100%;
		object-fit: cover;
		pointer-events: none;
		border-radius: 50% 50% 2px 2px;
	}
	#more-details {
		padding: 0;
		margin: 0;
		border: none;
		width: 150px;
		height: 150px;
		background: transparent;
		cursor: pointer;
		display: flex;
		flex-direction: column;
	}
	.player-name {
		position: absolute;
		top: 120px;
		left: 0;
		width: 100%;
		border-radius: 0 0 2px 2px;
		background: rgba(255, 255, 255, 0.8);
		color: rgb(0, 0, 0);
		padding: 0.2px;
		font-size: 1.5rem;
		text-align: center;
		font-family: 'Indie Flower', cursive;
	}
	.player-details {
		display: none;
		position: relative;
		border: 0 transparent;
		width: 150px;
		padding: 2px;
		background: white;
		border-radius: 0 0 4px 4px;
		z-index: 30;
		/* cursor: pointer; */
	}
}

/* Enter field animation */
.player-enter {
	animation: enterField 1s ease-in-out;
	animation-fill-mode: forwards;
}

#new-player-form {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	margin-inline: auto;
	width: 80%;
	flex-wrap: wrap;
	.addPlayerForm{
		display: flex;
		flex-direction: row;
		gap: 1rem;
	}
}
.addPlayerForm {
	color: white;
	font-weight: 700;
	.input {
		border-radius: 5px;
		border: 2px transparent;
	}
}

.show{
	display: block !important;
}

@keyframes enterField {
	0% {
		transform: translateX(-100vw);
	}
	100% {
		transform: translateX(0);
	}
}
.z-index-1000 {
	z-index: 1000;
}
