:root {
  --font-family: monospace;
  --primary-color: #0000fe;
  --background-color: #e1ecfe;
}

body {
	font-family: var(--font-family);
	margin: 0;
	padding: 5px 25px;
	background-color: var(--background-color);
	color: var(--primary-color);
}

html{
  -moz-text-size-adjust: none; 
  -webkit-text-size-adjust: none; 
  text-size-adjust: none;
}

h2 {
	text-decoration: underline;
}

iframe {
  border: 0;
}

#parent {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 10px 1fr 10px 1fr 10px 1fr 10px 1fr 10px 1fr;
	grid-template-columns: repeat(6, 1fr);
	grid-column-gap: 10px;
	grid-row-gap: 10px;
}

.content {
	border-style: double;
	padding: 10px;
	text-align: center;
}

#header {
	-ms-grid-row: 1;
	-ms-grid-row-span: 1;
	grid-area: 1 / 1 / 2 / -1;
	border-style: double;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	background-image: url("images/banner.png");
	-ms-grid-rows: auto;
	grid-template-rows: auto;
}

#grid-1 {
	-ms-grid-row: 2;
	-ms-grid-row-span: 1;
	-ms-grid-column: 1;
	-ms-grid-column-span: 2;
	grid-area: 2 / 1 / 3 / 3;
}

#grid-2 {
	-ms-grid-row: 2;
	-ms-grid-row-span: 1;
	-ms-grid-column: 3;
	-ms-grid-column-span: 3;
	grid-area: 2 / 3 / 3 / 6;
}

#grid-3 {
	-ms-grid-row: 3;
	-ms-grid-column: 4;
	-ms-grid-column-span: 1;
	grid-area: 3 / 4 / 3 / 5;
}

#grid-4 {
	-ms-grid-row: 2;
	-ms-grid-row-span: 1;
	-ms-grid-column: 6;
	grid-area: 2 / 6 / 3 / 6;
}

#grid-5 {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-area: 3 / 1 / 3 / 4;
}

#grid-6 {
  -ms-grid-row: 3;
  grid-area: 3 / 5 / 3 / -1;
}

#grid-1 img {
	max-height: 400px;
	max-width: 100%;
	width: auto;
}

#grid-3 img {
	max-height: 200px;
	max-width: 100%;
	width: auto;
}

#grid-4 img {
	max-height: 250px;
	max-width: 100%;
	width: auto;
}

#grid-5 img {
	max-height: 75px;
	max-width: 100%;
	width: auto;
}

#header img {
	margin: 20px 0;
  max-width: 90%;
}

.demo {
  border: 1px dashed blue;
  margin-bottom: 10px;
  padding: 5px;
}

a {
	text-decoration: underline;
	color: var(--primary-color);
}

a:visited {
	color: #0000a6;
}

a:hover {
	color: #5757ff;
}

#email-error-label {
	color: red;
}

#email-success-label {
	color: green;
}

ul {
	list-style-type: square;
	text-align: left;
}

#not-found,
#unsubscribe,
#links {
	text-align: center;
	font-size: 1.2rem;
}

#links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}

#links a button {
	padding: 20px;
	margin: 7px auto;
	background-color: var(--primary-color);
	border: none;
	font-family: var(--font-family);
	font-size: 1.2rem;
	width: 100%;
}

#links button i {
  color: #ffffff;
  margin-right: 8px;
}

#links a {
  text-decoration: none;
  display: block;
  width: 50%;
}

#links a button {
	color: #ffffff;
}

#links h2 {
  margin: 10px;
}

#links img {
  height: 150px;
  border-radius: 200px;
  margin-bottom: 10px;
}

#newsletter-form input[type=submit],
#unsubscribe-form input[type=submit] {
	padding: 5px;
	margin-top: 5px;
	background-color: var(--primary-color);
	border: none;
	color: #ffffff;
}

#newsletter-form input[type=submit] {
	width: 100%;
}

input {
	font-family: var(--font-family);
}

#newsletter-form {
	text-align: left;
}

#newsletter-form label {
	font-weight: bold;
}

#newsletter-form input[type=text],
#unsubscribe-form input[type=text] {
	padding: 5px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

#newsletter-form input[type=text] {
	width: 100%;
}

#newsletter-form input[type=submit] {
	padding: 5px;
	margin-top: 5px;
	background-color: var(--primary-color);
	border: none;
	color: #ffffff;
	width: 100%;
}

#newsletter-form input[type=submit]:hover,
#unsubscribe-form input[type=submit]:hover,
#links button:hover {
	background-color: #5757ff;
	cursor: pointer;
}

#email-disclaimer {
	font-size: 0.9em;
}

.youtube-video {
  aspect-ratio: 16 / 9;
  width: 90%;
}

#grid-5 audio {
  width: 80%;
}

#icon-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 10px 0;
}

#icon-links a {
	text-decoration: none;
	font-size: 2rem;
	color: var(--primary-color);
}

#icon-links a:hover {
	color: #5757ff;
}

#buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
}

#buttons button:hover {
	background-color: #5757ff;
	cursor: pointer;
}

@media screen and (max-width: 1200px) {
	body {
		padding: 5px;
	}

	#localTime {
		text-align: center;
	}

	#parent {
		-ms-grid-columns: 1fr;
		grid-template-columns: 1fr;
	}

	#header {
		height: 150px;
	}

	#header,
	#grid-1,
	#grid-2,
	#grid-3,
	#grid-4,
	#grid-5,
	#grid-6 {
		-ms-grid-column-span: 1;
		grid-column: span 1;
		grid-area: unset;
	}

  #links a {
    width: 80%;
  }
}

@media screen and (max-width: 600px) {
	#header {
		height: 75px;
	}

  #links a {
    width: 90%;
  }
}
