/* GENERAL PAGE SETUP */
body {
    background-color: #dbeeff; 
    background-image: 
        radial-gradient(#fff 15%, transparent 16%),
        radial-gradient(#fff 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    font-family: 'MS Sans Serif', 'Geneva', sans-serif;
    margin: 0;
    overflow: hidden; 
    height: 100vh;
}

/* WINDOW STYLING */
.window {
    background-color: #c0c0c0; 
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    box-shadow: 1px 1px 0 #000;
    padding: 3px;
    position: absolute; 
    display: flex;
    flex-direction: column;
}

/* TITLE BAR */
.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0); 
    padding: 3px 2px 3px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: move; 
}

/* CLOSE BUTTON */
.title-bar-controls button {
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-weight: bold;
    width: 16px;
    height: 14px;
    font-size: 10px;
    line-height: 10px;
    padding: 0;
    margin-left: 2px;
    cursor: pointer;
}

.title-bar-controls button:active {
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

/* WINDOW CONTENT */
.window-body {
    margin-top: 2px;
    color: black;
    font-size: 13px;
    padding: 10px;
}

.window-body.no-padding {
    padding: 2px;
}

/* NAVIGATION LINKS AS BUTTONS */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-top: 10px;
}

/* This styles the Link (<a>) to look like a Button */
.win-btn {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    padding: 5px 2px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* Removes underline */
    color: black; /* Removes standard blue link color */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px; /* Ensures buttons have consistent height */
}

/* "Press" effect for the link */
.win-btn:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(1px, 1px);
}

/* Hover effect (optional, Windows 95 didn't really have one, but good for UX) */
.win-btn:hover {
    outline: 1px dotted #000;
    outline-offset: -4px;
}

/* MENU BAR */
.menu-bar {
    padding: 2px 5px;
    margin-bottom: 4px;
}
.menu-bar span {
    margin-right: 10px;
    cursor: pointer;
    text-decoration: underline;
}

/* IMAGES & BADGES */
.main-img {
    width: 100%;
    display: block;
    margin-bottom: 2px;
    border: 2px solid #808080; 
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.badge-grid a {
    display: block;
    line-height: 0; /* Fixes spacing issues with images inside links */
}

.badge-grid img {
    border: 1px solid #fff; 
}

.badge-grid img:hover {
    border: 1px dashed #000; /* Visual feedback on hover */
}

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

.footer-text {
    text-align: center;
    color: #000080; 
    font-size: 11px;
    margin-top: 5px;
}

.small-text {
    font-size: 12px;
    margin-bottom: 10px;
}