::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb {
	background: rgba(127,127,127,0.5);
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(127,127,127,0.65);
}

.textContainer{
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 36px;
	text-shadow: 0 0 12px #000, 3px 3px 4px #000;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	position: relative;
}
.textBg{
	/*background-image: url("bg.png");*/
	width: 100%;
	height: 100%;
	position: absolute;
}
.text{
	border-radius: 1em;
	padding: 1em;
	z-index: 1;
}

/***** MEDIA *****/
.mediaContainer{
	width: 100%;
}
.mediaContainer img{
	width: 100%;
}
.mediaContainer video{
	width: 100%;
}
.youtubeContainer{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.youtubeContainer iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	border: none;
}

/***** DATABASE *****/
.dEntries{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}
.dEntry{
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 5px;
	border-radius: 10px;
	padding: 10px;
	background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.dEntry div{
	margin-bottom: 5px;
}
.dEntryImageContainer img{
	max-width: 200px;
}

/***** LAYOUT *****/
#mainContainer{
	/*background: url("bg.png");*/
	width: 100%;
	height: 100vh;
	overflow: hidden;
}
#main{
	display: flex;
	width: 100%;
	height: 100%;
}
#home{
	display: flex;
	flex-direction: row;
	align-items: center;
	min-width: 0;
	flex-grow: 1;
}
#editNode{
	text-align: center;
	background-color: rgba(0,0,0,0.5);
	background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
	padding: 10px;
}
#editNode input[type=text]{

}
#editInfo{
	margin-bottom: 10px;
	color: rgba(255,255,255,0.5);
}
.editNodeType{
	display: none;
}
#nodes{
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: flex-start;
	align-content: flex-start;
	justify-content: center;
	overflow-y: scroll;
	flex-grow: 1;
	height: 100%;
}
#menu{
	background-color: rgba(0,0,0,0.5);
	display: flex;
	flex-direction: column;
	min-width: 300px;
	width: 300px;
	max-width: 300px;
	flex-grow: 1;
}
#optionsContainer{
	overflow-y: auto;
}
#pageMediaSize{
	width: 50px;
}
#toggleMenu{
	width: 30px;
	height: 100vh;
	background-color: rgba(0,0,0,0.5);
	background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
	text-align: center;
	line-height: 100vh;
	user-select: none;
	cursor: pointer;
}

/***** BASIC *****/
html{
	margin:0;
	padding:0;
}
body{
	color: #FFF;
	font-family: Helvetica, Arial, "sans-serif";
	margin:0;
	padding:0;
	background-color: #000;
}
a{
	text-decoration: none;
	color: rgba(191, 223, 255);
}
textarea{
	color: #FFF;
	background-color: rgba(0,0,0,0.5);
	resize: none;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}
input{
	color: #FFF;
	background-color: rgba(0,0,0,0.5);
	border-style: solid;
	padding: 4px;
	margin: 1px;
	border: 1px solid rgba(255,255,255,0.11);
	border-radius: 4px;
}

#wallpaper{
	background: url("bg.jpg") fixed;
	background-size: cover;
	background-position: center;
	width: 100vw;
	height: 100vh;
	position: fixed;
	z-index: -1;
	overflow: hidden;
	filter: blur(30px);
}

/***** CONTAINER *****/
.nodeContainer, #notice, .noticeContainer{
	background-color: rgba(0,0,0,0.5);
	padding: 10px;
	border-radius: 10px;
}

/***** NOTICE *****/
#noticeContainer{
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}
#notice{
	text-align: center;
	width: 100%;
	max-width: 400px;
}
#notice input{
	padding: 10px;
	border-radius: 10px;
	margin-top: 10px;
	color: rgba(191, 223, 255);
	cursor: pointer;
	background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 100%);
}

/***** HEADER *****/
#header{
	text-align: center;
	font-size: 10px;
	width: 100%;
	padding: 10px 0 10px 0;
	color: rgba(255,255,255,0.5);
}

/***** PAGES *****/
#pages{
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-right: 8px;
	overflow-y: scroll;
	flex-shrink: 0;
}
.page{
	cursor: pointer;
	padding: 4px;
	margin: 2px;
	border-radius: 4px;
	background-color: rgba(0,0,0,0.5);
	text-align: center;
	white-space: nowrap;
}

