@font-face {
    font-family: 'Neospeed';
    src: url('../fonts/NeospeedOblique.woff2') format('woff2'),
         url('../fonts/NeospeedOblique.woff') format('woff'),
         url('../fonts/NeospeedOblique.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color1: #FF0000;
    --color2: #FF6347;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 93vh;
    margin: 0;
    background: url('https://www.all-stars-motorsport.com/img/app_icons/back_roleta.png'), radial-gradient(red, black) no-repeat center center;
    background-size: cover;
    filter: blur(0.5px);
    color: #333;
    overflow: hidden;
    padding: 40px;
}
.roleta-container {
    position: relative;
    width: 800px;
    height: 800px;
    margin-top: 0px;
}

.roleta {
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 5.6s ease-out;
    border: 10px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.roleta .label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
}
.roleta .label span {
    transform-origin: center center;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: url('https://www.all-stars-motorsport.com/img/app_icons/logo_spinner.png') no-repeat center center;
    background-color: #333;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 10px;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0px 5px 60px 12px #222;
}

.ponteiro {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 50px;
    height: 70px;
    background: url('https://www.all-stars-motorsport.com/img/app_icons/ponteiro.png?t=2') no-repeat center center;
    background-size: contain;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
}

.overlay-message {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.login-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: var(--color1);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
}
.login-button:hover {
    background-color: var(--color2);
}

.resultado {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    z-index: 10000; /* Très élevé pour être devant la roue */
    font-size: 28px;
    display: none;
    max-width: 90%;
}

#message {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 8px black;
}

.resultado button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 18px;
    background-color: var(--color1);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.resultado button:hover {
    background-color: var(--color2);
}

.admin-button {
    position: fixed;
    top: 15px;
    right: 20px;
    padding: 10px 18px;
    background-color: var(--color1);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 1000;
}
.admin-button:hover {
    background-color: var(--color2);
}
/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .roleta-container,
    .roleta {
        width: 90vw;
        height: 90vw;
    }

    .roleta .label {
        font-size: 12px;
    }

    .roleta .label span {
        font-size: 14px;
    }

    .logo {
        width: 70px;
        height: 70px;
        padding: 15px;
        box-shadow: 0px 3px 30px 8px #222;
    }

    .ponteiro {
        width: 30px;
        height: 45px;
        top: -20px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .resultado {
        width: 90%;
        font-size: 20px;
        padding: 30px 20px;
    }

    .resultado button {
        font-size: 16px;
        padding: 8px 20px;
    }

    .login-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.lang-select-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.styled-select {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.auth-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-button .btn {
    padding: 10px 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}

.admin-button {
    position: fixed;
    top: 15px;
    right: 20px;
    padding: 10px 18px;
    background-color: var(--color1);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 1000;
}
.admin-button:hover {
    background-color: var(--color2);
}

.username-title {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-top: -53px;
    margin-bottom: 30px;
    font-family: 'Neospeed', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(to right, rgb(230, 79, 79), rgb(255, 213, 222));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    animation: fadeInDown 1s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wheel-disabled-message {
    max-width: 480px;
    margin: 100px auto;
    padding: 30px 40px;
    background: rgba(40, 40, 40, 0.85);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.6);
    color: #ff5555;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

.wheel-disabled-message p {
    margin: 20px 0 0;
    font-size: 22px;
}

.wheel-disabled-message a {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #ff4444;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(255, 68, 68, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wheel-disabled-message a:hover {
    background: #ff2222;
    box-shadow: 0 8px 20px rgba(255, 34, 34, 0.7);
}

.wheel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* sombre mais translucide */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000; /* derrière le bouton admin mais devant la roue */
    pointer-events: none; /* permet de cliquer sur les éléments en dessous si nécessaire */
}

/* Message centré sur l'overlay */
.wheel-overlay-message {
    background-color: rgba(145, 9, 9, 0.85); /* rouge foncé semi-transparent */
    padding: 90px 180px;
    border-radius: 3px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    pointer-events: auto; /* si tu veux rendre le message cliquable éventuellement */
}