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

html,
body {
    height: 100%;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    background-image: url("image/walpaper.jpg");
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.terminal-window {
    width: 95vw;
    max-width: 600px;
    height: 70vh;
    max-height: 500px;
    border-radius: 10px;
    margin: auto;
    position: relative;
    top: 15vh;
    background: rgba(48, 53, 58, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.terminal-window header {
    background: #e0e8f0;
    height: 2rem;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}

.terminal-window header .button {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.4rem;
    border-radius: 50%;
}

.button.green {
    background: #3bb662;
}

.button.yellow {
    background: #e5c30f;
}

.button.red {
    background: #e75448;
}

.terminal-window .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    pointer-events: none;
}

.terminal-window .shortcut {
    position: absolute;
    right: 0.8rem;
    color: #333;
    font-size: 1rem;
    pointer-events: none;
}

.terminal {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: clamp(12px, 2.5vw, 16px);
    line-height: 1.6;
    word-wrap: break-word;
}

.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
    -webkit-animation: blink 0.7s infinite;
    color: #00ffff !important;
    font-weight: 900;
}

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

.gray {
    color: gray;
}

.green {
    color: lightgreen;
}

a {
    color: #00ffff;
    text-decoration: none;
    word-break: break-word;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .terminal-window {
        width: 90vw;
        height: 65vh;
        top: 10vh;
    }

    .terminal {
        font-size: 14px;
        padding: 0.8rem;
    }
}

@media (max-width: 400px) {
    .terminal-window {
        width: 95vw;
        height: 60vh;
        top: 10vh;
    }

    .terminal {
        font-size: 13px;
    }
}
