/*
#03AED2
#F8DE22
#F45B26
#D12052
*/

html {
	font-size: 62.5%;
}

.red {
	color: red;
}

body {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	background-size: 150px;
	color: #f2e8cf;
	background: #03AED2;
}
a {
	text-decoration: underline;
}
button {
	font-family: "Open Sans", sans-serif;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	transition: 0.15s ease-out;
	color: black;
	border-radius: 4px;
	position: relative;
}

ol {
	list-style-position: inside;
	line-height: 1.2;
	margin: 2rem;
}
ol li {
	margin-bottom: 1rem;
	font-style: italic;
}

input[type="text"] {
	border: 1px solid white;
	background: black;
	color: white;
	margin-top: 1rem;
	padding: 0.5rem 1rem;
	font-size: 2rem;
	font-family: "Open Sans", sans-serif;
	width: 100%;
	background: #bc4749;
	box-shadow: 3px 3px #a32426;
}
input[type="text"]:focus-visible {
	outline: 2px solid #a32426;
}
input[type="text"]::placeholder {
	color: white;
}

h1 {
	font-family: "DynaPuff", system-ui;
	font-size: 4rem;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #F8DE22;
	text-shadow :2px 2px 0px #F45B26;
}
h1 svg {
  fill: white;
  width: 4rem;
  margin-left: 2rem;
}

h1 + .level {
	margin-top: 4rem;
}

h2 {
	color: #D12052;
}
.level {
	text-align: center;
	font-size: 2rem;
	font-weight: 600;
	position: relative;
}
.level:before {
	content: "";
	position: absolute;
	bottom: -1rem;
	left: 50%;
	margin-left: -5rem;
	width: 10rem;
	height: 1px;
	background: #bc4749;
}

h1 + .level:after {
	content: "";
	position: absolute;
	top: -1rem;
	left: 50%;
	margin-left: -5rem;
	width: 10rem;
	height: 1px;
	background: #bc4749;
}

.question {
	margin-top: 3rem;
	font-size: 2rem;
	position: relative;
	line-height: 1.2;
	margin-left: auto;
	margin-right: auto;
	max-width: 80rem;
	color: white;
}

.question:after {
	content: "";
	position: absolute;
	bottom: -2rem;
	left: 50%;
	margin-left: -5rem;
	width: 10rem;
	height: 1px;
	background: #bc4749;
}
.question p + p {
	margin-top: 1rem;
}
.question p i {
	font-style: italic;
	font-size: 0.8em;
}
.question sup {
  vertical-align: super;
  font-size: 0.7em;
}
.question .img {
	position: relative;
}
.question .img a{
	display: block;
}
.question .img:before {
	content: '';
	position: absolute;
	left: 0;
	top:0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}
.question img {
	max-width: 35rem;
	margin-top: 2rem;
	pointer-events: none;
}
@media (max-width: 600px) {
	.question img {
		max-width: 100%;
	}
}

.iframe {
	padding-top: 12px;
}

/* =========================================================================  */
/* FORM */
/* =========================================================================  */

.form {
	margin-top: 4rem;
}
.form-container {
	width: 100%;
	max-width: 30rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form label {
	font-size: 2rem;
}

.submit {
	margin-top: 2rem;
	position: relative;
	z-index: 0;
	color: white;
	cursor: pointer;
}

.submit:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #bc4749;
	border-radius: 4px;
	transition: 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
	z-index: -1;
	box-shadow: 3px 3px #a32426;
}
.submit:hover:after {
	width: calc(100% + 1rem);
	transform: translateX(-0.5rem);
}

.form.wrong input {
	animation: shake 0.2s ease-in-out 0s 2;
	border-color: red;
	color: red;
}
@keyframes shake {
  0% {
    transform: translateX(0rem);
  }
  25% {
    transform: translateX(0.5rem);
  }
  75% {
    transform: translateX(-0.5rem);
  }
  100% {
    transform: translateX(0rem);
  }
}
.correct p {
	display: none;
	margin-top: 1rem;
	font-size: 3rem;
}
.correct.visible p {
	display: block;
	animation: bounce 0.5s cubic-bezier(0, 0, 0.41, 1.44) forwards;
	text-align: center;
}
.loader {
	width: 100%;
	height: 1px;
	background: #a32426;
  transform-origin: left center;
  margin-top: 0.5rem;
}
.correct.visible .loader {
	animation: load 4.1s linear infinite;
}

@keyframes load {
	from {
		transform: scaleX(100%);
	}
	to {
		transform: scaleX(0%);
	}	
}

@keyframes bounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* =========================================================================  */
/* BRAVO */
/* =========================================================================  */
.bravo {
	text-align: center;
	font-size: 20px;
	max-width: 80%;
	padding: 40px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.2;
}
.bravo img {
	width: 30vw;
	margin-top: 20px;
}
.bravo p + p {
	margin-top: 12px;
}

