* {
    box-sizing: border-box;
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

[class*="col-"] {
    float: left;
    padding: 15px;
}
        
body { 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #4c719e;
    margin: 0;
}

main { 
    position: relative;
    background: #e8e8e8;
    margin: 1em auto; 
    width: 75vw;
    height: 95vh;
    padding: 0;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    overflow: hidden;
    border: 1px solid #000;
}

#mainContent {
    margin-top: 32px;
    margin-left: 8px;
    overflow-y: scroll;
    margin-right: 8px;
    margin-bottom: 8px;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #e8e8e8;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    text-decoration: none;
    max-width: 800px;
}

.screenshot {
    position: relative;
    overflow: hidden;
    border: 1px solid #707070;
    background: #fff;
    padding: 4px;
    width: calc(100% - 1rem);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.libutton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px;
    text-align: center;
    outline: none;
    text-decoration: none !important;
    color: #ffffff !important;
    width: 200px;
    height: 32px;
    border-radius: 16px;
    background-color: #0A66C2;
    font-family: "SF Pro Text", Helvetica, sans-serif;
  }

.maximized {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 auto !important;
}

.minimized {
    position: absolute !important;
    left: 3em;
    bottom: 0;
    width: 250px;
    height: 40px;
    margin: 0;
}

.minimized > #mainContent {
    overflow: hidden;
    height: 0;
}

.window-top-right-titlebar-no-maximize-button {
    background: url('./images/irix-win-top-right-no-maximize-button.png');
    position: absolute;
    top: 0;
    right: 0;
    height: 32px;
    width: 35px;
    z-index: -10000;
    image-rendering: pixelated;
}

.window-top-left {
    background: url('./images/irix-win-top-left.png');
    position: absolute;
    top: 0;
    left: 0;
    height: 32px;
    width: 35px;
    z-index: -10000;
    image-rendering: pixelated;
}

.window-top {
    background: url('./images/irix-win-top.png');
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    z-index: -10001;
    width: 100%;
    height: 32px;
    image-rendering: pixelated;
}

.window-top-right {
    background: url('./images/irix-win-top-right.png');
    position: absolute;
    top: 0;
    right: 0;
    height: 32px;
    width: 35px;
    z-index: -10000;
    image-rendering: pixelated;
}

.window-left {
    background: url('./images/irix-win-left.png');
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    height: 100%;
    z-index: -10001;
    image-rendering: pixelated;
}

.window-right {
    background: url('./images/irix-win-right.png');
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    height: 100%;
    z-index: -10001;
    image-rendering: pixelated;
}

.window-bottom-left {
    background: url('./images/irix-win-bottom-left.png');
    position: absolute;
    bottom: 0;
    left: 0;
    height: 8px;
    width: 8px;
    z-index: -10000;
    image-rendering: pixelated;
}

.window-bottom {
    background: url('./images/irix-win-bottom.png');
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -10001;
    width: 100%;
    height: 8px;
    image-rendering: pixelated;
}

.window-bottom-right {
    background: url('./images/irix-win-bottom-right.png');
    position: absolute;
    bottom: 0;
    right: 0;
    height: 8px;
    width: 8px;
    z-index: -10000;
    image-rendering: pixelated;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

.button {
    background: #e8e8e8;
    border: 2px solid #707070;
    border-radius: 0;
    box-shadow: inset 1px 1px 0px #ffffff;
    padding: 6px 12px;
    text-shadow: none;
    font-weight: normal;
    text-decoration: none;
    color: #000;
    display: inline-block;
    margin: 4px;
}

.button:hover {
    background: #d4d4d4;
}

.button:active {
    background: #c1c1c1;
    box-shadow: inset -1px -1px 0px #ffffff;
}

.gallery ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery ul li {
    display: inline;
}

.gallery ul li img {
    width: 250px;
    border: 1px solid #707070;
    padding: 4px;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

img.irix-ui {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

figure img {
    width: 100%;
}

.toolchest {
    top: 2em;
    left: 3em;
    position: fixed;
    background: #e8e8e8;
    width: 125px;
    border: 1px solid #000;
    z-index: 20000;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}

.toolchest-left {
    position: absolute;
    background-image: url('/images/toolchest-left.png');
    height: 25px;
    width: 4px;
    top: 0;
    left: 0;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.toolchest-handle {
    position: absolute;
    background-image: url('/images/toolchest-handle.png');
    height: 25px;
    width: 100%;
    z-index: -20;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.toolchest-right {
    position: absolute;
    background-image: url('/images/toolchest-right.png');
    height: 25px;
    width: 3px;
    top: 0;
    right: 0;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

.toolchest-title {
    text-align: center;
    width: 100%;
    height: 25px;
    font-style: italic;
    vertical-align: middle;
    font-weight: bold;
    margin: 0;    
    padding-top: 4px;
    -webkit-user-select: none;
    user-select: none;
    color: #000;
    text-shadow: 1px 1px 0px #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolchest-menu-item {
    position: relative;
    font-style: italic;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #707070;
    font-weight: bold;
    height: 25px;
    background: #e8e8e8;
    overflow: hidden;
}

.toolchest-menu-item:hover {
    background: #d4d4d4;
}

.menu-item-bg-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #707070;
    border-bottom: 1px solid #707070;
    z-index: -20;
}

.menu-item-bg-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 2px solid #ffffff;
    border-top: 1px solid #ffffff;
    border-right: 2px solid #707070;
    border-bottom: 1px solid #707070;
    z-index: -20;
}

.menu-item-bg-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 2px solid #ffffff;
    border-top: 1px solid #ffffff;
    border-right: 2px solid #707070;
    border-bottom: 2px solid #707070;
    z-index: -20;
}

.menu-item-bg-4 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 2px solid #ffffff;
    border-top: 1px solid #ffffff;
    border-right: 2px solid #707070;
    border-bottom: 2px solid #707070;
    z-index: -20;
}

.menu-text {
    position: relative;
    z-index: 1;
    padding: 4px 8px;
}

.menu-text a {
    color: #000;
    text-decoration: none;
}

.profile-header {
    padding: 1em;
    background: #f5f5f5;
    border: 1px solid #707070;
}

.profile-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #2d4359;
}

.profile-header h3 {
    margin: 0.5em 0;
    font-size: 1.2em;
    color: #4c719e;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.profile-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-sections section {
    flex: 1 1 300px;
}

.portfolio-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.portfolio-nav li {
    flex: 1 1 auto;
}

.portfolio-nav .button {
    display: block;
    width: 100%;
    text-align: center;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #707070;
    background: #fff;
    padding: 4px;
}



@media (max-width: 768px) {
    .profile-sections {
        flex-direction: column;
    }

    .profile-sections section {
        flex-basis: 100%;
    }
}

.linkedin-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0077b5;
    color: white;
    border-radius: 0;
    text-decoration: none;
    margin-top: 1em;
    border: 2px solid #005885;
    box-shadow: inset 1px 1px 0px rgba(255,255,255,0.2);
}

