@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
	box-sizing: border-box;
}

html,
body {
	font-family: 'Ubuntu', sans-serif;
	font-size: 16px;
	padding: 0;
	margin: 0;
}

.game-wrapper {
	background-image: url(./assets/background/main.svg);
	background-position: 0rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100vh;
	background-size: cover;
	/* overflow: hidden; */
}

#cvc-game-wrapper .global-actions {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
	z-index: 10;
}

#cvc-game-wrapper .global-actions .left-actions,
#cvc-game-wrapper .global-actions .right-actions {
	display: flex;
	gap: 8px;
}

#cvc-game-wrapper .global-actions .action-btn {
	min-width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #37803b;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #fff;
	border: none;
	cursor: pointer;
	transition: all ease 0.2s;
}
#cvc-game-wrapper .global-actions .action-btn:hover {
	background-color: #d4d4d4;
}
#cvc-game-wrapper .global-actions .action-btn.restart {
	border-radius: 100px;
	padding: 12px 16px;
}

#cvc-game-wrapper .menu .menu-actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

#cvc-game-wrapper button.btn {
	border: none;
	border-radius: 100px;
	padding: 12px 16px;
	font-size: 20px;
	font-weight: 700;
	background-color: #ededed;
	font-family: 'Ubuntu', sans-serif;
	cursor: pointer;
}

#cvc-game-wrapper button.btn.secondary-btn {
	background-color: transparent;
	color: #37803b;
}
#cvc-game-wrapper button.btn.secondary-btn:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

#cvc-game-wrapper button.btn.start {
	background-color: #fddf05;
}

#cvc-game-wrapper #gameContainer {
	display: none;
}

#cvc-game-wrapper .multiplayer-dialog {
	min-width: 756px;
	height: 500px;
	padding: 0 2rem;
	border-radius: 24px;
	border: 1rem solid #86ce59;
	background-color: #afdf90;
	text-align: center;
	display: none;
}

#cvc-game-wrapper .multiplayer-dialog h1,
#cvc-game-wrapper .multiplayer-dialog h3 {
	font-size: 40px;
	font-weight: 700;
	color: #37803b;
}
#cvc-game-wrapper .multiplayer-dialog h3 {
	font-size: 20px;
}

#cvc-game-wrapper .multiplayer-dialog button.btn {
	font-size: 16px;
}

#cvc-game-wrapper .multiplayer-dialog .players-selection {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 3rem;
}

#cvc-game-wrapper .multiplayer-dialog .player {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#cvc-game-wrapper .multiplayer-dialog .avatar {
	height: 120px;
	width: 120px;
	background-image: url('assets/img/players/player-1.png');
	position: relative;
}

#cvc-game-wrapper .multiplayer-dialog .avatar button.remove-btn {
	border: none;
	border-radius: 50%;
	color: #fff;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #37803b;
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
}

#cvc-game-wrapper .multiplayer-dialog input.inputText {
	width: 204px;
	border-radius: 100px;
	padding: 0 16px;
	height: 48px;
	border: none;
	text-align: center;
	font-size: 18px;
	font-family: 'Ubuntu', sans-serif;
}
#cvc-game-wrapper .multiplayer-dialog .player h3{
  margin: 1rem 0;
}

#cvc-game-wrapper .multiplayer-dialog .add-player {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#cvc-game-wrapper .multiplayer-dialog .add-player button.btn {
	width: 204px;
	height: 48px;
	border-radius: 100px;
	color: #fff;
	font-family: 'Ubuntu', sans-serif;
	background-color: #37803b;
}
#cvc-game-wrapper .multiplayer-dialog .add-player button.btn:disabled {
	background-color: #97b899;
	color: #d8d8d8;
	cursor: auto;
}

#cvc-game-wrapper .multiplayer-dialog .avatar-placeholder {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background-color: #86ce5980;
	color: #37803b;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 3.9rem;
	font-size: 1.5rem;
}

/********************** QUESTIONS ***********************/
#cvc-game-wrapper .question-wrapper {
	flex-direction: column;
	align-items: center;
	color: #fff;
	padding: 0 2rem;
	margin-top: 2rem;
}

#cvc-game-wrapper .question-wrapper h2 {
	/* margin-bottom: 2rem; */
	font-weight: 700;
	font-size: 28px;
	text-align: center;
}

#cvc-game-wrapper .question-wrapper .avatar {
	text-align: center;
}
#cvc-game-wrapper .question-wrapper .avatar img {
	width: 90px;
	height: 90px;
}
#cvc-game-wrapper .question-wrapper .avatar h3 {
	font-size: 26px;
	font-weight: 700;
	margin: 4px 8px;
	text-align: center;
}

