:root {
    --bg-color: #0c0c0c;
    --text-color: #62b7ec;
    --glow-color: rgba(25, 43, 236, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 16px;
    overflow: hidden;
}

.terminal {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-shadow: 0 0 5px var(--glow-color);
}

.scanlines {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.15));
    background-size: 100% 4px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.terminal::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 11;
    pointer-events: none;
}

.terminal-content {
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 5;
    padding-bottom: 2rem;
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--text-color);
}

#output {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 10px;
    line-height: 1.5;
}


.item {
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
    white-space: pre-wrap;
    word-wrap: break-word;
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.banner {
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.25;
    white-space: pre-wrap;
    word-break: break-all;
}

@media screen and (max-width: 768px) {
    .banner {
        font-size: 8px;
        line-height: 1.1;
    }
}



.sub-banner {
    color: var(--text-color);
    margin-bottom: 24px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-link,
.api-link,
.news-link {
    color: #87f2fa;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #87f2fa;
    padding: 2px 10px;
    margin: 4px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
    border-radius: 2px;
}

.btn-link:hover,
.api-link:hover,
.news-link:hover {
    background-color: #ffffff;
    color: var(--bg-color);
    text-decoration: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 255, 255, 0.7);
    text-shadow: none;
    border-color: #ffffff;
}






.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #58a6ff;
    margin-right: 12px;
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
    white-space: pre;
    align-items: center;
}

.placeholder-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 1;
    display: none;
}

.command-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: text;
}

.cursor {
    animation: blink 1.2s step-end infinite;
    display: inline-block;
    min-width: 9.6px;
    text-align: center;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes flicker {
    0% {
        opacity: 0.95;
    }

    5% {
        opacity: 0.85;
    }

    10% {
        opacity: 0.95;
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }

    55% {
        opacity: 0.9;
    }

    60% {
        opacity: 0.95;
    }

    100% {
        opacity: 1;
    }
}

.action-btn {
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--text-color);
    padding: 6px 12px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.action-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.gradient-text {
    background: linear-gradient(90deg, rgba(87, 153, 179, 1) 0%, rgba(109, 207, 150, 1) 50%, rgb(67, 250, 179) 100%);
    background-size: 300px 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientFlow 2s linear infinite;
    display: inline-block;
    font-weight: bold;
    font-size: 1.4em;
    filter: drop-shadow(0 0 6px rgba(109, 207, 150, 0.6));
    padding: 0 4px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}