@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --content-background: #ffffff;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --background-color: #1a1a1a;
    --text-color: #f5f7fa;
    --content-background: #2c3e50;
}

.container {
    background-color: var(--content-background);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    width: 90%;
    transition: background-color 0.3s ease;
}

header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.theme-toggle .fa-sun {
    display: none;
}

body.dark-theme .theme-toggle .fa-sun {
    display: inline-block;
}

body.dark-theme .theme-toggle .fa-moon {
    display: none;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.os-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

#content {
    margin-top: 2rem;
    text-align: right;
    background-color: var(--content-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#os-content {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.download-button, .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.download-button {
    background-color: var(--secondary-color);
}

.download-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-button {
    background-color: var(--accent-color);
}

.back-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

@media (max-width: 600px) {
    .os-buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    p, ol, ul {
        text-align: left;
    }
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-button {
    margin: 20px auto;
    display: block;
}

footer {
    text-align: center;
}

.copyright {
    margin: 0 auto;
}

/* جدید */
.copy-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#script-link {
    width: 100%; /* عرض باکس متنی به اندازه متن */
    font-size: 14px; /* اندازه فونت را به نیاز خود تنظیم کنید */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #2980b9;
}
