* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #1e1e2e;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #292940;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffcc00;
}

.description {
    margin-bottom: 30px;
}

.btn {
    background: #ffcc00;
    color: #1e1e2e;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn:hover {
    background: #ffaa00;
}

.btn:disabled {
    background: #666;
    cursor: not-allowed;
    color: #999;
}

.generated-nick {
    font-size: 28px;
    margin: 20px 0;
    padding: 15px;
    background: #1e1e2e;
    border-radius: 5px;
    word-break: break-all;
    font-weight: bold;
    color: #ffcc00;
}

#timer {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

.nick-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.copy-btn {
    background: #4a4a6a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #5a5a7a;
}

.status {
    color: #ffcc00;
    font-weight: bold;
    margin: 10px 0;
}

.warning {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.5s ease;
}

.warning.show {
    top: 20px;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        top: -100px;
    }
    to {
        opacity: 1;
        top: 20px;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        top: 20px;
    }
    to {
        opacity: 0;
        top: -100px;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .nick-container {
        flex-direction: column;
    }

    .generated-nick {
        font-size: 24px;
    }
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}