/*@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--background-color: #dddddd;
	--background-accent-color: #b8ebf2;
	--background-inset-color: #b5b5b5;
	--background-inset-less-color: #cccccc;
	--foreground-color: black;
	--foreground-inset-color: #606060;
}

html {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background: var( --background-color );
	height: 100%;

	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
}

body * {
	font-family: "Noto Sans", sans-serif;
	font-weight: 450;
	font-size: 10pt;
	/*font-size: 1.3vw;
	font-style: bold;
	color: white;
	text-align: center;
	border-style: solid;*/

	touch-action: none;
}

header {
	display: flex;
	flex-grow: 0;
	flex-direction: row;
	align-items: center;
	margin-top: 0.4em;
}

header > * {
	margin-right: 1em;
}

.static-text, label {
	color: var( --foreground-inset-color );
}

#token-validation > * {
	margin-right: 0.5em;
}

#user-info > * {
	margin-right: 1em;
}


#litecord-status {
	background-color: var( --background-inset-color );
	flex-grow: 0;

	margin: 0.4em 0px;
	padding-top: 0.2em;
	padding-bottom: 0.2em;
	padding-left: 1em;
}

select, button {
	border-radius: 1em;
	padding-top: 0.2em;
	padding-bottom: 0.2em;
}


#main-page {
	margin-top: auto;
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	justify-items: start;
}

#menu-bar {
	flex-grow: 0;
}

#messages-panel {
	overflow: auto;
	/*
		This, together with flex-grow: 0; on all other elements, is the magic
		that makes it fill the space.
		see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_box_alignment/Box_alignment_in_flexbox
	*/
	margin-top: auto;
	flex-grow: 1;

	background-color: var( --background-inset-less-color );
}

#messages-panel * {
	color: var( --foreground-color );
}

#text-input-panel {
	/*margin-top: auto;*/
	flex-grow: 0;

	/*bottom: 0px;*/
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
}

#text-input-panel > * {
	height: fit-content;
	margin-right: 1em;
}

#message-input {
	flex-grow: 1;
}

#send-message-button {
	width: fit-content;
	flex-grow: 0;
	/*margin-left: auto;*/
}

input, textarea {
	color: var( --foreground-color );
}

/*footer {
	position: fixed;
	bottom: 0px;
	right: 0px;
}*/


/*#friends-panel {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}*/

/*#token-validation {
	position: fixed;
	top: 0px;
	width: 100%;
	background-color: azure;
}*/

/*#text-input-panel {
	position: fixed;
	bottom: 0px;
	width: 100%;
	background-color: azure;
}*/

p {
	margin: 0.1%;
}

h2 {
	font-size: 32;
	text-decoration: underline;
}

p {
	margin: 0;	
}


.flex-row {
	display: flex;
	flex-direction: row;
	/*justify-content: center;
	align-items: center;*/
	flex-grow: 1;
	flex-shrink: 0;
}

/* Spacing for elements inside flexboxes */
.flex-row > * {
	margin-left: 5%;
	margin-right: 5%;
}

.flex-column {
	display: flex;
	flex-direction: column;
	/*justify-content: center;
	align-items: center;*/
}

.blur {
	background: rgba( 255, 255, 255, 0.23 );
	backdrop-filter: blur( 5px );
	-webkit-backdrop-filter: blur( 5px );
}

.content {
	border-radius: 20px;
	border-style: solid;
	border-width: 2px;
	margin: 5px;
	padding: 2%;
	max-width: 50%;
}

.content > * {
	color: #444444;
}


.side {
	margin: 15px;
	padding: 10px;
	border-radius: 20px;
	border-style: solid;
	border-width: 2px;
}

.side > * {
	margin: 20%;
	color: #444444;
}

.button:hover {
	animation-name: buttonUnderline;
	animation-duration: 1s;
	animation-delay: -0.5s;
	animation-iteration-count: 1;
	border-color: white;
}

@keyframes buttonUnderline {
	from {
		border-bottom-style: none;
	}

	to {
		border-bottom-style: solid;
	}
}

.bar {
	/* Colourblind person does colouring */
	background: rgba( 56, 152, 242, 0.5 );
	backdrop-filter: blur( 7px );
	-webkit-backdrop-filter: blur( 7px );
	border-radius: 5px;
	padding: 8px;
}

.disabled {
	color: #aaaaaa;
	text-decoration: line-through;
}

.hidden {
	display: none;
}