/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    background-color: #000000;
}


body {
    margin: 0;

    background-color: #000000;
    color: #d8d8d8;

    font-family: Consolas, "Courier New", monospace;
    font-size: 17px;
    line-height: 1.6;
}


a {
    color: inherit;
}


button,
input {
    font: inherit;
}


.page {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;
    padding: 35px 0 60px;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}


.site-title {
    color: #ffffff;

    font-size: 30px;
    font-weight: normal;
    letter-spacing: 1px;

    text-decoration: none;
}


.site-title:hover,
.site-title:focus {
    color: #5fffff;

    outline: none;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.language {
    flex: 0 0 auto;

    color: #777777;

    white-space: nowrap;
}


.language-option {
    color: #777777;

    font-size: 14px;

    text-decoration: none;
}


.language-option:hover,
.language-option:focus {
    color: #ffffff;

    outline: none;
}


.language-option.active {
    color: #5fffff;

    font-size: 18px;
    font-weight: bold;
}


/* =========================================================
   SEPARATORS
   ========================================================= */

.separator {
    width: 100%;

    margin: 24px 0;

    overflow: hidden;

    color: #555555;

    white-space: nowrap;
    user-select: none;
}


/* =========================================================
   STUDIO DESCRIPTION
   ========================================================= */

.intro {
    max-width: 900px;

    color: #eeeeee;
}


.intro p {
    margin: 0;
}


.studio-visits {
    margin-top: 8px !important;

    color: #888888;
}


#studio-visit-count {
    color: #ffffff;
}


/* =========================================================
   MENU HINT
   ========================================================= */

.menu-status {
    min-height: 1.6em;

    margin-bottom: 10px;

    color: #aaaaaa;
}


.menu-status-prefix {
    margin-right: 6px;

    color: #5fffff;
}


/* =========================================================
   MAIN MENU
   ========================================================= */

.main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;

    gap: 12px 28px;
}


.menu-item {
    position: relative;
}


.menu-trigger,
.menu-static {
    margin: 0;
    padding: 3px 1px;

    border: 0;

    background: none;
    color: #d8d8d8;

    font: inherit;
    text-decoration: none;
}


.menu-trigger {
    cursor: pointer;
}


.menu-trigger:hover,
.menu-trigger:focus,
.menu-item.open > .menu-trigger,
.menu-static:not(.disabled):hover,
.menu-static:not(.disabled):focus {
    background-color: #d8d8d8;
    color: #000000;

    outline: none;
}


.menu-static.disabled {
    color: #666666;

    cursor: default;
}


/* =========================================================
   SUBMENU
   ========================================================= */

.submenu {
    display: none;

    position: absolute;
    z-index: 50;

    top: calc(100% - 1px);
    left: 0;

    min-width: 275px;

    margin: 0;
    padding: 4px;

    border: 1px solid #d8d8d8;

    background-color: #000000;
}


.menu-item:hover .submenu,
.menu-item:focus-within .submenu,
.menu-item.open .submenu {
    display: block;
}


.submenu a {
    display: block;

    padding: 3px 8px;

    color: #d8d8d8;

    text-decoration: none;
    white-space: nowrap;
}


.submenu a::before {
    content: "> ";

    color: #777777;
}


.submenu a:hover,
.submenu a:focus {
    background-color: #d8d8d8;
    color: #000000;

    outline: none;
}


.submenu a:hover::before,
.submenu a:focus::before {
    color: #000000;
}


/* =========================================================
   STUDIO SCREEN
   ========================================================= */

.studio-screen {
    width: min(960px, 100%);

    margin: 0 auto;

    border: 1px solid #888888;

    background-color: #000000;
}


.studio-screen-bar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    min-height: 30px;

    padding: 2px 9px;

    background-color: #d8d8d8;
    color: #000000;

    user-select: none;
}


#studio-screen-mode {
    color: #444444;

    font-size: 14px;
}


.studio-screen-content {
    width: 100%;
    height: 560px;

    overflow-y: auto;

    background-color: #000000;
    color: #d8d8d8;

    scrollbar-color: #777777 #000000;
}


/* =========================================================
   STUDIO SCREEN PAGES
   ========================================================= */

.screen-page {
    min-height: 100%;

    padding: 18px;
}


.screen-page h2 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 24px;
    font-weight: normal;
}


.screen-page h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 20px;
    font-weight: normal;
}


.screen-description {
    margin: 0;

    color: #aaaaaa;
}


.screen-separator {
    width: 100%;

    margin: 24px 0;

    overflow: hidden;

    color: #555555;

    white-space: nowrap;
    user-select: none;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.project-entry {
    margin: 0;
}


.project-main {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 40px;

    align-items: start;
}


.project-description {
    margin: 0 0 18px;

    color: #aaaaaa;
}


.project-data,
.project-stats {
    display: grid;

    grid-template-columns: max-content 1fr;

    gap: 3px 28px;
}


.project-stats {
    margin-top: 18px;
}


.project-label {
    color: #888888;
}


.project-value,
.project-stat-value {
    color: #ffffff;
}


/* =========================================================
   PROJECT SCREENSHOT
   ========================================================= */

.project-image {
    width: 100%;
}


.project-image a {
    display: block;

    border: 1px solid #555555;

    line-height: 0;
}


.project-image a:hover,
.project-image a:focus {
    border-color: #5fffff;

    outline: none;
}


.project-screenshot {
    display: block;

    width: 100%;
    height: auto;

    background-color: #111111;
}


.project-image-note {
    margin-top: 5px;

    color: #777777;

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-text {
    max-width: 820px;
}


.about-text p {
    margin: 0 0 16px;
}


/* =========================================================
   STUDIO CONSOLE
   ========================================================= */

.studio-console {
    width: 100%;
    height: 100%;

    padding: 18px;

    overflow-y: auto;

    background-color: #000000;
    color: #d8d8d8;

    font-size: 18px;
    line-height: 1.4;

    scrollbar-color: #777777 #000000;
}


.console-title {
    color: #ffffff;
}


.console-info {
    margin-bottom: 18px;

    color: #888888;
}


.console-line {
    min-height: 1.4em;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


.console-command-line {
    display: flex;
    align-items: center;

    width: 100%;
}


.console-prompt {
    flex: 0 0 auto;

    color: #ffffff;

    white-space: nowrap;
}


#console-input {
    flex: 1;

    min-width: 20px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: #ffffff;

    caret-color: #ffffff;
}


#console-input:disabled {
    color: #777777;
}


/* =========================================================
   MOBILE VERSION
   ========================================================= */

@media (max-width: 750px) {

    body {
        font-size: 15px;
    }


    .page {
        width: min(100% - 24px, 1100px);

        padding-top: 20px;
    }


    .topbar {
        gap: 15px;
    }


    .site-title {
        font-size: 22px;
    }


    .language-option {
        font-size: 13px;
    }


    .language-option.active {
        font-size: 16px;
    }


    .main-menu {
        gap: 8px 18px;
    }


    .submenu {
        min-width: 230px;
    }


    .studio-screen-content {
        height: 420px;
    }


    .studio-console {
        padding: 12px;

        font-size: 15px;
    }


    .screen-page {
        padding: 12px;
    }


    #studio-screen-mode {
        font-size: 12px;
    }


    .project-main {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    .project-image {
        width: min(320px, 100%);
    }


    .project-data,
    .project-stats {
        grid-template-columns: 1fr;

        gap: 1px;
    }


    .project-data .project-label:not(:first-child),
    .project-stats .project-label:not(:first-child) {
        margin-top: 8px;
    }

}
