:root {
	--primary-color: #183049;
	--secondary-color: #0f212e;
	--tertiary-color: #213c55;
	--quaternary-color: #2e323f4d;
}

p {
	margin: 0;
}

button {
	width: 100%;
}

h1 {
	font-size: 22px;
}

h2 {
	font-size: 18px;
}

.note {
	font-size: 12px;
	color: rgb(166, 166, 166);
}

.container {
	max-width: 1000px;
	width: 90%;
	color: white;
}

#rewards_container {
	margin-top: 100px;
	display: grid;
	width: 100%;
	height: 900px;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1.5fr;
	gap: 15px;
}

#selector {
	display: none;
	background-color: var(--primary-color);
	height: 50px;
	margin-top: 10px;
	justify-content: space-between;
}

#cashback_container {
	grid-column: 1 / 4;
	grid-row: 1 / 2;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.cashback {
	height: 88%;
	width: 22%;
	background-color: var(--secondary-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.cashback > img {
	width: 130px;
}

.cashback_info {
	font-size: 15px;
	width: 89%;
	display: flex;
	align-items: center;
}

.cashback_info img {
	margin-left: 5px;
	width: 15px;
	height: 15px;
}

.cashback_claim {
	width: 89%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--tertiary-color);
	border-radius: 10px;
}

#affiliate_container {
	grid-column: 1 / 3;
	grid-row: 2 / 3;
	background-color: var(--primary-color);
	display: flex;
	justify-content: space-around;
	align-items: center;
}

#affiliate_container > div {
	width: 46%;
	height: 90%;
}

#affiliate_info_container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}

.affiliate_info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--secondary-color);
	width: 45%;
	height: 45%;
}

#affiliate_action {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#affiliate_claim_container {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--tertiary-color);
	border-radius: 10px;
}

#affiliate_claim {
	height: 38px;
	font-size: 22px;
}

.affiliate_link {
	margin-top: 5px;
	padding-left: 10px;
	display: flex;
	width: 100%;
	background-color: var(--secondary-color);
	border-radius: 10px;
}
.affiliate_link div {
	width: 100%;
}
.affiliate_link p {
	width: 100%;
}
.affiliate_link input {
	width: 100%;
}
.affiliate_link button {
	width: 70px;
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
}

#star_container {
	grid-column: 1 / 2;
	grid-row: 3 / 4;
	background-color: var(--primary-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#task_container {
	grid-column: 2 / 3;
	grid-row: 3 / 4;
	display: flex;
	flex-direction: column;
}

.task_sub {
	width: 100%;
	height: 50%;
}

.task_sub > h1 {
	background-color: var(--tertiary-color);
	height: 20%;
	padding-left: 5px;
}
.task_sub h2 {
	padding-left: 5px;
}
.task_sub > div {
	background-color: var(--quaternary-color);
	height: 80%;
	overflow: scroll;
}

.available_task_h {
	display: flex;
	justify-content: space-between;
	background-color: var(--secondary-color);
}

.available_task_d {
	background-color: var(--quaternary-color);
	display: none;
}

.available_task_d > div {
	display: flex;
	justify-content: space-between;
}

.task_claimable {
	background-color: var(--secondary-color);
	display: flex;
	justify-content: space-between;
}

.task_claimable button {
	width: 60px;
	border-radius: 0;
}

.task_finished {
	background-color: var(--secondary-color);
	text-decoration: line-through;
}

#leaderboard_container {
	grid-column: 3 / 4;
	grid-row: 2 / 4;
	background-color: var(--primary-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.selector_arrow {
	font-size: 18px;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

#selector_left {
	text-align: left;
}

#selector_right {
	text-align: right;
}

@media screen and (max-width: 800px) {
	#rewards_container {
		margin-top: 100px;
		display: block;
		width: 100%;
		height: fit-content;
		gap: 10px;
	}

	#selector {
		display: flex;
	}

	#cashback_container {
		height: 460px;
		margin-bottom: 10px;
		flex-wrap: wrap;
		/* display: flex; */
		/* align-items: center; */
		/* justify-content: space-around; */
	}
	.cashback {
		height: 45%;
		width: 45%;
	}
	.cashback > img {
		width: 120px;
	}
	.cashback_info {
		font-size: 12px;
	}
	#affiliate_container {
		height: 250px;
		margin-bottom: 10px;
	}
	#star_container {
		height: 400px;
		display: none;
	}
	#task_container {
		height: 400px;
	}
	#leaderboard_container {
		height: 400px;
		display: none;
	}
}

@media screen and (max-width: 500px) {
	#affiliate_container {
		flex-direction: column;
		height: 500px;
	}

	#affiliate_container > div {
		width: 90%;
		height: 45%;
	}
}

.yellowtape {
	position: fixed;
	width: 100%;
	height: 50px;
	background-image: repeating-linear-gradient(-55deg, #0000009f, #0000009c 20px, #ffb301b2 20px, #ffb301a4 40px);
	z-index: 10;
	left: 0;
}

#yellowtape1 {
	top: calc(50% - 75px);
}
#yellowtape2 {
	top: calc(50% + 75px);
}
#comingsoon {
	top: calc(50% - 25px);
	left: 0;
	position: fixed;
	width: 100%;
	height: 100px;
	background-color: rgba(0, 0, 0, 0.666);
	z-index: 10;
	text-align: center;
	line-height: 112px;
	font-size: 50px;
}
