/******** Main Element Selectors ********/

* {
	padding: 0;
	margin: 0;
}

body {
	width: 100%;
	text-align: center;
	background-color: #404040;
	color: white;
	font-family: 'Arvo', serif;
}

.header {
	width: 100%;
	padding: 2%;
	margin-bottom: 1%;
	background-color: #6DBDD6;
	border-bottom-style: solid;
	border-bottom-width: 10px;
	border-bottom-color: #B71427;
}

.footer {
	width: 60%;
	height: auto;
	display: inline-block;
}

p {
	text-align: left;
	line-height: 1.5em;
	letter-spacing: 0.02em;
}

h2 {
	display: inline-block;
	margin: 1% 0 1% 0;
}

a {
	text-decoration: none;
}

.first-word{
	display: inline-block;
	font-family: 'Rouge Script', cursive;
	font-size: 7em;
	background-color: inherit;
}

.second-word {
	display: inline-block;
	font-size: 6em;
	background-color: inherit;
}

/******** API Element Selectors ********/

#apod_title {
	color: #FFE658;
}

#copyright {
	text-align: center;
}

#container {
	width: 100%;
}

#apod_img_id {
	display: inline-block;
	width: 62%;
	height: auto;
	border-radius: 20px;
	margin: 1%;
}

.explanation {
	display: inline-block;
	width: 60%;
	height: auto;
	border: 5px hidden;
	background-color: rgba(109, 189, 214, 0.2);
	border-radius: 10px;
	padding: 1%;
	text-indent: 40px;
}

#apod-explaination {
	display: block;
	text-align: left;
	margin: 1%;
}

/******** Footer Element Selectors ********/
.footer img {
		vertical-align: middle;
		width: 10%;
		height: auto;
}

.FAPOD-button {
	margin: 1%;
	padding: 1%;
	color: #FFE658;
	display: inline-block;
	vertical-align: middle;
	text-align: left;
}

.FAPOD-button p {
	display: inline;
}

.FAPOD-button .first-word {
	font-family: 'Rouge Script', cursive;
	font-size: 2em;
	color: #FFE658;
}

.FAPOD-button .second-word {
	font-family: 'Arvo', serif;
	font-size: 2em;
	color: #FFE658;
}

.NASA-APOD-button {
	display: inline;
}

.NASA-APOD-button .first-word {
	font-family: 'Rouge Script', cursive;
	font-size: 2em;
	color: #FFE658;
}

.NASA-APOD-button .second-word {
	font-family: 'Arvo', serif;
	font-size: 2em;
	color: #FFE658;
}

.nasa {
	width: 10%;
	height: auto;
}

/******** Lightbox Element Selectors ********/

#overlay {
	background: rgba(0,0,0,1);
	background-position: center;
	width: 100%;
	height: auto;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}

#overlay img {
	margin-top: 10%;
	width: 100%;
	height: auto;
}

#overlay p {
	color: #FFE658;
	text-align: center;
	font-size: 2em;
	padding: 1%;

}

/******* Media Queries *******/

@media (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {
	.first-word {
		font-size: 4em;
	}
	.second-word {
		font-size: 3em;
	} 
	#apod_title {
		font-size: 1.5em;
	}
	h2 {
		font-size: 1em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 0.85em;
		background-color: inherit;
		border: none;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 20%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}
}

@media (min-width: 320px) and (max-width: 480px) and (orientation: landscape) {
	.first-word {
		font-size: 4em;
	}
	.second-word {
		font-size: 3em;
	} 
	#apod_title {
		font-size: 1.5em;
	}
	h2 {
		font-size: 1em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 1em;
		background-color: inherit;
		border: none;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 20%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}
}

@media (min-width: 480px) and (max-width: 768px) and (orientation: portrait) {
	.first-word {
		font-size: 4em;
	}
	.second-word {
		font-size: 3em;
	} 
	#apod_title {
		font-size: 1.5em;
	}
	h2 {
		font-size: 1em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 1em;
		background-color: inherit;
		border: none;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 15%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}
}

@media (min-width: 480px) and (max-width: 768px) and (orientation: landscape) {
	.first-word {
		font-size: 4em;
	}
	.second-word {
		font-size: 3em;
	} 
	#apod_title {
		font-size: 1.5em;
	}
	h2 {
		font-size: 1em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 1em;
		background-color: inherit;
		border: none;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 15%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}
}

@media (min-width: 768px) and (max-width: 992px) and (orientation: portrait) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 3em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 1em;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}
}

@media (min-width: 768px) and (max-width: 992px) and (orientation: landscape) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 3em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 100%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 90%;
		height: auto;
		font-size: 1em;
	}
	.footer {
		width: 100%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

	.NASA-APOD-button {
		display: block;
	}

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}
}

@media (min-width: 992px) and (max-width: 1200px) and (orientation: portrait) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 2em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 80%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 80%;
		height: auto;
		font-size: 1em;
	}
	.footer {
		width: 80%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}
}

@media (min-width: 992px) and (max-width: 1200px) and (orientation: landscape) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 2em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 80%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 80%;
		height: auto;
		font-size: 1em;
	}
	.footer {
		width: 80%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

/*	.NASA-APOD-button {
		display: block;
	}*/

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}

@media (min-width: 1200px) and (max-width: 1500px) and (orientation: portrait) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 2em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 80%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 80%;
		height: auto;
		font-size: 2em;
	}
	.footer {
		width: 80%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}

@media (min-width: 1200px) and (max-width: 1500px) and (orientation: landscape) {
	.first-word {
		font-size: 7em;
	}
	.second-word {
		font-size: 6em;
	} 
	#apod_title {
		font-size: 2em;
	}
	h2 {
		font-size: 2em;
	}
	#apod_img_id {
		width: 80%;
		height: auto;
		padding: 0;
		margin: 0;
	}
	.explanation {
		width: 80%;
		height: auto;
		font-size: 2em;
	}
	.footer {
		width: 80%;
		height: auto;
	}
	.footer img {
		width: 10%;
		height: auto;
	}

	.FAPOD-button .second-word,
	.FAPOD-button .first-word {
		font-size: 2em;
	}

	.NASA-APOD-button .second-word {
		font-size: 2em;
	}
