@charset "UTF-8";
/* Global styles */
* {
    box-sizing: border-box;
    user-select: none !important;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    color: #2b2b2b;
}

.ibm-plex-mono-thin {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-mono-extralight {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-mono-light {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-mono-regular {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-mono-medium {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-mono-semibold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-mono-bold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-mono-thin-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-mono-extralight-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-mono-light-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-mono-regular-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-mono-medium-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-mono-semibold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-mono-bold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: italic;
}
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#desktop-img{
    pointer-events: none;
}

/* Login screen */
#login-screen {
    background: linear-gradient(135deg, #6A6E6E, #4f5252);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#login-screen h1{
    margin-bottom: 30px;
}

.g{
    transform: rotate(-3.724deg);
    background-color: #5D904D;
}

.g2{
    transform: rotate(-4.45deg);
    background-color: #F6F052;
}


.e{
    background-color: #D86925;
    transform: rotate(-0.3deg);
}


.r{
    transform: rotate(8.72deg);
    background-color: #EA5F80;
}

.os{
    font-size: 33px;
    color: white;
    position: relative;
    display: inline-block;
    vertical-align: top;
    font-weight: 300;
    transition: transform 0.4s 0.4s, opacity 0.2s 0.4s;
}

.os.start{
    opacity: 0;
    transform: rotate(0deg) translateY(50%);
}

.letter{
    transform-origin: center center;
    position: relative;
    text-align: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: "IBM Plex Mono";
    font-size: 76px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: inline-block;
     color: transparent;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;   
    filter: brightness(1.5) saturate(2.5);
    transition: transform 0.4s, opacity 0.2s;
}

.letter.start{
    opacity: 0;
    transform: rotate(0deg) translateY(50%);
}




.os-img{
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: "IBM Plex Mono";
    font-size: 90px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: inline-block;
    color: transparent;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s 1.2s, opacity 0.2s 1.2s;
}

.os-img.start{
    opacity: 0;
    transform: rotateY(90deg) translateY(1%);
}

.os-img::after{
    content: '';
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top:0;
    border-radius: 50%;
    position: absolute;
    box-shadow: inset  4px 4px 4px rgba(255, 255, 255, 0.25)
}

.os-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-box {
    padding: 20px;
    text-align: center;
    width: 400px;
}

.login-box h1 {
    margin-top: 0;
    margin-bottom: 0px;
    font-weight: 600;
}

.login-box input[type="password"], .login-box input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 60px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 1);
    position: relative;
    z-index: 2;
}

.login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.btn {
    padding: 8px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-button-style{
    width: 30px;
    height: 30px;
    border: none;
    background: #ff5c5c;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
 
}

#login {
    background: #00BE26;
    color: white;
    /* position: absolute; */
    right: 0;
    z-index: 4;
    height: 44px;
    top: 2px;
    margin-top: 5px;
    right: 2px;
    width: 100%;
    border-radius: 24px;
    padding: 0 26px;
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}



@media (hover: hover) {

#login:hover {
    background: #00BE26;
}
}

.btn.secondary {
    background: #f0f0f0;
    color: #333;
}

@media (hover: hover) {
.btn.secondary:hover {
    background: #e0e0e0;
}

}

.btn.small {
    padding: 4px 10px;
    font-size: 12px;
}

/* Indicate active state for toolbar buttons (e.g., paint eraser) */
.btn.active {
    background-color: #ffd359;
    color: #333;
}

.hint {
    margin-top: 10px;
    font-style: italic;
    color: #fff;
    transition: all 0.2s;
    position: absolute;
     left: 0;
     width: 100%;
    text-align: center;
}

.prompts{
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
   text-align: center;
}

.login-limit{
    display: inline-block;
}

#hint-btn{
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    left: 0;
    z-index: 3;
    color: rgba(255, 255, 255, 0.5);
}


@media (hover: hover) {
    #hint-btn:hover{
        text-decoration: underline;
    }
}

