body {
    margin: 0;
    background: linear-gradient(45deg, #0f0c29, #302b63);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.magic-btn {
    position: relative;
    padding: 2rem 4rem;
    font-size: 1.5rem;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-top: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,255,136,0.5);
}

.btn-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ffee, #00a3ff);
    opacity: 0.7;
    z-index: -1;
    transition: opacity 0.3s;
}

.hidden {
    display: none !important;
}

.slider-container {
    width: 600px;
    height: 400px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    z-index: 3;
    opacity: 0;
    transform: scale(0.95);
    animation: sliderAppear 0.8s ease-out forwards;
    animation-delay: 1s;
}

@keyframes sliderAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 2;
}

.example-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0,255,136,0.5);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.rainbow-box {
    width: 300px;
    height: 150px;
    margin: 0 auto;
    border-radius: 15px;
    background: linear-gradient(90deg, 
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
    background-size: 1400% 100%;
    animation: rainbow 4s linear infinite;
}

.panel-3d {
    width: 200px;
    height: 200px;
    margin: 40px auto;
    background: rgba(255,255,255,0.1);
    border: 2px solid #00ff88;
    transform-style: preserve-3d;
    box-shadow: 0 0 40px rgba(0,255,136,0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.game-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border: 2px solid #00ff88;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.ball {
    width: 30px;
    height: 30px;
    background: #ff0080;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px #ff0080;
    transition: background 0.3s;
}

.score-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

/* HODINY */
.clock-container {
    width: 300px;
    height: 300px;
    margin: 30px auto 0;
    position: relative;
}

.clock-face {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px solid #00ff88;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 0 30px rgba(0,255,136,0.2);
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hour-hand {
    width: 6px;
    height: 60px;
    margin-left: -3px;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    z-index: 3;
}

.minute-hand {
    width: 4px;
    height: 90px;
    margin-left: -2px;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    z-index: 2;
}

.second-hand {
    width: 2px;
    height: 110px;
    margin-left: -1px;
    background: #ff0080;
    box-shadow: 0 0 10px #ff0080;
    z-index: 1;
}

.hour-mark {
    position: absolute;
    width: 30px;
    height: 30px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    color: #00ff88;
    text-shadow: 0 0 15px #00ff88;
    font-weight: bold;
    line-height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    user-select: none;
}

.clock-face::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #00ff88;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#laserEffects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.laser {
    --hue: 0;
    position: absolute;
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, 
        hsla(var(--hue), 100%, 50%, 0),
        hsla(var(--hue), 100%, 50%, 1),
        hsla(var(--hue), 100%, 50%, 0)
    );
    transform-origin: left center;
    filter: blur(1px);
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hour-mark {
    background: #ff0080;
    box-shadow: 0 0 10px #ff0080;
}

.clock-number {
    pointer-events: none; /* Zabránit překážení při klikání */
    z-index: 2; /* Nad čárkami ale pod ručičkami */
}

.clock-mark {
    pointer-events: none; /* Žádná interakce */
    z-index: 1; /* Pod ručičkami */
}

.hour-mark {
    pointer-events: none;
    z-index: 2;
}


.clock-face {
    box-sizing: border-box; /* Kritické pro správný střed */
    border: 2px solid #00ff88;
}

.clock-face {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}

.clock-mark {
    pointer-events: none;
    z-index: 1;
}

.clock-face {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}
