@import "theme/default.css";
@import "court.css";
@import "tactic.css";

#main-div {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: var(--background-color);

    flex-direction: column;

    overflow: hidden;
}

#topbar-left {
    width: 100%;
    display: flex;
}

#topbar-right {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

#topbar-div {
    width: 100%;
    display: flex;
    background-color: var(--main-color);

    justify-content: space-between;
    align-items: stretch;
}

#racks {
    margin: 3px 6px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;
    z-index: 1;

    align-content: space-between;
    width: 100%;
}

.title-input {
    width: 25ch;
}

#editor-div {
    display: flex;
    flex-direction: row;
}

#content-div,
#editor-div,
#steps-div {
    height: 100%;
    width: 100%;
}

#content-div {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.curtain {
    width: 100%;
}

#steps-div {
    background-color: var(--editor-tree-background);
    overflow: scroll;
}

#allies-rack,
#opponent-rack {
    width: 125px;
    min-width: 125px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

#allies-rack {
    justify-content: flex-start;
}

#opponent-rack {
    justify-content: flex-end;
}

#opponent-rack .player-piece {
    margin-right: 5px;
}

#allies-rack .player-piece {
    margin-left: 5px;
}

#court-div {
    background-color: var(--background-color);

    height: 100%;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.save-state {
    display: flex;
    align-items: center;
    margin-left: 20%;
    font-family: monospace;
}

.save-state,
#show-steps-button {
    user-select: none;
}

.save-state-error {
    color: red;
}

.save-state-ok {
    color: green;
}

.save-state-saving,
.save-state-guest {
    color: gray;
}
