* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
	width: 100%;
	height: 100%;
	display: flex;
  flex-direction: column;
	scrollbar-width: none;
}
body {
	/* gradient generator css3 */
	background: linear-gradient(90deg, #202123 0%, #232120 100%);
	font-family: Arial, Helvetica, sans-serif;
}

@viewport { width: device-width; zoom: 1.0; }
@-ms-viewport { width: device-width; zoom: 1.0; }

a:link, a:hover, a:visited, a:active, a:focus {
	text-decoration: none;
	color: inherit;
	/* outline: none; */
}

a img, option, label, input, textarea, fieldset, select {
	font-family: Arial, Helvetica, sans-serif;
	font-size: inherit;
	border: none;
	border-style: none;
 }

/* input#confirm_button, input.goback { font-weight: bold; } */

.my-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.3) transparent;
}

::-webkit-scrollbar { display: none; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {	display: none; }

.container {
	text-align: center;
}

.load_more_trigger {
  height: 1px;
  visibility: hidden;
}

.header, #search, #message,
.footer, .comment {
	font-size: 1.26rem;
	text-align: center;
	/* color: #ccc;	c0c0c0 */
	background: linear-gradient(0deg, rgba(40,40,40,1) 0%, rgba(33,33,33,1) 100%);
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
	/* opacity: 0.9; */
	z-index: 1;
}

.header, 
#search {
	position: fixed;
	width: 100%;
	height: 2.6em;
	top: 0;
	left: 0;
	padding: 0 3.3em;
	z-index: 3;
}

#search {
	opacity: 1.0;
	font-weight: bold;
}

.functions {
	position: fixed;
	left: -4.0em;
	right: 0;
	width: 0;
	margin: 0 auto;
}

#search:focus,
#message:focus { outline: none; }

.header, #search, #message,
.footer, .comment,
#search::placeholder,
#message::placeholder  { color: #ccc;	/* c0c0c0 */ }

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.menu,
.gear,
.submenu,
.closemenu,
.closesearch {
	z-index: 4;
}

.menu, .gear {
	position: fixed;
	cursor: pointer;
	filter: invert(85%);
}

.menu {
	top: 0.26em;
	left: 0.69em;
}

.logo {
	position: fixed;
	top: 0.13em;
	left: 50%;
	transform: translateX(-50%);
	filter: brightness(130%);
}

.gear {
	top: 0.14em;
	right: 0.55em;
	
}

.menu img, 
.logo img, 
.gear img,
.submenu a,
.prev, .next {
	transition: all 0.5s ease;
}

.menu img:hover,
.logo img:hover,
.gear img:hover { 
	filter: brightness(1.1);
	transform: scale(1.1);
}

.submenu {
	position: fixed;
	top: 0;
	left: 0;
	padding-top: 2.5em;
	text-align: left;
	overflow-x: hidden;
	transition: 0.4s ease;
	background: rgb(40,40,40);
	background: linear-gradient(0deg, rgba(40,40,40,1) 0%, rgba(33,33,33,1) 100%);
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
	border-radius: 8px;
}

.submenu .closemenu, .closesearch {
	position: absolute;
	top: 0.45em;
	left: 0.84em;
	width: 1.8em;
	height: 1.8em;
	line-height: 1.8em;
	text-align: center;
	font-weight: bold;
	cursor: pointer;
	background-color: black;
	/* 696969 808080 */
	border-radius: 50%;
	filter: invert(85%);
	transition: all 0.5s ease;
}

.closemenu,
.closesearch {
  display: flex;
  justify-content: center;
  align-items: center;
}

.closesearch {
	position: fixed;
	left: unset;
	right: 0.84em;
}

.closesearch[hidden] { display:none!important; }

.closemenu:hover, .closemenu:focus,
.closesearch:hover, .closesearch:focus {
	transform: rotate(-360deg) scale(1.1);
	filter: invert(80%);
}

.submenu a { transition: all 0.3s ease; }
.submenu a {
	position: relative;
	display: block;
	padding: 0.44em 2em;
	margin: 0 0.9em;
	font-size: 19px;
	/* color: #b4abab; */
}

.submenu a:hover, .submenu a:focus {
	border-radius: 20px;
	filter: invert(200%);
	background-color: rgba(0, 0, 0, 0.8);
	/* box-shadow: -1px 0px 8px -1px rgba(0,0,0,0.40); */
}

