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

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
        font-family: 'Arial', sans-serif;
        background: transparent;
        color: #fff;
        line-height: 1.5;
        margin: 0;
        padding: 20px;
    }

/* Arka plan görseli ayrı bir sabit katmanda tutuluyor: iOS Safari'de
   background-attachment: fixed kaydırma sırasında zıplamaya yol açıyor */
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: #0b141b;
}

#setUsernameForm {
    background-color: #121a22;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(126, 200, 214, 0.22);
}

.logo img {
    max-width: 250px;
    margin-bottom: 20px;
    background: transparent;
    display: block;
}

.input-container {
    width: 100%;
    margin-bottom: 20px;
}

input {
    width: 100%;
    background-color: #0f1a22;
    border: 1px solid rgba(126, 200, 214, 0.22);
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 10px;
    color: #e8eef2;
    font-size: 16px;
}

button {
    background-color: #163044;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(126, 200, 214, 0.22);
    color: #7ec8d6;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #1b3a4d;
    color: #d5eef3;
}

.error-message {
    color: var(--popup-close-btn-bg);
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

footer {
    background-color: #0b141b;
    text-align: center;
    border-top: 1px solid rgba(126, 200, 214, 0.18);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.made-by img {
    margin-left: 5px;
    height: 20px;
    vertical-align: middle;
}
   /* Loader ve overlay için CSS */
        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay-bg); /* Buton rengi ile aynı */
            display: none; /* Başlangıçta gizli */
            z-index: 999;
        }

        #loader {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            display: none; /* Başlangıçta gizli */
        }

        /* Loader stilini buraya ekleyin */
        .loader {
            border: 10px solid #163044;
            border-top: 10px solid #7ec8d6;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }