/*  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: black;
    color: #00ff00;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle, #000000 10%, #003300 50%, #001100 90%);
    animation: bgAnimation 6s infinite alternate;
}

@keyframes bgAnimation {
    0% { background: #000000; }
    50% { background: #003300; }
    100% { background: #001100; }
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0), transparent);
    animation: glowEffect 5s infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowEffect {
    from { opacity: 0.2; }
    to { opacity: 0.5; }
}

/* Binary code animation */
@keyframes binaryRain {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh); /* Move off screen */
    }
}

.binary {
    position: absolute;
    top: 0;
    left: 50%;
    font-family: monospace;
    font-size: 20px;
    color: #00ff00;
    opacity: 0;
    animation: binaryRain 10s linear infinite;
    white-space: nowrap;
}


/* Terminal */
.terminal-container {
    width: 80%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative; /*  */
    flex: 1;
    z-index: 1; /* Terminalin ön planda olmasını sağlar */
}

/*  */
.terminal-title {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 10px;
}

/*  */
.description {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.description a {
    color: #00ff00;
    text-decoration: underline;
}

/* Terminal  */
.terminal {
    border: 2px solid transparent;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin-bottom: 100px;
}

.terminal-header {
    background-color: black;
    color: #00ff00;
    padding: 5px;
    border: 1px solid #00ff00;
    margin-bottom: 10px;
}

/*  */
.terminal-body {
    height: calc(100% - 50px); /*  */
    background-color: black;
    border: 1px solid #00ff00;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto; /*  */
    margin-bottom: 40px; /*  */
}

/*  */
.terminal-body::-webkit-scrollbar {
    width: 6px; /*  */
}

/*  */
.terminal-body::-webkit-scrollbar-track {
    background-color: black;
}

/*  */
.terminal-body::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 10px; /*  */
}

/*  */
.terminal-body::-webkit-scrollbar-thumb:hover {
    background-color: #00cc00; /*  */
}


/*  */
.ai-text {
    white-space: pre-wrap; /*  */
    overflow-y: auto; /*  */
    font-size: 16px;
    margin-bottom: 10px;
}

@keyframes blink {
    50% { opacity: 0.1; }
}

@keyframes blink {
    50% { opacity: 0.5; }
}

#response::after { /*  */
    content: "▍";
    animation: blink 1s infinite;
}

/*  */
.ai-text::-webkit-scrollbar {
    width: 6px; /*  */
}

.ai-text::-webkit-scrollbar-track {
    background: #000; /*  */
}

.ai-text::-webkit-scrollbar-thumb {
    background-color: #00ff00; /*  */
    border-radius: 10px; /*  */
}



/* */
.terminal-input-container {
    display: flex; /*  */
    width: 100%; /*  */
    position: absolute;
    bottom: 10px; /*  */
    left: 0;
    padding: 0 5px; /*  */
    box-sizing: border-box;
    left: 1.5%;
    margin-bottom: 100px;
}

/*  */
.terminal-input {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px;
    font-size: 14px;
    outline: none;
    width: 90%; /*  */
    box-sizing: border-box; /*  */
    caret-color: #00ff00; /*  */
}

.terminal-input::placeholder {
    color: #00ff00a2;
}

/*  */
#response {
    margin-top: 20px;
    font-size: 20px;
    color: #00ff00;
    white-space: pre-wrap; /*  */
}

/*  */
button.text-xl {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    margin-left: 5px; /*  */
    outline: none;
}

button.text-xl:hover {
    background-color: #00ff00;
    color: black;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #00ff00;
    padding: 10px 0;
    border-top: 1px solid #00ff00;
    background-color: transparent;
}

/*  */
/*  */
@media (max-width: 768px) {
    /*  */
    .terminal-container {
        width: 95%;
        max-width: 100%;
    }

    /* Terminal-body  */
    .terminal-body {
        height: calc(100% - 80px); /*  */

    }

    /*  */
    .terminal-input-container {
        flex-direction: row; /*  */
        width: 95%;
        left: 5; /*  */
    }

    .terminal-input {
        width: 90%; /*  */
        font-size: 12px; /*  */
    }

    button.text-xl {
        width: auto; /*  */
        font-size: 16px; /*  */
        margin-left: 5px; /*  */
        padding: 10px; /*  */
    }

    /*  */
    .ai-text {
        font-size: 15px; /*  */
        white-space: pre-wrap; /*  */
        overflow-x: hidden; /*  */
        overflow-y: auto; /*  */
    }
    

    #response {
        font-size: 12px; /*  */
    }

}

@media (max-width: 480px) {
    /*  */
    .terminal-input {
        font-size: 10px; /*  */
    }

    button.text-xl {
        font-size: 14px; /*  */
        padding: 8px; /*  */
    }

    .ai-text, #response {
        font-size: 10px; /*  */
    }
}