/* =========================================================================  */
/* LOGIN FORM */
/* =========================================================================  */
.login {
	padding: 24px;
}
.login-form {
	margin-top: 4rem;
	width: 100%;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3rem 2rem;
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid #bc4749;
	border-radius: 8px;
	box-shadow: 0px 0px 30px rgba(188, 71, 73, 0.3);
}

.login-form .form-group {
	width: 100%;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
}

.login-form label {
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 0.8rem;
	color: #f2e8cf;
}

.login-form input[type="password"] {
	border: 2px solid #bc4749;
	background: #1a1a1a;
	color: white;
	padding: 1rem 1.2rem;
	font-size: 1.6rem;
	font-family: "Open Sans", sans-serif;
	width: 100%;
	box-sizing: border-box;
	border-radius: 4px;
	transition: 0.2s ease-out;
	box-shadow: 3px 3px rgba(163, 36, 38, 0.5);
}

.login-form input[type="password"]:focus {
	outline: none;
	border-color: #a7c957;
	box-shadow: 0px 0px 15px rgba(167, 201, 87, 0.5), 3px 3px rgba(163, 36, 38, 0.5);
}

.login-form input[type="password"]::placeholder {
	color: #999;
}

.login-form .form-actions {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 1rem;
}

.login-form button {
	background: #bc4749;
	color: white;
	padding: 1.2rem 3rem;
	font-size: 1.6rem;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
	position: relative;
	z-index: 0;
	box-shadow: 4px 4px #a32426;
	min-width: 20rem;
}

.login-form button:hover {
	background: #d45c5e;
	transform: translateY(-2px);
	box-shadow: 6px 6px #a32426;
}

.login-form button:active {
	transform: translateY(0);
	box-shadow: 2px 2px #a32426;
}

@media (max-width: 600px) {
	.login-form {
		padding: 2rem 1.5rem;
		max-width: 100%;
	}
	
	.login-form button {
		min-width: auto;
		width: 100%;
	}
}

.form-error {
	margin-top: 1.5rem;
	padding: 1.2rem 1.5rem;
	border-radius: 4px;
	font-size: 1.6rem;
	text-align: center;
	font-weight: 500;
	border: 2px solid;
	animation: slideIn 0.3s ease-out;
}

.form-error.error {
	background: rgba(188, 71, 73, 0.2);
	border-color: #bc4749;
	color: #f2a4a6;
}

.form-error.success {
	background: rgba(167, 201, 87, 0.2);
	border-color: #a7c957;
	color: #c5e59f;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mission {
	min-height: 100vh;
	display: flex;
	gap: 2rem;
}
.mission_question {
	width: 70%;
	padding: 24px;
}
.mission_question p {
	font-size: 1.8rem;
	line-height: 1.6;
	margin-top: 1rem;
}
.mission_visual {
	width: 30%;
	min-width: 400px;
	background: #D12052;
	padding: 24px;
	color: white;
}
.user-list {
	background: rgba(0, 0, 0, 0.15);
	padding: 1.5rem;
	border-radius: 8px;
}
.user-list-title {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.8rem;
}
.user-list table {
	width: 100%;
	border-collapse: collapse;
}
.user-list th,
.user-list td {
	padding: 0.9rem 1rem;
	text-align: left;
}
.user-list th {
	font-size: 1.4rem;
	color: #f2e8cf;
}
.user-list tr {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.user-list tr.current-user {
	background: rgba(255, 255, 255, 0.15);
}
.user-list td {
	font-size: 1.5rem;
}
@media (max-width: 900px) {
	.mission {
		flex-direction: column;
	}
	.mission_question,
	.mission_visual {
		width: 100%;
	}
}

/* =========================================================================  */
/* SELECT DROPDOWN */
/* =========================================================================  */

select {
	font-family: "Open Sans", sans-serif;
	font-size: 1.6rem;
	padding: 1rem 1.2rem;
	border: 2px solid #bc4749;
	background-color: #1a1a1a;
	color: white;
	border-radius: 4px;
	cursor: pointer;
	transition: 0.2s ease-out;
	box-shadow: 3px 3px rgba(163, 36, 38, 0.5);
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.5rem;
	padding-right: 3.5rem;
	margin-top: 2rem;
}

select:focus {
	outline: none;
	border-color: #a7c957;
	box-shadow: 0px 0px 15px rgba(167, 201, 87, 0.5), 3px 3px rgba(163, 36, 38, 0.5);
}

select:hover {
	border-color: #d45c5e;
}

select option {
	background-color: #1a1a1a;
	color: white;
	padding: 0.8rem 1rem;
}

select option:checked {
	background: linear-gradient(#bc4749, #bc4749);
	background-color: #bc4749;
	color: white;
}