@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

.hero-section {
    background: url('assets/Bg.jpg') center/cover fixed no-repeat;
    min-height: 100vh;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

body.dragging {
    user-select: none;
}

#boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #0f0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#boot-content {
    border: 1px solid #0f0;
    padding: 20px;
    width: 90%;
    max-width: 450px;
    box-sizing: border-box;
}

#boot-text {
    animation: flicker 0.09s infinite;
    font-size: clamp(11px, 2.2vw, 14px);
    line-height: 1.5;
    white-space: pre-wrap;
}

@keyframes flicker {
    0% {
        opacity: 0.3;
    }

    13% {
        opacity: 0.6;
    }

    25% {
        opacity: 0.9;
    }
}

#ok-btn {
    display: none;
    margin: 20px auto 0;
    padding: 12px 20px;
    background: transparent;
    color: #0f0;
    border: 1px solid #0f0;
    cursor: pointer;
    font-family: inherit;
    animation: fadeIn 2s;
    width: auto;
    min-width: 180px;
    max-width: 90%;
    white-space: nowrap;
}

@media (max-width: 480px) {
    #ok-btn {
        padding: 10px 16px;
        min-width: 150px;
    }
}

#ok-btn:hover {
    background: #0f0;
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

marquee {
    margin-top: 45px;
}

#desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    cursor: pointer;
    user-select: none;
}

.desktop-icon img {
    width: 48px;
    height: 48px;
}

@media (max-width:768px) {

    #desktop-icons {
        top: 10px;
        left: 12px;
    }

    .desktop-icon-align {
        margin-top: 12px !important;
    }

    .desktop-icon {
        width: 65px;
        margin-bottom: 8px;
    }

    .desktop-icon img {
        width: 30px;
        height: 30px;
    }

    .desktop-icon span {
        font-size: 9px;
    }

}

.desktop-icon span {
    margin-top: 5px;
    color: white;
    text-align: center;
    font-size: 12px;
    text-shadow: 1px 1px 2px black;
    z-index: 3;
}

.desktop-icon:hover {
    background: rgba(0, 120, 215, .3);
}

.desktop-icon-align {
    margin-top: 20px;
}

#explorer-window {

    display: none;

    position: absolute;

    top: 10%;
    left: 10%;

    width: 75%;
    max-width: 900px;

    height: 70%;

    background: #ece9d8;
    border: 2px solid #245edb;

    z-index: 5000;

    box-shadow: 0 0 30px rgba(0, 0, 0, .5);

}

.explorer-topbar {

    height: 35px;

    background: linear-gradient(to bottom,
            #4f8df7,
            #245edb);

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 10px;

    cursor: grab;
}

.explorer-topbar:active {
    cursor: grabbing;
}

.explorer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.explorer-title img {
    width: 16px;
    height: 16px;
    image-rendering: auto;
}

#close-explorer {

    width: 28px;
    height: 22px;

    border: none;

    background: transparent;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: .15s;

}

#close-explorer:hover {

    background: linear-gradient(to bottom,
            #ff6b6b,
            #d80000);

    border: 1px solid #fff;

}

#network-window {

    display: none;

    position: absolute;

    top: 15%;
    left: 15%;

    width: 70%;
    max-width: 900px;

    height: 65%;

    background: #ece9d8;
    border: 2px solid #245edb;

    z-index: 5000;

    box-shadow: 0 0 30px rgba(0, 0, 0, .5);

}

.network-content {

    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    padding: 25px;

}

.network-app {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px;
}

.network-app i {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;

    color: #000;
}

.network-app span {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #000;
}

.network-app:hover {

    background: rgba(0, 120, 215, .2);

}

#close-network {
    width: 28px;

    height: 22px;

    border: none;

    background: transparent;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: .15s;
}

#close-network:hover {

    background: linear-gradient(to bottom,
            #ff6b6b,
            #d80000);

    border: 1px solid #fff;

}

#close-mail {
    width: 28px;

    height: 22px;

    border: none;

    background: transparent;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: .15s;
}