.error {
    margin-top: 10px;
    color: #d33;
    font-weight: 500;
}

/* Desktop environment */
#desktop {
    /* background: linear-gradient(120deg, #d5e8ff 0%, #f3f8ff 30%, #e6f5ff 70%, #d8ecff 100%); */
    overflow: hidden;
}

/* Menubar */
#menubar {
    height: 28px;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 14px;
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Menubar right section (clock and logout) */
.menu-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logout button styling */
#logout-btn {
    cursor: pointer;
    font-weight: 500;
    color: #000;
    appearance: none;
    outline: none;
    border: 1px solid #000;
    border-radius: 10px;
    background-color: transparent;
}

@media (hover: hover) {
    #logout-btn:hover {
        text-decoration: none;
        color: #fff;
        background-color: #000;
    }

}

.menu-left .menu-item {
    margin-right: 12px;
    cursor: default;
    user-select: none;
}

.menu-left .bold {
    font-weight: 600;
}

.apple-icon {
    font-size: 16px;
    margin-right: 8px;
}

#clock {
    white-space: nowrap;
}

/* Dock */
#dock {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%); 
    border-radius: 20px;
    /* padding: 6px 10px; */
    display: flex;
    max-width: 100%;
    height: 100px;
    justify-content: center;
    align-items: flex-end;
}

.dock-inner{
    width: 100%;
    max-width: 100vw;
    overflow: auto;
    overflow: scroll;
    display: flex;
    padding-bottom: 20px;
}

.dock-background{
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: absolute;
    left: 0;
    height: 70px;
    width: 100%;
    top: 40px;
    left: 50%;
    border-radius: 20px;
    
}


.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    z-index: 2;
}

.dock-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s;
}

@media (hover: hover) {

.dock-item:hover img {
    transform: scale(1.2);
}
}

.dock-label {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

@media (hover: hover) {
.dock-item:hover .dock-label {
    opacity: 1;
}
}

/* Windows */
.window {
    position: absolute;
    top: 80px;
    left: 50px;
    width: 420px;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    /* We handle resizing manually via a dedicated handle element. */
    overflow: visible;
    display: flex;
    flex-direction: column;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    min-width: 260px;
    min-height: 200px;
    max-width: 90vw;
}

/* Resize handle for windows. Appears at bottom-right corner */
.resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
    border: 1px solid;
    border-radius: 10px;
    opacity: 0;
    /* Create a diagonal icon using CSS borders */
    /* background: linear-gradient(45deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 55%); */
    z-index: 10;
    opacity: 0;
    pointer-events: auto;
}

.window-header {
    height: 32px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #d0d0d0;
    user-select: none;
    cursor: move;
    border-radius: 10px 10px 0 0;
}

.window-title {
    font-weight: 600;
}

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

.close-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: #ff5c5c;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.window-content {
    padding: 16px;
    flex: 1;
    overflow: auto;
}

/* Finder specific */
.finder-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.file-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.file-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.file-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-item span {
    font-size: 12px;
    margin-top: 6px;
    display: block;
    color: #333;
}

@media (hover: hover) {
.file-item:hover {
    transform: translateY(-4px);
}
}

/* Overlay preview */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.overlay-content {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 80%;
    max-height: 80%;
    position: relative;
}

#preview-img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 6px;
}

.overlay-content .close-btn{
    position: absolute;
    top: 4px;
    right: 4px;
    transform: scale(1.2);
}

.overlay-content img{
    vertical-align: top;
}

/* Camera */
.camera-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#webcam {
    width: 100%;
    height: 240px;
    background: #000;
    border-radius: 6px;
}

.camera-actions {
    display: flex;
    gap: 10px;
}

.camera-warning {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 6px;
}

/* Music */
.music-content {
    text-align: center;
}

#audio-player {
    width: 100%;
}

/* Notes */
.notes-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

