/*** User Profile ***/
#user-profile-container {
	display: none;
}

#user-profile-dialog {
	width: 100%;
	height: 85%;
	margin: 10px;
	border-radius: 20px;
	background: #FFFFFFD9;
	backdrop-filter: blur(15px);
	text-align: center;
    overflow: auto;
}

#user-profile-image {
	height: 116px;
	position: absolute;
	top: 1.5%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
}

#user-profile-name {
	font-size: 20px;
	font-weight: 700;
	margin-top: 64px;
}

#user-profile-progress {
	display: flex;
	flex-direction: row;
    justify-content: center;
    gap: 30px;
	margin-top: 12px;
}

.user-profile-progress-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 30%;
}

.user-profile-progress-item-value {
	font-size: 24px;
	font-weight: 700;
}

.user-profile-progress-item-name {
	font-size: 14px;
	font-weight: 400;
	color: var(--grey);
}

#user-profile-progress-divider{
	width: 0.5px;
	background: var(--grey);
}

#user-profile-title {
	font-size: 24px;
	font-weight: 700;
	margin-top: 15px;
}

#user-profile-description {
	font-size: 14px;
	font-weight: 400;
	/*margin-top: 12px;*/
	margin: 12px 20px 0px 20px;
}

#user-profile-challenges {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
    padding: 20px;
}

.user-profile-challenge {
	display: flex;
	flex-direction: row;
	gap: 10px;
	padding: 12px 15px;
	background: white;
	box-shadow: 0px 1px 4px 0px #00000040;
	border-radius: 10px;
}

.user-profile-challenge-completed {
	background-image: url("../Resources/profile/bg_challenge_completed.png");
	border: 2px solid var(--challenge-color)
}

.user-profile-challenge-claimed {
	background: var(--ultra-light-grey);
	background-image: none !important;
	border: 0px !important;
}

.user-profile-challenge-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.user-profile-challenge-image {
	width: 65px;
	height: 65px;
}

.user-profile-challenge-content {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 4px;
}

.user-profile-challenge-completed .user-profile-challenge-content {
	align-items: center;
}

.user-profile-challenge-header {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	text-align: left;
}

.user-profile-challenge-header-status {
	color: black;
}

.user-profile-challenge-completed .user-profile-challenge-header-status {
	color: var(--current-challenge-color);
}

.user-profile-challenge-header-name {
	color: var(--section-1-color);
	font-size: 24px;
	font-weight: 700;
}

.user-profile-challenge-progress-container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
}

.user-profile-challenge-completed .user-profile-challenge-progress-container {
	display: none;
}

.user-profile-challenge-progress-percentage {
	width: fit-content;
	padding: 4px 8px;
	border-radius: 5px;
	background: var(--max-light-grey);
	font-size: 14px;
}

.user-profile-challenge-progress {
	display: flex;
	flex-direction: row;
	gap: 2px;
	font-size: 16px;
	font-weight: 600;
}

.user-profile-challenge-progress-total {
	color: var(--grey);
}

.user-profile-challenge-tag {
	display: none;
	padding: 8px 10px;
	background: #4CAF50;
	color: white;
	border-radius: 5px;
	font-weight: 600;
}

.user-profile-challenge-completed .user-profile-challenge-tag {
	display: block;
}

.user-profile-challenge-progress-bar {
	width: 100%;
	height: 10px;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.5s ease-out;
}

.user-profile-challenge-completed .user-profile-challenge-progress-bar {
	display: none;
}

.user-profile-challenge-progress-bar::-webkit-progress-bar {
	background-color: var(--max-light-grey);
	border-radius: 10px;
	overflow: hidden;
}

.user-profile-challenge-progress-bar::-webkit-progress-value {
	background-color: var(--current-challenge-color);
	border-radius: 10px;
    animation: fillAnimation 2s ease-in-out forwards
}

.user-profile-challenge-progress-bar::-moz-progress-bar {
	background-color: var(--current-challenge-color);
    animation: fillAnimation 2s ease-in-out forwards
}

@keyframes fillAnimation {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-width, 100%);
    }
}

#user-profile-close img {
	width: 18px;
	height: 18px;
}

#user-profile-edit {
	position: absolute;
	top: 15px;
	left: 15px;
	width: 36px;
	height: 36px;
}

#user-profile-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 36px;
	height: 36px;
}

/*** Edit profile ***/
#edit-profile-dialog {
    padding: 20px;
    margin: 10px;
    height: 90%;
    overflow: auto;
}

#edit-profile-title {
	display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

#edit-profile-title img {
	width: 20px;
	height: 20px;
}

#edit-profile-title p {
	font-size: 20px;
	font-weight: 600;
}

#edit-profile-form {
	display: block;
	position: relative;
	padding: 0px;
	margin: 0px;
}

#edit-profile-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 36px;
	height: 36px;
}
#signup-container {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
	background: rgba(0, 0, 0, 0.4);
	padding: 0px 15px;
}

#signup-back {
	position: absolute;
	top: 15px;
	left: 15px;
	width: 35px;
	height: 35px;
}

.signup-dialog {
	display: none;
	padding: 30px 15px 30px 15px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	margin: 0px 10px;
    position: absolute;
}

.signup-dialog input, .signup-dialog select {
	width: -webkit-fill-available;
    height: 46px;
    padding-left: 48px;
    border-radius: 10px;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    border: 0;
    margin-bottom: 14px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 24px 24px;
}

.signup-dialog-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 16px;
}

.signup-dialog-label {
	font-size: 14px;
	margin-bottom: 6px;
}

