html,body  {
	display: flex;
   align-items: center;
   justify-content: center;
   background-color:rgba(90,90,90,.3);
   font-family: sans-serif, system-ui;
   font-size: 1em;
}

.flex-body {
	display:flex;
	flex-direction:column;
	width:1000px;
	border:1px gray solid;
	height:100%;
}

.flex-header {
   flex-basis: auto;
   height:100%;
   width:100%;
   background-color:white;
}
.flex-menu {
   flex-basis: auto;
   height:50px;
   width:100%;
   background-color:rgba(0,150,255);
}
.flex-content {
   flex-basis:auto;
   height:100%;
   width:100%;
   background-color:white;
}
.flex-footer {
   flex-basis: auto;
   height:30px;
   width:100%;
	background-color:rgba(0,150,255);
}

.grid-content {
	display: grid;
	grid-template-columns: repeat(18, 50px);
	grid-template-rows: 50px repeat(5, auto);
	align-items: center;
   justify-content: center;		
}




/* Header Image */
.headerimage { 
   position: relative; 
   width: 100%; /* for IE 6 */
}

.headertext { 
	position: absolute; 
	top: 60px; 
	text-shadow:
	1px 1px rgba(60,60,60,.4),
	2px 2px rgba(60,60,60,.4),
	3px 3px rgba(60,60,60,.4),
	4px 4px rgba(60,60,60,.4),
	5px 5px rgba(60,60,60,.4),
	6px 6px rgba(60,60,60,.4);
	margin:10px;
	padding:10px;
	font-size: 4em;
	background:rgba(255,255,255,.3);
	border-radius:5px;
	font-weight:bold;
} 

/* Popup */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}


.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

@media screen and (max-width: 700px){
.popup{
    width: 50%;
  }
}