#cvc-game-wrapper .question-wrapper .options {
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 24px;
	grid-row-gap: 24px;
	max-width: 800px;
	min-width: 600px;
}

#cvc-game-wrapper .question-wrapper .options.small .option-image div {
	width: 235px;
	height: 100px;
	/* background-image: url(https://nationaltoday.com/wp-content/uploads/2022/06/14-Sea-Serpent.jpg); */
}
#cvc-game-wrapper .question-wrapper .options.small {
	grid-column-gap: 15px;
	grid-row-gap: 15px;
}

#cvc-game-wrapper .question-wrapper button.option {
	padding: 45px;
	border-radius: 500px;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	display: block;
	border: none;
	cursor: pointer;
	transition: all ease 0.2s;
}
#cvc-game-wrapper .question-wrapper button.option:focus {
	transform: scale(0.9);
	box-shadow: 0 0 5px 5px #c9ff70;
}
#cvc-game-wrapper .question-wrapper .option:nth-child(1) {
	background-color: #ea5c5c;
}
#cvc-game-wrapper .question-wrapper .option:nth-child(2) {
	background-color: #ffd84d;
	color: #484848;
}
#cvc-game-wrapper .question-wrapper .option:nth-child(3) {
	background-color: #01acc6;
}
#cvc-game-wrapper .question-wrapper .option:nth-child(4) {
	background-color: #99d734;
}

#cvc-game-wrapper .question-wrapper .banner {
	width: 700px;
	text-align: right;
	margin: 0 auto 2rem;
}

#cvc-game-wrapper .question-wrapper .banner a {
	color: #fff;
	text-decoration: none;
}

#cvc-game-wrapper .question-wrapper button.option.option-sm {
	padding: 16px 24px;
}

#cvc-game-wrapper .question-wrapper button.option.option-image {
	border-radius: 24px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
}
#cvc-game-wrapper .question-wrapper button.option.option-image div {
	width: 355px;
	height: 180px;
	margin-top: 8px;
	border-radius: 15px;
	background-size: cover;
	background-repeat: repeat;
	background-position: center;
}

#cvc-game-wrapper .overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	background-color: hsla(0, 0%, 0%, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	display: none;
}

#cvc-game-wrapper .overlay .dialog {
	width: 732px;
	padding: 2rem;
	background-color: #01acc6;
	color: #fff;
	border: 16px solid #ffe266;
	border-radius: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	position: relative;
	box-shadow: 0 0 15px 5px rgb(4 4 4 / 42%);
	display: none;
}

#cvc-game-wrapper .overlay .dialog.success-dialog,
#cvc-game-wrapper .overlay .dialog.timeout-dialog {
	background-color: #01acc6;
}
#cvc-game-wrapper .overlay .dialog.error-dialog {
	background-color: #6b0d00;
}

#cvc-game-wrapper .overlay .dialog h2 {
	font-size: 48px;
	font-weight: 700;
	margin: 0;
}

#cvc-game-wrapper .overlay .dialog.timeout-dialog h2 {
	font-size: 32px;
}

#cvc-game-wrapper .overlay .dialog .question-desc,
#cvc-game-wrapper .overlay .dialog .question-help {
	font-size: 22px;
	font-weight: 400;
	text-align: center;
}
#cvc-game-wrapper .overlay .dialog-close {
	height: 48px;
	width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	border: none;
	border-radius: 50%;
	position: absolute;
	top: -30px;
	right: -30px;
	cursor: pointer;
}

/******************  ******************/
#cvc-game-wrapper .timer {
	opacity: 0;
	position: absolute;
	top: 17px;
	left: calc(50% - 64px);
	z-index: 10;
	color: #37803b;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 100px;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 28px;
	gap: 8px;
}

#cvc-game-wrapper .timer i {
	font-size: 18px;
}

#cvc-game-wrapper .win-dialog,
#cvc-game-wrapper .lose-dialog,
#cvc-game-wrapper .multiplayer-win-dialog {
	position: relative;
	width: 400px;
	height: 594px;
	border-radius: 24px;
	border: 1rem solid #ffe266;
	overflow: hidden;
	 display: none;
}

#cvc-game-wrapper .multiplayer-win-dialog {
	width: 734px;
	height: 650px;
	font-size: 18px;
}

#cvc-game-wrapper .multiplayer-win-dialog h1 {
	margin: 0;
	margin-bottom: 14px;
}

