* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f3e7e9, #d3d3e7);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.5);
}

h1 {
    color: #4a4a4a;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ffd700, #ff6b6b);
    border-radius: 2px;
}

.input-section, .templates-section {
    margin-bottom: 25px;
}

#nameInput {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background-color: rgba(255,215,0,0.1);
    transition: all 0.3s ease;
}

#nameInput:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255,107,107,0.2);
}

.template-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    background-color: rgba(255,215,0,0.1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    transition: all 0.3s ease;
}

.template-select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255,107,107,0.2);
}

#createBtn, #downloadBtn {
    background: linear-gradient(to right, #ffd700, #ff6b6b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 20px rgba(255,215,0,0.3);
}

#createBtn:hover, #downloadBtn:hover {
    transform: scale(1.05);
}

#createBtn:disabled {
    background: linear-gradient(to right, #cccccc, #999999);
    cursor: not-allowed;
}

.result-section {
    margin-top: 30px;
}

.result-card {
    background-color: rgba(255,255,255,0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

canvas {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px 15px;
    }
}

/* Festive Decoration */
body::before {
    content: '🐑';
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.5;
    z-index: -1;
}

body::after {
    content: '✨';
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.5;
    z-index: -1;
}

/* New Footer Styles */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,215,0,0.3);
    text-align: center;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0088cc, #005f8c);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,136,204,0.2);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,136,204,0.3);
}

.telegram-icon {
    margin-right: 8px;
    font-size: 20px;
}

.copyright {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .telegram-btn {
        width: 90%;
        margin: 0 auto 15px auto;
    }
}