/* ==========================================================
Project: Public API Request
File: styles.css (Main Styling)
Author: Jonathan J.Jolivette
Created: 8.14.19
THANK YOU FOR YOUR SUPPORT
========================================================== */

@import url('https://fonts.googleapis.com/css?family=Nunito');

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	max-width: 100%;
	max-height: 100%;
}

body {
	font-family: "Nunito", sans-serif;
	text-align: center;
	background: rgba(0, 0, 0, 1);
}

header {
	padding: 15px 5px 5px;
}

.header-inner-container {
	max-width: 1180px;
	margin: auto;
}

header h1 {
	font-size: 1.25em;
	color: rgba(255, 255, 255, 0.9);
	margin-top: 35px;
}

.banner {
	height: 5.5vh;
	/* margin-top: 25px; */
	font-size: 21px;
	text-align: center;

	-webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
	-moz-animation: fadein 4s; /* Firefox < 16 */
	-ms-animation: fadein 4s; /* Internet Explorer */
	-o-animation: fadein 4s; /* Opera < 12.1 */
	animation: fadein 4s;
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Firefox < 16 */
@-moz-keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Internet Explorer */
@-ms-keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Opera < 12.1 */
@-o-keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.search-input {
	padding: 0.4rem 1rem;
	border: 1px solid rgba(200, 200, 200, 0.9);
	border-radius: 0.25rem 0 0 0.25rem;
	max-width: 20rem;
	transition: .4s ease-out;
	outline: none;
}

.search-input:active,
.search-input:hover,
.search-input:focus {
	border: 1px solid rgba(50, 50, 50, 0.9);
}

.search-submit {
	cursor: pointer;
	height: 33px;
	background: rgba(245, 245, 245, 0.9);
	border-radius: 0 0.25rem 0.25rem 0;
	border: 1px solid rgba(200, 200, 200, 0.9);
	transition: .4s ease-out;
	outline: none;
}

.search-submit:active,
.search-submit:hover,
.search-submit:focus {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(50, 50, 50, 0.9);
}

/* =====================================
   BACKGROUND | BACKGROUND EFFECTS
======================================== */
#cf img.top {
	transform: rotate(180deg);
	position: fixed;
	margin: 0 auto;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
}

img.bottom {
	position: fixed;
	margin: 0 auto;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -2;
}

@keyframes FadeInOut {
	0% {
		opacity: 0;
	}
	45% {
		opacity: 0.5;
	}
	55% {
		opacity: 0.7;
	}
	100% {
		opacity: 1;
	}
}

#cf img.top {
	animation-name: FadeInOut;
	animation-timing-function: 2.5s ease-in-out;
	animation-iteration-count: infinite;
	animation-duration: 5s;
	animation-direction: alternate;
}

/* =====================================
   Gallery
======================================== */

.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	width: 100%;
	max-width: 1200px;
	margin: auto;
}

.zoom {
	transition: transform .9s; /* Animation */
}

.zoom:hover {
	transform: scale(1.03);
	background: #3d474f;
	box-shadow: 0 10px 16px 0 rgba(255, 255, 255, 0.2), 0 6px 20px 0 rgba(255, 255, 255, 0.19) !important;
}

.card {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	font-size: 14.4px;
	justify-content: flex-start;
	cursor: pointer;
	width: 100%;
	max-width: 360px;
	margin: 10px 10px 20px;
	padding: 10px;
	background: rgba(86, 86, 86, 0.1);
	border-radius: 0.25em;
	border: 1px solid rgba(50, 50, 50, 0.3);
	transition: .4s ease-out;
	overflow: hidden;
	box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
	text-align: left;
}

.card-img {
	width: 95px;
	margin: 10px 15px auto 10px;
	border-radius: 50%;
}

.card-info-container {
	text-align: left;
}

.card-name {
	/* margin: 20px auto 0; */
}

.card-text {
	font-size: 0.9em;
	color: rgba(255, 255, 255, 0.7);
	margin: 7px auto;
	transition: .4s ease-out;
}

.cap {
	text-transform: capitalize;
}

/* =====================================
   Modal
======================================== */

.modal-container {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url(../images/modalBG.jpg);
	background-position-x: 100%;
	background-repeat: no-repeat;
	background-color: black;
	display: none; /* Hidden by default */
}

.modal {
	position: relative;
	width: 95%;
	max-width: 420px;
	min-height: 415px;
	margin: 10px auto auto;
	padding-bottom: 15px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 0.25em;
	border: 1px solid rgba(100, 100, 100, 0.3);
	transition: .4s ease-out;
}

.modal-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.9);
	outline: none;
	border-radius: 0.25em;
	border: 1px solid rgba(50, 50, 50, 0.3);
}

.modal-close-btn:hover {
	color: rgba(0, 0, 0, 0.9);
	background: rgba(255, 255, 255, 0.9);
}

.modal-img {
	width: 150px;
	margin-top: 35px;
	border-radius: 50%;
}

.modal-name {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 5px;
}

.modal-text {
	color: rgba(255, 255, 255, 0.9);
	margin: 10px;
}

.modal hr {
	width: 75%;
	margin: 25px auto 30px;
	border-color: rgba(200, 200, 200, 0.2);
}

.modal-btn-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	width: 95%;
	max-width: 420px;
	padding: 10px 15px 15px;
	margin: 10px auto auto;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 0.25em;
	border: 1px solid rgba(100, 100, 100, 0.3);
}

.modal-btn-container .btn {
	display: inline-block;
	cursor: pointer;
	font-size: 0.85em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	padding: 0.75em 1.5em;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 0.35em;
	transition: .4s ease-out;
	outline: none;
}

.removeVisibility {
	visibility: hidden;
}

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

/* =====================================
   Tablet
======================================== */

@media (min-width: 768px) {
	.header-inner-container {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		padding-right: 25px;
		padding-left: 25px;
	}

	.header-text-container {
		text-align: center;
		display: flex;
		margin-top: 2vh;
	}

	.search-container {
		margin-top: 25px;
	}

	.modal {
		margin-top: 100px;
	}
}

/* =====================================
   Desktop
   Hover styles on desktop
======================================== */

@media (min-width: 1024px) {
	.card:hover {
		background: rgba(255, 255, 255, 1);
		border: 1px solid rgba(50, 50, 50, 0.9);
	}

	.card:hover .card-text {
		color: rgba(25, 25, 25, 1);
	}

	.btn:hover {
		background: rgba(255, 255, 255, 1);
		color: rgb(0, 0, 0);
	}
}
