body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
    position: relative;
}


#app {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: scroll;
}

h1, h2 {
    color: #222;
    font-weight: 600;
}

button {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 18px;
    margin: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
}

button:hover {
    background: linear-gradient(to right, #0056b3, #004095);
    transform: scale(1.05);
}

.back-to-menu {
    background: linear-gradient(to right, #dc3545, #b22222);
    color: white;
    border: none;
    padding: 10px 16px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
}

.back-to-menu:hover {
    background: linear-gradient(to right, #b22222, #8b0000);
    transform: scale(1.05);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

input {
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    width: 90%;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
    text-align: center;
}

input:focus {
    border-color: #007bff;
}

#qr-reader {
    border: 3px solid #007bff;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
    width: 350px;
}

#points-display {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-top: 15px;
}

@media (max-width: 500px) {
    #app {
        width: 95%;
        padding: 20px;
    }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
}

#gif-image {
    width: 100%;  /* GIF dopasuje się do szerokości kontenera */
    max-width: 350px;  /* Opcjonalnie, aby nie przekraczał szerokości #app */
    height: auto; /* Zachowuje proporcje */
    display: block; /* Usuwa domyślne marginesy inline */
    margin: 10px auto; /* Wyśrodkowanie */
}

#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#start-screen button {
    width: 80%; /* Przyciski będą szerokie i równe */
    max-width: 300px; /* Nie większe niż 300px */
}