/* ***************************************************
These styles are for the custom alert messages. 
Some of the styles that the corresponding elements 
have are other styles in arteroids.css  
**************************************************** */

.modalBackground {
    /* This covers the entire screen. This is used to 
	make everything behind a modal dialog unclickable */
    position: absolute;
	top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
	z-index: 2147483647; /* maximum value for a 32-bit signed integer, the data type commonly used by browsers to store this value. */
	pointer-events: auto; /* Prevents mouse events from passing through */;
}

/********************************************************
MSG DIALOG STYLES
*********************************************************/

.layerMsg {
	/* Contains the alert messages. */
	position:absolute;
	background-color:hsla(0, 0%, 0%, 0.85);
	width:340px;
	height:205px;
	border: 1px groove #c0c0c0;
    visibility: hidden;
	opacity:0;
    transition: opacity 1s, visibility 1s;
    top: 45%;
    left: 50%;
	transform: translate(-50%, -50%);
}

.msgBody {
	/* This holds alert messages */
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
	width:100%;
    height:160px;
}

.msg_handle {
	/* The black window's title bar */
    background-color: black;
	position: relative;
    box-sizing: border-box;
	width:100%;
	height:45px;
	top:0px;
	left:0px;
	padding:4px;
	padding-left:10px;
    border-bottom: 1px solid #c0c0c0;
	color:#FFF;
	font-family:Verdana, Geneva, sans-serif;
	font-size:0.9em;
	cursor:move;
	line-height: 35px;
}

