@font-face { font-family: audiowide; src: url('fonty/Audiowide.ttf'); }
@font-face { font-family: unsteady; src: url('fonty/Unsteady.otf'); }
@font-face { font-family: astibm; src: url('fonty/astronbv.ttf'); }
@font-face { font-family: astobrys; src: url('fonty/astronbw.ttf'); }
        
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Skryje standardní kurzor myši */
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: 'audiowide';
    color: #ffffff;
}

/* Plátno na pozadí */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ultra-elegantní rozhraní pro interakci */
#interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 20px;
}

 /* Osobní agent - světelná perla sledující kurzor */
#personal-agent {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.9),
                0 0 40px 20px rgba(255, 235, 0, 0.85),
                0 0 75px 35px rgba(255, 210, 0, 0.4);
    transition: width 0.2s, height 0.2s, box-shadow 0.2s, opacity 1.5s ease;
}

#personal-agent.idle {
    opacity: 0;
}

#personal-agent.pulse {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 25px 10px rgba(255, 255, 255, 1),
                0 0 60px 30px rgba(255, 235, 0, 0.95),
                0 0 110px 50px rgba(255, 190, 0, 0.6);
}

/* Dialogová zóna */
#terminal {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    margin-left: auto;
    margin-right: 5vw;
    margin-top: 10vh;
}

.line {
    font-weight: 200;
    font-size: 38px;
    letter-spacing: 2px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
                0 0 8px rgba(0, 0, 0, 0.9),
                0 1px 3px rgba(0, 0, 0, 0.95),
                -1px -1px 0 rgba(0, 0, 0, 0.7),
                 1px -1px 0 rgba(0, 0, 0, 0.7),
                -1px  1px 0 rgba(0, 0, 0, 0.7),
                 1px  1px 0 rgba(0, 0, 0, 0.7),
                0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInFluid 1.2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@media (max-width: 767px) {
    #terminal {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .line {
        text-align: center;
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .line { font-size: 38px; }
    #terminal { gap: 20px; }
}

.line.agent-question {
    color: #ffffff;
    font-weight: 300;
}

/* Input hint */
#input-hint {
    position: absolute;
    bottom: 30px;
    right: 5vw;
    font-size: 14px;
    color: rgba(255, 235, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    animation: blink 2s infinite;
    transition: opacity 0.5s ease;
}

/* Skrytý input pro pohlcení klávesnice */
#input-bridge {
    position: absolute;
    opacity: 0;
    pointer-events: auto;
    z-index: 0;
}

/* Live text, který uživatel píše */
#user-typing-space {
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 3px;
    color: #ffeb00;
    text-shadow:
                0 0 15px rgba(255, 235, 0, 0.8),
                0 1px 3px rgba(0, 0, 0, 0.95),
                -1px -1px 0 rgba(0, 0, 0, 0.8),
                1px -1px 0 rgba(0, 0, 0, 0.8),
                -1px  1px 0 rgba(0, 0, 0, 0.8),
                1px  1px 0 rgba(0, 0, 0, 0.8);
    min-height: 30px;
    word-break: break-word;
}

#cursor-blink {
    display: inline-block;
    width: 2px;
    height: 20px;
    background-color: #ffeb00;
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes fadeInFluid {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink { 50% { opacity: 0; } }

/* Glitch Effect */
.glitch {
    animation: glitch-anim 0.2s linear infinite;
    text-shadow: 2px 0 #ffeb00, -2px 0 #00f2fe !important;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(2px, -1px); }
    100% { transform: translate(0); }
}
