@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
.rotating-text {
	font-family: "Rubik", sans-serif;
	font-weight: 600;
	font-size: 36px;
	color: #363636;
	transform: translateX(-80px);
	margin-top: 2vh;
}
.rotating-text span {
	display: inline-flex;
	margin: 0;
	vertical-align: top;
}
.rotating-text span .word {
	position: absolute;
	display: flex;
	opacity: 0;
}
.rotating-text span .word .letter {
	transform-origin: center center 25px;
}
.rotating-text span .word .letter.out {
	transform: rotateX(90deg);
	transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
}
.rotating-text span .word .letter.in {
	transition: 0.38s ease;
}
.rotating-text span .word .letter.behind {
	transform: rotateX(-90deg);
}

.alizarin {
	color: #e74c3c;
}

.wisteria {
	color: #8e44ad;
}

.peter-river {
	color: #3498db;
}

.emerald {
	color: #2ecc71;
}

.sun-flower {
	color: #f1c40f;
}

@media (max-width: 768px) {
	.rotating-text {
		font-size: 22px;
		text-align: center;
		width: 100%;
		margin-left: 3vw;
	}
}