.display {
  position: relative;
  min-height: 480px;
  min-width: 320px;
  height: 100dvh;
  width: 100%;
  background: url(../img/loader/loading.svg) center no-repeat;
	display: block;
}

.play_vid { cursor: pointer; }

.file_container,
.play_file,
.play_vid {
	position: relative;
  height: 100dvh;
	flex: 1 1 auto;
	min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Desktop / larger screens */
@media (min-width: 768px) {
  .file_container,
  .play_file,
  .play_vid {
    height: 100svh; /* stable height for desktop */
  }
}

.display_v video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.play-button {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background-color: rgba(0, 0, 0, 0.5);
	/* color: #fff; */
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	z-index: 1;
}

.play-button:hover {
	background-color: rgba(0, 0, 0, 0.7);
}

.player {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}
.player video, 
.player iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#loader_upload { margin-top: 0.6em; }

.comment,
#message, 
.footer {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	/* height: 2.6em; */
	min-height: 2.6em;
	max-height: 40vh;
	line-height: 1.4em;
	font-weight: bold;
	word-break: normal;
	overflow-y: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
  resize: none;
  box-shadow: 0 -1px 2px 0 rgba(0,0,0,0.50);
}

.comment, #message { padding: 0.5em 3.3em; }
#message { height: 2.6em; }

.footer {
	position: fixed;
	white-space: normal;
}

@media screen and (max-width: 220px) {
	.comment { font-size: 15px; }
}

.confirm_form, .goback {
	width: 7.6em;
	height: 2.9em;
	font-size: 18px;
	cursor: pointer;
 }

.confirm_form,
.goback {
	border-radius: 18px;
}

.confirm_form:hover, .goback:hover {
  /* color: #fff; */
	background-image: radial-gradient(circle at center, red 0%, #952828 100%);
	box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.4);
}
.goback:hover {
	background-image: radial-gradient(circle at center, #87c3ff 0%, #1a6998 100%);
 }

.popupbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
	/* color: #fff; */
  /* background: linear-gradient(90deg, rgba(242,242,242,1) 0%, rgba(237,237,237,1) 35%); */
  /* z-index: 1; */
}

.scrollbox {
  max-height: 86%;
  padding: 3.0em;
  overflow-y: auto;
  flex: auto;
}

.box {
  font-size: 18px;
}

.box p {
  padding: 0 3.0em 1.5em;
  margin-right: 0.4em;
}

.confirm_form:hover, .goback:hover,
.popupbox,
.circle_box, 
.textbox {
	color: #f3f3f3;
}

.circle_box {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: black;
  color: white;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  margin-right: 0.4em;
  margin-bottom: 2em;
  overflow: hidden;
}

.circle_box::before {
  content: attr(data-val);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: inherit;
  line-height: 1;
}

.textbox {
  padding: 4.0em 4.0em;
  text-align: justify;
  /* overflow: scroll; bug android when scroll/auto */
  /* background: linear-gradient(180deg, rgba(248,248,248,1) 80%, rgba(222,222,222,1) 100%); */
}

.textbox h3 {
  padding: 0.8em 0 0.8em 0;
  font-weight: bolder;
  text-align: center;
}
.textbox p {
  line-height: 2.5;
  font-size: 17px;
  padding: 0.4em;
}
.textbox p a {
  text-decoration: underline;
}

@media screen and (min-width: 840px) {
	.textbox {
    font-size: 20px;
    padding: 4.8em 12.0em;
  }
}

.display_controls {
	position: fixed;
	text-align: left;
	top: 50%;
	left: 1.05em;
	/* margin-left: 1.05em; */
	transform: translateY(-50%);
	display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 0.6em; */
	z-index: 2;
}

.prev, .next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
	
.prev { line-height: 2.4em; }
.next { line-height: 2.7em; margin-top: 0.5em; }

.display_v .right_functions {
	position: absolute;
	right: 1.12em;
	top: 50%;
	transform: translateY(-50%);
}

.display_functions {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
}

.prev_button, .next_button {
	color: white;
	font-size: 1.4em;
	line-height: 1;
}

.prev:hover, .next:hover,
.folder_upload:hover,
a.upload:hover, 
a.download:hover, 
a.delete_file:hover,
a.profile_upload:hover,
a.profile_download:hover,
a.profile_delete:hover {
	filter: invert(1.1);
	transform: scale(1.1);
}