/* ----- Fonts and Imports ----- */

@import "https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css";

@font-face {
	font-family: Azonix;
	src: url("./data/fonts/Azonix.otf");
}

@font-face {
	font-family: NotoMono;
	src: url("./data/fonts/NotoMono-Regular.ttf");
}

@font-face {
	font-family: Rubik;
	src: url("./data/fonts/Rubik-Regular.ttf");
}

@font-face {
	font-family: WhitneyLight;
	src: url("./data/fonts/WhitneyLight.woff") format('woff');
}

@font-face {
	font-family: UniSansHeavy;
	src: url("./data/fonts/UniSansHeavy.otf") format('otf');
}

/* ----- Main CSS ----- */

* {
}

#main {
	font-family: Whitney,Helvetica Neue,Helvetica,Arial,sans-serif;
	font-weight: 300;
	background: #36393f;
	position: absolute;
	left: 0;
	width: 100%;
	top: 0;
	height: 100%;
	color: white;
}

header {
	position: absolute;
	width: 100%;
	height: 5%;
	opacity: 0;
	left: 0;
	top: 0;
}

#lyric-load {
	margin: 0 auto;
    width: 500px;
    text-align: center;
    padding-top: 25%;
}

.lyric-logo {
	width: 50px;
	border-radius: 25px;
}

#lyric-taskbar {
	font-family: "Azonix";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 20px;
	background: rgb(30,34,39);
}

#lyric-list-chats {
	position: absolute;
	left: 0;
	width: 15%;
	top: 20px;
	bottom: 0;
	background: #2f3136;
}

#lyric-list-chats-scrollable {
	position: absolute;
	left: 0;
	width: 100%;
	height: 85%;
	top: 0;
	background: #2f3136;
	overflow-y: auto;
}

#lyric-tab-right {
	position: absolute;
	right: 0;
	width: 15%;
	top: 20px;
	bottom: 0;
	background: #2f3136;
}

#lyric-chat {
	position: absolute;
	left: 15%;
	width: 70%;
	height: 85%;
	top: 20px;
	bottom: 0;
	background: #36393f;
	overflow-y: auto;
}

#lyric-chat hr {
	display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;

    border: none;
    border-bottom: 1px solid transparent;
    margin: 20px -20px 20px;
    border-bottom-color: hsla(0,0%,100%,.04);
}

#lyric-send-text {
	position: absolute;
	left: 20%;
	width: 60%;
	bottom: 50px;
	background: rgba(114,118,125,.3);
	border-radius: 5px;
	height: 40px;
}

#lyric-send-text-input {
	color: white;
	-webkit-writing-mode: horizontal-tb !important;
    text-rendering: auto;
	outline: 0;
	background-color: transparent;
	resize: none;
	border: none;
	-webkit-appearance: none;
	font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    letter-spacing: -0.025rem;
    max-height: 144px;
    width: 100%;
    min-height: 20px;
    margin: 2px 2px 2px 0;
    padding: 10px;
    font: 400 13.3333px Arial;
    cursor: text;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    -webkit-rtl-ordering: logical;
    flex-direction: column;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
}

.lyric-chat-msg-avatar {
	position: absolute;
	border-radius: 25px;
	width: 50px;
	left: -32px;
}

.lyric-chat-msg {
	position: relative;
	width: 80%;
	left: 10%;
	font-size: 0.9375rem;
    line-height: 1.3;
    white-space: pre-wrap;
    word-wrap: break-word;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.lyric-chat-msg h3 {
	margin-bottom: 0;
    padding: 0;
}

.lyric-chat-msg h3:hover {
	text-decoration: underline;
	cursor: pointer;
}

.lyric-chat-msg span {
	font-weight: 100;
	color: gray;
}

#lyric-chat-fetching-text {
	font-family:'Azonix';
	position: relative;
	top: 50%;
	left: 40%;
}

#lyric-tab-left-me {
	position: absolute;
	bottom: 0;
	left: 0;
	width: calc(15% - 30px);
	background: #282a2e;
	z-index: 5;
	padding: 15px;
}

#lyric-tab-left-me-name {
	position: relative;
	left: 50%;
	cursor: pointer;
}

#lyric-tab-left-me-name:hover {
	text-decoration: underline;
}

.lyric-mobile-menu-overlay {
	display: none;
}

#lyric-mobile-channel-current {
	display: none;
}

/* ----- Dropdown Menu ----- */

.dropdown {
  	position: relative;
  	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
	border-radius: 5px;
}

.dropdown-content a {
  	color: black;
  	padding: 12px 16px;
  	text-decoration: none;
  	display: block;
  	border-radius: 5px;
}

.dropdown-content a:hover {
	background-color: #f1f1f1
	color: black;
}

.dropdown:hover .dropdown-content {
  	display: block;
}

/* ----- Login and Register ----- */

#lyric-login {
	position: absolute;
	top: 30%;
	left: 50%;
}

