@font-face {
  font-family: 'Topaz';
  src: url('/resources/fonts/topaz.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --background-color: #ecf0f1;
    --amiga-font-normal: 'Topaz';
    /*--amiga-blue-color: #0077FF;*/
    --amiga-blue-color: #0055BB;
    --amiga-black-color: #00000;
    --amiga-window-border-color: white;
    --amiga-window-border-thickness: 3px;
    --amiga-orange: #FF8800;
    --amiga-window-scroll-bar: #FFFFFF;
    --amiga-crollbar-width: 16px;
    --amiga-scrollbar-border-color: var(--amiga-blue-color);
    --amiga-scrollbar-inner-border-width: 2.5px;
}

* {
    margin: 0;
    padding: 0;
    /*box-sizing: border-box;*/
}

html, body {
    cursor: url('/resources/images/frontpage/amiga_cursor_small.png') 0 0, auto;
}

body {
    font-family: var(--amiga-font-normal);
    background-color: var(--amiga-blue-color);
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
    text-rendering: optimizeSpeed;
}

* {
    cursor: inherit;
}

 /* ===================================================================================== */

 .container {
    background: darkblue;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

.window-top {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.window-top {
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.window-top img {
    display: block;
    z-index: 999;
}

.top-right {
    position: relative;
    top: 0px;
    float: right;
    margin: 0px;
    padding: 0px;
    transform: scale(0.65);
    transform-origin: top right;
}

.top-middle {
    background: var(--amiga-window-border-color);
    height: 26px;
    width: 100%;
    border-top: 1px solid #95B9DE;
    border-bottom: 1px solid #95B9DE;
    font-size: 15px;
    line-height: 26px;
    position: relative;
}

.content-window {
    position: absolute;
    width: 400px;
    height: 500px;
    top: 50px;
    left: 30px;
    background: var(--amiga-blue-color);
    border-left: var(--amiga-window-border-thickness) solid white;
    border-right: var(--amiga-window-border-thickness) solid white;
    border-bottom: var(--amiga-window-border-thickness) solid white;
}

amiga-window.content-window {
    display: block;
}

amiga-window.content-window[hidden] {
    display: none;
}

.window-title-bar {
    display: flex;
    align-items: center;
    background: white;
    /*height: 20px; hubba! */
    height: 24px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.window-title-bar-close {
    flex-shrink: 0;
    /*height: 20px;*/
}

.window-title-bar-text {
    color: var(--amiga-black-color);
    flex-shrink: 0;
    padding: 0 4px;
    font-size: 14px;
    line-height: 24px;
    margin-left: 3px;
    margin-right: 5px;
}

.window-title-bar-lines {
    flex-grow: 1;
    height: 20px;
    object-fit: fill;
    padding-right: 4px;
}

/*
.min-max-window-icon {
    padding-top: 4px;
    margin-top: 4px;
}
*/
.window-resize-icon {
    /* Put it in the lower right corner of parent div */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 17px;
    cursor: nwse-resize;
    user-select: none;
    margin-top: 5px;
    padding-top: 5px;
}

.window-content {
    width: 100%;
    height: calc(100% - 24px);
    overflow: scroll;
    position: relative;
}

/* White border between content and scrollbars */
.window-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /*
    right: var(--amiga-crollbar-width);
    bottom: var(--amiga-crollbar-width);
    */
    right: 0px;
    bottom: 0px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    pointer-events: none;
    z-index: 1;
}

/* Force scrollbars to always show thumb by ensuring minimal overflow */
.window-content::after {
    content: '';
    position: absolute;
    /*
    width: calc(100% + 1px);
    height: calc(100% + 1px);
    */
    width: calc(100%);
    height: calc(100%);
    bottom: -1px;
    right: -1px;
    pointer-events: none;
    z-index: -1;
}

/* Amiga-style scrollbars - Webkit browsers */
.window-content::-webkit-scrollbar {
    width: var(--amiga-crollbar-width);
    height: var(--amiga-crollbar-width);    
}

.window-content::-webkit-scrollbar-thumb {
    background: var(--amiga-window-scroll-bar);
    border: var(--amiga-scrollbar-inner-border-width) solid var(--amiga-blue-color);
    background-clip: padding-box;
    min-height: 40px;
    min-width: 40px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: var(--amiga-window-scroll-bar);
    border: var(--amiga-scrollbar-inner-border-width) solid var(--amiga-scrollbar-border-color);
    background-clip: padding-box;
}

.window-content::-webkit-scrollbar-button {
    background: var(--amiga-window-scroll-bar);
    height: var(--amiga-crollbar-width);
    width: var(--amiga-crollbar-width);
    background-repeat: no-repeat;
    background-position: center;
}

.window-content::-webkit-scrollbar-button:vertical:decrement {
    background-image: url('/resources/images/frontpage/amiga-arrow-up.png');
}

.window-content::-webkit-scrollbar-button:vertical:increment {
    background-image: url('/resources/images/frontpage/amiga-arrow-down.png');
    /*
    padding-bottom: 5px;
    margin-bottom: 5px;
    */
}

.window-content::-webkit-scrollbar-button:horizontal:decrement {
    background-image: url('/resources/images/frontpage/amiga-arrow-left.png');
}

.window-content::-webkit-scrollbar-button:horizontal:increment {
    background-image: url('/resources/images/frontpage/amiga-arrow-right.png');    
    /* Move the actual image. It overlaps to the left, but keep this anyway */
    /*background-position: calc(50% - 3px) center;*/
}

/* Amiga-style scrollbars - Firefox */
.window-content {
    scrollbar-width: auto;
    scrollbar-color: var(--amiga-orange) var(--amiga-blue);
}

.window-content::-webkit-scrollbar-track {
    background: var(--amiga-blue);
}


.site_content_list {
    margin-top: 20px;
    margin-left: 20px;
    height: fit-content;
    width: fit-content;
    float: left;
    font-size: 20px;
    color: white;
}

.site_content_item {
    margin-bottom: 12px;
}

.site_content_item:hover {
    color: #95B9DE;
    cursor: pointer;
}

.site_content_item a {
    color: inherit;
    text-decoration: none;
}

.active-window-size {
    position: fixed;
    bottom: 6px;
    left: 8px;
    color: #fff;
    font-family: 'Amiga Topaz', monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, .55);
    padding: 2px 8px;
    pointer-events: none;
    z-index: 9998;
    user-select: none;
}

.guru-meditation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
}

.guru-meditation.visible {
    display: flex;
}

.guru-meditation-gif {
    margin-top: 30px;
    vertical-align: top;
}   

.workbench-icon {
    position: absolute;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    line-height: 1.2;
}

#drawer-hdd {
    top: 56px;
}
#drawer-hdd img {
    margin-bottom: 5px;
}

