@font-face {
    font-family: "Chicago Kare";
    src: url("Chicago-Kare/ChicagoKare-Regular.woff2") format("woff2"),
         url("Chicago-Kare/ChicagoKare-Regular.woff") format("woff"),
         url("Chicago-Kare/ChicagoKare-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-image: 
        repeating-linear-gradient(0deg, #000 0px, #000 1px, #fff 1px, #fff 2px),
        repeating-linear-gradient(90deg, #000 0px, #000 1px, #fff 1px, #fff 2px);
    background-size: 4px 4px;
    background-position: 0 0, 0 0;
    background-blend-mode: difference;
}

.window {
    width: 100%;
    max-width: 900px;
    border-width: 2px 4px 4px 2px !important;
}

label, legend, .coinbase-title, .output-entry-title {
    font-family: "Chicago Kare", "Chicago", "Charcoal", sans-serif;
}

label {
    margin-bottom: 2px;
    display: block;
}

textarea {
    width: 100%;
    min-height: 120px;
    font-family: "Geneva", monospace;
    font-size: 10px;
    resize: vertical;
    margin-top: 1px;
}

textarea:focus {
    outline: none;
    background-color: white !important;
    color: black !important;
}

.output-section {
    display: none;
    margin-top: 10px;
}

.output-section.visible {
    display: block;
}

.output-item {
    margin: 4px 0;
    font-size: 10px;
}

.output-label {
    font-weight: normal;
    display: inline-block;
    min-width: 140px;
}

.output-value {
    font-family: "Geneva", monospace;
    word-break: break-all;
}

.coinbase-outputs {
    margin-top: 12px;
}

.coinbase-title {
    font-weight: normal;
    margin-bottom: 8px;
}

.output-entry {
    margin-bottom: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid #000;
}

.output-entry-title {
    font-weight: normal;
    margin-bottom: 4px;
}

/* Custom System 6 title bar styling */
.window .title-bar {
    background: #fff;
    height: 19px;
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    position: relative;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}

.window .title-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        #000 1px,
        #000 2px,
        transparent 3px
    );
    pointer-events: none;
}

.window .title-bar .title {
    font-family: "Chicago Kare", "Chicago", "Charcoal", sans-serif;
    font-size: 20px;
    font-weight: normal;
    margin: 0 auto;
    padding: 0 8px;
    padding-top: 2px;
    background: #fff;
    border: none;
    line-height: 17px;
    height: 17px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.window .title-bar .title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
}

.window .title-bar .close {
    position: absolute;
    width: 33px;
    height: 33px;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 0 0 0 4px #fff;
    padding: 0;
}

.window .title-bar .close:before,
.window .title-bar .close:after {
    display: none;
}

.window .title-bar button.hidden {
    display: none;
}

/* Hide scrollbar on window */
.window {
    overflow: hidden !important;
}

.window-pane {
    overflow: visible !important;
}

/* Fix scrollbar arrows to show only one arrow in each direction */
::-webkit-scrollbar-button:vertical:increment:end {
    display: block !important;
}

::-webkit-scrollbar-button:vertical:increment:start {
    display: none !important;
}

::-webkit-scrollbar-button:vertical:decrement:start {
    display: block !important;
}

::-webkit-scrollbar-button:vertical:decrement:end {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}
