body{
	background: #303841;
	margin: 0px;
	color: #d8dee9;

	font-family: 'Roboto', sans-serif;
	font-family: 'Source Code Pro', monospace;
}

tbody, td, tfoot, th, thead, tr {
    padding: 10px;
    border: 1px solid white;
}

.page-title{
	font-weight: bold;
	text-decoration: underline;
}

.page, .dir {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Edge */
}

h4{
	padding-bottom: 10px;
}

pre{
	width: fit-content;
}

.btn, select{
	border-radius: 0 !important;
	margin: 5px 0px;
}

.clock-icon{
  height: 19px;
    position: relative;
    top: -9px;
    left: 8px;
}

#image-icon{
	 position: absolute;
    right: 73px;
    top: 3px;
    width: 23px;
}

textarea{
	margin-right: 10px;
    width: 50%;
    background: none;
    color: #d8dee9;
    border: none;
}

textarea:focus {
    outline: none;
}

.directory-name{
	padding-left: 10px;
}

.file-name{
	padding-left: 22px;
}

.dir-icon{
    height: 20px;
    position: relative;
    top: 1px;
    left: 6px;
}

.doc-icon{
	height: 18px;
  position: relative;
  top: 3px;
  left: 16px;
}

.down-icon{
	position: relative;
  height: 9px;
  bottom: -6px;
  left: 2px;
}

.right-icon{
	position: relative;
  height: 11px;
  bottom: -6px;
  left: 2px;
}


#top-bar{
  height: 30px;
  background-color: #4c535b;
  user-select: none;
}

#history-modal-trigger{
	position: absolute;
  right: 55px;
  top: 10px;
  cursor: pointer;
}

.backup-dialog{
    background: #4c535b;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-top: 4px dotted #22262a;
    position: absolute;
    right: 0px;
    z-index: 9;
}

#resizing-bar{
	cursor: e-resize;
  background: #303841;
  border-left: 15px solid #22262a;
  border-right: 15px solid #303841;
}




.page-title{
	font-size: 30px;
}

.noselect {
    -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important; /* Safari */
    -khtml-user-select: none !important; /* Konqueror HTML */
    -moz-user-select: none !important; /* Old versions of Firefox */
    -ms-user-select: none !important; /* Internet Explorer/Edge */
    user-select: none !important; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
}

select.ql-color{
	display: none !important;
}

select.ql-align{
	display: none !important;
}

.ql-toolbar{
	display: none;
}


.ql-picker, .ql-picker-options, .ql-toolbar{
	background-color:  #8E8CD8 !important;
}

#doc-view{
	width: 80%;
	overflow-y: hidden;
	padding-right: 15px;
}

#doc-nav a{
	color: #d8dee9;
	display: block;
	#d8dee9-space: nowrap;
}

.page{
	display: flex;
}


#left-bar{
	background-color: #22262a;
}

.tag{
	cursor: pointer;
	user-select: none;
}

.cat{
	user-select: none;
}

#doc-list{
	overflow: hidden; 
	overflow-y: scroll;
}

#doc-list .read-mode{
	max-height: unset !important;
}

#doc-list .write-mode{
	max-height: 970px !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Prevent scrollbar space from being reserved */
.hide-scrollbar.element {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

pre{
	background: black;
	padding: 10px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

pre::-webkit-scrollbar {
    display: none;
}

code{
	color: #c4c2ff !important;
}

a{
	color: #c4c2ff
}

.editor .content{
	width: 100%;
 	height: 75%; /* Take up 100% of the container's height */
  	width: 100%; /* 100% of the container's width */
  	resize: none; /* Prevent resizing of the textarea */
	background: black;
	color: #d8dee9;
	
}

.editor .content-read{
	width: 100%;
 	height: 75%; /* Take up 100% of the container's height */
  	width: 100%; /* 100% of the container's width */
  	resize: none; /* Prevent resizing of the textarea */
	background: black;
	color: #d8dee9;
	border: none;
}

.editor .title{
	width: 100%;
	font-weight: bold;
	background: black;
	color: #d8dee9;
	border: none;
}

#doc-nav{
	user-select: none;
}

.page-link:hover{
	background-color: #4c535b;
}

.dir:hover{
	background-color: #4c535b;
}

.page-link.editing{
	background-color: #4c535b;
}

.dir.editing{
	background-color: #4c535b;
}

#doc-nav .page-link.selected .file-name{
  color: #c4c2ff !important;
  text-decoration: underline;
}

.border-none{
	border: none !important;
}


#upload-info{
	background: #c4c2ff;
    color: black;
    margin: auto;
    text-align: center;
    margin-top: 30px;
    border-radius: 10px;
    width: 254px;
    padding: 2px 0px;
}

