#team-maker-first-section {
	background-image: url("../ValoHub_Files/team_maker_page/section_1_team_maker_bg_16x9.svg");
}

#team-maker-saved-section {
	background-image: url("../ValoHub_Files/team_maker_page/section_2_team_maker_bg_16x9.svg");
	background-color: #ece8e1;
	background-repeat: no-repeat;
}

#team-maker-saved-section h1,
h3,
p {
	color: #0f1923;
}

.text-container {
	padding: 5rem 5rem 0rem 5rem;
}

.second-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-top: 5rem;
}

h1,
h2 {
	color: white;
}

.custom-select {
	display: flex;
	justify-content: flex-end;
}

.custom-select select {
	width: 15vw;
	padding: 0.5rem 1rem 0.5rem 1rem;
	font-size: 1.2rem;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	border: none;
	color: black;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("../ValoHub_Files/general_files/keyboard_arrow_down.svg");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

.custom-select select:hover {
	opacity: 80%;
}

.agent-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex: 1;
}

.agent-btn img {
	display: block;
	width: 100%;
}

.custom-select select:focus {
	outline: none;
}

.selection-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	flex: 1;
	padding-right: 5rem;
}

.agent-btn img {
	filter: grayscale(100%);
	transition: filter 0.3s;
}

.agent-btn:hover img,
.agent-btn.selected img {
	filter: grayscale(0%);
	outline: 2px solid #ff4655;
}

.agent-btn:active {
	transform: scale(0.95);
}

.save {
	grid-column: span 4;
	margin-top: 5%;
	padding: 1rem;
	font-weight: 600;
	background-color: #555;
	pointer-events: none;
	transition: all 0.3s;
}

.save.active {
	background-color: #ff4655;
	pointer-events: auto;
	cursor: pointer;
}

.save:hover {
	background-color: white;
	color: #ff4655;
}

.third-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 5.5rem;
}

.map-image {
	flex: 1;
}

.map-image img {
	width: 46vw;
}

.container-team {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	padding: 3rem 0 5.5rem;
}

h3 {
	font-size: 3rem;
}

.composition-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 3vw;
	padding-left: 3vw;
}

.banner {
	height: 20vw;
}

.delete-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	justify-content: center;
}

.delete-btn img {
	max-width: 2rem;
	opacity: 0.6;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.delete-btn:hover img {
	opacity: 1;
	transform: scale(1.1);
}

@media (max-width: 1440px) {
	.custom-select select {
		width: 20vw;
	}
	.custom-select {
		justify-content: center;
	}
}

@media (max-width: 1024px) {
	#team-maker-saved-section {
		background-image: url("../ValoHub_Files/team_maker_page/section_2_team_maker_bg.svg");
	}

	.custom-select select {
		width: 40vw;
	}

	#team-maker-first-section {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}

	.second-line {
		display: inline-block;
		align-items: center;
		padding-top: 3rem;
		padding-bottom: 2rem;
	}

	h2 {
		font-size: 3rem;
	}

	h3 {
		font-size: 2.6rem;
	}

	.third-line {
		display: flex;
		align-items: center;
		padding-bottom: 2rem;
		flex-direction: column-reverse;
		align-items: center;
		padding-bottom: 5.5rem;
	}

	.map-image img {
		width: 60vw;
	}

	.selection-grid {
		padding-right: 0;
		width: 60vw;
		padding-top: 2rem;
	}

	h1 {
		text-align: center;
	}

	.container-team {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.name-map h3 {
		margin-bottom: 1rem;
	}

	.composition-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
	}

	.composition-grid .banner {
		width: 48%;
		height: auto;
	}

	.delete-btn {
		margin-top: 1rem;
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.delete-btn img {
		max-width: 2.5rem;
	}
}

@media (max-width: 468px) {
	.custom-select select {
		width: 100%;
	}

	.selection-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.save {
		grid-column: span 2;
	}

	h1 {
		font-size: 3rem;
	}

	h2 {
		font-size: 2.6rem;
	}

	h3 {
		font-size: 1.8rem;
	}
}