/* Finder sidebar and main */
.finder-pane {
    display: flex;
    height: 100%;
}

.finder-sidebar {
    width: 140px;
    border-right: 1px solid #dcdcdc;
    padding-top: 6px;
    background: rgba(245,245,245,0.8);
}

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

.folder-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 8px;
    transition: background 0.2s;
    user-select: none;
}

@media (hover: hover) {
.folder-item:hover {
    background: #efefef;
}
}

.folder-item.selected {
    background: #dae7ff;
    font-weight: 600;
}

.finder-main {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}

.play-footer, .music-footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f1f3f4;
    display: flex;
    box-shadow: 0px -3px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

@media (prefers-color-scheme: dark) {
    .play-footer, .music-footer{
       background: #3d3d3d;
    }
}


#podcast-window, #finder-window{
    height: 348px;
}

#finder-window .window-content{
    padding: 0;
}

.podcast-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 80px;
}

.podcast-list li {
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
    position: relative;
    width: calc(50% - 5px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-color: white;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
    font-family: monospace;
}

@media (min-width: 600px) {
.podcast-list li {
     width: 186px;
}
}

.podcast-list li * {
    pointer-events: none;
}

.podcast-list li .img-wrap{
    position: relative;
    background-color: #ccc;
    width: 100%;
    padding-bottom: 80%;
    height: 0;
    overflow: hidden;
}

.podcast-list li .img-wrap img{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    object-fit: cover;

}
.play-trig{
    display:flex;
    justify-content: space-between;
}

.play-button::before{
    content: '▶';
}

.active .play-button::before{
    content: '||';
}

.cover{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}
#podcast-cover{
        width: 50px;
    height: 50px;
    object-fit: cover;
}

.podcast-list li img.cover{
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    filter: blur(20px) brightness(1.5);
    z-index: 1;
}
.podcast-list li span{
    position: relative;
    z-index: 2;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

@media (hover: hover) {
.podcast-list li:hover {
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}
}
.podcast-list li.active {
    filter:drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

/* Browser */
.browser-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
#browser-url {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.browser-warning {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* Settings */
.theme-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.theme-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

/* layout */
.bg-pane{display:flex;gap:16px;align-items:flex-start}
.bg-column{flex:1;}
.bg-label{font-weight:600;margin-bottom:6px}
.bg-list{width:100%;height:auto; margin-bottom: 20px}


@media (min-width: 700px) {
    .bg-list{width:100%; height:152px; margin-bottom: 20px}
}

.bg-actions{margin-top:6px}
.bg-display{margin-top:10px;display:flex;gap:10px;align-items:center}
.btn.small{padding:4px 8px;font-size:12px}

/* monitor preview */
.preview-wrap{display:flex;justify-content:center; align-items: center; margin-bottom:18px; flex-direction: column;}
.monitor{
  position:relative;
  width:220px;height:170px;padding:8px;
  background:#c0c0c0;border:3px solid #9a9a9a;
  box-shadow:inset -2px -2px 2px #fff,inset 2px 2px 2px #000;
  display:flex;align-items:center;justify-content:center;border-radius:4px;
}
.screen{
  width:176px;height:128px;border:2px inset #444;background:teal;
  background-size:cover;background-position:center;border-radius:2px;
  position: relative;
}




.preview-wrap::after{
    content: '';
    width: 100px;
    height: 3px;
    background:#c0c0c0;border:3px solid #9a9a9a;
}

#preview-screen-img{
    width:176px;height:128px;;
    background-size:cover;
    background-position:center;
    position: absolute;
    top:0;
    left: 0;
}

/* bottom buttons */
.settings-buttons{margin-top:18px;display:flex;justify-content:flex-end;gap:8px}
.settings-buttons .btn{padding:4px 16px;font-size:13px}


/* ------------------------ */
/* Paint */
/* ------------------------ */

.paint-content{
    display: flex;
    background-color: #ccc;
    padding: 5px;
}


/* toolbar */
.paint-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-right: 5px;

}
.paint-toolbar .group { margin-top: 0px; margin-bottom : 5px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.paint-toolbar .chip-group { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.paint-toolbar  .group.right { margin-left: auto; position: absolute; top: 10px; right: 10px; display:  flex; z-index: 4; flex-direction: row; align-items: flex-end; justify-content: flex-end;}
/* .paint-toolbar  .group.right button { margin-left: auto; position: absolute; bottom: 10px; right: 0; } */
.paint-toolbar  .group-label { font-size: 12px; color:#333; padding: 2px 6px;}

/* chip radios */
.chip-group { display: inline-grid; grid-auto-flow: column; gap: 6px; }
.chip-group input[type="radio"] { display:none; }
.chip-group label {
  padding: 4px 8px; border: 1px solid #b5b5b5; border-radius: 3px;
  background: #f6f6f6; cursor: pointer; user-select: none;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #bbb;
  font-size: 12px;
  width: 100%;
  text-align: center;
}
.chip-group input[type="radio"]:checked + label {
  background: #cfe0ff; border-color:#6f9ef5;
}

/* buttons */
.btn.small {
  padding: 5px 10px; border: 1px solid #9a9a9a; border-radius: 3px;
  background: #f3f3f3; cursor: pointer; font-size: 12px;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #bbb;
}
.btn.small:active { transform: translateY(1px); }
#paint-eraser.active { background:#ffd7d7; border-color:#ff6b6b; }

.paint-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    margin-bottom: 8px;
}
/* ensure inputs align nicely */
.paint-toolbar label {
    font-size: 12px;
}

/* Canvas host should be a positioning context for the cursor */
.paint-content { 
    position: relative;  
    max-width: calc(100vw - 40px); 
    max-height: 487px;
    overflow: hidden;
}


@media (min-width: 600px) {
   .paint-content { 
        position: relative;  
        max-width: 472px; 
        max-height: 487px;
        overflow: hidden;
    }
}

#paint-window{
    max-width: calc(100% - 50px); max-height: 487px;
}

@media (min-width: 600px) {
    #paint-window{
        max-width: 472px; max-height: 487px;
    }
}

