.unselectable {
	-moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

* {
	font-family: Arial;
	padding: 0;
	margin: 0;
}

body {
	height: 100vh;
	width: 100vw;
	background: #f5f5dc;
	overflow: hidden;
}

.wrapper {
	display: block;
	height: 40vh;
	min-height: 300px;
	max-height: 500px;
	width: 80%;
	min-width: 300px;
	max-width: 800px;
	background: white;
	margin: auto;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	box-shadow: 0 0 8px 3px rgb(0, 0, 0, .6);
}

#wrapper.showing {
	right: 0;
	left: 0;
	transition: .5s all ease;
}

#wrapper.moving {
	right: 100vw;
	left: -100vw;
	transition: .5s all ease;
}

#wrapper {
	right: -100vw;
	left: unset;
}

#downloadsWrapper.showing {
	right: 0;
	left: 0;
	transition: .5s all ease;
}

#downloadsWrapper.moving {
	right: 100vw;
	left: -100vw;
	transition: .5s all ease;
}

#downloadsWrapper {
	right: -100vw;
	left: unset;
}

#downloadsWrapper #refreshBtn {
	height: 50px;
    width: 50px;
    background-color: white;
    background-image: url(../resources/refresh.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    margin: 7.5px 7.5px;
    border: 3px solid black;
    border-radius: 100%;
    position: absolute;
    top: -50px;
    right: -50px;
    z-index: 1;
	cursor: pointer;
}

#refreshBtn:hover {
	animation: rotate 3s infinite linear;
}

#toggleBtn {
	height: 30px;
	width: 120px;
	background-color: var(--button-background-color);
	font-size: 1.3rem;
    font-weight: 500;
    line-height: 30px;
	text-align: center;
    padding: 10px;
	border: 2px outset #858585;
	border-top-width: 0px;
	position: fixed;
	top: 0;
	right: 80px;
    box-shadow: 0 9px 8px -5px rgb(0 0 0 / 60%);
    cursor: pointer;
}

form {
	height: 100%;
	width: 100%;
	z-index: 5;
}

#droppable {
	height: 100%;
	width: 100%;
}

#droppable > input {
	visibility: hidden;
}

#droppableTitle {
	height: 30px;
	width: 90%;
	font-size: 2rem;
	line-height: 2rem;
	text-align: center;
	margin: auto;
	position: absolute;
	inset: 0;
	cursor: pointer;
}

#droppableSubtitle {
	height: 30px;
	width: 90%;
	font-size: 1rem;
	line-height: 1rem;
	text-align: center;
	margin: auto;
	position: absolute;
	inset: 0;
	transform: translateY(50px);
	cursor: pointer;
}

#droppableSubtitle.error {
	color: red;
}

#progressWrapper {
	width: 100%;
	height: 40px;
	position: relative;
	transform: translateY(-60px);
	transition: transform 0.6s ease-out 2.5s;
	z-index: -2;
}

#progressWrapper.showing {
	transform: translateY(0px);
	transition: transform 0.3s linear;
}

.progress {
	width: 100%;
	height: 30px;
}

.progress { 
	height: 30px;
	width: 100%;
	position: relative;
	background: white;
	border-radius: 8px;
	box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
	transform: translateY(5px);
}

.progress > span {
	display: block;
	height: 100%;
}

.progress[value] > span {
	background-color: #e5251d;
	position: relative;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
	box-shadow: 
		inset 0 2px 9px  rgba(255,255,255,0.3),
		inset 0 -2px 6px rgba(0,0,0,0.4);
	overflow: hidden;
}

.progress[value="100"] > span {
	width: 100% !important;
	background-color: #e5251d;
	border-radius: 8px;
	box-shadow: 
		inset 0 2px 9px  rgba(255,255,255,0.3),
		inset 0 -2px 6px rgba(0,0,0,0.4);
	position: relative;
	overflow: hidden;
}

.progress:not([value]) > span {
	width: 100% !important;
	background-image: -moz-linear-gradient(-45deg, white 0%, white 33%, #e5251d 33%, #e5251d 66%, white 66%, white 100%);
	background-image: -webkit-linear-gradient(-45deg, white 0%, white 33%, #e5251d 33%, #e5251d 66%, white 66%, white 100%);
	border-radius: 8px;
    background-size: 12.5% 30px;
	animation: indeterminate 5s linear infinite;
}

#progressText {
	display: inline-block;
	line-height: 40px;
	text-align: center;
	text-shadow: -1px -1px 1px white, 1px 1px 1px white, -1px 1px 1px white, 1px -1px 1px white;
	margin: auto;
	position: absolute;
	inset: 0;
}

#convert {
	height: 40px;
	width: 50%;
	background: #bed3cd;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1rem;
	padding: 10px;
	margin: auto;
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	transition: bottom .9s ease-out 2.5s;
	box-shadow: 0 9px 8px -5px rgb(0, 0, 0, .6);
	cursor: pointer;
	z-index: -1;
}