section {
    padding: 1em;
    background: #f5f5f5;
    border: 1px solid #707070;
}

section h4 {
    border-bottom: 2px solid #4c719e;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    color: #2d4359;
}

.portfolio-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.featured-work article {
    margin-bottom: 2em;
    padding: 1em;
    background: #fff;
    border: 1px solid #707070;
}

.featured-work h5 {
    margin: 0.5em 0;
    color: #2d4359;
}

th {
    padding: 8px;
    background: #4c719e;
    color: #fff;
}

td {
    padding: 8px;
    border: 1px solid #707070;
}

@media only screen and (max-width: 700px) {
    main {
        width: 95%;
    }
    
    .toolchest {
        display: none;
    }
}

.tech-overview {
    background: #2b2b2b;
    border-left: 4px solid #008484;
    color: #e6e6e6;
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
    margin: 1.5em 0;
    padding: 1.5em;
    position: relative;
}

.tech-overview h3 {
    color: #00c4c4;
    font-size: 1.2em;
    margin-bottom: 1em;
    border-bottom: 1px solid #008484;
    padding-bottom: 0.5em;
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
}

.tech-overview ul {
    list-style-type: none;
    padding-left: 1em;
}

.tech-overview li {
    margin: 0.8em 0;
    padding-left: 1.5em;
    position: relative;
    font-size: 0.9em;
}

.tech-overview li:before {
    content: ">";
    position: absolute;
    left: 0;
    color: #008484;
    font-weight: bold;
}

.tech-overview code {
    background: #1a1a1a;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #00c4c4;
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
}

.disclaimer {
    background: #2d2d2d;
    border: 2px solid #666;
    border-radius: 4px;
    color: #f0f0f0;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    margin: 20px 0;
    padding: 15px 20px;
    position: relative;
}

.disclaimer::before {
    content: "!";
    background: #ff6b6b;
    border-radius: 50%;
    color: #2d2d2d;
    font-weight: bold;
    height: 24px;
    left: -12px;
    line-height: 24px;
    position: absolute;
    text-align: center;
    top: -12px;
    width: 24px;
}

.disclaimer p {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.note {
    background: #2b2b2b;
    border-left: 4px solid #008484;
    color: #e6e6e6;
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
    margin: 1.5em 0;
    padding: 1em;
    position: relative;
}

.note::before {
    content: "Note";
    color: #008484;
    font-weight: bold;
    left: 1em;
    position: absolute;
    top: -0.5em;
    background: #2b2b2b;
    padding: 0 0.5em;
}

code {
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
    background: #2b2b2b;
    border-left: 4px solid #008484;
    color: #00c4c4;
    display: block;
    padding: 1em;
    margin: 1em 0;
    white-space: pre;
    overflow-x: auto;
}

code::before {
    content: ">";
    color: #008484;
    margin-right: 0.5em;
}

.irix-tree {
    font-family: "SGI Screen", "Lucida Console", Monaco, monospace;
    background: #2b2b2b;
    border-left: 4px solid #008484;
    padding: 1em;
    list-style: none;
    color: #00c4c4;
}

.irix-tree li {
    padding: 0.3em 0 0.3em 1.5em;
    position: relative;
}

.irix-tree li:before {
    content: ">";
    position: absolute;
    left: 0;
    color: #008484;
}

@media (prefers-color-scheme: light) {
    .disclaimer {
        background: #f0f0f0;
        border-color: #999;
        color: #2d2d2d;
    }
    
    .note {
        background: #f5f5f5;
        border-left-color: #008484;
        color: #333;
    }

    .note::before {
        background: #f5f5f5;
    }
}