/* By Alonzo Ortiz-Sanchez */

.viewer {
	display: inline-flex;
	width: 100vw;
	height: 100vh;
}

/* Displaiyng numberline, and text from a document. Credit: https://stackoverflow.com/questions/446060/how-to-place-two-divs-side-by-side-with-css */
.reader {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: start;
	font-family: monospace, monospace;
	overflow-y: auto;
	scrollbar-color: var(--scroll-foreground) var(--scroll-background); /* Scroll color, background of scrollable widget */
  	background: linear-gradient(var(--main-body-Background-angle), var(--main-body-Background-color-one) 0%, var(--main-body-Background-color-two) 15%, var(--main-body-Background-color-three) 100%);
  	
  	flex-wrap: wrap;
	
	/* Drop down menu & buttons for selecting scripts */
	
	.navigationBarTop {
  		background-color: var(--navbar-background); /* Black background color */
  		position: sticky;
  		/*flex-basis: 100%; */
		display: flex;
  		top: 0; /* Stay on top */
  		width: 100%; /* Full width */
  		height: 5vh; /* 5% of viewport width */
  		z-index: 0;
  		margin-left: 7ch; /* 7 characters long */
  		margin-right: 1em;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
		
		.dropbutton {
  			background-color: var(--navbar-dropmenu-button-background);
  			color: var(--navbar-dropmenu-button-text);
  			font-size: 1.25cqw;
  			border: none;
			height: 5vh;
  			width: 10vw;
  			white-space: break-spaces;
  			z-index: 1;
		}
			
		.dropmenu {
  			position: relative;
  			display: inline-block;
  			padding-bottom: 20px;
  			z-index: 1;
  			margin-left: 5px;
		}
			
		.droplist {
  			display: none;
  			position: absolute;
  			background-color: var(--navbar-dropmenu-item-background);
  			color: var(--navbar-dropmenu-item-text);
  			width: 10vw;
  			box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  			z-index: 5;
  			text-align: center;
  			vertical-align: middle;
		}
			
		.droplist div {
  			padding: 12px 16px;
  			text-decoration: none;
  			display: block;
		}
	
		.droplist div:hover {
			background-color: var(--navbar-dropmenu-item-background-hover);
		}
		.dropmenu:hover .droplist {display: block;}
		.dropmenu:hover .dropbutton {
			background-color: var(--navbar-dropmenu-button-background-hover);
		}
			
		.buttonContainer {
			display: flex;
			position: relative;
			justify-content: space-evenly;
			flex-grow: 3;
			width: auto;
			float: left;
		}
	}
	
	.editorWrapper {
		display: flex;

		.numberLine {
			display: flex;
			flex-direction: column;
			order: 1;
			width: 5ch;
    		-webkit-touch-callout: none;
    		-webkit-user-select: none;
    		-khtml-user-select: none;
    		-moz-user-select: none;
    		-ms-user-select: none;
    		user-select: none;
			align-self: flex-start;
			background-color: var(--main-body-numberline-background);
			
			.staticRowNumber {
				box-sizing: border-box;
				min-height: 1lh;
				width: 5ch;
			}
			
			.disabled-num {
				display: none;
			}
		}
	
		.arrowLine {
			display: flex;
			flex-direction: column;
			order: 2;
			width: 2ch;
    		-webkit-touch-callout: none;
    		-webkit-user-select: none;
    		-khtml-user-select: none;
    		-moz-user-select: none;
    		-ms-user-select: none;
    		user-select: none;
			background-color: var(--main-body-arrowline-background);
			
			.staticRowArrow {
				background-color: var(--main-body-arrowline-text-background);
				box-sizing: border-box;
				min-height: 1lh;
				width: 2ch;
			}
			
			.hiddenArrow {
				visibility: hidden; /*Preserve space to preserve spacing */
			}
		}
		
		.textBar {
			display: flex;
			flex-direction: column;
			order: 3;
			flex: 3 1 auto;
			background-color: var(--main-body-textbar-background);
		
			.staticRowText {
				display: block;
				min-height: 1lh;
				min-width: 0;
				width: 100%;
				tab-size: 4; /* How many spaces are tabs represented with? */
				box-sizing: border-box; /* Include padding when determining the size of an element */
				overflow-wrap: anywhere; /* Long words will break if they overflow the container */
				overflow: visible; /* Allow letters that overflow to be visible of surpassing the container */
				white-space: break-spaces; /* Preserve most whitespaces, more support than pre-wrap, and allow text to wrap */
			}
		}
		
		.textBar:focus {
			outline: 2px solid var(--main-body-textbar-outline-focus); /* Border when user clicks on contentWritable element */
			box-shadow: none;
		}
	}
}