#close-mail:hover {

    background: linear-gradient(to bottom,
            #ff6b6b,
            #d80000);

    border: 1px solid #fff;

}

#mail-window {
    display: none;
    position: absolute;
    top: 20%;
    left: 20%;
    width: 500px;
    height: 420px;
    background: #ece9d8;
    border: 2px solid #245edb;
    z-index: 5000;
}

.mail-content {
    padding: 15px;
    font-family: Tahoma;
    font-size: 12px;
    color: #000;
}

.mail-content label {
    display: block;
    margin-top: 10px;
    margin-bottom: 3px;
    font-weight: bold;
}

.mail-content input,
.mail-content textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    border: 2px inset #fff;
    background: #fff;
    font-family: Tahoma;
    font-size: 12px;
}

.mail-content textarea {
    height: 120px;
    resize: none;
}

.mail-counter {
    text-align: right;
    font-size: 11px;
    margin-top: 5px;
    color: #333;
}

.mail-content button {
    margin-top: 12px;
    padding: 4px 15px;
    border: 2px outset #fff;
    background: #d4d0c8;
    cursor: pointer;
}

.mail-content button:active {
    border: 2px inset #fff;
}

#notepad-window {
    display: none;
    position: absolute;
    overflow: hidden !important;

    top: 18%;
    left: 25%;

    width: 520px;
    height: 420px;

    background: #ffffff;
    border: 2px solid #245edb;

    box-shadow: 0 0 25px rgba(0, 0, 0, .5);
    z-index: 5000;
}

.notepad-topbar {
    background: linear-gradient(to bottom, #4f8df7, #245edb);
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;

    cursor: grab;
}

.notepad-topbar:active {
    cursor: grabbing;
}

.notepad-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notepad-title img {
    width: 16px;
    height: 16px;
}

.notepad-menu {
    background: #ece9d8;
    color: #000;

    padding: 4px 10px;
    font-size: 12px;
    font-family: Tahoma;

    display: flex;
    gap: 15px;
}

.notepad-menu span {
    cursor: default;
    padding: 2px 5px;
}

.notepad-menu span:hover {
    background: #316ac5;
    color: white;
}

.notepad-body {
    height: calc(100% - 70px);
    overflow: hidden !important;
}

.notepad-body textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    border: none;
    outline: none;

    padding: 10px;

    font-family: Consolas, monospace;
    font-size: 12px;

    resize: none;

    background: white;
    color: black;
}

#close-notepad {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#close-notepad:hover {
    background: red;
}

.dos {
    background: #000;
    border: 1px solid #707074;
    width: min(95%, 900px);
    height: min(75vh, 700px);
    overflow-y: auto;
    position: relative;
}

#cmd-window {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: calc(50% - 400px);
    z-index: 2;
}

@media (max-width:768px) {

    #cmd-window {

        top: 300px !important;

        left: 50% !important;

        transform: translateX(-50%) !important;

        width: 94% !important;

        height: 55vh !important;
    }

}

#cmd-drag-handle {
    cursor: grab;
}

#cmd-drag-handle:active {
    cursor: grabbing;
}

.window {
    border-radius: 2px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .55);
}

.explorer-content,
.network-content,
.mail-content,
.notepad-body {

    overflow: auto;
}

@media (max-width:768px) {

    .window {

        width: 80vw !important;

        max-width: none !important;

        height: 70vh !important;

        left: 57% !important;

        top: 50% !important;

        transform: translate(-50%, -50%) !important;
    }

}