#convert.showing {
	bottom: -60px;
	transition: bottom 0.3s ease-out, z-index 0.1s linear 0.3s;
	z-index: 1;
}

#convert.showing.progressShowing {
	bottom: -78px;
	transition: bottom 0.3s linear;
	z-index: -1;
}

#notificationTray {
	height: 100%;
	width: 0px;
	background: #f5f5ec;
	border-right: 0px solid black;
	position: fixed;
	left: 0;
}

#notificationTray.showing {
	width: 85px;
	border-right: 1px solid black;
	transition: width .1s ease;
}

.entry {
	height: 70px;
	width: 0px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 55px 55px;
	margin: 7.5px 7.5px;
	border: 0px solid black;
	border-radius: 7px;
}

#notificationTray.showing .entry {
	width: 70px;
	border: 1px solid black;
	transform: translate(0px);
	transition: width .5s ease, border .2s linear;
	transition-delay: .2s;
	animation: notificationSlideIn .3s linear 0s 1 normal;
	cursor: pointer;
}

.entry.critical {
	background-color: black;
	background-image: url('../resources/Critical.svg');
}

.entry.error {
	background-color: red;
	background-image: url('../resources/Error.svg');
}

.entry.info {
	background-color: yellow;
	background-image: url('../resources/Warning.svg');
}

.entry.good {
	background-color: green;
	background-image: url('../resources/Good.svg');
}

.entry .message {
	display: block;
	max-height: 50px;
	width: 230px;
	background: white;
	color: black;
	font-size: 1rem;
	line-height: 25px;
	padding: 8px;
	border: 1px solid black;
	border-radius: 0 7px 7px 7px;
	opacity: 0;
	transform: translate(85px, 1px);
	transition: opacity .5s ease-out;
}

.entry.showMsg .message {
	opacity: 1;
	transition: opacity .5s ease-out 5s;
}

.entry .message:before {
    content: "";
    display: block;
    width: 0; 
    height: 0; 
    border-left: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-top: 12px solid black;
    position: absolute;
    top: -1px;
    left: -12px;
}

.entry .message:after {
    content: "";
    display: block;
    width: 0; 
    height: 0; 
    border-left: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-top: 12px solid white;
    position: absolute;
    top: 0;
    left: -10px;
}

#notificationTray.showing .entry:hover .message {
	opacity: 1;
	transition: opacity .3s ease-out;
}

#notificationTray #clearNotifications {
	height: 30px;
	width: 0px;
	background: #bed3cd;
	font-size: 1.2rem;
	line-height: 30px;
	text-align: center;
	margin: 7.5px 7.5px;
	border: 0px solid black;
	border-radius: 7px;
	box-sizing: border-box;
	position: absolute;
	bottom: 0;
	overflow: hidden;
	cursor: pointer;
}

#notificationTray.showing #clearNotifications {
	width: 70px;
	border: 1px solid black;
	transition: width .5s ease, border .2s linear;
	transition-delay: .2s 
}


/* TABULATOR */


.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	color: var(--accent-background-color, #555);
	border-bottom-color: var(--accent-background-color, #555);
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	border-top-color: var(--accent-background-color, #555);
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
	background: var(--main-background-color-hover, #EEEEEE);
}

.tabulator .tabulator-header .tabulator-col {
	background: var(--main-background-color, #E6E6E6);
	color: var(--accent-background-color, #555);
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
	border-top-color: var(--main-background-color, #555);
}

.tabulator-row.tabulator-group .tabulator-arrow {
	border-left-color: var(--main-background-color, #555);
}

.tabulator-row.tabulator-group {
	background: var(--accent-background-color, #CCC);
}

.tabulator-row.tabulator-group:hover {
	background: var(--accent-background-color-hover, rgba(0,0,0,.1));
}

.tabulator-row.tabulator-group span {
	color: var(--main-background-color, #D00);
}

.tabulator-row.tabulator-selected {
	background: var(--selector-background-color, #9abcea);
}

.tabulator-row.tabulator-selected:hover {
	background: var(--selector-hover-background-color, #9abcea);
}

.tabulator-cell.downloadContainer {
	padding: 2px;
	cursor: pointer;
}

.tabulator .downloadIcon {
	width: 100%;
    height: 100%;
	background-image: url('../resources/download.svg');
    background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

.tabulator-cell.downloadContainer.loading {
	cursor: disabled;
}

.tabulator-cell.downloadContainer.loading .downloadIcon {
	background-image: url('../resources/loading.svg');
	animation: rotate 0.2s linear infinite reverse;
}


/* Keyframes */

@keyframes notificationSlideIn {
	0% { transform: translateX(-90px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(3px); }
	100% { transform: translateX(0px); }
}

@keyframes indeterminate {
	100% { background-position: -100% 0px; }
}

@keyframes rotate {
	0% {
		transform: rotate(360deg);
	}
	100% {
		transform: rotate(0deg);
	}
}