/* Hide the default cursor over the canvas so our indicator is clear */
#paint-canvas { cursor: none; }

/* Brush indicator */
#brush-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  border: 1px solid rgba(0,0,0,.6);
  outline: 1px solid rgba(255,255,255,.6); /* subtle double ring like old paint */
  box-sizing: border-box;
  display: none; /* shown on hover/touchmove */
}
#brush-cursor.pixel {
  border: 1px solid rgba(0,0,0,.8);
  outline: none;
}
#paint-eraser.active ~ #paint-canvas,
#paint-eraser.active { cursor: none; } /* keep consistent */

.canvas-wrap{
    position: relative;
}


.canvas-wrap canvas{
    background-color: #fff;
}









/* Calculator */
.calculator-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.calc-display {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 24px;
    text-align: right;
    min-height: 40px;
}
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 50px;
    gap: 6px;
    margin-top: 10px;
}
.calc-buttons button {
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    background: #eaeaea;
    transition: background 0.2s;
}

@media (hover: hover) {
.calc-buttons button:hover {
    background: #dcdcdc;
}
}
.calc-buttons button.operator {
    background: #f0b429;
    color: white;
}
@media (hover: hover) {
.calc-buttons button.operator:hover {
    background: #d99923;
}
}
.calc-buttons button.equal {
    background: #2ecc71;
    color: white;
}

@media (hover: hover) {
.calc-buttons button.equal:hover {
    background: #27ae60;
}
}




/* Container: top-right stack (adjust to match your OS UI) */
#notification-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; 
}

/* Card */
.notification {
  pointer-events: auto; /* re-enable click on cards */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 720px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,20,20,0.9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transform: translateY(0) scale(1);
  opacity: 0;
  animation: notif-in 160ms ease-out forwards;
  border: 1px solid rgba(255,255,255,0.08);

}