.topborder {
    background: #fff;
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.cmdIco {
    position: absolute;
    top: 9px;
    left: 10px;
    width: 22px;
}

.title {
    color: #000;
    font-size: 13px;
    position: absolute;
    top: -11px;
    left: 40px;
}

.X {
    color: #000;
    font-size: 20px;
    font-weight: bold;
    float: right;
    padding: 7px 20px;
    padding-bottom: 10px;
    text-decoration: none;
}

.X:hover {
    background: #ff0008;
    color: #fff;
}

.mainpart {
    color: #fff;
    font-weight: 900;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    font-size: clamp(12px, 3.5vw, 14px);
}

@media (max-width: 600px) {
    .insidebox .startpoint {
        font-size: 16px;
    }

    .mainpart {
        white-space: pre;
        font-size: clamp(9px, 3.5vw, 11px);
    }
}

@media (max-width:768px) {

    marquee {
        margin-top: 15px;
    }

    .dos {
        width: 97%;
        margin-top: 20px;
    }

    .title {
        font-size: 11px;
    }

    .cmdIco {
        width: 18px;
    }

}

.insidebox {
    padding: 10px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.startpoint {
    color: #a9a9a9;
}

#cmdBlinkTxt {
    white-space: pre-wrap;
}

.gray-text {
    color: #a9a9a9;
}

.white-text {
    color: #fff;
    font-weight: 900;
}

.green-text {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.7);
}

.green-text2 {
    color: #128e12;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5), 0 0 7px rgba(0, 255, 0, 0.3);
}

.red-text {
    color: #c52020;
}

#cmd-input {
    outline: none;
    border: none;
    background: transparent;
    color: #fff;
    min-width: 10px;
    display: inline-block;
    border-bottom: 1px solid #555;
}

.coderpart,
.ps {
    position: fixed;
    bottom: 0;
    background: #d4d0c8;
    border: 2px outset #fff;
    padding: 5px;
    font-size: 14px;
    z-index: 1000;
}

.coderpart {
    right: 0;
}

.ps {
    left: 0;
}

.coderpart a,
.ps a {
    padding: 4px 65px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.2s;
}

.coder:hover,
.ps a:hover {
    color: #fff;
    background: #000;
    transition: 0.2s;
}

@media (max-width: 768px) {

    .coderpart a,
    .ps a,
    .radio-btn a {
        padding: 4px 12px;
    }

}

@media (max-width: 480px) {
    .dos {
        width: 95%;
        margin-top: 12%;
    }

    .coderpart,
    .ps {
        font-size: 12px;
    }
}

.terminal-window::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-8px, 4px);
    }

    40% {
        transform: translate(-8px, -4px);
    }

    60% {
        transform: translate(8px, 4px);
    }

    80% {
        transform: translate(8px, -4px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch-effect {
    animation: glitch 0.20s cubic-bezier(.25, .46, .45, .94) both;
}

#cmd-input {
    position: relative;
    outline: none;
    caret-color: transparent;
}

#cmd-input::after {
    content: "";
    display: inline-block;
    width: .6ch;
    height: 1.2em;
    background: #00ff00;
    margin-left: .15ch;
    vertical-align: bottom;
    animation: blink .9s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}


.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 248, 0, 0.6);
    box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.8);
    pointer-events: none;
    z-index: 999999;
    animation: scan 3s forwards infinite;
    opacity: 0.15;
}

@keyframes scan {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}


.radio-btn {
    position: fixed;
    top: 0;
    right: 0;
    background: #d4d0c8;
    border: 2px outset #fff;
    padding: 5px;
    font-size: 14px;
    z-index: 1000;
}

.radio-btn a {
    padding: 4px 65px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.2s;
}

.radio-btn a:hover {
    color: #fff;
    background: #000;
    transition: 0.2s;
}

#launch-popup {

    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 320px;

    background: #fff;

    border: 2px solid #245edb;

    z-index: 99999;

    box-shadow: 0 0 25px rgba(0, 0, 0, .5);

}

.launch-topbar {

    height: 32px;

    background: linear-gradient(to bottom,
            #4f8df7,
            #245edb);

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 10px;

}

.launch-topbar button {

    border: none;

    background: transparent;

    color: white;

    font-weight: bold;

    cursor: pointer;

}

.launch-content {

    padding: 25px;

    color: black;

    text-align: center;

}

@media (max-width:768px) {

    .explorer-content,
    .network-content,
    .mail-content,
    .notepad-body {

        font-size: 13px;
    }

    input,
    textarea,
    button {

        font-size: 13px;
    }

}

.coming-soon {
    padding: 20px;
    color: #000;
    font-family: Tahoma;
}