/* THEMES */
:
:root {
    --background-image: url('images/ui/themes/theme-neon.jpg');
    --window-color: rgba(147,172,185,1);  
    --textbox-color: #fff;
    --irl-linkcolor: pink;
    --taskbar-color: rgba(147,172,185,1);
    --startbutton-color: rgba(147,172,185,1); 
    --startmenu-color:  rgba(131,138,163,1);
     --box-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --menu-hover: rgba(173,191,201,1);
     --menubox-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --title-gradient: linear-gradient(90deg,rgba(88,0,151,1),rgba(148,0,255,1));
    --titlebar-textcolor: #fff;
    --button-color: silver;
    --button-box-shadow: inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px grey,inset 2px 2px #dfdfdf;
}
.theme-default {
      --background-image: url('images/ui/themes/theme-neon.jpg');
    --window-color: rgba(147,172,185,1);  
    --taskbar-color: rgba(147,172,185,1);
    --startbutton-color: rgba(147,172,185,1); 
    --startmenu-color:  rgba(131,138,163,1);
     --box-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --menu-hover: rgba(173,191,201,1);
     --menubox-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --title-gradient: linear-gradient(90deg,rgba(88,0,151,1),rgba(148,0,255,1));
    --titlebar-textcolor: #fff;
    --button-color: silver;
    --button-box-shadow: inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px grey,inset 2px 2px #dfdfdf;
}
.theme-0 {
  --background-image: url('images/ui/themes/green-rail.jpg');
    --window-color: rgba(146,157,140,1);  
    --taskbar-color: rgba(146,157,140,1);
    --startbutton-color: rgba(161,192,150,1); 
    --startmenu-color:  #405e40;
     --box-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(161,192,150,1), inset -4px -4px rgba(56,113,70,1), inset 4px 4px #fff;
    --menu-hover: #2c472c;
    --menubox-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(161,192,150,1), inset -4px -4px rgba(56,113,70,1), inset 4px 4px #fff;
    --title-gradient: linear-gradient(90deg,rgba(3,88,29,1),rgba(77, 11, 135,1));
    --titlebar-textcolor: #fff;
    --button-color: silver;
    --button-box-shadow: inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px grey,inset 2px 2px #dfdfdf;
}
.theme-1 {
  --background-image: url('images/ui/themes/green.jpg');
  --window-color: rgba(147,172,185,1);  
    --taskbar-color: rgba(147,172,185,1);
    --startbutton-color: rgba(147,172,185,1); 
    --startmenu-color:  rgba(131,138,163,1);
     --box-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --menu-hover: rgba(173,191,201,1);
     --menubox-shadow: inset -2px -2px #0a0a0a, inset 2px 2px rgba(173,191,201,1), inset -4px -4px rgba(90,106,117,1), inset 4px 4px #fff;
    --title-gradient: linear-gradient(90deg,#276875,#827cfc);
    --titlebar-textcolor: #fff;
    --button-color: silver;
    --button-box-shadow: inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px grey,inset 2px 2px #dfdfdf;
}
/* FONTS */

@font-face {
    font-family: 'm5x7medium';
    font-weight: normal;
    font-style: normal;
    src: url('m5x7.woff2') format('woff2'),
         url('m5x7.woff') format('woff');

}
@font-face {
    font-family:'pixelated-ms-sans-serif';
    font-style:normal;
    font-weight:700;
    src:url('pixelated-ms-sans-serif.woff') format('woff'),
        url('pixelated-ms-sans-serif.woff2') format('woff2');
}
@font-face {
    font-family:'pixelated-ms-sans-serif';
    font-style:normal;
    font-weight:700;
    src:url('ms_sans_serif_bold.woff') format('woff'),
        url('ms_sans_serif_bold.woff2') format('woff2');
}
* {
    margin: 0;
    max-height: 100vh;
}



/* MAIN BODY COLUMNS */

body {
    background-color: rgba(0,133,132,1);
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
     scrollbar-color: var(--bg-color) var(--mainbg-color);
}
main {
    max-width: 100vw;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    grid-template-rows: 1fr auto; /* Add this to create a row for the footer */
    flex: 1; /* This makes the main content take up the remaining space */
}
.column-shortcuts, .column {
    padding: 10px;
}
@media (max-width: 800px) {
    #rightColumn {
        overflow-x: visible;
        overflow-y: visible;
    }
    main {
        grid-template-columns: 25% 75%;
    }
    .column:nth-child(3) {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    #rightColumn {
        overflow-x: visible;
        overflow-y: visible;
    }
    main {
        grid-template-columns: 25% 75%;
    }
    .column:nth-child(3) {
        grid-column: 1 / -1;
    }
}

