.carousel {
	width: 100vw;
	height: 100vh;
	position: relative;
	overflow: hidden;
	max-width: 1440px;
}

.carousel .list .item {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.carousel .list .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel .list .item .content .author {
	font-weight: var(--font-bold);
	letter-spacing: 4px;
	font-size: var(--normal-font-size);
}

.carousel .list .item .content .title,
.carousel .list .item .content .topic {
	font-weight: var(--font-bold);
	font-size: 2rem;
}

.carousel .list .item .content .topic {
	color: var(--first-color);
}
@media screen and (max-width: 730px) {
	.carousel .list .item .content .buttons {
		margin-top: 1rem;
		display: grid;
		grid-template-rows: 1fr 1fr;
		width: 13rem;
		row-gap: 1rem;
	}

	.carousel .list .item .content {
		position: absolute;
		top: 20%;
		left: 1.5rem;
		width: 20rem;
		color: var(--body-color);
		text-shadow: 0 5px 10px #0004;
	}

	.header {
		position: fixed;
		top: 0;
		left: 0;
		/* background-color: lightblue; */
		width: 100%;
		padding: 0.5rem 1.5rem;
		z-index: 1000;
		border-bottom: 1px solid white;
		transition: all 0.8s ease;
	}
}

.carousel .list .item .content button {
	padding: 0.5rem 1.4rem;
	background-color: #eee;
	letter-spacing: 3px;
	font-weight: var(--font-semi-bold);
	transition: background-color 0.4s linear, color 0.5s linear,
		border 0.5s linear;
	cursor: pointer;
}

.carousel .list .item .content button:nth-child(2) {
	background-color: rgba(0, 0, 0, 0.2);
	color: #eee;
	border: 1px solid var(--first-color);
}

.carousel .list .item .content button:nth-child(2):hover {
	background-color: #eee;
	color: var(--title-color);
	border-color: #eee;
}

.carousel .list .item .content button:nth-child(1):hover {
	background-color: rgba(0, 0, 0, 0.2);
	color: #eee;
	border: 1px solid var(--first-color);
}

.thumbnail {
	position: absolute;
	bottom: 10px;
	left: 50%;
	width: max-content;
	z-index: 100;
	display: flex;
	gap: 20px;
}

.thumbnail .item {
	width: 150px;
	height: 220px;
	flex-shrink: 0;
	position: relative;
}

.thumbnail .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

.thumbnail .item .content {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	color: var(--body-color);
}

.thumbnail .item .content .title {
	font-weight: var(--font-semi-bold);
}

.arrows {
	position: absolute;
	top: 80%;
	right: 52%;
	width: 100px;
	max-width: 30%;
	display: flex;
	gap: 10px;
	align-items: center;
}

.arrows button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #eee4;
	color: white;
	font-weight: var(--font-bold);
	font-size: var(--large-font-size);
	transition: 0.5s;
	z-index: 100;
}

.arrows button:hover {
	background-color: #eee;
	color: #555;
}

.carousel .list .item:nth-child(1) {
	z-index: 1;
}

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons {
	transform: translateY(50px);
	filter: blur(20px);
	opacity: 0;
	animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
	to {
		opacity: 1;
		filter: blur(0);
		transform: translateY(0);
	}
}

.carousel .list .item:nth-child(1) .title {
	animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .topic {
	animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .des {
	animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .buttons {
	animation-delay: 1.8s;
}

.carousel.next .list .item:nth-child(1) img {
	width: 150px;
	height: 220px;
	position: absolute;
	left: 50%;
	bottom: 10px;
	border-radius: 20px;
	animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
	to {
		width: 100%;
		height: 100%;
		left: 0;
		bottom: 0;
		border-radius: 0;
	}
}

.carousel.next .thumbnail .item:nth-last-child(1) {
	width: 0;
	overflow: hidden;
	animation: showThumbnail 0.5s linear 1 forwards;
}

@keyframes showThumbnail {
	to {
		width: 150px;
	}
}
.carousel.next .thumbnail {
	transform: translateX(150px);
	animation: transformThumbnail 0.5s linear 1 forwards;
}

@keyframes transformThumbnail {
	to {
		transform: translateX(0);
	}
}

.carousel.prev .list .item:nth-child(2) {
	z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
	position: absolute;
	bottom: 0;
	left: 0;
	animation: outImage 0.5s linear 1s forwards;
}

@keyframes outImage {
	to {
		width: 150px;
		height: 220px;
		border-radius: 20px;
		left: 50%;
		bottom: 10px;
	}
}

.carousel.prev .thumbnail .item:nth-child(1) {
	width: 0;
	overflow: hidden;
	opacity: 0;
	animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .des,
.carousel.prev .list .item:nth-child(2) .buttons {
	animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {
	to {
		transform: translateY(-150px);
		filter: blur(20px);
		opacity: 0;
	}
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
	pointer-events: none;
}

.time {
	width: 0%;
	height: 3px;
	background-color: var(--first-color);
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
}

.carousel.next .time,
.carousel.prev .time {
	width: 100%;
	animation: timeRunning 2s linear forwards;
}

@keyframes timeRunning {
	to {
		width: 0;
	}
}

@media screen and (max-width: 950px) {
	.carousel .list .item .content .title,
	.carousel .list .item .content .topic {
		font-size: var(--h1-font-size);
	}
	.carousel .list .item .content .author {
		font-size: var(--normal-font-size);
	}
}

.socials {
	font-size: var(--large-font-size);
	position: absolute;
	bottom: 13rem;
	left: 1.5rem;
	display: flex;
	column-gap: 0.8rem;
	color: var(--body-color);
	z-index: 1000;
}

.socials a {
	text-decoration: none;
	color: var(--body-color);
}