#cvc-game-wrapper .multiplayer-win-dialog h3 {
	font-size: 28px;
	font-weight: 700;
	margin: 0;
}

#cvc-game-wrapper .multiplayer-win-dialog .players-top {
	display: flex;
	margin: 16px 0;
	align-items: flex-end;
}

#cvc-game-wrapper .multiplayer-win-dialog .avatar {
	min-width: 80px;
	min-height: 80px;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 50%;
	border: 3px solid #fff;
}
#cvc-game-wrapper .countdown{
  display: flex;
  justify-content: center;
}

#cvc-game-wrapper .multiplayer-win-dialog .player-score {
	width: 180px;
	height: 350px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	gap: 8px;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
	position: relative;
	/* background-color: #2d85de; */
}

#cvc-game-wrapper .multiplayer-win-dialog .player-score::before {
	content: ' ';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-image: url('./assets/background/dialog.png');
	background-size: cover;
	background-position: center;
	filter: hue-rotate(240deg);
	z-index: -10;
}

#cvc-game-wrapper .multiplayer-win-dialog .player-score:first-child {
	height: 320px;
	border-radius: 24px 0 0 24px;
	background: #0b639c;
	justify-content: flex-end;
}

#cvc-game-wrapper .multiplayer-win-dialog .player-score:last-child {
	height: 320px;
	background: #52b763;
	border-radius: 0 24px 24px 0;
	justify-content: flex-end;
}

#cvc-game-wrapper .multiplayer-win-dialog .rating {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 0;
}

#cvc-game-wrapper .multiplayer-win-dialog .rating .stars {
	display: flex;
	gap: 2px;
}

#cvc-game-wrapper .multiplayer-win-dialog .rating .stars img {
	width: 24px;
}

#cvc-game-wrapper .multiplayer-win-dialog .rating .questions-result,
#cvc-game-wrapper .win-dialog .questions-result,
#cvc-game-wrapper .lose-dialog .questions-result {
	font-size: 20px;
	font-weight: 700;
}

#cvc-game-wrapper .multiplayer-win-dialog .rating .time-result {
	font-size: 14px;
}

/* multiplayer dialog for duo */
#cvc-game-wrapper .multiplayer-win-dialog.duo .players-top {
	flex-direction: row-reverse;
}

#cvc-game-wrapper .multiplayer-win-dialog.duo .player-score {
	border-radius: 24px 24px 0 24px;
}

#cvc-game-wrapper .multiplayer-win-dialog.duo .player-score:first-child {
	border-radius: 0 24px 24px 0;
}

#cvc-game-wrapper .multiplayer-win-dialog.duo .player-score:last-child {
	display: none;
}

/* General dialog styles */
#cvc-game-wrapper .win-dialog .texts,
#cvc-game-wrapper .lose-dialog .texts,
#cvc-game-wrapper .multiplayer-win-dialog .texts {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	height: 100%;
	z-index: 10;
	color: #fff;
}

#cvc-game-wrapper .win-dialog h1,
#cvc-game-wrapper .lose-dialog h1,
#cvc-game-wrapper .multiplayer-win-dialog h1 {
	text-transform: uppercase;
	text-align: center;
	font-size: 2.8rem;
	margin: 0;
}

#cvc-game-wrapper .lose-dialog h1 {
	font-size: 2.2rem;
}

#cvc-game-wrapper .win-dialog p,
#cvc-game-wrapper .lose-dialog p,
#cvc-game-wrapper .multiplayer-win-dialog p {
	text-align: center;
	margin: 0 2rem;
	font-size: 18px;
}

#cvc-game-wrapper .win-dialog .background,
#cvc-game-wrapper .multiplayer-win-dialog .background {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url(./assets/background/dialog.png);
	filter: hue-rotate(290deg);
	height: 100%;
	width: 100%;
}

#cvc-game-wrapper .lose-dialog .background {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url(./assets/background/dialog.png);
	filter: hue-rotate(65deg);
	height: 100%;
	width: 100%;
}

#cvc-game-wrapper .win-dialog .questions-result,
#cvc-game-wrapper .lose-dialog .questions-result {
	margin-top: -15px;
	margin-bottom: 8px;
}

/********** ANIMATIONS **********/
#cvc-game-wrapper .fadeInUp {
	animation: fadeInUp 0.2s forwards !important;
}

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translate3d(0, 20px, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.fadeOutUp {
	animation: fadeInUp 0.2s forwards !important;
}

@keyframes fadeOutUp {
	0% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(0, 20px, 0);
		opacity: 0;
	}
}
