
.news-window {
    width: 500px;
    border: 2px solid #808080;
    background-color: #c0c0c0;
    box-shadow: 2px 2px #fff inset, -2px -2px #fff inset; /* subtle 3D */
    font-family: "MS Sans Serif", Geneva, sans-serif;
    display: flex;
    flex-direction: column;
}

.title-bar {
    background-color: hwb(197 52% 9%);
    color: #fff;
    font-weight: bold;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* keeps buttons centered vertically */
    font-size: 12px;
    border-bottom: 2px solid #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #000;
}

/* Left side: GIF + title text */
.title-left {
    display: flex;
    align-items: flex-start; /* text aligns to top of GIF */
}

/* Small GIF */
.title-gif {
    height: 16px;     /* fixed height */
    width: auto;      /* maintain aspect ratio */
    display: block;
}

/* Title text */
.title-text {
    letter-spacing: 2px;
    font-family: "Arial", "MS Sans Serif", Geneva, sans-serif;
    margin-left: 10px;   /* horizontal padding after GIF */
    padding-top: 1px;   /* fine-tune vertical alignment with GIF */
}

.window-buttons button {
    background-color: #c0c0c0;
    border: 1px solid #000;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    box-shadow: 1px 1px #fff inset, -1px -1px #000 inset;
}

.window-buttons button:active {
    border-style: inset;
}

/* Menu bar */
.menu-bar {
    background-color: #c0c0c0;
    color: #000;
    font-size: 12px;
    padding: 2px 5px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #000; /* 3D effect */
}

/* Content area */
.news-content {
    background-color: #fff;
    padding: 6px;
    font-size: 12px;
    font-family: monospace;
    max-height: 200px;
    overflow-y: scroll;
    white-space: pre-wrap;
    border: #000, 1px ;
    border-top: 2px inset #fff;
    border-left: 2px inset #fff;
    border-right: 2px inset #808080;
    border-bottom: 2px inset #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #808080;

    display: flex;
    flex-direction: column;  /* stack entries vertically */
    justify-content: flex-start; /* start from top */
    gap: 4px; /* spacing between each log entry */
    transition: max-height 0.2s ease, padding 0.2s ease; /* smooth collapse */
}

.news-content div {
    line-height: 1.2em; /* optional: slightly more readable spacing */
}

.news-content.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}
/* Old Windows scrollbar */
.news-content::-webkit-scrollbar {
    width: 16px;
    background-color: #c0c0c0;
    border-left: 2px solid #fff;
}

.news-content::-webkit-scrollbar-thumb {
    background-color: #C0C0C0;        /* gray thumb */
    border: 1px solid #808080;        /* dark outer border */
    box-shadow:
        inset 2px 2px 0 #ffffff,      /* top-left highlight */
        inset -2px -2px 0 #404040;    /* bottom-right shadow */
    border-radius: 0;
    background-clip: content-box;     /* smaller than track for rainbow peek */
    box-sizing: border-box;
}


.news-content::-webkit-scrollbar-button {
    background-color: #6b6b6b88;
    border: none;
    height: 4px;
}

.news-content::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: 16px;
    background-color: #C0C0C0;
    border: 1px solid #353535;        /* dark outer border */
    box-shadow:
        inset 2px 2px 0 #ffffff,      /* top-left highlight */
        inset -2px -2px 0 #404040;    /* bottom-right shadow */
    border-radius: 0;
}

/* Down arrow button */
.news-content::-webkit-scrollbar-button:single-button:vertical:increment {
    background-color: #C0C0C0;
    height: 16px;
    border: 1px solid #353535;        /* dark outer border */
    box-shadow:
        inset 2px 2px 0 #ffffff,      /* top-left highlight */
        inset -2px -2px 0 #404040;    /* bottom-right shadow */
    border-radius: 0;
}

.news-content a {
    color: #0000ee;
    text-decoration: underline;
}


@media (max-width: 767px) {
  .news-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .news-window {
    transform: scale(0.85);          /* 👈 adjust scale here */
    transform-origin: top center;    /* scale inward nicely */
    width: 500px;                    /* keep original width */
  }
}