/* =====================================================
   RESET
===================================================== */

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

/* =====================================================
   BODY
===================================================== */

body{
    background:#000;
    color:#7CFF7C;
    font-family:'Share Tech Mono', monospace;
    overflow-x:hidden;
    min-height:100vh;
    position:relative;
}

/* =====================================================
   CRT OVERLAY
===================================================== */

body::before{
    content:"";
    position:fixed;
    inset:0;

    background:repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 3px
    );

    pointer-events:none;
    z-index:999;
}

/* =====================================================
   NOISE
===================================================== */

.noise{
    position:fixed;
    inset:0;

    background-image:url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    background-size:cover;

    opacity:0.04;

    pointer-events:none;

    z-index:2;
}

/* =====================================================
   FLASH
===================================================== */

.flash{
    position:fixed;
    inset:0;

    background:white;

    opacity:0;

    pointer-events:none;

    z-index:998;
}

/* =====================================================
   CONTAINER
===================================================== */

.container{
    width:100%;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:40px;

    position:relative;
    z-index:10;
}

/* =====================================================
   TERMINAL
===================================================== */

.terminal{
    width:100%;
    max-width:900px;

    background:#05070A;

    border:1px solid rgba(124,255,124,0.18);

    padding:50px;

    position:relative;

    overflow:hidden;

    box-shadow:
    0 0 40px rgba(124,255,124,0.08);
}

/* =====================================================
   GLITCH
===================================================== */

.glitch{
    animation:flicker 5s infinite;
}

/* =====================================================
   HEADER
===================================================== */

.header{
    margin-bottom:40px;
}

.header h1{
    font-family:'Oswald', sans-serif;
    font-size:64px;

    letter-spacing:6px;

    margin-bottom:15px;

    color:#7CFF7C;
}

.header p{
    color:#9bcf9b;

    line-height:1.8;

    font-size:15px;
}

/* =====================================================
   WARNING
===================================================== */

.warning{
    margin-bottom:35px;

    padding:20px;

    border:1px solid rgba(255,80,80,0.25);

    background:rgba(255,0,0,0.04);

    color:#ff7070;

    line-height:1.8;
}

/* =====================================================
   FORM
===================================================== */

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

.form-group label{
    display:block;

    margin-bottom:12px;

    color:#7CFF7C;

    letter-spacing:2px;

    font-size:13px;
}

.form-group input{
    width:100%;

    background:black;

    border:1px solid rgba(124,255,124,0.2);

    padding:16px 18px;

    color:#7CFF7C;

    font-family:'Share Tech Mono', monospace;

    font-size:16px;

    outline:none;

    transition:0.3s;
}

.form-group input:focus{
    border-color:#7CFF7C;

    box-shadow:
    0 0 15px rgba(124,255,124,0.15);
}

.input-line{

    display:flex;
    align-items:center;
    gap:15px;

    margin-top:20px;

}

.prompt{

    color:#7CFF7C;
    font-size:20px;

}

/* INPUT */

#commandInput{
    caret-color:transparent;
    flex:1;

    background:transparent;

    border:none;
    outline:none;

    color:#7CFF7C;

    font-family:'Share Tech Mono', monospace;

    font-size:20px;

    caret-color:#7CFF7C;

    padding:0;

}

/* POISTA SELAIMEN OLETUSTYYLI */

#commandInput:focus{
    outline:none;
    border:none;
    box-shadow:none;
}

/* CURSOR */

.cursor{

    width:10px;
    height:22px;

    background:#7CFF7C;

    animation:blink 0.8s infinite;

}

/* =====================================================
   BUTTON
===================================================== */

button{
    background:black;

    border:1px solid #7CFF7C;

    color:#7CFF7C;

    padding:16px 24px;

    font-family:'Share Tech Mono', monospace;

    letter-spacing:2px;

    cursor:pointer;

    transition:0.3s;
}

button:hover{
    background:#7CFF7C;

    color:black;

    box-shadow:
    0 0 25px rgba(124,255,124,0.25);
}

/* =====================================================
   STATUS
===================================================== */

.status{
    margin-top:30px;

    min-height:24px;

    color:#7CFF7C;

    letter-spacing:1px;
}

/* =====================================================
   BOOT TERMINAL
===================================================== */

.boot-terminal{
    max-width:1100px;

    min-height:85vh;
}

/* =====================================================
   BOOT LOGO
===================================================== */

.boot-logo{
    font-family:'Oswald', sans-serif;

    font-size:72px;

    letter-spacing:8px;

    margin-bottom:50px;

    opacity:0;

    color:#7CFF7C;

    animation:flicker 5s infinite;
}

/* =====================================================
   BOOT OUTPUT
===================================================== */

.boot-output{
    font-size:18px;

    line-height:2.2;

    color:#7CFF7C;
}

.boot-line{
    opacity:0;

    animation:fadeIn 0.25s forwards;
}

/* =====================================================
   TERMINAL WARNING
===================================================== */

.boot-line.warning{
    color:#ff7070;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

@keyframes flicker{

    0%{opacity:1;}
    2%{opacity:0.92;}
    4%{opacity:1;}
    70%{opacity:1;}
    72%{opacity:0.88;}
    100%{opacity:1;}

}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:900px){

    .container{
        padding:20px;
    }

    .terminal{
        padding:30px;
    }

    .header h1{
        font-size:42px;
    }

    .boot-logo{
        font-size:42px;
    }

    .boot-output{
        font-size:15px;
        line-height:2;
    }

    .audio-control{
        bottom:15px;
        right:15px;
    }

}