* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-display: optional;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: end;
    flex-direction: column;

}

.container {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;

}


.main-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer {
    display: flex;
    flex-direction: column;

}

.seo-content {
    color: #ffffff8a;
    font-size: 8px;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.copyr {
    color: #ffffff;
    font-size: 14px;
    padding-top: 1rem;
    text-align: center;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 0;
    font-size: 1.75rem;
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
}

#wheel {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #ff4757;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.controls {
    text-align: center;
    width: 100%;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-spin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.btn-spin:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    flex: 1;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn-add {
    flex: 1;
    background: #2ecc71;
    color: white;
}

.btn-clear {
    flex: 1;
    background: #e74c3c;
    color: white;
}

.names-list {
    flex: 1;
}

.names-list h3 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

#namesList {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#namesList li {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

.winner {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 12px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wheel-container {
        width: 300px;
        height: 300px;
    }

    #wheel {
        width: 300px;
        height: 300px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .wheel-container {
        width: 280px;
        height: 280px;
    }

    #wheel {
        width: 280px;
        height: 280px;
    }
}