.blackGrayGradient {
    /* Headers in black window  */
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,333333+57,333333+57,333333+100 */
    background: #000000; /* Old browsers */
    background: -moz-linear-gradient(left,  #000000 0%, #333333 57%, #333333 57%, #333333 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left,  #000000 0%,#333333 57%,#333333 57%,#333333 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right,  #000000 0%,#333333 57%,#333333 57%,#333333 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#333333',GradientType=1 ); /* IE6-9 */
}

.msgBodySub {
	color:white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	height:120px;
	display: flex;
  	justify-content: center; /* Centers horizontally */
  	align-items: center;     /* Centers vertically */
}

.msgMessage {
	max-width: 270px;
	font-size:0.85em;
}

.msgButtonContainer {
	width:100%;
	display: flex;
	justify-content: center; /* Centers horizontally */
	align-items: center;    /* Centers vertically */
}

.msgButton {
	max-width: 80px;
	width: 80px;
    text-align: center;
	border-radius: 4px;
	line-height: 1.5;
    background-color: red;
}

.msg_close {
	/* The black window close button */
	position: absolute;
	top: 4px;
	right: 3px;
	cursor:pointer;
    z-index: 99999999;
}

.nomouse {
    pointer-events:none;
}

/********************************************************
SAVE AS DIALOG STYLES
*********************************************************/

.layerSaveAs {
	/* Contains the save as dialog */
	position:absolute;
	background-color:hsla(0, 0%, 0%, 0.85);
	width:354px;
	height:auto;
	border: 1px groove #c0c0c0;
	visibility: hidden;
	opacity:0;
	transition: opacity 1s, visibility 1s;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.saveAsBody {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
}

.saveAsTitle {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 0.85em;
	font-weight: bold;
	margin-bottom: 6px;
}

.saveAsMain {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: flex-start;
}

.saveAsRight {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
}

.saveAsPoemNameRow {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.saveAsLabel {
	color: #d5d5d5;
	font-size: 0.75em;
}

.saveAsInput {
	background-color: #2a2a2a;
	color: white;
	border: 1px solid #c0c0c0;
	padding: 2px 4px;
	width: 100%;
	box-sizing: border-box;
	font-size: 0.8em;
	outline: none;
}

.saveAsButtonRow {
	display: flex;
	flex-direction: row;
	gap: 6px;
}

.saveAsButton {
	width: 65px;
	text-align: center;
	border-radius: 4px;
	line-height: 1.5;
	cursor: pointer;
}
.saveAsFileListContainer {
	padding: 0;
	margin: 10px;
	max-height: 150px;
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #2a2a2a;
	height:140px;
	width:130px;
}

.saveAsFileListItem {
	font-family: "sans-serif, Arial, Arial Narrow Bold";
	font-size: 12px;
	text-shadow: 1px 1px black;
	white-space: nowrap;
	color:#d5d5d5;
	padding: 0 2px;
	margin: 0;
	height: 40px;
	line-height: 40px;
	border-bottom: 1px solid black;
	cursor: pointer;
	background-color: #3c3c3c;
}

.saveAsFileListItemSelected {
	background-color: #555;
	color: #ff6600;
}

/********************************************************
CONFIRM DIALOG STYLES
*********************************************************/

.layerConfirm {
	position:absolute;
	background-color:hsla(0, 0%, 0%, 0.85);
	width:340px;
	height:205px;
	border: 1px groove #c0c0c0;
    visibility: hidden;
	opacity:0;
    transition: opacity 1s, visibility 1s;
    top: 45%;
    left: 50%;
	transform: translate(-50%, -50%);
}

.confirmBody {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
	width:100%;
	height:160px;
}

.confirmBodySub {
	color:white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	height:120px;
	display: flex;
  	justify-content: center;
  	align-items: center;
}

.confirmButtonContainer {
	gap: 16px;
}

/********************************************************
OPEN DIALOG STYLES
*********************************************************/

.layerOpen {
	position: absolute;
	background-color: hsla(0, 0%, 0%, 0.85);
	width: 340px;
	max-width: 92vw;
	height: auto;
	border: 1px groove #c0c0c0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 1s, visibility 1s;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.openBody {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
}

.openTitle {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 0.85em;
	font-weight: bold;
	margin-bottom: 6px;
}

.openPoemSection {
	margin-bottom: 8px;
}

.openPoemSectionHeader {
	color: #ff6600;
	font-size: 0.7em;
	font-family: Verdana, Geneva, sans-serif;
	padding: 3px 4px 2px;
	background-color: #1a1a1a;
	border: 1px solid #555;
	border-bottom: 1px solid #444;
}

.openPoemSectionList {
	background-color: #2a2a2a;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #555;
	border-top: none;
}

#myPoemsList {
	max-height: 240px;
}

#guestPoemsList {
	max-height: 170px;
}

.openPoemItem {
	font-family: sans-serif, Arial;
	font-size: 12px;
	color: #d5d5d5;
	padding: 0 8px;
	margin: 0;
	height: 40px;
	line-height: 40px;
	border-bottom: 1px solid black;
	cursor: pointer;
	background-color: #3c3c3c;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.openPoemItem:hover {
	background-color: #4c4c4c;
}

.openPoemItemGuest {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: auto;
	min-height: 40px;
	line-height: 1.3;
	padding: 6px 8px;
	gap: 2px;
}

.openPoemItemAuthor {
	font-size: 0.85em;
	color: #ffaa66;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.openPoemItemTitle {
	white-space: normal;
	overflow-wrap: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.openPoemItemSelected {
	background-color: #555;
	color: #ff6600;
}

.openPoemEmpty {
	color: #888;
	font-size: 0.8em;
	padding: 8px;
	font-family: Verdana, Geneva, sans-serif;
}

.openButtonRow {
	display: flex;
	flex-direction: row;
	gap: 6px;
}

/********************************************************
STYLING DIALOG STYLES
*********************************************************/

.layerStyling {
	position: absolute;
	background-color: hsla(0, 0%, 0%, 0.9);
	width: 290px;
	max-height: 92vh;
	overflow-y: auto;
	border: 1px groove #c0c0c0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 1s, visibility 1s;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.stylingBody {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
}

.stylingTitle {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 0.85em;
	font-weight: bold;
	margin-bottom: 6px;
}

.stylingPreview {
	background-color: #111;
	border: 1px solid #444;
	padding: 8px;
	margin-bottom: 8px;
	min-height: 38px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.stlSection {
	border: 1px solid #444;
	padding: 6px 8px;
	margin-bottom: 8px;
}

.stlControlRow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
}

.stlControlRow:last-child {
	margin-bottom: 0;
}

.stlLabel {
	color: #d5d5d5;
	font-size: 0.72em;
	min-width: 50px;
}

.stlSlider {
	flex: 1;
}

.stlValue {
	color: #d5d5d5;
	font-size: 0.75em;
	min-width: 30px;
}

.stylingColorPicker {
	width: 36px;
	height: 22px;
	padding: 0;
	border: 1px solid #888;
	background: none;
	cursor: pointer;
}

.stlToggleBtn {
	width: 26px;
	height: 22px;
	text-align: center;
	line-height: 22px;
	border: 1px solid #888;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.85em;
	user-select: none;
	color: #d5d5d5;
	background-color: #2a2a2a;
}

.stlToggleBtnActive {
	background-color: #555;
	color: #ff6600;
	border-color: #ff6600;
}

.stlItalic {
	font-style: italic;
}

.stlFontCurrentRow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
}

.stylingCurrentFont {
	color: #ff6600;
	font-size: 0.8em;
	font-style: italic;
}

.stlFontListLabel {
	color: #d5d5d5;
	font-size: 0.72em;
	margin-bottom: 3px;
}

.stylingFontList {
	background-color: #2a2a2a;
	max-height: 120px;
	overflow-y: auto;
	overflow-x: hidden;
	margin-bottom: 6px;
	border: 1px solid #555;
}

.stlFontListItem {
	font-size: 12px;
	color: #d5d5d5;
	padding: 0 6px;
	height: 22px;
	line-height: 22px;
	border-bottom: 1px solid #333;
	cursor: pointer;
	background-color: #2a2a2a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stlFontListItem:hover {
	background-color: #3c3c3c;
}

.stlFontListItem.saveAsFileListItemSelected {
	background-color: #555;
	color: #ff6600;
}

.stlAddFontRow {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	margin-bottom: 4px;
}

.stlAddFontInput {
	flex: 1;
	height: 24px;
	background-color: #ffffff;
	color: #000000;
	border: 1px solid #888;
	padding: 3px 5px;
	font-size: 0.8em;
	outline: none;
	min-width: 0;
	box-sizing: border-box;
}

.stlAddFontHint {
	color: #aaa;
	font-size: 0.68em;
	line-height: 1.3;
	margin-top: 2px;
}

.stlAddFontBtn {
	white-space: nowrap;
	font-size: 0.72em;
	line-height: 1.3;
	padding: 3px 6px;
}

.stylingButtonRow {
	display: flex;
	justify-content: flex-end;
}

/********************************************************
MEDIA QUERIES FOR DIALOGS
*********************************************************/

@media (hover: hover) and (pointer: fine) {
    .saveAsFileListItem {
        height: 26px;
        line-height: 26px;
    }
    .openPoemItem {
        height: 26px;
        line-height: 26px;
    }
    .openPoemItemGuest {
        height: auto;
        line-height: 1.3;
    }
}

/********************************************************
EXPORT / IMPORT DIALOG STYLES
*********************************************************/

.layerExportImport {
	position: absolute;
	background-color: hsla(0, 0%, 0%, 0.85);
	width: 320px;
	height: auto;
	border: 1px groove #c0c0c0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 1s, visibility 1s;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.exportImportBody {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
}

.exportImportTitle {
	color: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 0.85em;
	font-weight: bold;
	margin-bottom: 10px;
}

.eiMenuItem {
	color: #ff6600;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.85em;
	font-weight: bold;
	cursor: pointer;
	padding: 6px 0 2px;
}

.eiMenuItem:hover {
	color: #ffaa44;
}

.eiMenuHint {
	color: #d5d5d5;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.75em;
	margin-bottom: 8px;
}

.eiSectionLabel {
	color: #d5d5d5;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.75em;
	margin-bottom: 4px;
}

.eiSelectAllRow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.eiCheckLabel {
	color: #d5d5d5;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.75em;
	cursor: pointer;
}

.eiCheckbox {
	cursor: pointer;
	accent-color: #ff6600;
}

.eiExportPoemList {
	background-color: #2a2a2a;
	max-height: 180px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #555;
	margin-bottom: 8px;
}

.eiSysInfoRow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	margin-top: 6px;
}

.eiButtonRow {
	display: flex;
	flex-direction: row;
	gap: 6px;
	margin-top: 8px;
}

.eiImportTextarea {
	width: 100%;
	box-sizing: border-box;
	background-color: #2a2a2a;
	color: white;
	border: 1px solid #c0c0c0;
	padding: 4px;
	font-family: monospace;
	font-size: 0.75em;
	height: 120px;
	resize: vertical;
	outline: none;
	margin-bottom: 4px;
}

/* Multi-select highlight for TextList items */
.textListItemMultiSelected {
	background-color: #555;
	color: #ff6600;
}