.popup-outer {
    position: fixed;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    z-index: 1000;
}
.popup {
    position: relative;
    box-sizing: border-box;
    min-width: 20rem;
    min-height: 10rem;
    flex: 0 1 auto;
    background-color: var(--bg-color);
    border: 1px solid var(--color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-inner {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-flow: column;
    text-align: center;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
    gap: 0.5rem;
}
.winX {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    right: 0.3rem;
    top: 0.3rem;
    font-size: 120%;
    cursor: pointer;
    text-align: center;
    color: #888;
}
.winX:hover { color: #fff; }

/* PopError */
.popup-error {
    font-size: 110%;
    color: #c44;
    width: 100%;
}
.popup-message {
    font-size: 90%;
    color: #aaa;
    text-align: left;
    width: 100%;
    white-space: pre-wrap;
}
.popup-ok {
    width: 3rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100%;
    border: 1px solid var(--color);
    border-radius: 0.2rem;
    cursor: pointer;
    opacity: 0.8;
}
.popup-ok:hover { opacity: 1; }
.popup-ok:active { border-width: 2px; }








.popup-outer { /* covers the entire screen, grays out anything in the background */
	position: absolute;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	right: 0%;
	top: 0%;
	background-color: rgba(0,0,0,0.5);
	
	display: flex;
	flex-flow: column;
	align-items: safe center;
	justify-content: safe center;
 	overflow: auto;
 }
.popup { /* the window itself */
	position: relative;
	box-sizing: border-box;
	min-width: 20rem;
	min-height: 10rem;
	flex: 0 1 auto;
	background-color: var(--bg-color);
	border: 1px solid var(--color);
	border-radius: 0.5rem;
	
	display: flex;
	align-items: center;
	justify-content: space-around;
/* 	overflow: auto;
 */}
.popup-inner {
	position: relative;
	box-sizing: border-box;
 	width: 100%;
 	height: 100%;

 	flex: 1 1 auto;
 	overflow: auto;

	display: flex;
	flex-flow: column;
	text-align: center;
	align-items: center;
	justify-content: space-around;
	padding: 0.5rem;
}
.popup-x { /* close window */
	position: absolute;
	box-sizing: border-box;
	width: 1.5rem;
	height: 1.5rem;
	right: 0px;
	top: 0px;
	font-size: 150%;
	cursor: pointer;
	text-align: center;
}

.popError .popup { /* popup notifying of error */
 	width: 20rem;
 	height: 15rem;
}
.popAlert .popup {
	width: 20rem;
	height: unset;
	flex: 0 0 auto;
}
.popError .popup-inner, .popAlert .popup-inner { 
	padding: 1rem; 
	display: flex;
	flex-flow: column;
	justify-content: space-around;	
	align-items: center;
}
.popup-error, .popup-message {
	position: relative;
	box-sizing: border-box;
	font-size: 100%;
	display: flex;
	flex-flow: row wrap;
	text-align: center;
}
.popup-error { font-size: 120%; color: red; width: 100%; }
.popup-ok {
	position: relative;
	box-sizing: border-box;
 	width: 3rem;
 	height: 2rem;
 	display: flex;
	flex-flow: row;
	justify-content: space-around;
	align-items: center;
	font-size: 120%;
	border: 1px solid var(--color);
	border-radius: 0.5rem;
	opacity: 0.8;
	cursor: pointer;
}
.popup-ok:hover { opacity: 1; }
.popup-ok:active { border-width: 3px; font-size: 100%; }

.popQuestion .popup { /* popup with yes/no question */
 	min-width: 20rem;
 	min-height: 15rem;
 	flex: unset;
}
.popQuestion .popup-inner { 
	padding: 0.5rem; 
	display: flex;
	flex-flow: column;
	justify-content: space-around;	
	align-items: center;
}
.popup-title, .popup-text {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-flow: row wrap;
	text-align: center;
	justify-content: space-around;
	align-items: center;
}
.popup-title { 
	font-size: 120%; 
	width: 100%; 
}
.popup-content {
    flex: 1 1 auto;
    overflow: auto;
}
.popup-buttons {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	text-align: center;
	align-items: center;
	padding-top: 0.5rem;
}
.popup-yes, .popup-no {
	position: relative;
	box-sizing: border-box;
 /* 	width: 4rem;
  	height: 2rem;
 */	padding: 1rem;
 	padding-top: 0.5rem;
 	padding-bottom: 0.5rem;
 	display: flex;
	flex-flow: row;
	justify-content: space-around;
	align-items: center;
	font-size: 100%;
	border: 1px solid var(--green);
	background-color: var(--green);
	border-radius: 0.5rem;
	opacity: 0.8;
	cursor: pointer;
}
.popup-yes:hover, .popup-no:hover { opacity: 1; border-color: var(--color); }
.popup-yes:active, .popup-no:active { border-width: 3px; font-size: 100%; }
.popup-no {
	background-color: var(--red);
	border-color: var(--red);
}







