/* ====================== مرحله 1 ====================== */

body {
	background-color: var(--bg-main);
	height: 100dvh;
	overflow: hidden;
}

body,
.screen {
	height: 100dvh;
}

#firstScreen {
	background-color: var(--bg-accent);
}

h1 {
	font-size: 38px;
	font-weight: 700;
	color: var(--text-inverse);
}

/* ====================== مرحله 2 و 3 ====================== */

#secondScreen,
#thirdScreen {
	max-width: 700px;
	width: 100%;
	height: 100dvh;
	margin: auto;
	padding: 24px 10px;
	overflow: hidden;
}

.slider {
	height: 100%;
	width: 100%;
	border-radius: 24px 24px 0 24px;
	overflow: hidden;
	position: relative;
	background: var(--overlay-gradient-dark);
}

.slider .slide {
	width: 100%;
	height: 100%;
}

.slider::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--overlay-gradient-dark);
}

.slider .slide:nth-child(1) {
	background: url(../images/pic\(1\).jpg) no-repeat center/cover;
}

.slider .slide:nth-child(2) {
	background: url(../images/pic\(2\).jpg) no-repeat center/cover;
}

.slider .slide:nth-child(3) {
	background: url(../images/pic\(3\).jpg) no-repeat center/cover;
}

.slider .slide:nth-child(4) {
	background: url(../images/pic\(4\).jpg) no-repeat center/cover;
}

.slide-content,
.welcome-content {
	width: 100%;
	position: absolute;
	bottom: 0;
	z-index: 2;
	padding: 0 40px 50px;
}

.title {
	display: inline-block;
	align-items: center;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 5px;
	display: inline-block;
	color: #ffffff;
}


.title img {
	width: 23px;
	height: 23px;
	object-fit: contain;
	margin: 0 2px -3px 0;
}

.text {
	font-size: 14px;
	font-weight: 100;
	color: #ffffff;
}

.next-progress {
	width: 100%;
	margin-top: -5px;
}

.next-progress button {
	height: 90px;
	width: 110px;
	background-color: var(--gray-10);
	color: var(--text-inverse);
	border-radius: 0 0 60px 60px;
	position: relative;
	font-size: 28px;
	transition: transform 0.2s ease;
}

.next-progress button:active {
	transform: scale(0.98);
}

.next-progress button img {
	position: absolute;
	left: -18px;
	top: 4px;
	width: 20px;
}

.chevron-right{
	background: var(--chevron-right);
	width: 30px;
	height: 30px;
}

.progress {
	width: 50%;
	height: 8px;
	background-color: var(--border-default);
	border-radius: 20px;
	direction: ltr;
	margin-left: 16px;
}

.progress-bar {
	height: 100%;
	width: 30%;
	background: var(--bg-accent);
	border-radius: 20px;
}

.welcome {
	height: 100%;
	width: 100%;
	background: url(../images/pic\(5\).jpg) no-repeat center/cover;
	border-radius: 24px 24px 0 0;
	position: relative;
	overflow: hidden;
}

.welcome::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--overlay-gradient-welcome);
}

.welcome-content {
	top: 0;
	padding: 50px 40px 0;
}

.links {
	background-color: var(--gray-10);
	border-radius: 0 0 24px 24px;
	width: 100%;
	padding: 20px 32px;
	gap: 8px;
	margin-top: -5px;
}

.links .textLink {
	color: #ffffff;
	font-size: 13px;
	font-weight: 100;
	transition: all 0.2s ease;
}

.links .textLink:hover{
	font-weight: 300;
}

/* ====================== انیمیشن ====================== */

#firstScreen {
	transition: transform 0.8s ease-in-out;
}

#secondScreen {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.slide.active {
	opacity: 1;
	pointer-events: auto;
}

.slide-content {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

#thirdScreen {
	transition: opacity 0.6s ease;
}


.progress-bar {
	transition: width 0.3s ease;
}

@media screen and (max-width: 768px) {
	h1 {
		font-size: 30px;
	}

	.title{
		font-size: 18px;
	}

	.text {
		font-size: 12px;
	}

	.next-progress button {
		width: 90px;
		height: 80px;
		font-size: 24px;
	}

	.progress {
		height: 6px;
	}

	.chevron-right {
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 425px) {
	.next-progress button {
		width: 80px;
		height: 66px;
		font-size: 20px;
	}

	.links .textLink {
		font-size: 11px;
	}
}