#copy-icon{
	width: 20px;
    margin: 10px 0px;
    cursor: copy;
}

#rename-page-modal, #rename-dir-modal, #delete-page-modal, #delete-dir-modal, #new-page-modal, #new-dir-modal, #history-modal, #image-modal, #add-new-user, #move-page-modal, #login{
	background: #4c535b;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  z-index: 10;
}

#search-modal{
	 padding: 20px 20px;
    position: absolute;
    bottom: 0;
    background: #22262a;
    right: 0px;
    max-width: 300px;
}

.rename-input{
	width: 100%;
	margin-bottom: 10px;
}

.rename-submit{
	border: none;
}
.rename-cancel{
	margin-top: 10px;
	border: none;
}

#screen{
	height: 100%;
  width: 100%;
  background-color: #ffffff5c;
  position: absolute;
  top: 0px;
  z-index: 9;

}


#context-menu{
  width: 190px;
  background-color: #303841;
  border: 1px solid white;
  position: absolute;
  top: 0px;
  z-index: 10;
}

.context-option:hover{
	background-color: #4c535b;
	cursor: pointer;
}

.context-option{
	padding-left: 5px;
}

.page-link{
	cursor: pointer;
}

#page-container{
	height: calc(100% - 30px);
}

#save-bar{
	position: absolute;
  	bottom: 30px;
   	left: 50%;
}

#add-category{
	display: block;
}

button{
	width: 100%;
	background: #8E8CD8 !important;
	color: black !important;
}

.dir{
	cursor: pointer;
	display: flex;
}

.top-bar-text{
	font-size: 16px;
  line-height: 30px;
  text-align: center;
}


#new-category-title{
	width: 100%;
}

#delete-page{
	width: 200px;
	background-color: #ff4444 !important;
	margin-top: 10px;
}

#edit-icon{
  position: absolute;
  height: 19px;
  right: 18px;
  top: 5px;
}

/*
.task-list-item:not(:has(ul)) {
	height: 30px;
}

.task-list-item:has(ul) {
    padding-bottom: 13px;
}
*/

ul.contains-task-list {
    padding-left: 30px;
}

ul ul.contains-task-list {
    padding-left: 2rem;
}

body{
	font-size: 16px;
}

input[type='checkbox'] {
    accent-color: #000;
    width: 17px;
    height: 17px;
    top: 20px;
    left: -27px;
    display: flex;
    position: relative;
}

.task-list-item li{
	list-style: none;
}

.task-list-item{
	list-style: none;
}

.cursor-pointer{
	cursor: pointer;
}

/*Search*/
.editor-container {
    position: relative;
}

.markdown-input{
	overflow-y: scroll;
}

.markdown-input, #search-overlay {
    /* Ensure that textarea and overlay div have the same dimensions and position */
    position: absolute;
    line-height: inherit; /* Adjust as per your styling */
    font-family: inherit; /* Match the font styles */
    font-size: inherit; /* Match the font styles */
    padding: 8px; /* Match the padding */
    white-space: pre-wrap; /* Preserve white spaces and new lines */
    word-wrap: break-word; /* Wrap long words */
}

button:disabled{
	opacity: 0.5;
    border: 1px solid black;
}

#search-overlay {
    pointer-events: none; /* Allows click events to pass through to the textarea */
    color: transparent; /* Hides the text in the overlay */
    background-color: transparent;
    overflow: hidden;
    position: relative !important;
}

.highlight{
	background-color: #8e8cd8;
    opacity: 0.4;
    color: black;
    border: 1px solid white;
}








#read-icon{
  position: absolute;
  height: 27px;
  right: 13px;
  top: 1px;
}

#mobile-menu{
	background: #8E8CD8;
    border-bottom-right-radius: 11px;
    cursor: pointer;
    width: fit-content;
}


.markdown-input, .markdown-output{
	width: 100%;
	padding-bottom: 100px;
}


#mobile-menu-icon{
	width: 40px;
	height: 40px;
}

#left-bar{
	display: block;
}
.row .h-100{
	height: unset;
}
/*lg breakpoint */
@media only screen and (max-width: 992px) {
  
 	.row.h-100{
		height: unset !important;
	}
}


/*md breakpoint */
@media only screen and (max-width: 768px) {
  
 	.top-bar-text{
		text-align: left;
		margin-left: 5px;
	}
	#doc-view{
		width: 100%;
	}

	.markdown-input, .markdown-output{
		width: 100%;
	}

	#left-bar{
		display: none;
	}

	body{
		overflow-y: hidden;
	}

	#doc-view{
		padding-right: 0px;
		margin: 5px;
	}

}