#lyric-register {
	position: absolute;
	top: 70%;
	left: 50%;
}

#lyric-login-form {
	position: block;
}

#lyric-register-form {
	position: block;
}

/* ----- Scrollbar ----- */

::-webkit-scrollbar {
  	width: 5px;
}

::-webkit-scrollbar-track {
  	box-shadow: none; 
  	border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
  	background: darkgray; 
  	border-radius: 10px;
}

/* ----- Settings ----- */

#lyric-settings {
	display: none;
	background: black;
	opacity: .7;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 6;
}

#lyric-settings-ui {
	display: none;
	background: #36393f;
	opacity: 1;
	position: absolute;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
	z-index: 7;
	border-radius: 12px;
	text-align: center;
	padding: 15px;
}

#lyric-settings-ui a {
	all: unset;
	cursor: pointer;
}

/* ----- Profiles ----- */

#lyric-profiles {
	display: none;
	background: black;
	opacity: .7;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 6;
}

#lyric-profiles-ui {
	display: none;
	background: #36393f;
	opacity: 1;
	position: absolute;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
	z-index: 7;
	border-radius: 12px;
	text-align: center;
	padding: 15px;
}

#lyric-profiles-ui a {
	all: unset;
	cursor: pointer;
}

#lyric-profiles-image {
	position: absolute;
	top: 25px;
	left: 25px;
}

/* ----- Sidebar ----- */

.lyric-list-chats-entry {
	padding: 15px;
	text-align: center;
	color: gray;
	cursor: pointer;
	border-radius: 5px;
	margin: 10px;
}

.lyric-list-chats-entry:hover {
	background: rgba(114,118,125,.3);
	color: white;
}

.lyric-list-chats-selected {
	color: white;
	background: rgba(114,118,125,.3);
	cursor: pointer;
}

.lyric-list-chats-selected:hover {
	background: rgba(114,118,125,.3);
	color: white;
}

.lyric-tab-right-entry {
	padding: 15px;
	text-align: center;
	color: gray;
	cursor: pointer;
}

.lyric-tab-right-entry:hover {
	background: rgba(114,118,125,.3);
	color: white;
}

/* ----- Buttons and Input ----- */

.btn  {
	border: 0;
	background: none;
	display: block;
	margin: 20px auto;
	text-align: center;
	border: 2px solid #2ecc71;
	padding: 14px 40px;
	width: 200px;
	outline: none;
	color: white;
	border-radius: 24px;
	transition: 0.25s;
	cursor: pointer;
}

.btn:hover  {
  	background: #2ecc71;
}

.btn-input  {
	border: 0;
	background: none;
	display: block;
	margin: 20px auto;
	text-align: center;
	border: 2px solid #3498db;
	padding: 14px 10px;
	width: 200px;
	outline: none;
	color: white;
	border-radius: 24px;
	transition: 0.25s;
}

.btn-input:focus {
	width: 280px;
	border-color: #2ecc71;
}

.btn.blue {
	border: 2px solid #3498db;
}

.btn.blue:hover  {
  	background: #3498db;
}

.btn.red {
	border: 2px solid #db344d;
}

.btn.red:hover  {
  	background: #db344d;
}

/* ----- Home ----- */

#lyric-home-main {
	font-family: WhitneyBold,Helvetica Neue,Helvetica,Arial,sans-serif;
	font-weight: 300;
	background: #26262b;
	position: absolute;
	left: 0;
	width: 100%;
	top: 0;
	height: 100%;
	color: white;
}

#lyric-home-main navbar {
	position: absolute;
	top: 0;
	left: 70px;
	color: gray;
	padding: 25px;
}

#lyric-home-main navbar #elements {
	margin-left: 50px;
}

#lyric-home-main navbar #elements .elem {
	color: gray;
	margin: 20px;
	text-decoration: none;
	cursor: pointer;
}

#lyric-home-main navbar #elements a.elem {
	color: white;
	opacity: 0.7;
}

#lyric-home-main navbar #elements a.elem:hover {
	opacity: 0.9;
}

#lyric-home-logo {
	position: absolute;
	top: 0%;
	left: -50px;
	padding: 10px;
}

#lyric-home-wrapper {
	position: absolute;
	top: 20%;
	height: 80%;
	width: 40%;
	left: 30%;
	text-align: center;
}

#lyric-home-head {
	font-weight: bold;
	font-family: UniSansHeavy,Helvetica Neue,Helvetica,Arial,sans-serif;
}

.lyric-home-btn {
	border-radius: 5px;
	width: 250px;
	padding: unset;
	padding-top: 15px;
	padding-bottom: 15px;
	text-decoration: none;
}

#lyric-home-btn-download {
	position: absolute;
	right: 53%;
}

#lyric-home-btn-open {
	position: absolute;
	left: 53%;
}

#lyric-mobile-menu-left-btn {
	display: none;
}

