@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Poppins:wght@400;600&display=swap');

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

body {
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, #0f2027, #203a43, #2c5364);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.case {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    animation: fall 6s ease-in infinite;
    opacity: 0.9;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translate(-50%, -200px) rotate(0deg);
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, 90vh) rotate(360deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 120vh) rotate(720deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 10%;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.6rem;
    color: #00ffa3;
    text-shadow: 0 0 25px #00ffa3;
    margin-bottom: 10px;
}

p {
    color: #ccc;
    margin-bottom: 25px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.time-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px 30px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.3);
}

.number {
    font-size: 3rem;
    font-weight: 700;
    color: #00ffa3;
    text-shadow: 0 0 15px #00ffa3;
    font-family: 'Orbitron', sans-serif;
}

.label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.progress-container {
    width: 80%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffa3, #0077ff);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.reset-msg {
    font-size: 1.4rem;
    color: #ffcc00;
    margin-top: 25px;
    text-shadow: 0 0 10px #ffcc00;
}

footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    z-index: 2;
}
/* --- Animacje spadających skrzynek --- */
.case {
    position: fixed;
    top: -150px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    transform-origin: center;
    animation-name: fallCase;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

@keyframes fallCase {
    0% {
        transform: translateY(-200px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    text-align: center;
    z-index: 10;
}

    nav a {
        color: #00ffa3;
        font-family: 'Orbitron', sans-serif;
        text-decoration: none;
        margin: 0 20px;
        font-size: 1.1rem;
        transition: color 0.3s, text-shadow 0.3s;
    }

        nav a:hover, nav a.active {
            color: #fff;
            text-shadow: 0 0 10px #00ffa3;
        }

.visits-table {
    margin: 40px auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
}

    .visits-table th, .visits-table td {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .visits-table th {
        color: #00ffa3;
        font-size: 1.2rem;
    }

    .visits-table td {
        color: #fff;
        font-size: 1rem;
    }


/* --- Sekcja cen skrzynek --- */
.case-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.case-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    width: 220px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 163, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .case-box:hover {
        transform: scale(1.07);
        box-shadow: 0 0 35px rgba(0, 255, 163, 0.5);
    }

    .case-box img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .case-box h3 {
        font-family: 'Orbitron', sans-serif;
        color: #00ffa3;
        text-shadow: 0 0 10px #00ffa3;
        margin-bottom: 5px;
    }

    .case-box .cena {
        color: #fff;
        font-weight: 600;
        text-shadow: 0 0 5px #00ffa3;
    }

.recent-prices-container {
    display: flex;
    justify-content: space-around;
}
    .recent-prices-container .min-price {
        color: red;
        font-weight: bold;
    }

    .recent-prices-container .max-price {
        color: yellowgreen;
        font-weight: bold;
    }

.formularz {
    margin-top: 40px;
}

    .formularz label {
        font-family: 'Orbitron', sans-serif;
        font-size: 1rem;
        margin-right: 10px;
        color: #00ffa3;
        text-shadow: 0 0 10px #00ffa3;
    }

    .formularz input {
        width: 100px;
        padding: 8px;
        border-radius: 8px;
        border: none;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 1rem;
        margin-right: 10px;
    }

    .formularz button {
        background: linear-gradient(90deg, #00ffa3, #0077ff);
        border: none;
        color: #000;
        padding: 10px 20px;
        border-radius: 10px;
        cursor: pointer;
        font-family: 'Orbitron', sans-serif;
        font-weight: bold;
        transition: 0.3s;
    }

        .formularz button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px #00ffa3;
        }

#wynik {
    margin-top: 30px;
    color: #ffcc00;
    font-size: 1.4rem;
    text-shadow: 0 0 10px #ffcc00;
}
