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

body {
    font-family: 'Courier New', Courier, monospace;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background-image 0.3s ease-in;
}

body.bg-loaded {
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.terminal {
    width: 100%;
    max-width: 900px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.button.close {
    background: #ff5f56;
}

.button.minimize {
    background: #ffbd2e;
}

.button.maximize {
    background: #27c93f;
}

.title {
    color: #8b949e;
    font-size: 13px;
}

.terminal-body {
    padding: 20px;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.6;
    max-height: 70vh;
    overflow-y: auto;
}

#output {
    margin-bottom: 20px;
}

.output-line {
    margin-bottom: 8px;
}

.command {
    color: #58a6ff;
}

.success {
    color: #3fb950;
}

.error {
    color: #f85149;
}

.info {
    color: #79c0ff;
}

.link {
    color: #58a6ff;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

.section {
    margin: 20px 0;
}

.section-title {
    color: #58a6ff;
    font-weight: bold;
    margin-bottom: 10px;
}

.prompt {
    color: #3fb950;
}

@media (max-width: 768px) {
    .terminal {
        max-width: 100%;
    }

    .terminal-body {
        font-size: 13px;
        padding: 15px;
    }
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #4d4d4d;
}
