:root {
	--p-t: black;
	--s-t: black;
	--t-t: black;
	--p-b: black;
	--s-b: black;
	--t-b: black;
	--a-c: black;
	--f-t: 'Manrope';
}

@font-face {
	font-family: Manrope;
	src: url(assets/manrope.ttf);
}

@font-face {
	font-family: Quicksand;
	src: url(assets/quicksand.ttf);
}

@keyframes slideInRight {
	0% {
		transform: translateX(-100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0%);
		opacity: 1;
	}
}

@keyframes slideInLeft {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0%);
		opacity: 1;
	}
}

@keyframes slideOutRight {
	0% {
		transform: translateX(0%);
		opacity: 1;
	}

	100% {
		transform: translateX(100%);
		opacity: 0;
	}
}

@keyframes slideOutLeft {
	0% {
		transform: translateX(0%);
		opacity: 1;
	}

	100% {
		transform: translateX(-100%);
		opacity: 0;
	}
}

@keyframes loading {
	0% {
		transform: rotate(0deg)
	}

	100% {
		transform: rotate(360deg)
	}
}

@keyframes fadeAway {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

* {
	transition:
		background-color 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease,
		fill 0.3s ease,
		stroke 0.3s ease,
		border-radius 0.3s ease;
}

body,
button,
input,
textarea,
select,
option {
	font-family: var(--f-t);
	color: var(--p-t);
}

html,
body {
	overflow: hidden;
	height: 100%;
}

html {
	background-color: var(--s-b);
}

body {
	background-color: var(--p-b);
	max-width: 800px;
	margin: 0 auto;
	height: 100dvh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
	overflow: hidden;
	position: relative;
	min-height: 0;
}

input,
button,
select {
	padding: 5px 7px;
	background-color: var(--p-b);
	border-radius: 5px;
	border: 1px solid var(--t-t);
}

input:focus-visible {
	outline: none;
}

input:focus {
	border-color: var(--a-c);
}

button,
select,
option {
	font-weight: 500;
	cursor: pointer;
}

nav {
	display: flex;
	width: 100%;
	max-width: 800px;
	border-top: 1px solid var(--t-b);
	z-index: 10;
	flex-shrink: 0;
	padding-bottom: env(safe-area-inset-bottom);
}

nav button {
	flex-grow: 1;
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border: none;
	border-bottom: 5px solid var(--p-b);
	background-color: var(--p-b);
	border-radius: 0;

}

nav button.selected {
	border-bottom-color: var(--a-c);
	background: linear-gradient(to top, var(--s-b), var(--p-b));
}

main>div {
	padding: 10px;
	display: none;
	position: absolute;
	inset: 0;
	overflow-y: auto;
	box-sizing: border-box;
	scrollbar-color: var(--a-c) var(--t-b);
	scrollbar-width: thin;
}

h1 {
	margin: 0;
	margin-bottom: 10px;
}

main>div.selected {
	display: block;
}

h2 {
	color: var(--s-t);
	text-align: center;
	margin-top: 25px;
	margin-bottom: 0;
}

h3 {
	margin: 0;
}

main>div>h2:nth-child(2) {
	margin-top: 0;
}

.placeholder {
	color: var(--t-t);
	font-size: small;
	text-align: center;
}

.separator {
	height: 1px;
	background-color: var(--a-c);
	width: 80%;
	margin: auto;
	margin-top: 20px;
}

/* LOADING */

#loading {
	position: fixed;
	background-color: var(--p-b);
	z-index: 200;
	height: 100dvh;
	width: 100dvw;
	max-width: 800px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#loading img {
	border: 3px solid var(--p-t);
	border-radius: 25px;
	height: 200px
}

#loading svg {
	animation: loading 1.5s infinite linear;
}

.loading {
	animation: loading 1.5s infinite linear;
}

/* LOGIN */
#login-wrapper {
	position: fixed;
	background-color: var(--p-b);
	width: 100%;
	max-width: 800px;
	height: 100dvh;
	z-index: 15;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	animation: fadeIn 0.3s forwards;
}

#login {
	max-width: 500px;
	text-align: center;
	display: flex;
	flex-direction: column;
	padding: 10px;

}

#login label {
	text-align: left;
}

#login input {
	margin-bottom: 10px;
}

#login span {
	margin: 10px;
	color: var(--s-t);
	text-decoration: underline;
	font-size: small;
	user-select: none;
	cursor: pointer;
}

#login button {
	font-size: large;
}

#request-info {
	font-size: small;
	margin: 10px;
	color: var(--t-t);
}

/* WORKSPACE */

#personnal,
#public {
	text-align: center;
}

#workspace>button {
	display: flex;
	align-content: center;
	justify-content: center;
	gap: 5px;
	font-size: medium;
	padding: 5px 15px;
	margin: auto;
	margin-top: 15px
}

.language-wrapper {
	border: 1px solid var(--t-t);
	border-radius: 5px;
	margin-top: 5px;
	padding: 5px;
	text-align: left;
}

.language-wrapper img {
	height: 1.5em;
	border-radius: 5px;
	border: 1px solid var(--p-t);
}

.title-language {
	display: flex;
	justify-content: left;
	align-items: center;
	gap: 5px;
}

/* SETTINGS */

#settings>div>div {
	display: flex;
	align-items: center;
	padding: 5px;
}

#settings>div>div>div {
	margin-left: auto;
}

#settings>div>div>span {
	font-weight: bold;
}

#settings #delete {
	background-color: var(--s-t);
	color: var(--p-b);
	border-color: var(--t-b)
}

/* CONFIRM POPUP */

#confirm-wrapper {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	width: 100vw;
	max-width: 800px;
	z-index: 100;
	background-color: rgba(0, 0, 0, 0.10);
	opacity: 0;
	animation: fadeIn 0.3s forwards;
}

#confirm-box {
	background-color: var(--p-b);
	border: 1px solid var(--t-t);
	border-radius: 5px;
	padding: 15px;
	margin: 5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 600px;
	text-align: center;
}

#confirm-box>span {
	font-weight: 400;
	font-size: large;
}

#confirm-box button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

#confirm-box svg {
	height: 1.8em;
	width: 1.8em;
}

#confirm-box div {
	display: flex;
	gap: 5px;
}