/* Optional thumbnail (if present, place it on the left of icon) */
.notification__thumb {
  grid-column: 1 / span 4;
    grid-row: 2 / span 2;
    width: 144px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 6px;
    width: 100%;
}

/* Icon */
.notification__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}
.notification__icon svg {
  width: 2em;
  height: 2em;
  fill: currentColor;
}

/* Body */
.notification__body {
  display: grid;
  gap: 2px;
}
.notification__title {
  font-weight: 600;
  line-height: 1.2;
  font-size: 1.2rem;
}
.notification__message {
  opacity: 0.9;
  font-size: 2.6em;
}

/* Type accents via text color (tweak to your palette) */
.notification--message { color: #8bd8ff; }
.notification--bank    { color: #9cff8b; }
.notification--phone   { color: #ffd08b; }
.notification--calendar{ color: #d6b3ff; }

/* Click-to-hide feel: quick fade+shrink */
.notification.is-hiding {
  opacity: 0 !important;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Entry animation */
@keyframes notif-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}



#notes-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: auto;
    padding-bottom: 10px;
}

.note {
    background: #fffec5;
    border: 1px solid #f4e55d;
    border-radius: 4px;
    position: absolute;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: default;
    min-width: 100px;
    min-height: 100px;
}

/* Close button within each note */
.note .note-close {
    position: absolute;
    top: 2px;
    right: 4px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    line-height: 14px;
}

@media (hover: hover) {
.note:hover .note-close {
    color: #333;
}
}

.note:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ffd700;
}

/* Internal body of sticky notes */
.note-body {
      font-family: "Comic Relief", system-ui;
      font-size: 25px;
    position: absolute;
    top: 20px;
    left: 4px;
    right: 4px;
    bottom: 14px;
    padding: 4px;
    overflow: auto;
    cursor: text;
    white-space: pre-wrap;
}

/* Resizer handle for sticky notes */
.note-resizer {
    position: absolute;
    width: 12px;
    height: 12px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
    opacity: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 55%);
}

/* Bounce animation */
@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes bounceIcon {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-12px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.animate-bounce {
    animation: bounceIn 0.5s ease;
}

.animate-icon {
    animation: bounceIcon 0.6s ease;
}

/* Settings panel adjustments for dummy toggles */
.setting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.setting-section label {
    cursor: pointer;
}
.setting-section input[type="checkbox"] {
    margin-left: 6px;
    transform: scale(1.2);
}

/* Style for dropdown in settings */
.setting-section select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}


.hidden {
  display: none !important;
}




.play-pause {
  background: #222;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

@media (hover: hover) {
.play-pause:hover {
  background: #333;
}
}

.icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
}

.play {
  /* Triangle play icon */
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
}

.pause {
  /* Pause icon: two vertical bars */
  width: 16px;
  height: 20px;
  background: transparent;
  box-shadow:
    inset 0 0 0 6px white,        /* Left bar */
    inset 10px 0 0 6px white;     /* Right bar */
}


#prize-claim{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999999999999999999999;
   
}

#prize-claim .form{
    border-radius: 5px;
    padding: 20px;
    width: 350px;
     background: #e0e0e0;
     position: relative;
   box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

#prize-claim .close{
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 30px;
    cursor: pointer;
}

#prize-claim .close{
    display: inline-block;
    transform: rotate(45deg);
}

#prize-claim .form h2{
    margin: 0;
    margin-bottom: 10px;
}


#prize-claim input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #000; background: #ccc; color: #000; }
#prize-claim button { cursor: pointer;  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #262626; background: #262626; color: #fff; }
#prize-claim input:focus { outline: none; border-color: #000; }
#prize-claim button:disabled { opacity: .5; cursor: not-allowed; }


#claim-msg{
    padding: 5px 0;
}

