.modal{
	position: fixed;
	z-index: 9999;
	top: 0px;
	left: 0px;
	font-size: 1rem;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background: rgba(0, 0, 0, .5);
}
.modal-close{
	position: absolute;
	z-index: 9;
	top: 45px;
	right: calc( 50% - 308px);
	background: black;
	color: white;
	cursor: pointer;
	height: 30px;
	width: 30px;
	/* border: 1px solid rgb(50, 50, 50); */
    font-size: 1.5rem;
	line-height: 0rem;
	padding-bottom: 2px;
	border-radius: 3px;
}
.modal-close:hover{
	background: white;
	color: black;
}
.modal-content>h4{
	margin-top: 0;
}
.modal-content{
	position: absolute;
	padding: 50px;
	margin-top: 50px;
	width: 100%;
	max-width: 600px;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 90vh;
    text-align: left;
	border-radius: 15px;
}


.modal h1,
.modal h2,
.modal h3{
/*     color: white; */
}
.modal  .modal-header{
	color: #c1cafb;
	margin-bottom: 10px;
}
.modal .column h3.column-header{
	margin-top: 0;
}
/* .modal-row */
.modal .column{
	padding: 10px 10px 30px 10px;
	height: 90%;
}
.modal .left-panel{
}
.modal .right-panel{
}
.right-panel .button{
	margin: 5px 0;
	border: 1px solid grey;
}

.modal input,
.modal textarea{
    margin: 10px 0;
}
.modal label{
    text-align: left;
    font-weight: bold;
    width: 100%
}
.modal label,
.modal input[type=checkbox]{
	display: inline-block;
}
.modal input[type=checkbox]{
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin: 0 10px;
}

.modal input[type=submit]{
	display: inline-block;
	max-width: auto;
	width: auto;
}
.modal.game input[type=submit]{
	background: orange;
	color: black;
}
.modal.game input[type=submit]:hover{
    background: yellow;
}
.modal.game .modal-content{
	max-width: 700px;
}
.modal.game .modal-close{
	right: calc(50% - 332px);
}

.input-wrapper{
	text-align: left;
	margin: 15px 0;
}

.modal option{
	color: black;
	font-weight: bold;
	background: lightgrey;
}

.explain{
/* 	font-style: italic; */
	cursor: pointer;
}

.modal.lightbox{
	overflow: hidden;
	background: rgba(0, 0, 0, .9);
}
.modal.lightbox .modal-content{
	max-width: 90vw;
	text-align: center;
	max-height: 90vh;
	background: transparent;
	overflow: hidden;
	padding-top: 0;
	box-shadow: none;
}
.modal.lightbox .modal-content img{
	box-shadow: 0px 0px 15px black, 
	0px 0px 30px black, 
	0px 0px 30px black, 
	0px 0px 50px black, 
	0px 0px 50px black;
}
.modal.lightbox .modal-content img{
	background: black;
}
.modal.lightbox .modal-close{
	padding: 20px;
	border: 2px solid #434141;
	right: 10px;
	top: 10px;
}
.modal.lightbox .modal-content img{
	max-height: 90vh;
	width: auto;
}
.lightbox-meta{
	position: fixed;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, .5);
	text-align: left;
	padding: 10px 20px;
	border: 2px solid #434141;
	border-radius: 3px;
}
.lightbox-title{
	font-weight: bold;
}



.modal input[type=password]{
	background: rgba(68, 30, 30, .5);
}
.modal input[disabled],
.modal textarea[disabled]{
	border-bottom: 0px transparent !important;
/* 	background: transparent; */
}


.prompt .button-area{
	position: absolute;
	bottom: 2px;
	right: 2px;
}

.prompt .button-area .button:nth-of-type(2){
	margin-left: 10px;
	background: green;
}
.prompt .button-area .button:nth-of-type(2):hover{
	background: lightgrey;
}

#showdev{
	position: fixed;
	bottom: 10px;
	right: 10px;
	border: 2px solid red;
	z-index: 999;
}

@media screen and (max-width: 800px){
	.modal-close{
		right: 0px;
	}
	.modal .side.top,
	.modal .side.bottom{
		display: none;
	}
}