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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #020611;
    color: #82aaff;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.fake-bg {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: 
        radial-gradient(circle at center, transparent 30%, rgba(2, 6, 17, 0.8) 70%),
        linear-gradient(rgba(77, 184, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 184, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center center;
    z-index: 1;
}

.hidden {
    display: none !important;
}

.terminals, .main-terminal {
    display: flex;
    flex-direction: column;
    background-color: rgba(10, 2, 2, 0.7);
    border: 1px solid rgba(77, 184, 255, 0.25);
    border-radius: 12px;
    box-shadow: -10px 15px 35px rgba(77, 184, 255, 0.02), 10px 15px 35px rgba(77, 184, 255, 0.02);
}

.terminals-header, .main-terminal-header {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(77, 184, 255, 0.03);
    color: rgba(77, 184, 255, 0.7);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(77, 184, 255, 0.25);
}

.main-close-btn, .main-min-btn, .main-max-btn { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin-right: 6px; 
}

.main-close-btn { background-color: #ff5370; }
.main-min-btn { background-color: #ffcb6b; }
.main-max-btn { background-color: #c3e88d; }

.main-terminal-title { 
    margin-left: 10px; 
}

.bg-term {
    position: absolute;
    opacity: 0.7;
}

.t1 { top: 5%; left: 4%; width: 47%; height: 28%; }
.t2 { top: 9%; right: 3%; width: 44%; height: 28%; }
.t3 { bottom: 4%; left: 3%; width: 46%; height: 28%; }
.t4 { bottom: 8%; right: 2%; width: 48%; height: 28%; }

.code-stream {
    font-family: 'Fira Code', sans-serif; 
    font-size: 0.45rem;
    padding: 8px;
    color: #82aaff;
    overflow: hidden;
    line-height: 1.4;
}

.center-window {
    position: absolute;
    top: 50.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    min-height: 170px;
    max-width: 650px;
    z-index: 10;
    box-shadow: -10px 15px 35px rgba(77, 184, 255, 0.02), 10px 15px 35px rgba(77, 184, 255, 0.02);
}

.main-terminal-body {
    padding: 5px; 
    text-align: left; 
}

.loading-body { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    margin-top: auto;
    margin-bottom: auto;
}

.loading-text { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1rem; 
    font-weight: 500;
    color: #82aaff;
    margin-top: 10px; 
    margin-bottom: 15px; 
}

.progress-container {
    width: 90%; 
    height: 5px;
    background-color: #292d3e; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 10px;
}

.loading-bar { 
    height: 100%; 
    width: 0%; 
    background-color: #82aaff; 
    transition: width 0.3s ease; 
}

.blink { 
    font-family: 'Rajdhani', sans-serif; 
    color: #82aaff; 
    font-size: 0.7rem;
    margin-bottom: 10px; 
    animation: blinkAnim 1.7s infinite; 
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.85) 40%, rgba(120, 0, 0, 0.5) 100%);
    backdrop-filter: blur(3px);
    z-index: 10; 
    opacity: 0;
    animation: fadeIn 0.4s 0.2s forwards; 
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.warning-terminal {
    display: flex;
    flex-direction: column;
    width: 94%;
    max-width: 420px;
    background-color: rgba(10, 2, 2, 0.7);
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-radius: 12px;
    box-shadow: -10px 15px 35px rgba(77, 184, 255, 0.02), 10px 15px 35px rgba(77, 184, 255, 0.02);
    z-index: 20;
    animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s forwards;
}

@keyframes popUp {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.warning-terminal-header {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(77, 184, 255, 0.03);
    color: #fcfcfc;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 77, 77, 0.35);
}

.btn-close, .btn-min, .btn-max { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin-right: 6px; 
}

.btn-close { background-color: rgba(255, 51, 51, 0.7); }
.btn-min { background-color: rgba(255, 51, 51, 0.5); }
.btn-max { background-color: rgba(255, 51, 51, 0.4); }

.warning-terminal-title {
    margin-left: 10px; 
}

.warning-terminal-body {
    padding: 5px; 
    text-align: left; 
}

.error-log {
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff3333; 
    padding: 6px;
}

p.error-content {
    font-family: 'Fira Code', sans-serif;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 500;
    color: #fcfcfc;
    padding: 6px;
    position: relative;
}

.buttons {
    position: relative;
    display: flex;
    justify-content: end;
    padding: 9px;
    gap: 8px;
}

.btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    min-width: 66px;
    font-weight: 400;
    padding: 3px 5px;
    background: transparent;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yes {
    color: #ffffff; 
    border-color: rgba(255, 77, 77, 0.35); 
    background-color: rgba(255, 51, 51, 0.18);
}

.yes:hover {
    background-color: rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
    transform: scale(1.05);
}

.no {
    color: #ffffff;
    border-color: #4db8ff;
    background-color: rgba(77, 184, 255, 0.2);
    
}
.no:hover {
    background-color: rgba(77, 184, 255, 0.3);
    box-shadow: 0 0 20px rgba(77, 184, 255, 0.3);
    transform: scale(1.05);
} 


@media (min-width: 375px) {    
    .blink { 
        font-size: 0.9rem; 
        margin-top: 10px; 
        margin-bottom: 0px; 
    }

    .main-terminal-body { 
    padding: 20px 30px; 
    text-align: left; 
    }

    .loading-text { 
        font-size: 1.2rem;
        margin-top: 0px;  
        margin-bottom: 20px; 
    }

    .progress-container {
        width: 100%;  
        height: 6px;
    }

    .code-stream {
        font-size: 0.58rem;
        line-height: 1.4;
}
}

@media (min-width: 768px) {
    .t1 { top: 3%; left: 3%; width: 40%; height: 33.5%; }
    .t2 { top: 5%; right: 3%; width: 50%; height: 33.5%; }
    .t3 { bottom: 2%; left: 5%; width: 48%; height: 33.5%; }
    .t4 { bottom: 4%; right: 6%; width: 37%; height: 33.5%; }
    
    .blink { 
        font-size: 0.9rem; 
        margin-top: 10px; 
        margin-bottom: 0px; 
    }

    .main-terminal-body { 
    padding: 20px 30px; 
    text-align: left; 
    }

    .loading-text { 
        font-size: 1.2rem;
        margin-top: 0px;  
        margin-bottom: 20px; 
    }

    .progress-container {
        width: 100%;  
        height: 6px;
    }

    .code-stream {
    font-size: 0.75rem;
    line-height: 1.4;
}
}