/* OVERLAY BOX */

@import "global_constants.css";

/* OPTION 1: BOX WITHOUT BACKGROUND FADING DARK */

.overlay-box {		/* parent container for actual box => full screen! */
	display: none; /* beim Start unsichtbar */
	position: absolute;
    z-index:5;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
}

/* OPTION 2: BOX WITH BACKGROUND FADING DARK (animated) */

.overlay-box-darken {		/* parent container for actual box => full screen! */
	display: none; /* beim Start unsichtbar */
	position: absolute;
    z-index:99;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgba(0,0,0,0.4);
    -webkit-animation: 1s animatedarken;
    -moz-animation: 1s animatedarken;
    -ms-animation: 1s animatedarken;
    -o-animation: 1s animatedarken;
    animation: 1s animatedarken;
}

@-webkit-keyframes animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-moz-keyframes animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-ms-keyframes animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@-o-keyframes animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}
@keyframes animatedarken {
	0% {background-color: rgba(0,0,0,0)} 
	100% {background-color: rgba(0,0,0,0.4)} 
}

/* Overlay box content */

.overlay-box-content {
	font-family: 'Open Sans', sans serif;
	position: absolute;
	display: flex;
    z-index:100;
    opacity:1;
	flex-direction: column;
	align-content: space-between;
    color: var(--primary);
    background-color: var(--boxes-background);
	margin: 0;
	padding: 0 40px;
	width: auto;  /* was 500px */
    max-height: 80vh;
    min-height: 150px;
    overflow: auto;
	font-size: 1vw;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	top: 50%;
	left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: 0.4s animatezoom;
    -moz-animation: 0.4s animatezoom;
    -ms-animation: 0.4s animatezoom;
    -o-animation: 0.4s animatezoom;
    animation: 0.4s animatezoom;
}

/* Add animation to overlay-boxes */

