@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

:root {
	--greyColor: rgb(59, 59, 59);
	--yellowColor: rgb(249, 220, 38);
	--purpleColor: rgb(114, 48, 213);
}

::selection {
	background-color: var(--yellowColor);
	color: var(--greyColor);
}

* {
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: black;
}

body {
	margin: 0;
	font-family: 'Roboto Slab', serif;
	height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

.hiddenSearchContainer {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hiddenSearchContainer > .searchButton {
	border: solid 0px transparent;
	border-radius: 5px;
	height: 1.6rem;
	font-size: 1rem;
	color: #f9f9f96b;
	background-color: var(--greyColor);
	cursor: pointer;
}

.hiddenSearchContainer > .searchButtonActive {
	border: solid 0px transparent;
	border-radius: 0 5px 5px 0;
	height: 1.8rem;
}

.hiddenSearchContainer > .searchBar {
	transform: scale(0.0001) translateX(20px);
	width: 0px;
	background-color: transparent;
	transition: 0.3s ease-out;
}

.hiddenSearchContainer > .searchBar:focus {
	outline: none;
}

.hiddenSearchContainer > .searchBarActive {
	display: inline;
	border: solid 0px transparent;
	border-radius: 5px 0 0 5px;
	height: 1rem;
	font-size: 0.8rem;
	width: 8rem;
	color: white;
	font-family: 'Roboto Slab', serif;
	font-weight: bold;
	background-color: transparent;
	transform: scale(1) translateX(0);
}

/* ------------Search Bar------------- */
/* ------------Search Bar------------- */
/* ------------Search Bar------------- */
/* ------------Search Bar------------- */
/* ------------Search Bar------------- */

.searchResults {
	width: 100%;
	height: fit-content;
	margin: 0 auto;
	padding: 2rem;
	margin-top: 5rem;
	margin-bottom: 12rem;
}

.searchingInputCopy {
	font-size: 3rem;
	text-shadow: 0px 1px 1px var(--greyColor);
}

.writing {
	font-size: 2rem;
	transition: 0.25s;
	text-shadow: 0px 1px 1px var(--greyColor);
}

.writingInactive {
	opacity: 0;
	display: none;
}

.loadingCards {
	width: 100%;
	/* height: 1000px; */
	min-height: 80%;
	margin: 0 auto;
	margin: 2rem 0 2rem 0;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 5rem;
}

.loadedImg {
	border-radius: 10px;
	box-shadow: 0 2px 10px black;
	cursor: pointer;
	width: 210px;
	height: 295px;
	transition: 0.2s ease-out;
	animation-delay: 0s;
	-webkit-animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
	animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.loadingIcon {
	animation-name: loading;
	animation-duration: 3s;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
	font-size: 3rem;
	transition: opacity 0.5s;
}

@keyframes loading {
	0% {
		color: var(--greyColor);
		transform: rotateZ(0deg);
	}
	33% {
		color: var(--greyColor);
		transform: rotateZ(0deg);
	}
	37% {
		/* text-shadow: 0 0 8px var(--greyColor); */
	}
	60% {
		color: var(--purpleColor);
		transform: rotateZ(180deg);
		/* text-shadow: 0 0 10px var(--greyColor); */
	}
	80% {
		color: var(--purpleColor);
		transform: rotateZ(275deg) scale(1.3);
		/* text-shadow: 0 0 10px var(--greyColor); */
	}

	100% {
		color: var(--greyColor);
		transform: rotateZ(0deg);
	}
}

.searchResultsCurrent {
	width: 100%;
	height: 100%;
	background-color: rgba(31, 31, 31, 0.938);
	position: absolute;
	top: 0;
	padding: 5rem;
	opacity: 1;
	transition: opacity 0.2s ease-out;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
}

.closeCurrentResult {
	position: absolute;
	top: 30px;
	left: 30px;
	color: var(--greyColor);
	background-color: var(--yellowColor);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 0 8px rgb(0, 0, 0);
	z-index: 5;
}

.currentResultContainer {
	height: 90%;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 5vw;
	position: relative;
	/* background-color: teal; */
}

.currentResultImage {
	width: 25rem;
	box-shadow: 0 5px 10px black;
	border-radius: 10px;
}

.currentResultTextContainer {
	text-shadow: 0px 0px 2px black;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 588px;
	width: 50vw;
}

.currentTitle {
	color: var(--yellowColor);
	font-weight: lighter;
	font-size: 3.3rem;
	font-family: Arial, Helvetica, sans-serif;
	text-shadow: 0px 0px 5px black;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	text-align: center;
}

.textConfig {
	font-size: 2.5rem;
	color: rgb(175, 175, 175);
	margin-right: 1rem;
	text-shadow: 0px 0px 5px black;
}

.showStatus,
.showGenres {
	font-size: 2rem;
	text-shadow: 0px 0px 5px black;
}

.showSummary {
	font-size: 1.5vw;
	text-shadow: 0px 0px 5px black;
	height: 500px;
}

#summary {
	height: 450px;
	overflow-y: scroll;
	overflow-x: hidden;
	padding: 0.5rem;
}

@media (min-width: 1400px) {
	.showSummary {
		font-size: 1.5rem;
	}
}

.inactive {
	display: none;
}

.inactiveOpacity {
	opacity: 0;
	transition: opacity 0.2s ease-out;
}

@media (max-width: 1000px) {
	.searchResultsCurrent {
		height: 170%;
	}
	.currentResultContainer {
		flex-direction: column;
		margin-top: 5rem;
		gap: 2rem;
		justify-content: center;
		align-items: center;
		height: 150vh;
	}
	.currentResultTextContainer {
		width: 90%;
	}
	.showSummary {
		font-size: 1.2rem;
	}
}
@media (max-width: 600px) {
	.currentResultImage {
		width: 80vw;
	}
	.currentTitle,
	.textConfig {
		font-size: 8vw;
	}
	.showGenres,
	.showStatus {
		font-size: 6vw;
	}
	.currentResultContainer {
		justify-content: flex-start;
		align-items: center;
	}
}

/* ------------Search Page------------- */
/* ------------Search Page------------- */
/* ------------Search Page------------- */
/* ------------Search Page------------- */
/* ------------Search Page------------- */
