/*
Theme Name: Thulme 90s OS
Description: 1990s Retro OS Redesign Theme
Author: Tom Hulme
Version: 1.0
*/

@font-face {
    font-family: 'W95FA';
    src: url('https://fonts.cdnfonts.com/s/14227/w95fa.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #008080 !important; /* Windows 95 Teal */
    font-family: 'W95FA', 'Courier New', monospace !important;
    margin: 0;
    padding: 20px;
    color: black !important;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: pixelated; /* Forces jagged look */
}

.os-window {
    background-color: #c0c0c0;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    padding: 2px;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 2px 2px 0px 0px #000;
    box-sizing: border-box;
}
.os-titlebar {
    background: darkblue;
    color: white;
    padding: 2px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
.os-controls span {
    background: #c0c0c0;
    color: black;
    border: 1px solid white;
    border-right-color: black;
    border-bottom-color: black;
    padding: 0px 4px;
    cursor: default;
}
.os-subtitlebar {
    padding: 5px;
    text-align: left;
    border-bottom: 2px solid gray;
}
.os-content {
    background: white;
    border-top: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    padding: 10px;
    min-height: 400px;
    box-sizing: border-box;
    overflow: hidden;
}
.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.icon-item {
    text-align: center;
    width: 100px;
}
.icon-item img {
    margin-bottom: 5px;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
}
.icon-item a {
    color: black;
    text-decoration: none;
}
.icon-item a:hover {
    background-color: darkblue;
    color: white;
    padding: 2px;
    outline: 1px dotted #000;
}
.post-list-item {
    margin-bottom: 10px;
    font-size: 18px;
}
.post-list-item a {
    color: blue;
    text-decoration: underline;
}
.post-list-item a:hover {
    color: darkblue;
}
.post-content img, .post-content video, .post-content iframe {
    max-width: 100%;
    height: auto;
}
.marquee-container {
    width: 100%;
    background: black;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    padding: 5px 0;
    border: 2px solid gray;
    margin-top: 20px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite, flash 1s step-end infinite;
}
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.7; color: #008000; }
    100% { opacity: 1; }
}
@media (max-width: 600px) {
    body {
        padding: 5px !important;
    }
    .os-window {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    .os-titlebar {
        font-size: 14px;
    }
    .os-content {
        padding: 10px;
    }
    .icon-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        justify-content: center !important;
        padding: 10px !important;
    }
    .icon-item {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}
