/*   /$$   /$$           /$$                                                   /$$   */
/*  | $$  | $$          |__/                                                  | $$   */
/*  | $$  | $$ /$$$$$$$  /$$ /$$    /$$ /$$$$$$   /$$$$$$   /$$$$$$$  /$$$$$$ | $$   */
/*  | $$  | $$| $$__  $$| $$|  $$  /$$//$$__  $$ /$$__  $$ /$$_____/ |____  $$| $$   */
/*  | $$  | $$| $$  \ $$| $$ \  $$/$$/| $$$$$$$$| $$  \__/|  $$$$$$   /$$$$$$$| $$   */
/*  | $$  | $$| $$  | $$| $$  \  $$$/ | $$_____/| $$       \____  $$ /$$__  $$| $$   */
/*  |  $$$$$$/| $$  | $$| $$   \  $/  |  $$$$$$$| $$       /$$$$$$$/|  $$$$$$$| $$   */
/*   \______/ |__/  |__/|__/    \_/    \_______/|__/      |_______/  \_______/|__/   */
                                                                              

 * {
    box-sizing: border-box;
}

html {
    background-image: url('/Resources/images/wallpaper.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #3a6ea5; 
    font-family: 'Tahoma', sans-serif;
    cursor: url('/Resources/images/cursor.cur'), ;
}

h1 {
    margin-top: 0px;
    margin-bottom: 0px;
}

/*   /$$$$$$$                   /$$$$$$  /$$                                */
/*  | $$__  $$                 /$$__  $$| $$                                */
/*  | $$  \ $$ /$$   /$$      | $$  \__/| $$  /$$$$$$   /$$$$$$$ /$$$$$$$   */
/*  | $$$$$$$ | $$  | $$      | $$      | $$ |____  $$ /$$_____//$$_____/   */
/*  | $$__  $$| $$  | $$      | $$      | $$  /$$$$$$$|  $$$$$$|  $$$$$$    */
/*  | $$  \ $$| $$  | $$      | $$    $$| $$ /$$__  $$ \____  $$\____  $$   */
/*  | $$$$$$$/|  $$$$$$$      |  $$$$$$/| $$|  $$$$$$$ /$$$$$$$//$$$$$$$/   */
/*  |_______/  \____  $$       \______/ |__/ \_______/|_______/|_______/    */
/*             /$$  | $$                                                    */
/*            |  $$$$$$/                                                    */
/*             \______/                                                     */

.window {
    position: absolute;
    background: #ece9d8; 
    border: 1px solid #0831d9;
    border-radius: 8px 8px 3px 3px;
    box-shadow: 0 0 0 1px #003c74, 2px 2px 6px rgba(0,0,0,0.2);
    transform: translateZ(0);
    
    min-width: 240px;
    min-height: 140px;
    width: 320px;
    height: 240px;
    display: block;

    overflow: hidden; 

    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
}

.window-content > *:first-child {
    margin-top: 0;
}

.window.maximized {
    border-radius: 0;
    box-shadow: none;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.window-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display:flex;
}

.title-bar {
    background: linear-gradient(
        to bottom,
        #0058e6 0%,
        #3980f5 8%,
        #1e5fdc 40%,
        #1750d2 50%,
        #1941c9 60%,
        #1543ce 90%,
        #0f3dc7 100%
    );
    color: white;
    padding: 3px 3px 3px 6px;
    cursor: move;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26px;
    border-radius: 0;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 21px;
    height: 20px;
    background: linear-gradient(to bottom, #6d9eee, #2452d6 45%, #1b3fc4 55%, #4478e8);
    border: 1px solid #1941a8;
    border-radius: 3px;
    color: white;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}

.control-btn:hover {
    filter: brightness(1.15);
}

.control-btn:last-child {
    background: linear-gradient(to bottom, #f2958a, #e2451e 45%, #c31500 55%, #f2705a);
    border: 1px solid #8f1600;
}

.menu-bar {
    position: relative;
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
    padding: 2px 0;
}

.menu-bar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.menu-bar li button{
    padding: 2px 8px;
    font-size: 12px;
    cursor: default;
    border-radius: 2px;
    background:transparent;
    border:none;
}

.menu-bar li button:hover {
    background: #316ac5;
    color: white;
}

.menu-bar-dropdown {
    display: none;
    position: absolute;
    background: #ece9d8;
    border: 1px solid #aca899;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 100;
    min-width: 120px;
}

.menu-bar-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 2px;
    display: block;   
}

.menu-bar-dropdown li {
    padding: 3px 12px;
    font-size: 12px;
    cursor: default;
    white-space: nowrap;
}

.menu-bar-dropdown li:hover {
    background: #316ac5;
    color: white;
}

.menu-bar-dropdown li button {
    padding:0;
    display:block;
    width:100%;
    text-align: left;
}

.menu-bar-dropdown li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.window-content {
    padding: 5px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ece9d8;
    font-size: 12px;
    margin: 0px 0px 0px 0px;
    height:100%;
}

.main-grid-container {
    display:grid;
    grid-template-rows: auto 80%;
}

.headbar-grid-container {
    display: grid;
    grid-template-columns: 20% 80%;
}

.headbar-vertical-grid-container {
    display: grid;
    grid-template-rows: 70% 30%;
}

.headbar-vertical-sub-container {
    display: grid;
    grid-template-columns: 30% 70%;
}

.gallery-grid-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.gallery-grid-column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
}

.gallery-grid-column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.notepad-window-content {
    padding: 5px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    font-size: 12px;
    margin: 0px 0px 0px 0px;
    height:100%;
}

.window-content ul{
    margin: 0px 0px 0px 0px;
    padding: 0 0 0 15px;
    font-size:large;
}

.window-content h1 {
    margin-bottom: 2px;
}

.window-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0px 0px 10px;
}

