/* FONTS */

@font-face {
	font-family: "MontserratRegular";
	src: url("fonts/MontserratRegular.eot");
	src: url("fonts/MontserratRegular.eot") format("embedded-opentype"), url("fonts/MontserratRegular.woff2") format("woff2"), url("fonts/MontserratRegular.woff") format("woff"),
		url("fonts/MontserratRegular.ttf") format("truetype"), url("fonts/MontserratRegular.svg#MontserratRegular") format("svg");
}

@font-face {
	font-family: "SourceSans3SemiBold";
	src: url("fonts/SourceSans3SemiBold.eot");
	src: url("fonts/SourceSans3SemiBold.eot") format("embedded-opentype"), url("fonts/SourceSans3SemiBold.woff2") format("woff2"), url("fonts/SourceSans3SemiBold.woff") format("woff"),
		url("fonts/SourceSans3SemiBold.ttf") format("truetype"), url("fonts/SourceSans3SemiBold.svg#SourceSans3SemiBold") format("svg");
}

/* COLORS */

:root {
	--title_font_1: "SourceSans3SemiBold", sans-serif;
	--content_font_1: "MontserratRegular", sans-serif;
	--main_color_1: #3a96d5;
	--main_color_2: #f59f39;
	--alert_red: #f44336;
	--main_color_1_light: #bdd7ed;
	--main_color_1_transparent: #3a96d55f;
	--main_color_2_transparent: #f59f395f;
	--white_transparent: rgba(255, 255, 255, 0.1);
	--main_color_1_transparent_selected: #feed0030;
	--main_color_2_transparent_selected: #e41f2630;
	--white_transparent_selected: rgba(255, 255, 255, 0.3);
	--font_grey: #6f6f6f;
	--inactive_grey: #efefef;
	--vh: 100vh;
	--hundred_vh: calc(var(--vh, 1vh) * 100);
	--menu_top_height: 40px;
}

/* GENERAL */

html {
	display: flex;
	justify-content: center;
	width: 100vw;
	font-family: var(--content_font_1);
	color: var(--font_grey);
	font-size: 16px;
	overscroll-behavior: contain; /* Disables mobile pull-to-refresh */
}

body {
	display: flex;
	flex-direction: column;
	min-height: var(--hundred_vh);
	width: 100%;
	max-width: 2560px;
}

h1,
h2,
h3 {
	font-family: var(--title_font_1);
}

/* @media screen and (max-width: 1023px) {
	html {
		font-size: 14px;
	}
} */

.return {
	cursor: pointer;
	width: 20px;
	color: black;
	font-size: 2rem;
	font-weight: bold;
	text-align: left;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
}

@media (hover: hover) {
	.return:hover {
		color: var(--main_color_2);
	}
}

.required_star {
	color: var(--main_color_2);
	font-family: var(--content_font_1);
}

.lowercase {
	text-transform: lowercase !important;
}

.hidden {
	visibility: hidden;
	width: 0;
	height: 0;
}

.column_wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
	min-height: 30px;
	border-radius: 5px;
	border: thin solid var(--font_grey);
}

.link {
	cursor: pointer;
	text-decoration: underline;
	text-align: center;
	display: flex;
	justify-content: center;
}

@media (hover: hover) {
	a:hover {
		color: var(--main_color_2) !important;
	}
}

/* Buttons */

.button {
	width: 160px;
	min-height: 35px;
	background-color: var(--main_color_1);
	font-size: 1.2rem;
	padding: 2px 15px;
	font-family: var(--title_font_1);
	color: white;
	letter-spacing: 0.5px;
	border-radius: 5px;
	box-shadow: none;
	border: thin solid white;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: 0.5s;
	align-self: center;
}

@media (hover: hover) {
	.button:hover {
		color: white;
		border: thin solid var(--main_color_2);
		background-color: var(--main_color_2);
	}
}

/* HEADER */

header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 15px;
	width: 100%;
	height: var(--menu_top_height);
	padding: 5px 15px;
	background-color: white;
}

#header_left {
	display: flex;
}

#header_left_logo {
	background-image: url("../../images/logos/logo.svg");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	height: calc(var(--menu_top_height) - 10px);
	width: 100px;
	min-width: 100px;
}

#header_right {
	display: flex;
	align-items: center;
	gap: 15px;
}

