/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "MS Sans Serif", Arial, sans-serif;
    background: #008080;
}

/* Loading screen */

#loading-screen {
    position: fixed;
    inset: 0;

    background: #008080;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.loading-content {
    width: 500px;

    background: #c0c0c0;

    padding: 40px;

    text-align: center;

    border-top: 3px solid white;
    border-left: 3px solid white;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;
}

.loading-content h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

.loading-content p {
    margin-bottom: 15px;
}

/* Progress bar */

.progress-container {
    width: 100%;
    height: 25px;

    background: white;

    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;

    padding: 2px;
}

#progress-bar {
    width: 0%;
    height: 100%;

    background: #000080;
}

/* Button */

#cancel-button {
    margin-top: 25px;

    padding: 6px 20px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-family: inherit;
    font-size: 14px;
}

#cancel-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

/* Portfolio */

#portfolio {
    display: none;
}
#Windows_98_logo{
    width: 200px;
}
/* =========================
   WINDOWS 98 DESKTOP
   ========================= */

#portfolio {
    position: fixed;
    inset: 0;

    background: #008080;

    display: none;

    overflow: hidden;
}

.desktop {
    position: absolute;
    inset: 0;

    padding: 20px;
}

/* Desktop icons */

.desktop-icon {
    width: 90px;

    margin-bottom: 25px;

    text-align: center;

    color: white;

    font-size: 13px;

    cursor: pointer;

    user-select: none;
}

.desktop-icon .icon {
    font-size: 38px;

    margin-bottom: 5px;
}

.desktop-icon span {
    display: inline-block;

    padding: 2px 3px;
}

/* Selected icon */

.desktop-icon:hover span {
    background: #000080;
}

/* =========================
   TASKBAR
   ========================= */

.taskbar {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35px;

    background: #c0c0c0;

    border-top: 2px solid white;

    display: flex;
    align-items: center;

    padding: 3px;
}

/* Start button */

.start-button {
    height: 28px;

    padding: 2px 10px;

    background: #c0c0c0;

    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    cursor: pointer;
}

.start-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

/* Divider */

.taskbar-divider {
    height: 25px;

    width: 2px;

    margin-left: 6px;
    margin-right: 6px;

    border-left: 1px solid #808080;
    border-right: 1px solid white;
}

/* Clock */

.taskbar-clock {
    margin-left: auto;

    height: 27px;

    min-width: 75px;

    padding: 5px 8px;

    text-align: center;

    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid white;
    border-bottom: 2px solid white;

    font-size: 13px;
}
.window {
    position: absolute;

    width: 500px;
    min-height: 300px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    display: none;
}

.window-titlebar {
    height: 25px;

    background: #000080;

    color: white;

    display: flex;
    align-items: center;

    padding-left: 6px;

    font-weight: bold;
}

.close-button {
    margin-left: auto;

    width: 22px;
    height: 20px;

    margin-right: 3px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-weight: bold;

    cursor: pointer;
}

.window-content {
    padding: 20px;

    color: black;

    font-size: 14px;
}
#start_icon{
    width: 40px;
}
.window-content h2 {
    margin-bottom: 10px;
}

.window-content h3 {
    margin-top: 15px;
    margin-bottom: 8px;
}

.window-content p {
    margin: 6px 0;
    line-height: 1.4;
}

.window-content ul {
    margin: 8px 0 15px 25px;
}

.window-content li {
    margin-bottom: 4px;
}

.window-content hr {
    margin: 10px 0 15px;
    border: none;
    border-top: 1px solid #808080;
}

.win-button {
    padding: 5px 15px;
    margin-right: 8px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-family: inherit;
    cursor: pointer;
}

.win-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}
.start-button {
    height: 28px;
    padding: 2px 6px;

    display: flex;
    align-items: center;
    gap: 4px;

    background: #c0c0c0;

    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    cursor: pointer;
}

.start-button span {
    display: flex;
    align-items: center;
}

#start_icon {
    width: 20px;
    height: 20px;

    display: block;
}
/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 600px) {

    /* =========================
       DESKTOP
       ========================= */

    .desktop {
        padding: 15px;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 90px;

        align-content: start;
        justify-items: center;
    }


    /* =========================
       DESKTOP ICONS
       ========================= */

    .desktop-icon {
        width: 80px;
        margin-bottom: 0;

        font-size: 12px;
    }

    .desktop-icon .icon {
        font-size: 32px;
        margin-bottom: 3px;
    }

    .desktop-icon:hover span,
    .desktop-icon:active span {
        background: #000080;
    }


    /* =========================
       WINDOWS
       ========================= */

    .window {
        width: calc(100% - 20px);
        height: calc(100% - 60px);

        min-height: 0;

        left: 10px;
        top: 10px;

        transform: none;
    }


    /* =========================
       WINDOW TITLE BAR
       ========================= */

    .window-titlebar {
        height: 28px;
    }


    /* =========================
       WINDOW CONTENT
       ========================= */

    .window-content {
        height: calc(100% - 28px);

        overflow-y: auto;

        padding: 15px;

        font-size: 14px;
    }


    /* =========================
       TASKBAR
       ========================= */

    .taskbar {
        height: 40px;
    }


    .start-button {
        height: 32px;
    }


    .taskbar-clock {
        height: 30px;

        min-width: 65px;

        padding: 5px;

        font-size: 12px;
    }


    /* =========================
       LOADING SCREEN
       ========================= */

    .loading-content {
        width: calc(100% - 30px);

        padding: 25px 20px;
    }

    .loading-content h1 {
        font-size: 26px;
    }


    /* =========================
       BUTTONS
       ========================= */

    .win-button {
        margin-bottom: 8px;
    }

}
