* {
  box-sizing: border-box;
}

html, body {
  font-family: monospace;
  text-align: center;
  background-color: #0d1117;
  background-image:
    linear-gradient(rgba(0, 120, 120, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 120, 0.15) 1px, transparent 1px);
	background-size: 6px 6px;
	color: #000;
	overflow: hidden; 
	height: 100%;
}

button:hover {
	color: #fff;
	box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;	
	transform: scale(1.01);
	transition: 0.2s;
}

li {
	padding: 5px;
	line-height: 1.25;
	list-style-type: none;
}

li::before {
	content: "• ";
}

textarea {
	resize: none;
}

.message-bar {
	width:580px;
}

.heading {
	width: 60vw;
	height: 14vh;
	margin: 0 auto;
	background: #edf2f2;;  
}

.footing {
	width: 60vw;
	height: 3vh;
	margin: 0 auto;
	background: #edf2f2;;  
}

.footer {
	width: 100%;
	height: 3vh;
	font-size: 14px;
	line-height: 3vh;
	background-color: #cbd5e1;
	color: #000;
	text-align: center;		
	padding-left:15px;
	box-sizing: border-box;
	 background-image:
    linear-gradient(rgba(0, 120, 120, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 120, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}

.header {
	width: 100%;
	height: 5vh;
	font-size: clamp(16px, 3vh, 25px);
	line-height: 5vh;
	background-color: #cbd5e1;
	color: #000;
	text-align: left;		
	padding-left:15px;
	box-sizing: border-box;
	 background-image:
    linear-gradient(rgba(0, 120, 120, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 120, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}

#openPopup {
	width: 100%;
	height: 5vh;
	font-size: clamp(13px, 1vh, 15px);
	line-height: 5vh;
	text-align: right;
	background-color: transparent;
	letter-spacing: 0.5px;
	color: #000;	
	cursor:pointer;
	padding-right:15px;
	box-sizing: border-box;
}


.spacer {
	width: 60vw;
	height: 3vh;
	margin: 0 auto;
}

.large-spacer {
	width: 60vw;
	height: 30vh;        
	margin: 0 auto;
	background: #edf2f2;
}

.top {
	height:33.3%;	
}

.middle {
	height:50%;
}

.bottom {
	height:100%;
}

.primary-container {
	width: 60vw;
	height: 75vh;        
	margin: 0 auto;
	background: #edf2f2;
	display: flex;
	flex-direction: column;
	padding-left:5px;
	padding-right:5px;
	animation: crtStart 1.2s ease-out forwards;
	transform-origin: center center;
}

@keyframes crtStart {
	0% {
		transform: scaleY(0.02) scaleX(0);
		filter: brightness(3);
	}
	40% {
		transform: scaleY(0.02) scaleX(1.1);
	}
	60% {
		transform: scaleY(0.02) scaleX(1);
		filter: brightness(2);
	}
	100% {
		transform: scaleY(1) scaleX(1);
		filter: brightness(1);
	}
}

.small-simple-container {
  width: 100%;
  height: 30%;         
  background: transparent;
  display: flex;
}

.element-container {
	width: 75%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: transparent; 
}


textarea {	
	width: 99%;
	height: 80%;  
	border: 1px solid #000;
	background-color: #cbd5e1;
	color: #000;
	resize: none;      
}

.input-row {
	width: 99%;
	height: 20%;  
	display: flex;
	align-items: center;
	justify-content: center;
}

#expiry {
	box-sizing: border-box;
	width: 20%;
	height: 100%;
	text-align: left;
	display: block;
	margin-right:1%;	
}

#keyInput {
	box-sizing: border-box;
	width: 55%;
	height: 100%;
	text-align: center;
	display: block;
	margin-right:5%;
	background-image:
    linear-gradient(rgba(0, 120, 120, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 120, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
  border:1px solid #000;
}

#status {
	width: 20%;
	height: 100%;
	box-sizing: border-box;
	text-align: center;
	border: 1px dotted red;
	background:#fff5f5;
	color:#ccc;	
	display: block;
	float:right;
	 background-image:
    linear-gradient(rgba(0, 120, 120, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 120, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}

.button-container {
	width: 25%;
	height: 100%;
	flex-direction: column;
	align-items: center;    
	justify-content: space-around; 
	background: transparent;
}


button {
	width: 100%;
	font-size: 14px;
	border-radius: 3px;
	font-family: monospace;
	background: #5c6c8a;
	color: #0ff;
	border: 3px solid #ccc;	
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0 0 1px #0ff;
}


canvas {
	background: #000;
	display: block;
	border: 1px solid #0ff;
	width: 99%;
	height: 100%;
	
}


#keyOutput {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	text-align: center;
	display: block;	
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup {
  width: 50vw;
  height: 70vh;
  background: #fff;
  border: 1px solid #0ff;
  border-radius: 2px;
  color:#000;
  padding: 20px;
  overflow-y: auto;
  text-align: left;
}

.close-btn {
  display:block;
  margin-top:20px;
  background:#5c6c8a;
  color:#0ff;
  border:none;
  cursor:pointer;
  border-radius:2px;
  width:99%;
  height:50px;
}

@media (min-width: 0px) and (max-width: 1100px) {
	
	button,textarea,input,#openPopup,#expiry  {		
		font-size:10px;
	}	
	
}