@-webkit-keyframes animatezoom {
	from {-webkit-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-webkit-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-moz-keyframes animatezoom {
	from {-moz-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-moz-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-ms-keyframes animatezoom {
	from {-ms-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-ms-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@-o-keyframes animatezoom {
	from {-o-transform: scale(0.8) translate(-50%, -50%); opacity:0} 
	to {-o-transform: scale(1) translate(-50%, -50%); opacity:1}
}
@keyframes animatezoom {
	from {transform: scale(0.8) translate(-50%, -50%);opacity:0}
	to {transform: scale(1) translate(-50%, -50%);opacity:1}
}

/* The Close Button "X" */

.overlay-box-close {
    position: absolute;
    top: 0px;                  
	right: 20px;
	color: var(--close-symbol);
	font-size: 1.5vw; /* 28px; */
	font-weight: bold;
	/* padding: 40px 0 30px 0; */
}

.overlay-box-close:hover,
.overlay-box-close:focus {
	color: var(--close-symbol-hover);
	text-decoration: none;
	cursor: pointer;
}

/* Overlay box header line (with a border line underneath) */

.overlay-box-header {
	justify-content: flex-start;
	font-weight: bold;
	padding: 40px 0 20px 0;
    border-bottom: solid var(--boxes-headline-separator) 2px;
}


/* overlay-box line, i.e. "line" for actual content */

.overlay-box-line,
.overlay-box-scrollbox {
    /* display: flex; */
    overflow: auto;
	flex-wrap: nowrap;
	justify-content:flex-start;
	align-items: center;
	margin: 15px 0;
   -webkit-hyphens: auto;
   -moz-hyphens: auto;
   -ms-hyphens: auto;
   -o-hyphens: auto;
   hyphens: auto;
}
.overlay-box-line p {
    margin-bottom: 15px;
}
.overlay-box-line a {
    text-decoration:var(--link-text-decoration);
    color: var(--link);
}

.overlay-box-line a:hover {
	color: var(--linkHover);
   	text-decoration:var(--link-text-decoration-hover);
}

/* Overlay box footer */

.overlay-box-footer {
	display: flex;
	justify-content: space-between;
	padding: 30px 0 40px 0;
    /* padding: 30px 30px 40px 30px; */
}

.overlay-box-footer a {
	color: var(--link);
	text-decoration:var(--link-text-decoration);
}

.overlay-box-footer a:hover {
	color: var(--link-hover);
	text-decoration:var(--link-text-decoration-hover);
}

/* Overlay box elements: Input field */

.overlay-box-input-field {
	height: 30px;
	width: 14vw;
	margin: 0px 0px;
	padding: 5px 10px;
	border: 0;
	font-size: 1vw;
	font-weight:500;
    background-color: var(--input-field-background);
	color: var(--input-field-text);
}

/* Overlay box elements: buttons (very flat types with no borders, rather "touch fields") */

.overlay-box-grey-button {
	height: 40px;
	width: 30x;
	margin-left: 10px;
	padding: 5px 10px;
	border: none;
	font-size: 1vw;
	font-weight:500;
	background-color: var(--button-grey-background);
	color: var(--button-grey-text);
}

.overlay-box-grey-button:focus {
    outline: none;
}

.overlay-box-grey-button:hover {
	background-color: var(--button-grey-background-hover);
	cursor:	pointer;
	color: var(--button-grey-text-hover);
}

.overlay-box-button {
	border: solid var(--button-overlay-background) 2px;
	box-sizing: border-box;
	padding: .3vw;
	vertical-align: middle;
	font-size: 1vw;
	font-weight:400;
	color: var(--button-overlay-text);
    transition: 0.5s;
}

.overlay-box-button:hover {
    border: solid 2px;
	cursor:	pointer;
    background-color:var(--button-overlay-background-hover);
	color: var(--button-overlay-text-hover);
}
.overlay-box-button:active,
.overlay-box-button:visited {
    border: solid var(--button-overlay-background) 2px;
	cursor:	pointer;
	color: var(--button-overlay-text);
}

/* Reset button (important) */
/* -------------------------------------- */
/* identical to buttons in "fky_style.css */
/* ====================================== */

/* Highlighted button (important) */

.submit-button-highlighted {
    display: flex;
    float: right;
    position: relative;
	border: solid transparent 2px;
    font-family: 'Open Sans', sans serif;
	font-size: 1vw;
	font-weight:400;
	color: var(--button-highlighted-text);
    border: solid var(--button-highlighted-border) 1px;
    background-color: var(--button-highlighted-background);
    transition: 0.3s;
}

.submit-button-highlighted:hover {
	cursor:	pointer;
    border: solid var(--button-highlighted-border-hover) 1px;
	color: var(--button-highlighted-hover);
    background-color: var(--button-highlighted-background-hover);
}
.submit-button-highlighted:active,
.submit-button-highlighted:visited {
    cursor:wait;
	background-color: var(--button-highlighted-hover);
}

.reset-button, .reset-button a:link {
    display: flex;
    justify-content: flex-start;
    font-family: 'Open Sans', sans serif;
	/* border: solid transparent 2px; */
	font-size: 1vw;
	font-weight:400;
    text-decoration: none;
	color: var(--button-reset-text);
    border: solid var(--button-reset-border) 1px;
    background-color: var(--button-reset-background);
    transition: 0.3s;
}

.reset-button:hover {
	cursor:	pointer;
    border: solid var(--button-reset-border-hover) 1px;
	color: var(--button-reset-hover);
    background-color: var(--button-reset-background-hover);
}
.reset-button:active,
.reset-button:visited {
    cursor:wait;
	background-color: var(--button-reset-background-hover);
}

.grey-button, .grey-button a:link {
    display: flex;
    justify-content: flex-start;
    font-family: 'Open Sans', sans serif;
	font-size: 1vw;
	font-weight:400;
    text-decoration: none;
	color: var(--buttonGreyText);
    border: solid var(--button-grey-border) 1px;
	background-color: var(--button-grey-background);
    transition: 0.3s;
}

.grey-button:hover {
	cursor:	pointer;
	background-color: var(--button-grey-background-hover);
	color: var(--button-grey-text-hover);
    border-color:var(--button-grey-border-hover);
}

.grey-button:focus,
.grey-button:active,
.grey-button:visited {
    cursor:wait;
    outline: none;
}

.buttons-section {
	position: static;
	box-sizing: border-box;
	display: flex;
	flex-flow: row nowrap;
	width: 30vw;
	padding-bottom:.5vw;
	justify-content: space-between;
	overflow:hidden;
}