.ranking {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 250px;
    background-color: #020617;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 20px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
}

.ranking h2 {
    font-size: 18px;
    margin: 0 0 10px;
    text-align: center;
}

.ranking ol {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.ranking li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Styl dla listy rankingu */
.ranking-list {
    max-height: 227px;
    /* Ograniczenie wysokoci (5 pozycji) */
    overflow-y: auto;
    /* Przewijanie w pionie */
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* Układ tylko dla urządzeń mobilnych */
@media screen and (max-width: 768px) {
    .ranking-list {
        max-height: 100px;
        /* Dopasowanie wysokości dla urządzeń mobilnych */
        overflow-y: scroll;
        border: 1px solid #ccc;
        /* Opcjonalne - obramowanie */
        padding-right: 10px;
        /* Zapewnia miejsce na przewijak */
    }
}

body {

    font-family: "Potta One", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #020617;
    color: white;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
}

.container {
    text-align: center;
    background: #020617;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
    width: 350px;
}

.neon-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #0ff, transparent);
    margin: 0 10px;
}

.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #0ff, transparent);
    margin: 20px 0;
}

button {
    width: 150px;
    height: 150px;
    border: none;
    border-radius: 50%;
    background-color: #392147;
    cursor: pointer;
    transition: transform 0.1s;
}

button:hover {
    transform: scale(1.1);
}

button:active {
    transform: scale(0.9);
}

.logout-button {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: #392147;
}

.change-password-button {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.change-password-button:hover {
    background-color: #392147;
}

.admin-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    background-color: #ff5722;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.admin-button:hover {
    background-color: #e64a19;
}

.language-switch {
    position: fixed; /* Ustawia element w stałym miejscu na ekranie */
    top: 10px;       /* Odstęp od góry */
    right: 10px;     /* Odstęp od prawej */
    z-index: 1000;   /* Priorytet wyświetlania nad innymi elementami */
}

.flag {
    width: 40px;      /* Rozmiar flagi */
    height: auto;     /* Zachowanie proporcji */
    cursor: pointer;  /* Zmiana kursora na wskazujący */
    transition: transform 0.2s;
}

.flag:hover {
    transform: scale(1.1); /* Powiększenie przy najechaniu */
}

/* Kontener na śnieg */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Żeby nie blokowało kliknięć */
    overflow: hidden;
    z-index: 9999; /* Na wierzchu wszystkiego */
}

/* Styl śnieżynek */
.snowflake {
    position: absolute;
    top: -10px; /* Pojawia się powyżej widoku */
    background-color: white; /* Kolor śniegu */
    border-radius: 50%; /* Kształt koła */
    opacity: 0.8; /* Przezroczystość */
    pointer-events: none;
    animation: fall linear infinite; /* Animacja */
}

/* Animacja spadania */
@keyframes fall {
    0% {
        transform: translateY(0) translateX(0); /* Początek */
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(10vw); /* Koniec */
        opacity: 0;
    }
}

.admin-message {
    position: fixed; /* Przyklejenie do góry strony */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffebcc; /* Jasny kolor tła */
    color: #333;
    padding: 15px 20px;
    border-bottom: 2px solid #f0ad4e; /* Kolor ramki */
    z-index: 1000; /* Żeby była nad innymi elementami */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-message h3 {
    margin: 0;
    color: #d9534f; /* Czerwony kolor nagłówka */
    font-size: 18px;
    font-weight: bold;
}

.admin-message p {
    margin: 5px 0 10px;
    font-size: 16px;
}

.admin-message button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 38.5px;
    width: 200px;
}

.admin-message button:hover {
    background-color: #c9302c;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
