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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', Courier, 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.terminal {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.banner {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner pre {
    color: #ffffff;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    font-family: 'Courier New', Courier, 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.2;
    display: inline-block;
    min-width: 680px;
    text-align: center;
    margin: 0 auto;
}

.contract-address {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Courier New', Courier, 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.contract-address a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contract-address a:hover {
    opacity: 0.7;
}

.terminals-container {
    width: 100%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.terminal-window {
    width: 100%;
    border: 1px solid #ffffff;
    padding: 15px;
    min-height: 60px;
    background-color: #000000;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.terminal-window.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-window.hidden {
    display: none;
}

.terminal-window.initial-query {
    opacity: 1;
    transform: translateY(0);
}

.terminal-window.initial-query::before {
    display: none;
}

.terminal-window.initial-query .command-line {
    color: #ffffff;
}

.command-line {
    color: #ffffff;
}

.loading-dots {
    display: none;
    margin-left: 5px;
}

.command-prompt {
    color: #ffffff;
}

.loading-dots::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.terminal-window::before {
    content: '$ ';
    color: #ffffff;
    margin-right: 5px;
}

.terminal-window .typed-text {
    color: #ffffff;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.terminal-window .cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: #ffffff;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .terminal {
        padding: 15px;
    }
    
    .terminals-container {
        max-width: 95%;
    }
    
    .terminal-window {
        padding: 10px;
    }
    
    .banner pre {
        font-size: 10px;
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .banner pre {
        font-size: 8px;
        min-width: 400px;
    }
}

@media (min-width: 1200px) {
    .terminals-container {
        max-width: 80%;
    }
}