#header_right_info_container {
	word-wrap: anywhere;
}

#header_right_connection_icon {
	cursor: pointer;
}

#header_right_connection_icon svg {
	width: calc(var(--menu_top_height) - 10px);
	height: calc(var(--menu_top_height) - 10px);
	fill: var(--main_color_1);
}

@media (hover: hover) {
	#header_right_connection_icon:hover svg {
		fill: var(--main_color_2);
	}
}

@media screen and (max-width: 1023px) {
	header {
		padding: 5px;
	}

	#header_right {
		gap: 5px;
	}
}

/* MAIN */

#portal_main {
	display: flex;
	padding: 35px;
	min-height: calc(var(--hundred_vh) - var(--menu_top_height));
	width: 100%;
	background: url("../../images/logos/logo_mobile.svg") no-repeat bottom -1300px right -100px, linear-gradient(45deg, rgb(58, 150, 213) 0%, rgb(0, 46, 77) 100%);
	background-size: 600px, contain;
}

@media screen and (max-width: 1023px) {
	#portal_main {
		background: url("../../images/logos/logo_mobile.svg") no-repeat bottom -650px right -100px, linear-gradient(45deg, rgb(58, 150, 213) 0%, rgb(0, 46, 77) 100%);
		background-size: 300px, contain;
	}
}

#apps_container {
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-start;
	height: fit-content;
	max-height: calc(var(--hundred_vh) - var(--menu_top_height) - 140px);
	gap: 35px;
	margin-top: 35px;
}

@media screen and (max-width: 699px) {
	#portal_main {
		justify-content: center;
	}
	#apps_container {
		max-height: unset;
	}
}

.app_wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 25px;
	padding: 15px 5px;
	width: 300px;
	height: 80px;
	border-radius: 5px;
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 8px;
	cursor: pointer;
	user-select: none;
	transition: 0.2s;
}

@media (hover: hover) {
	.app_wrapper:hover {
		box-shadow: var(--main_color_2) 0px 3px 8px;
	}
}

.app_icon {
	width: 80px;
	height: 80px;
	min-width: 80px;
	min-height: 80px;
	border-radius: 10px;
	background-repeat: no-repeat;
	background-size: contain;
}

.app_content h2 {
	text-transform: uppercase;
}

/* MESSAGE BOX */

#message_box_wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	width: 100vw;
	height: calc(var(--hundred_vh));
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	transition: 0.5s;
}

#message_box {
	display: flex;
	flex-direction: column;
	min-width: 300px;
	max-width: 600px;
	background-color: white;
	border-radius: 5px;
}

#message_box h2 {
	font-size: 1.2rem;
	padding: 15px;
	background-color: var(--main_color_1_light);
	border-bottom: 1px solid var(--font_grey);
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
}

#message_box p {
	padding: 15px;
	line-height: normal;
}

#message_buttons {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: flex-end;
	padding: 0 15px;
	padding-bottom: 15px;
}

#message_buttons button {
	width: unset !important;
}

#message_box_canceled_button {
	background-color: var(--alert_red) !important;
	color: white;
}

@media (hover: hover) {
	#message_box_canceled_button:hover {
		background-color: var(--alert_red) !important;
		color: var(--alert_red);
		background-color: white !important;
		border: thin solid var(--alert_red);
	}
}

/*** LOGIN ***/

/* CONNECTION */

.connection_main {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.8);
	width: unset;
	height: max-content;
}

#connection_logo {
	width: 200px;
}

@media screen and (max-width: 1023px) {
	#connection_logo {
		top: -115px;
		right: 0;
		left: 0;
		margin: auto;
	}
}

.connection_main h1 {
	font-size: 1.2rem;
	margin: 15px 0;
}

.connection_main .button {
	margin: 15px 0;
}

.connection_main ::placeholder {
	text-align: center;
}

#reset_password_form {
	display: none;
}

.connection_form_wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	margin: 0;
}

.connection_form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.connection_form input {
	text-align: center;
}

.connection_form label {
	display: flex;
	flex-flow: wrap;
	justify-content: space-between;
	gap: 15px;
}

.connection_main .button {
	width: 100%;
}

.connection_main .link {
	font-size: 0.8rem;
}

@media (hover: hover) {
	.connection_main .link:hover {
		color: var(--main_color_2);
	}
}