.desktop-icon {
    position: absolute;
    width: 64px;
    text-align: center;
    color: white;
    cursor: default;
    font-size: 12px;
    margin: 5px;
    margin-top: 10px;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 4px;
}

.desktop-icon span {
    background: transparent;
    padding: 2px 4px;
    color:black;
}

.desktop-icon:active span {
    background: #6d9eee;
}

.balloon-tip {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    background: #ffffe1;
    border: 1px solid #808080;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    border-radius: 3px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, left 0.05s linear, top 0.05s linear;
}

.balloon-tip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.balloon-tip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #808080;
}

.balloon-tip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #ffffe1;
    z-index: 1;
}

.balloon-tip-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 2px;
    font-weight: bold;
    color: #000080; /* XP balloon title blue */
}

.balloon-tip-header img {
    width: 16px;
    height: 16px;
}

.balloon-tip-body {
    padding: 2px 8px 8px;
    color: #000;
    line-height: 1.4;
}

.balloon-tip-close {
    position: absolute;
    top: 3px;
    right: 5px;
    cursor: pointer;
    font-size: 11px;
    color: #555;
}

.balloon-tip-close:hover {
    color: #000;
    text-decoration: underline;
}

/* Text colours to use with <span> tags */

.text-red {
    color: #e12957
}

.text-green {
    color: #29e16c
}

.text-blue {
    color: #29aee1
}

.text-gold {
    color: #ff9a4d
}

.text-unavailable {
    color: #808080;
    text-decoration-line: line-through;
}

.text-gradient-dingus {
    background: linear-gradient(90deg, #bc29e1, #6c29e1, #e12976);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-trans {
    background: linear-gradient(90deg, #5BCEFA, #F5A9B8, #FFFFFF, #F5A9B8, #5BCEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*   /$$$$$$$                  /$$$$$$ /$$$$$$$     */
/*  | $$__  $$                |_  $$_/| $$__  $$    */
/*  | $$  \ $$ /$$   /$$        | $$  | $$  \ $$    */
/*  | $$$$$$$ | $$  | $$        | $$  | $$  | $$    */
/*  | $$__  $$| $$  | $$        | $$  | $$  | $$    */
/*  | $$  \ $$| $$  | $$        | $$  | $$  | $$    */
/*  | $$$$$$$/|  $$$$$$$       /$$$$$$| $$$$$$$/    */
/*  |_______/  \____  $$      |______/|_______/     */
/*             /$$  | $$                            */
/*            |  $$$$$$/                            */
/*             \______/                             */

#credits-window {
    background: black;
    font-size: 10px;
}

#credits-window .window-content,
#credits-window .window-content * {
    appearance: none;
    -webkit-appearance: none;
    background-color: #000;
    border: none;
    outline: none;
    box-sizing: border-box;
    display: block;
    width: 100%;
    text-align: left;
    font-family: monospace;
    font-size: inherit;
    white-space: pre-wrap;
}

#credits-window .window-content {
    color: white;
}

#notepad-about-window {
    width: 400px;
    height: 300px;
    min-width: 300px;
    min-height: 200px;

    display:none;

    top: 10%;
    left: 40%;
}


#main-window { top: 5%; left: 10%; height: 40%;}

#content-window { 
    top: 5%; 
    left: 30%;

    width: 65%;
    height: 85%;
}

#credits-window {
    width: 460px;
    height: 500px;
    min-width: 300px;
    min-height: 200px;

    display:none;

    top: 10%;
    left: 40%;
}

#fandoms-window { 
    top: 50%; 
    left: 10%; 

    height: 40%;
}