code Copy code
/* نوشته تغییر صدا با هوش مصنوعی */
#ai-text {
margin: 20px 0;
font-size: 2em;
color: #fff;
text-align: center;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
animation: textGlow 3s infinite alternate;
position: relative;
z-index: 2;
}
@keyframes textGlow {
from {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
to {
text-shadow: 0 0 20px rgba(255, 255, 255, 1);
}
}
/* دکمه شروع تغییر صدا با تم هوش مصنوعی */
.start-button {
display: inline-block;
margin: 20px auto;
padding: 10px 30px;
font-size: 1.5em;
background: linear-gradient(90deg, #0fbcf9, #0be881);
color: #fff;
border: 2px solid #fff;
border-radius: 50px;
cursor: pointer;
animation: buttonGlow 2s infinite ease-in-out, borderAnimation 3s infinite;
transition: transform 0.3s ease, background 0.3s ease;
box-shadow: 0 0 15px rgba(15, 188, 249, 0.7);
position: relative;
z-index: 2;
text-decoration: none;
text-align: center;
width: 300px; /* Ensure consistent width */
}
@keyframes borderAnimation {
0%, 100% {
border-color: transparent;
}
50% {
border-color: #fff;
}
}
.start-button:hover {
transform: scale(1.1);
background: linear-gradient(90deg, #0be881, #0fbcf9);
}
@keyframes buttonGlow {
0%, 100% {
box-shadow: 0 0 10px rgba(15, 188, 249, 0.7);
}
50% {
box-shadow: 0 0 20px rgba(11, 232, 129, 1);
}
}
/* اطمینان از سفیدی متن دکمه شروع تغییر صدا در همه حالتها */
.start-button:link,
.start-button:visited,
.start-button:hover,
.start-button:active {
color: #fff;
text-decoration: none;
}
/* دکمههای جدید با انیمیشن */
.animated-button, .night-sky-button {
width: 300px; /* اندازه یکسان برای هر دو دکمه */
background-color: #1a1a2e;
padding: 16px 32px;
border-radius: 8px;
color: #fff;
font-size: 20px;
border: none;
cursor: pointer;
position: relative;
overflow: hidden;
display: inline-block;
text-align: center;
margin: 20px 10px;
text-decoration: none;
}
/* اطمینان از سفیدی متن دکمهها در همه حالتها */
.animated-button:link,
.animated-button:visited,
.animated-button:hover,
.animated-button:active,
.night-sky-button:link,
.night-sky-button:visited,
.night-sky-button:hover,
.night-sky-button:active {
color: #fff;
text-decoration: none;
}
/* استایل مخصوص دکمه چت با هوش مصنوعی */
.animated-button {
animation: pulse 3s infinite;
color: #fff;
text-decoration: none;
}
.animated-button span {
position: relative;
z-index: 3;
color: #fff;
}
/* افکت آب در داخل دکمه */
.animated-button::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(15, 188, 249, 0.5);
z-index: 1;
animation: calmWave 8s ease-in-out infinite;
}
/* افکت نور پشت دکمه */
.animated-button::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent);
animation: wind 40s linear infinite;
z-index: 0;
}
@keyframes wind {
0% {
transform: translateX(0) translateY(0) rotate(0deg);
}
100% {
transform: translateX(100%) translateY(-100%) rotate(360deg);
}
}
/* انیمیشن موجهای آرام */
@keyframes calmWave {
0%, 100% {
clip-path: polygon(0% 70%, 10% 73%, 20% 70%, 30% 73%, 40% 70%, 50% 73%, 60% 70%, 70% 73%, 80% 70%, 90% 73%, 100% 70%, 100% 100%, 0% 100%);
}
50% {
clip-path: polygon(0% 72%, 10% 75%, 20% 72%, 30% 75%, 40% 72%, 50% 75%, 60% 72%, 70% 75%, 80% 72%, 90% 75%, 100% 72%, 100% 100%, 0% 100%);
}
}
.animated-button:hover {
background-color: #0fbcf9;
transform: scale(1.05);
box-shadow: 0 0 20px rgba(15, 188, 249, 0.5);
color: #fff;
}
/* کشتی و مرد داخل دکمه چت با هوش مصنوعی */
.animated-button .ship {
position: absolute;
bottom: 25%;
left: -20%;
width: 30px;
height: 30px;
z-index: 2;
animation: shipMove 16s linear infinite;
}
.boat {
position: absolute;
bottom: 0;
left: 5px;
width: 20px;
height: 10px;
background: sienna;
border-radius: 0 0 5px 5px;
}
.sail {
position: absolute;
bottom: 10px;
left: 7px;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 12px solid white;
}
.man {
position: absolute;
bottom: 10px;
left: 12px;
width: 5px;
height: 10px;
background: black;
}
.paddle {
position: absolute;
bottom: 5px;
left: 15px;
width: 15px;
height: 2px;
background: brown;
transform-origin: left center;
animation: paddleMove 1s linear infinite;
}
@keyframes paddleMove {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(45deg);
}
100% {
transform: rotate(0deg);
}
}
@keyframes shipMove {
0% {
left: -20%;
}
100% {
left: 100%;
}
}
/* افکت محو شدن متن */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* دکمه آسمان پرستاره با سیارات متعدد */
.night-sky-button {
width: 300px; /* اندازه یکسان برای هر دو دکمه */
background-color: #000033;
padding: 16px 32px;
border-radius: 8px;
color: #ffffff;
font-size: 20px;
border: none;
cursor: pointer;
position: relative;
overflow: hidden;
display: inline-block;
text-align: center;
margin: 20px 10px;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
z-index: 2;
text-decoration: none;
}
.night-sky-button span {
position: relative;
z-index: 2; /* برای اینکه متن بالای پسزمینه باشد */
color: #fff;
}
/* ایجاد پسزمینه آسمان پرستاره با سیارات متعدد */
.night-sky-button::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: transparent url('data:image/svg+xml,...') repeat;
background-size: 200px 200px;
animation: twinkling 50s linear infinite;
z-index: 1;
}
/* انیمیشن حرکت ستارهها */
@keyframes twinkling {
from {
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(-200px, 0, 0);
}
}
.night-sky-button:hover {
background-color: #000044;
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
color: #fff;
}
/* ظرف دکمهها برای تنظیم چینش */
.button-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
@media (max-width: 768px) {
.start-button, .animated-button, .night-sky-button {
width: 80%;
font-size: 1em;
}
.button-container {
flex-direction: column;
}
.button-container > * {
width: 80%;
margin: 10px auto;
}
}
@media (min-width: 769px) {
.button-container {
flex-direction: row;
}
.button-container > * {
margin: 20px 10px;
}
}