.signup-dialog-button {
	margin-top: 26px;
}

#signup-name-input {
	background-image: url('../Resources/login/ic_text.png');
}

#signup-lastname-input {
	background-image: url('../Resources/login/ic_text.png');
}

#signup-email-input {
	background-image: url('../Resources/login/ic_signup_email.png');
}

#signup-password-input {
	background-image: url('../Resources/login/ic_pwd.png');
}

#signup-repeat-password-input {
	background-image: url('../Resources/login/ic_pwd.png');
}

#signup-dialog-country-container {
	position: relative;
    display: flex;
    align-items: center;
	margin-bottom: 14px;
}

#signup-dialog-country-container img {
	position: absolute;
	right: 10px;
	width: 24px;
}

#signup-country-input {
	appearance: none;
	background-image: url('../Resources/login/ic_country.png');
	margin-bottom: 0;
}

#signup-companion-options {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-bottom: 14px;
}

.signup-companion-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 10px;
	padding: 9px 6px 9px 6px;
	box-shadow: 0px 1px 4px 0px #00000040;
	flex: 1;
	border: 2px solid transparent;
}

.signup-companion-option-selected {
	border: 2px solid var(--main-color)
}

.signup-companion-option img {
	height: 40px;
	margin-bottom: 4px;
}

.signup-companion-option p {
	text-align: center;
	font-size: 14px;
}

#signup-motivation-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-gap: 10px 10px;
}

.signup-motivation-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 10px;
	padding: 9px 6px 9px 6px;
	box-shadow: 0px 1px 4px 0px #00000040;
	border: 2px solid transparent;
}

.signup-motivation-option-selected {
	border: 2px solid var(--main-color)
}

.signup-motivation-option img {
	height: 45px;
	margin-bottom: 4px;
}

.signup-motivation-option p {
	text-align: center;
	font-size: 14px;
}

#edit-profile-submit-button {
	width: 100%;
	padding: 10px 32px;
	font-family: Lato;
	font-weight: 600;
	background: var(--main-color);
	color: white;
	border: 0;
	border-radius: 10px;
	box-shadow: 0px 1px 4px 0px #00000040;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 16px;
}

#edit-profile-edit-password-button {
	padding: 10px 32px;
	font-family: Lato;
	font-weight: 600;
	background: white;
	color: black;
	text-align: center;
	border: 1.5px solid var(--main-color);
	border-radius: 10px;
	box-shadow: 0px 1px 4px 0px #00000040;
	margin-bottom: 12px;
	cursor: pointer;
}

/*** Reward List ***/
#reward-list-dialog {
	width: 100%;
	max-height: 90%;
	margin: 10px;
	padding: 20px;
	background: #FFFFFFD9;
	backdrop-filter: blur(15px);
	overflow: auto;
}

#reward-list-header {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-bottom: 15px;
	align-items: center;
}

#reward-list-back-button {
	width: 35px;
	height: 35px;
}

#reward-list-header p {
	font-size: 24px;
	font-weight: 700;
}

#reward-list-description {
	font-size: 14px;
	font-weight: 400;
	margin-bottom: 24px;
}

#reward-list-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.reward-list-item {
	position: relative;
	display: flex;
	flex-direction: row;
	gap: 12px;
	background: white;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0px 1px 4px 0px #00000040;
}

.reward-list-item-locked {
	background: var(--ultra-light-grey);
}

.reward-list-item-selected {
	border: 1px solid var(--main-color);
}

.reward-list-img {
	width: 84px;
	height: 84px;
	border-radius: 10px;
    object-fit: cover;
}

.reward-list-item > p {
	font-size: 16px;
	font-weight: 600;
}

.reward-list-item-status {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
    gap: 6px;
}

.reward-list-item-status-img {
	height: 20px;
}

.reward-list-item-status-text {
	font-size: 20px;
	font-weight: 600;
}

.reward-list-item-status-text-available {
	color: var(--correct-answer-color);
}

.reward-list-item-status-text-not-available {
	color: var(--grey);
}

.reward-list-item-status-text-obtained {
	color: var(--challenge-color);
}

/*** Select Reward ***/
#select-reward-dialog {
	width: 80%;
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 10;
}

#select-reward-dialog img {
	height: 295px;
	object-fit: cover;
	border-radius: 10px;
}

#select-reward-title {
	font-size: 18px;
	font-weight: 700;
}

#select-reward-description {
	font-size: 14px;
	font-weight: 400;
}

#select-reward-buttons {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

#select-reward-buttons button {
	width: 100%;
	border-radius: 10px;
	border: 1px solid var(--main-color);
	font-family: Lato;
	font-size: 16px;
	font-weight: 600;
	padding: 12px 0px;
}

#select-reward-button-reject {
	background: white;
	color: black;
}

#select-reward-button-accept {
	background: var(--main-color);
	color: white;
}

/*** Reward Details Dialog ***/
#reward-details-dialog {
	width: 80%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	text-align: center;
	padding: 20px 15px;
	z-index: 11;
}

#reward-details-title {
	font-size: 18px;
	font-weight: 700;
}

#reward-details-img {
	width: 200px;
	align-self: center;
}

#reward-details-code {
	font-size: 18px;
	font-weight: 700;
}

#reward-details-code span {
	color: var(--main-color);
}

#reward-details-descrption {
	font-size: 14px;
	font-weight: 400;
}

#reward-details-close {
	position: absolute;
	height: 13px;
	top: 15px;
	right: 15px;
}