#drawer-utilities {
    top: 140px;
}
#drawer-utilities img {
    margin-bottom: 5px;
}

#drawer-system {
    top: 224px;
}
#game-icon {
    top: 308px;
}
#game-icon2 {
    top: 410px;
}

.disk-icon-1,
.drawer-icon-1,
.drawer-icon-2,
.drawer-icon-3 {
    cursor: pointer;
    margin-bottom: 5px;
}

.window-icon {
    display: block;
    margin-bottom: 12px;
    margin-left: 50px;
}

#utilities-window .site_content_list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}

#utilities-window .window-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

#utilities-window .window-icon .icon-image {
    margin-bottom: 6px;
}

.clock-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.nc3d-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    /* Hide all scrollbars completely, as NC3D demo has its own custom scrollbars */
    overflow: hidden;
}

.vectroxx-iframe {
    background: var(--amiga-black-color);
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0px;
    display: block;
    /* Hide all scrollbars completely, as Vectroxx demo has its own custom scrollbars */
    overflow: hidden;
}

.boing-iframe {
    background: var(--amiga-black-color);
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0px;
    display: block;
    /* Hide all scrollbars completely, as Boing demo has its own custom scrollbars */
    overflow: hidden;
}

#clock-window .window-content {
    overflow: hidden;
}

.calculator-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
}

#calculator-window .window-content {
    overflow: hidden;
}

.system-metrics {
    padding: 10px;
    color: white;
}

.system-graph {
    width: 460px;
    max-width: 100%;
    height: 140px;
    background: black;
    border: 1px solid white;
    display: block;
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
}

.system-stats {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.system-legend {
    margin-top: 6px;
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
}

.system-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.system-legend-refresh {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.system-legend-swatch {
    width: 12px;
    height: 8px;
    border: 1px solid #fff;
    display: inline-block;
}

.system-legend-response {
    background: #00ff7f;
}

.system-legend-memory {
    background: #ffd700;
}

#system-window .window-content {
    overflow: hidden;
}

.notepad-textarea {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    box-sizing: border-box;
    border: 3px solid var(--amiga-blue-color);
    padding: 8px;
    margin: 0;
    resize: none;
    outline: none;
    font-family: var(--amiga-font-normal);
    font-size: 16px;
    line-height: 1.2;
    /* hide the scrollbars, as we have custom ones on the window */
    overflow: hidden;

}

.no-break-icon-text {
    white-space: nowrap;
    margin: 0;
}