p{
    font-size: 1.2rem
}

/* COLUMN1 - SHORTCUTS/ICONS */

.tilt-animate img, .tilt-animate figcaption {
    display: block;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}
.tilt-animate:hover img {
    transform: rotate(-10deg); /* Tilt left */
}
.tilt-animate:hover figcaption {
    transform: rotate(10deg); /* Tilt right */
}
/* Customize for alternating effects for even and odd figures */
figure:nth-child(even).tilt-animate:hover img {
    transform: rotate(10deg); /* Tilt right for even figures */
}
figure:nth-child(even).tilt-animate:hover figcaption {
    transform: rotate(-10deg); /* Tilt left for even figures */
}
#shortcut-area {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}
.shortcut-column {
    flex: 25%;
    max-width: 20%;
    padding: 0 4px;
}
.shortcut-column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}
@media screen and (max-width: 800px) {
    .shortcut-column {
        flex: 50%;
        max-width: 30%;
    }
}
@media screen and (max-width: 600px) {
    .shortcut-column {
        flex: 100%;
        max-width: 42%;
    }
}
figcaption {
    text-align: center;
    font-family:'m5x7medium', Arial;
    font-size: 1.6rem;
}
figure {
    max-width: 100%;
    margin: 2px;
    border: 0;
    text-align: center;
    text-decoration: none;
    padding-left: 5px;
    padding-right: 5px;
}



/* COLUMN2 - POPUP CONTAINER IFRAME */

#centerColumn {
    position: relative;
}
#popupContainer {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    max-height: 100vh;
    border: none;
    z-index: 1000;
}
#popupIframe {
    width: 100%;
    height: 100%;
    border: none;
}
#overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* COLUMN3 - RIGHT IRL MENU */
p{
    margin: 3px;
}
#rightColumn {
    display: flex;
    max-height: 80vh;
}
a:link {
  text-decoration: none;
color: var(--irl-linkcolor);
}

a:visited {
  text-decoration: none;
    color: var(--irl-linkcolor);
}

a:hover {
  text-decoration: underline;
    
}

a:active {
  text-decoration: underline;
}
.irl-link {
    text-decoration: none;
    font-size: 1.7rem;
}
.update-log {
    font-family:'pixelated-ms-sans-serif';
    display: list-item;
    background-color: white;
    box-shadow:  inset -1px -1px #0a0a0a,inset 1px 1px #0a0a0a,inset -2px -2px grey,inset 2px 2px #dfdfdf;
    overflow-y: scroll;
    font-size: 1.1rem;
    max-height: 18vh;
    margin: 5px;
    word-spacing: 2px;
    letter-spacing: .5px
}

/* BUTTONS */

#closeBtn {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' fill='%23000'/%3E%3C/svg%3E");
    position: absolute;
    right: 0;
    background-repeat:no-repeat;
    margin-left:4px;
    margin-right: 2px;
}
.vertical-bar,
button,
input[type=reset],
input[type=submit] {
    background: var(--button-color);
    box-shadow:var(--button-box-shadow);
}
.vertical-bar {
    height:20px;
    width:4px
}
button:not(:disabled):active,input[type=reset]:not(:disabled):active,input[type=submit]:not(:disabled):active {
    box-shadow:var(--button-box-shadow);
    text-shadow:1px 1px #222
}
@media (not(hover)) {
    button:not(:disabled):hover,input[type=reset]:not(:disabled):hover,input[type=submit]:not(:disabled):hover {
        box-shadow:var(--button-box-shadow);
    }
}
button:focus,input[type=reset]:focus,input[type=submit]:focus {
    outline:1px dotted #000;
    outline-offset:-4px
}
button::-moz-focus-inner,input[type=reset]::-moz-focus-inner,input[type=submit]::-moz-focus-inner {
    border:0
}
:disabled,:disabled+label,input[readonly],input[readonly]+label {
    color:grey
}
:disabled+label,button:disabled,input[type=reset]:disabled,input[type=submit]:disabled {
    text-shadow:1px 1px 0 #fff
}

