/* Fallback font if MS PGothic is missing */
@font-face {
    font-family: "MS Gothic Fallback";
    src: url("MS Gothic.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #fffaf2;
    font-family: "MS PGothic", "MS Gothic Fallback", "Comic Sans MS", sans-serif;
    overflow: auto; /* allow scrolling */
    color: #333;
}

.window {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 2px solid #ff9933;
    border-radius: 0;
    box-shadow: none;
}

.title-bar {
    background: linear-gradient(to right, #ffb366, #ff9933);
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content {
    flex: 1;
    display: flex;
    min-height: 0; /* important for flex + iframe */
    overflow: auto; /* scroll content area if needed */
}

.sidebar {
    width: 200px;
    background-color: #fff7e6;
    border-right: 2px solid #ffcc80;
    padding: 12px;
    box-sizing: border-box;
    overflow-y: auto; /* scroll sidebar if too tall */
}

.sidebar button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background: #ffe0b3;
    border: 1px solid #ff9933;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
}

.sidebar button:hover {
    background: #ffcc80;
}

iframe {
    flex: 1;
    border: none;
    background-color: #fffaf2;
    width: 100%;
    height: 100%;
    overflow: auto; /* allow iframe scroll if needed */
}

footer {
    text-align: center;
    font-size: 12px;
    background: #fff0d9;
    border-top: 2px solid #ffcc80;
    padding: 6px;
    overflow: auto; /* in case of long text */
}