/***** TABS *****/
#tabs{
	display: flex;
	flex-direction: column;
}
.tabContainer{
	display: flex;
	flex-direction: row;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	border-top: 1px solid rgba(255,255,255,0.25);
	border-bottom: 1px solid rgba(0,0,0,0.25);
}
.tabNoPointer{
	cursor: default;
}
.tablerSprite{
	width: 24px;
	height: 24px;
	stroke-width: 1.5;
}
.addNodeName{
	margin-left: 5px;
}

/***** NODES *****/
.nodeContainer{
	min-width: 100px;
	position: relative;
	margin: 10px;
	display: flex;
	flex-direction: column;
	max-width: 100%;
}
.nodeResize{
	overflow: auto;
	resize: horizontal;
	min-height: 20px;
}
.nodeResizeBoth{
	resize: both;
}
.resizeIcon{
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 0px;
}

/***** OPTIONS *****/
#options{
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.optionsContainer{
	padding: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.25);
	border-top: 1px solid rgba(0,0,0,0.25);
}
.optionsTitle{
	text-align: center;
}
.optionsInput{
	display: flex;
}
.optionsContainer>input{
	width: 100%;
	box-sizing: border-box;
}
#lastSave{
	width: 100%;
	text-align: center;
}
.inputGrouping{
	display: flex;
}
.inputGrouping input{
	flex-grow: 1;
}
#toggleDev{
	text-align: center;
	width: 100%;
	margin: 10px 0 10px 0;
	cursor: pointer;
	color: rgba(255,255,255,0.5);
	font-size: 10px;
}

/***** HEADER *****/
.header{
	display: flex;
	margin-bottom: 5px;
	cursor: grab;
	width: 100%;
	color: rgba(255,255,255,0.5);
	text-align: center;
	background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 100%);
	border-radius: 5px 5px 0 0;
	font-size: 12px;
	padding: 1px 0 0 0;
}
.dragHandle{
	width: 100%;
}
.delete, .edit{
	color: rgba(255,255,255,0.5);
	cursor: pointer;
	margin: 0 4px 0 4px;
}

/***** TIME *****/
.nodeTime{
	text-align: center;
}
.timeDay{
	font-size: 1.5em;
}
.timeDate{
	font-size: 1em;
}
.timeTime{
	font-size: 2em;
}

/***** SEARCH *****/
.searchNode{
	min-width: 200px;
}
.searchContainer{
	border-radius: 5px;
	padding: 10px;
	background-color: #FFF;
	display: flex;
}
.searchContainer input, select{
	background-color: #FFF;
	color: #000;
	border-color: #BFBFBF;
	border-radius: 5px;
}
.searchContainer input[type=text]{	
	width:100%;
	flex-shrink: 1;
	margin: 0 2px 0 2px;
}
.searchContainer input[type=button]{
	padding: 3px;
}

/***** LINK *****/
.links{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
}
.links .delete{
	color: rgba(255,255,255,0);
}
.linkContainer{
	display: flex;
	margin: 4px 0 4px 0;
}
.link{
	display: flex;
}
.linkFaviconContainer{
	width: 16px;
	height: 16px;
	margin-right: 4px;
}
.linkFavicon{
	width: 100%;
	height: 100%;
}
/* MEDIA */
.linkMediaContainer{
	width: 200px;
	height: 200px;
	max-width: 100%;
	max-height: 100%;
}
.linkMedia{
	width: 200px;
	height: 200px;
}
.linkMediaPreview{
	width: 100%;
	height: 100%;
	background-size:contain;
	background-repeat: no-repeat;
	background-position: center;
}
.addLinkContainer{
	display: flex;
	flex-direction: column;
}

/***** NOTEPAD *****/
.notepadContainer{
	flex: 1;
}

/***** DIVIDER *****/
.nodeDivider{
	width: 100%;
}
.nodeDivider>.header{
	margin-bottom: 0;
}

/***** DEV *****/
#dev{
	width: 100%;
	display: none;
}
#json{
	background-color: #000;
	width: 100%;
	overflow-x: scroll;
}

/***** INITIAL HIDE *****/
#noticeContainer, #main{
	display: none;
}