#lyric-mobile-menu-right-btn {
	display: none;
}

/* Loading Icon */

.loader {
  	border: 16px solid #f3f3f3; /* Light grey */
  	border-top: 16px solid #3498db; /* Blue */
  	border-radius: 50%;
  	width: 120px;
  	height: 120px;
  	animation: spin 2s linear infinite;
}

@keyframes spin {
  	0% { transform: rotate(0deg); }
  	100% { transform: rotate(360deg); }
}

/* ----- Misc ----- */

.filter-invert-color {
	filter: brightness(0) invert(1);
}

/* ----- Icons ----- */

i {
  	border: solid black;
  	border-width: 0 3px 3px 0;
  	display: inline-block;
  	padding: 3px;
}

.right {
  	transform: rotate(-45deg);
  	-webkit-transform: rotate(-45deg);
}

.left {
  	transform: rotate(135deg);
  	-webkit-transform: rotate(135deg);
}

.up {
  	transform: rotate(-135deg);
  	-webkit-transform: rotate(-135deg);
}

.down {
  	transform: rotate(45deg);
  	-webkit-transform: rotate(45deg);
}

/* ----- Mobile ----- */

@media screen
	and (min-device-width: 320px)
	and (max-device-width: 640px)
	and (-webkit-min-device-pixel-ratio: 2) {
	#lyric-tab-right {
		display: none;
		width: 80%;
		right: -2%;
		border-radius: 8px;
		z-index: 5;
	}

	#lyric-list-chats {
		display: none;
		width: 80%;
		left: -2%;
		border-radius: 8px;
		z-index: 5;
	}

	#lyric-list-chats-scrollable {
		height: 70%;
	}

	.lyric-mobile-menu-overlay {
		display: none;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 4;
		background: black;
		opacity: .7;
	}

	#lyric-chat {
		left: 2.5%;
		width: 95%;
		top: 70px;
		bottom: 60px;
		height: auto;
	}

	#lyric-chat-fetching-text {
		left: 25%;
	}

	.lyric-chat-msg {
		left: 5%;
		width: 90%;
	}

	#lyric-tab-left-me {
		display: none;
		width: calc(80% - 37px);
		padding: 15px;
		border-radius: 8px;
	}

	#lyric-tab-left-me-name {
		position: relative;
		left: 50%;
		cursor: pointer;
	}

	#lyric-send-text {
		bottom: 10px;
		width: 90%;
		left: 5%;
	}

	#lyric-login {
		top: 25%;
	}

	#lyric-register {
		top: 90%;
	}

	#lyric-mobile-menu-left-btn {
		display: block;
		position: absolute;
		left: 5px;
		top: 25px;
		height: 25px;
		width: 25px;
		overflow-wrap: break-word;
		margin: 3px;
		background: rgba(114,118,125,.3);
		border-radius: 5px;
		z-index: 4;
	}

	#lyric-mobile-menu-right-btn {
		display: block;
		position: absolute;
		right: 5px;
		top: 25px;
		height: 25px;
		width: 25px;
		overflow-wrap: break-word;
		margin: 3px;
		/* background: rgba(114,118,125,.3); */
		border-radius: 5px;
		z-index: 4;
		filter: brightness(0) invert(1);
	}

	#lyric-mobile-menu-current {
		display: block;
		position: absolute;
		background: #36393f;
		top: 20px;
		left: 0;
		width: 100%;
		height: 50px;
		box-shadow: 0px 3px 8px 1px #222;
		z-index: 3;
	}

	#lyric-mobile-menu-wrapper {
		position: absolute;
		left: 45px;
		right: 45px;
		top: 0;
		height: 40px;
		overflow-wrap: break-word;
		padding: 5px;
	}

	#lyric-home-btn-download {
		width: 100%;
	}

	#lyric-home-btn-open {
		width: 100%;
	}

	.lyric-chat-msg .wrapper {
		position: relative;
		left: 15%;
		width: 85%;
	}

	.lyric-chat-msg-avatar {
		left: -7px;
		top: 10px;
	}

	#lyric-settings-ui {
		top: 10%;
		left: 15%;
		width: 70%;
		height: 80%;
		z-index: 7;
		padding: 0;
	}

	#lyric-profiles-ui {
		top: 10%;
		left: 15%;
		width: 70%;
		height: 80%;
		z-index: 7;
		padding: 0;
	}

	#lyric-profiles-image {
		top: 12px;
		left: 12px;
		width: 10px;
		border-radius: 5px;
	}

	#lyric-profiles-head {
		float: right;
		padding-right: 20px;
	}

	#lyric-profiles-chat {
		position: relative;
		top: 15px;
	}
}

table {
  	border-collapse: collapse;
}

td, th {
  	border: 1px solid #dddddd;
  	text-align: left;
  	padding: 8px;
}

#toggle-login, #toggle-register {
	cursor: pointer;
	z-index: 3;
}