/* ----------------   GENERAL STYLESHEET   ------------------ */

body {
	background-color: rgb(193, 208, 143);
	color: rgb(93, 0, 0);
	font-size: 18px;
	line-height: 1.4;
	font-family: "Larken", Arial, Helvetica, sans-serif;
}

#backbutton {
	margin: 20px;
	position: absolute;
	z-index: 110;
}

h1 {
	font-size: 50px;
}

p {
	margin-top: 40px;
}

#container {
	position: relative;
	overflow: hidden;
	min-height: 100%;
}

main {
	height: 100vh;
	display: flex;
	flex-direction: row;
	justify-content: center;
	text-align: center;
	max-width: 100%;
	position: relative;
}

main .text-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 100;
}

main .text-box2 {
	max-width: 30%;
	margin-top: auto;
	margin-bottom: auto;
	padding-left: 15px;
	padding-right: 15px;
}

#cans {
	margin-left: auto;
	max-height: 100%;
}

.text-background {
	background-color: rgb(254, 248, 247);
	padding: 60px 30px;
	border-radius: 15px;
	margin-bottom: 20px;
}

#logo {
	max-height: 147px;
	margin: 20px;
	max-width: 100%;
	display: flex;
	align-self: center;
}

li {
	list-style-type: none;
	display: inline;
}

a {
	text-decoration: none;
	display: inline-block;
}

#highlight {
	padding: 5px 20px;
	background-color: rgb(195, 81, 81);
	color: rgb(254, 248, 247);
}

#lychee {
	width: 500px;
	max-width: 500px;
	background-image: right center;
	background-size: auto auto;
}

#lemongrass {
	width: 530px;
	max-width: 530px;
}

#lychee2 {
	display: none;
}

#lemongrass2 {
	display: none;
}

#cans {
	position: relative;
	margin-left: auto;
	max-height: 100%;
}

.container2 {
	display: flex;
	align-items: center;
}

.cans {
	display: flex;
	align-items: center;
}

/* --------------------ANIMATIONS------------------ */

#reveal-wrapper {
	display: flex;
	align-items: center;
	position: relative;
}

.reveal-down {
	animation-name: reveal-down;
	animation-duration: 2s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards;
}

@keyframes reveal-down {
	0% {
		transform: translateY(-700px);
	}

	100% {
		transform: translateY(0px);
	}
}

.reveal-up {
	animation-name: reveal-up;
	animation-duration: 2s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards;
}

@keyframes reveal-up {
	0% {
		transform: translateY(700px);
	}

	100% {
		transform: translateY(0px);
	}
}

.reveal-left {
	animation-name: reveal-right;
	animation-duration: 2s;
	animation-timing-function: ease-in-out;
	animation-fill-mode: forwards;
}

@keyframes reveal-right {
	0% {
		transform: translateX(900px);
	}

	100% {
		transform: translateX(0px);
	}
}

#fade-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fade-in {
	animation-name: fade-in;
	animation: fade-in ease 4s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

/* --------------------BUTTON-ANIMATIONS------------------
pulse button (https://stackoverflow.com/questions/77167595/add-css-pulse-animation-to-a-button-without-hover)
*/

.pulse-button {
	background: rgb(93, 0, 0);
	color: #fff;
	border: 1px rgb(93, 0, 0);
	padding: 1rem 2rem;
	border-radius: 2rem;
	font-size: 1rem;
	box-shadow: 0 0 0 0 rgba(93, 0, 0, 0.36);
	-moz-animation: pulse 2s infinite;
	-webkit-animation: pulse 2s infinite;
	animation: pulse 2s infinite;
}

.pulse-button:hover,
.pulse-button:focus {
	background-color: rgb(254, 248, 247);
	color: rgb(93, 0, 0);
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(93, 0, 23);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(93, 0, 0, 0);
	}
	100% {
		box-shadow: 0 0 0 50px rgba(93, 0, 0, 0);
	}
}

/* --------------------BUTTONS------------------ */
.primary-button {
	padding: 5px 20px;
	text-decoration: none;
	color: rgb(93, 0, 0);
	background-color: rgb(254, 248, 247);
	margin: 5px;
	border-radius: 10px;
	animation-name: tossing;
	animation-duration: 1s;
	animation-iteration-count: infinite;
}

.primary-button:hover,
.primary-button:focus {
	background-color: rgb(93, 0, 0);
	color: rgb(254, 248, 247);
	animation-name: tossing;
	animation-duration: 1s;
	animation-iteration-count: infinite;
}

.secondary-button {
	padding: 5px 20px;
	text-decoration: none;
	color: rgb(254, 248, 247);
	background-color: rgb(93, 0, 0);
	margin: 20px;
	border-radius: 10px;
}

.secondary-button:hover,
.secondary-button:focus {
	background-color: rgb(254, 248, 247);
	color: rgb(93, 0, 0);
}

/* --------------------MEDIA QUERIES------------------ */
@media only screen and (max-width: 769px) {
	body .page1 {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 0 21px 0 21px;
	}

	main .text-box {
		max-height: 175px;
	}

	main {
		flex-direction: column;
		justify-content: center;
		align-content: center;
		padding: 0%;
		max-width: 100%;
		margin-left: 5%;
		margin-right: 5%;
	}

	img {
		display: flex;
		justify-self: center;
	}

	#lychee {
		position: relative;
		display: none;
	}

	#lychee2 {
		position: relative;
		display: flex;
		transform: translateY(10px);
	}

	#lemongrass {
		position: relative;
		display: none;
	}

	#lemongrass2 {
		position: relative;
		display: flex;
		transform: translateY(20px);
	}

	h1 {
		font-size: 40px;
	}
	h2 {
		font-size: 21px;
	}

	.text-box {
		padding: 20px;
	}
}

@media only screen and (max-width: 810px) {
	main .text-box2 {
		max-width: none;
		padding: 15px 16px;
		margin: 0;
	}
	.text-background {
		padding: 37px 31px;
		border-radius: 29px;
	}

	#container2 {
		flex-direction: column-reverse;
		padding: 20px;
	}

	#backbutton {
		position: absolute;
	}

	@keyframes reveal-right {
		0% {
			transform: translateX(450px);
		}

		100% {
			transform: translateX(0px);
		}
	}
}

@media only screen and (max-width: 1080px) {
	#lemongrass {
		max-width: 370px;
	}

	#lychee {
		max-width: 350px;
	}
	#reveal-wrapper,
	#window-wrapper {
		display: flex;
		align-items: center;
	}
}
