.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1 {
    font-family: Arial, sans-serif;
    font-size: 24px;
}

p {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

span {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

body {
    background-color: #520476;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    padding: 0px;
}

.nice-textarea {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

#osbody {
    background-image: url('https://i.etsystatic.com/27900351/r/il/af1206/7111336485/il_1080xN.7111336485_26td.jpg');
    background-size: cover;
    background-position: center bottom;
}

.desktop-icon {
    width: 45px;
    height: auto;
}

.centered-content {
    text-align: center;
}

.bold {
    font-weight: bold;
}

.color1 {
    color: #e8dc00;
}

.nice-button {
    background-color: #e8dc00;
    color: #520476;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.nice-button:hover {
    transform: scale(1.1) translateX(0) translateY(-5%);
}

.close-button {
    background-color: #cd0404;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.1);
}

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: wavy;
}

a img {
    transition: transform 0.2s ease;
}

a img:hover {
    transform: scale(1.1);
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    padding: 10px 0;
    border-top: 1px solid #e8dc00;
    display: flex;
    align-items: center;
}

.right-align {
    float: right;
    margin-right: 20px;
    justify-content: right;
}

.fit-parent-svg {
    width: auto;
    height: 50px;
}

.close-icon {
    width: 16px;
    height: 16px;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.footer-left {
    flex-grow: 1;
    margin-left: 20px;
}

/* Windows */
.window {
    visibility: hidden;
    position: absolute;
    top: calc(50% - 125px);
    left: calc(50% - 150px);
    width: 300px;
    height: 250px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 900;

    resize: both;
    overflow: auto;

    min-width: 300px;
    min-height: 250px;
}

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

.window-header {
    font-weight: bold;
    text-align: center;
    padding: 5px;
    background-color: #bfbfbf;
    border: 1px solid #000;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: grab;
    user-select: none;
}

/* Curtain Animations (Mostly AI Overview) */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 999;
    visibility: visible;
    transition: visibility 2s;
}

.left-curtain, .right-curtain {
    width: 50%;
    height: 100%;
    background-color: #800000;
}

.left-curtain, .right-curtain {
  width: 50%;
  height: 100%;
  transition: transform 1.5s ease-in-out;

  /* 1. Base colour fallback */
  background-color: #800000; 

  /* 2. Linear gradient pattern simulating light and shadow */
  background-image: linear-gradient(
    to right,
    #4a0000 0%,   /* Deep shadow (Valley) */
    #800000 25%,  /* Midtone red */
    #cc0000 50%,  /* Bright highlight (Peak) */
    #800000 75%,  /* Midtone red */
    #4a0000 100%  /* Deep shadow (Valley) */
  );

  /* 3. Slice the gradient into repeating vertical strips */
  background-size: 50px 100%; /* Adjust '100px' to make folds wider or narrower */
  background-repeat: repeat-x; /* Repeats the folds horizontally across the screen */

  /* 4. Optional: Subtle shadow drop where the two curtains meet in the middle */
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.5);
}

/* Subtle adjustment for the right curtain so the middle shadow matches up */
.right-curtain {
  box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.5);
}

.curtain-container.is-open .left-curtain {
    transform: translateX(-100%);
}

.curtain-container.is-open .right-curtain {
    transform: translateX(100%);
}

.curtain-container.is-open {
    visibility: hidden;
}

/* Top Bar */
#top-bar {
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    padding: 5px;
    align-items: center;
    background-color: #58585847
}

/* Desktop Area */
.desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
}