.title-bar-controls {
    display:flex
}
.title-bar-controls button {
    display:block;
    min-height:16px;
    height: 32px;
    width: 32px;
    min-width:16px;
    padding:0
}
.title-bar-controls button:active {
    padding:0
}
.title-bar-controls button:focus {
    outline:none
}
.title-bar-controls button[aria-label=Minimize] {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0 0h6v2H0z'/%3E%3C/svg%3E");
    background-position:bottom 3px left 5px;
    background-repeat:no-repeat;
}
.title-bar-controls button[aria-label=Maximize] {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='9' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 0H0v9h9V0zM8 2H1v6h7V2z' fill='%23000'/%3E%3C/svg%3E");
    background-position:top 3px left 3px;
    background-repeat:no-repeat;
    
}
.title-bar-controls button[aria-label=Restore] {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M2 0h6v2H2zM7 2h1v4H7zM2 2h1v1H2zM6 5h1v1H6zM0 3h6v2H0zM5 5h1v4H5zM0 5h1v4H0zM1 8h4v1H1z'/%3E%3C/svg%3E");
    background-position:top 2px left 3px;
    background-repeat:no-repeat;
}
.title-bar-controls button[aria-label=Help] {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='6' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0 1h2v2H0zM1 0h4v1H1zM4 1h2v2H4zM3 3h2v1H3zM2 4h2v2H2zM2 7h2v2H2z'/%3E%3C/svg%3E");
    background-position:top 2px left 5px;
    background-repeat:no-repeat;
}
.title-bar-controls button[aria-label=Close] {
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' fill='%23000'/%3E%3C/svg%3E");
    background-position:top 4px left 4px;
    background-repeat:no-repeat;
    margin-left:4px;
    margin-right: 2px;
}



/* WINDOW STYLE */

.window {
    width: 100%;
    background: var(--window-color);
    box-shadow:var(--box-shadow);
    padding:6px;
    max-height: 100vh;
}
.title-bar {
    width: 100%;
    align-items:center;
    background:var(--title-gradient);
    display:flex;
    justify-content:space-between;
    padding-left: 2px; 
}
.title-bar.inactive {
    background:linear-gradient(90deg,grey,#b5b5b5)
}
.title-bar-text {
    color:var(--titlebar-textcolor);
    font-weight:700;
    letter-spacing:0;
    margin-right:24px
}
.title-bar,
.window,
button,
input,
label,
option,
select,
table,
textarea,
ul.tree-view {
    -webkit-font-smoothing: none;
    font-family: 'm5x7medium', Arial;
    font-size: 2rem;
    margin: 0;
}
.status-bar {
    gap:1px;
    display:flex;
    margin:0 1px
}
.status-bar-field {
    box-shadow:inset -2px -2px #dfdfdf,inset 2px 2px grey;
    flex-grow:1;
    margin:0;
    padding:3px 6px
}



/* FILE EXPLORER */

/* FOOTER AND MENU */

#footer {
    justify-content: flex-start;
    grid-column: 1 / -1; /* Span all columns */
    background: var(--taskbar-color);
    background-repeat: repeat-x;
    padding: 4px;
    box-shadow: var(--box-shadow);
    position: relative;
}
/* Menu button and menu */
#menuButton {
    cursor: pointer;
    background-color: var(--startbutton-color);
    background-image: var(--startbutton-color);
    border: none;
}
#menu {
    position: absolute;
    bottom: 100%; /* Position the menu above the footer */
    left: 0;
    width: 27%;
    max-width: 300px;
    background-color: var(--startmenu-color);
    box-shadow: 0px -4px 16px rgba(0, 0, 0, 0.2); /* Adjusted for dropping shadow effect */
    z-index: 999;
    display: none; /* Initially hidden */
    flex-direction: column;
    box-shadow:var(--menubox-shadow);
    padding:6px;
    background-repeat: no-repeat;
}
#menu a {
    border: 2px black dotted;
    color: black;
    padding: 15px;
    text-decoration: none;
    display: block;
    font-size: 1.5rem;
    font-family: 'pixelated-ms-sans-serif';
    font-weight: 900;
}
#menu a:hover {
    background-color: var(--menu-hover);
}
/* Responsive */
@media (max-width: 800px) {
    #menu {
        width: 65%;
    }
}
menu-section {
    background-color: var(--startmenu-color);
    margin: 5px;
    padding: 5px;
}



