.window {
    background-color: #caced1;
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #ababab;
    border-bottom-color: #ababab;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    margin: auto;
    margin-bottom: .625rem;
    max-width: 44.5rem
}

.window-nav {
    background-color: #221db3;
    margin: .125rem .125rem 0 .125rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .3125rem;
    min-height: 1.375rem;
}

.window-nav:has(> *:only-child) {
    justify-content: center;
}

.window-nav h3 {
    padding: .125rem 0 .125rem 0;
    margin: 0 0 0 .3125rem;
    color: white;
}

.window-content {
    display: flex;
    width: fit-content;
    align-items: center;
}

.window-body {
    padding: 0 1rem 0 1rem;
}

.window-navbutton-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.window-navbutton {
    margin: .125rem .125rem .125rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.window-navbutton-div {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #ababab;
    border-bottom-color: #ababab;
    padding: .1rem .17rem 0 .17rem;
    height: 100%;
}

.window-navbutton-text h3 {
    color: black;
    margin: 0;
    padding: 0;
    font-size: 80%;
}

.window-navbutton-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%
}

.window-navbutton-text img {
    display: block;
    width: .5rem;
}


.window-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: .3125rem 0 .3125rem 0;
    gap: .25rem;
}

.window-buttons>div,
.button {
    /*border: .0625rem solid black;*/
    border-radius: .1875rem;
    border-width: .125rem;
}

.window-buttons>div>div,
.button-div {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #ababab;
    border-bottom-color: #ababab;
    padding: .125rem .1875rem .125rem .1875rem;
    border-radius: .0625rem;
}

.button-text {
    border: 0.125rem solid transparent;
}

button:hover {
    cursor: pointer;
}

.button:hover,
.button:focus {
    margin: 0;
    border: .0625rem solid black;
    border-radius: .1875rem;
    border-width: .125rem;

    .button-text {
        border: .125rem dotted black;
    }
}

button:active {

    .button-div,
    .window-navbutton-div {
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #ababab;
        border-left-color: #ababab;
        border-right-color: #ffffff;
        border-bottom-color: #ffffff;
    }
}

.window hr {
    margin: 0;
    color: #919599;
    border-top: solid #919599;
    border-bottom: solid white;
    border-width: .0625rem 0 .0625rem 0;
}

.notepad-content {
    background-color: white;
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #545454;
    border-bottom-color: #545454;
    margin: .125rem;
    padding-bottom: .625rem;
}

.toolbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: .8125rem;
    margin: .25rem .25rem .25rem .5rem;
    padding: 0;
    height: fit-content;
}

.toolbar p {
    margin: 0;
}

.window-nav-title {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.window-nav-title img {
    height: 1.3125rem;
    width: auto;
    padding-left: .1875rem;
}

.light-outset,
.theme-outset {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #ababab;
    border-bottom-color: #ababab;
}

.light-inset,
.theme-inset {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #ababab;
    border-left-color: #ababab;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.dark-outset {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #545454;
    border-left-color: #545454;
    border-right-color: #000000;
    border-bottom-color: #000000;
}

.dark-inset {
    border-width: 0.125rem;
    border-style: solid;
    border-color: gray;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #545454;
    border-bottom-color: #545454;
}

@media (prefers-color-scheme: dark) {
    .window {
        background-color: #36322f;
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #545454;
        border-left-color: #545454;
        border-right-color: #000000;
        border-bottom-color: #000000;
    }

    .window-nav {
        background-color: #221db3;
    }

    .window-navbutton-div {
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #545454;
        border-left-color: #545454;
        border-right-color: #000000;
        border-bottom-color: #000000;
    }

    .window-navbutton-text h3 {
        color: white;
    }

    .window-buttons>div>div,
    .button-div {
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #545454;
        border-left-color: #545454;
        border-right-color: #000000;
        border-bottom-color: #000000;
    }

    .button:hover,
    .button:focus {
        margin: 0;
        border: .0625rem solid white;
        border-radius: .1875rem;
        border-width: .125rem;

        .button-text {
            border: .125rem dotted white;
        }
    }

    button:active {

        .button-div,
        .window-navbutton-div {
            border-width: 0.125rem;
            border-style: solid;
            border-color: gray;
            border-top-color: #000000;
            border-left-color: #000000;
            border-right-color: #545454;
            border-bottom-color: #545454;
        }
    }

    .window hr {
        color: #545454;
        border-top: solid #545454;
        border-bottom: solid black;
        margin-top: 0.125rem;
    }

    .notepad-content {
        background-color: #1f1f1f;
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #000000;
        border-left-color: #000000;
        border-right-color: #545454;
        border-bottom-color: #545454;
    }

    #maximize_img {
        content: url(/assets/dark_maximize.png);
    }

    .theme-outset {
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #545454;
        border-left-color: #545454;
        border-right-color: #000000;
        border-bottom-color: #000000;
    }

    .theme-inset {
        border-width: 0.125rem;
        border-style: solid;
        border-color: gray;
        border-top-color: #000000;
        border-left-color: #000000;
        border-right-color: #545454;
        border-bottom-color: #545454;
    }
}