#claim-form{
   display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
     gap: 10px;
}

.terms-label {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  #prize-claim .terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000; /* modern browsers: custom checkbox color */
    cursor: pointer;
  }

 #prize-claim  .terms-label a {
    color: #000;
    text-decoration: underline;
  }

  @media (hover: hover) {
  #prize-claim .terms-label a:hover {
    text-decoration: none;
  }
}

/* --- Mobile-friendly dragging & fullscreen --------------------------------- */
.window, .window-header, .note, .note-resizer, .resize-handle {
  touch-action: none;
}
.window-content { touch-action: auto; }

.resize-handle, .note-resizer {
  width: 22px;
  height: 22px;
  opacity: 0;
}
@media (hover:hover) {
  .resize-handle, .note-resizer { opacity: 0; }
  .window:hover .resize-handle,
  .note:hover .note-resizer { opacity: 0; }
}

/* Maximize state */
.window.maximized {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 80px;
  width: auto !important;
  height: auto !important;
  margin: 0;
  border-radius: 0;
}
.window.maximized .window-content { height: 100%; }

@media (max-width: 700px) {
  .window-header { height: 42px; padding: 0 12px; }
}


/* --- Finder (two-level) -------------------------------------- */
.pathbar { font-size:12px; margin:6px 8px 8px; user-select:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pathbar .crumb { cursor:pointer; }
@media (hover: hover) {
.pathbar .crumb:hover { text-decoration: underline; }
}
.file-grid { display:flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap:12px; padding:8px; }
.file-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 6px; border-radius:10px; cursor:pointer; user-select:none; }
@media (hover: hover) {
.file-item:hover { background: rgba(0,0,0,0.05); }
}
.file-thumb { width:100%; height:120px; display:grid; place-items:center; border-radius:8px; overflow:hidden; background: rgba(0,0,0,0.06); }
.file-thumb img { width:100%; height:100%; object-fit:cover; }


@media (min-width: 700px) {
    .file-thumb { width:100%; max-width: 130px; height:120px; display:grid; place-items:center; border-radius:8px; overflow:hidden; background: rgba(0,0,0,0.06); }
}

.folder-thumb { background:none; position:relative; width:88px; height:64px; }
.folder-thumb::before, .folder-thumb::after { content:''; position:absolute; left:0; right:0; border-radius:6px; }
.folder-thumb::before { top:10px; height:50px; background:#f1c75b; }
.folder-thumb::after { top:0; left:8px; width:44px; height:16px; background:#e7b948; border-radius:6px 6px 0 0; }
.file-name { width:100%; font-size:12px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }



.finder-pane{
    border-top: 1px solid #ccc;
}

.file-thumb.pdf-link{
     width:unset; height:unset;
     background-color: transparent;
}

.file-thumb.video-link{
      height:unset;
     background-color: transparent;
}

.file-thumb.pdf-link img{
    box-shadow: none;
}

.player-content {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 8px;
}

#player-video {
  width: 100%;
  height: auto;
  background: #111;
  border-radius: 8px;
}

.player-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  user-select: none;
}

@media (max-width: 700px) {
    
   
    #ply-vol, #ply-full{
        display: none;
    }

}


.player-controls .ply-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.player-controls .ply-btn:active { transform: translateY(1px); }

.player-controls .ply-seek {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #3a86ff var(--pos,0%), #bbb var(--pos,0%));
  cursor: pointer;
}
.player-controls .ply-vol {
  width: 90px;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #bbb;
  cursor: pointer;
}

.player-controls .time {
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
}

/* touch-friendly */
.player-controls .ply-btn,
.player-controls .ply-seek,
.player-controls .ply-vol {
  touch-action: manipulation;
}

.links{
    color:rgba(255, 255, 255, 0.5);
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.links a{
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-bottom: 0.5px solid;
}

@media (hover: hover) {
    .links a:hover{
        border-bottom: 0.5px solid transparent;
    }
}