@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 {
    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;
    }


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0e2b32;
    color: #f1f1f1;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    padding: 7em;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

h2 {
    color: #aee6d6;
}

form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    justify-items: center;
    margin-bottom: 20px;
}

input[type="range"] {
    width: 60%;
    accent-color: #30ffb7;
}

input[type="number"] {
    background: #163a40;
    color: #f1f1f1;
    border: 1px solid #2f656f;
    padding: 5px 8px;
    border-radius: 6px;
    width: 80px;
    text-align: center;
}

.calc-btn {
    margin-top: 15px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .calc-btn:hover {
        transform: scale(1.05);
        background: linear-gradient(90deg, #00ffb7, #00a6ff);
    }

.results {
    margin-top: 40px;
}

.mode-box {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 35px;
}

.exp-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

.exp-bar {
    position: relative;
    width: 70%;
    height: 10px;
    border-radius: 10px;
    border: 2px solid #000;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.exp-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ffa3, #00a6ff);
    border-radius: 10px;
}

.exp-label {
    font-size: 12px;
    color: #ccc;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    bottom: 0;
    width: 100%;
    color: #aaa;
    font-size: 14px;
}

.exp-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

.exp-bar {
    position: relative;
    width: 70%;
    height: 10px;
    border-radius: 10px;
    border: 2px solid #000;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.exp-label {
    font-size: 12px;
    color: #ccc;
}
