@import "../../css/colors.css";
@import "../../css/units.css";
@import "../../css/z-index.css";

.body {
    background: $ui-white;
    padding: 1.5rem 2.25rem;
}

[theme~="dark"] .body {
    background: $ui-primary-dark;
    color: white;
}

.button-row {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    font-weight: bolder;
    text-align: center;
}

.button-row input {
    border: 1px solid $ui-black-transparent;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    background: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.button-row input.ok-button {
    background: $motion-primary;
    border: $motion-primary;
    color: white;
}

[theme="dark"] .button-row input.button {
    background: $ui-tertiary-dark;
    border-color: $ui-primary-dark;
    color: white;
    border-size: 2px;
}

[dir="ltr"] .button-row input + input {
    margin-left: 0.5rem;
}

[dir="rtl"] .button-row input + input {
    margin-right: 0.5rem;
}

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: $z-index-modal;
    background-color: $ui-modal-overlay;
}

[theme="dark"] .modal-overlay {
    background-color: $ui-modal-overlay-dark;
}

[blur="true"] .modal-overlay {
    filter: blur(5px);
}

.modal-content * {
    box-sizing: border-box;
}

.modal-content {
    margin: auto auto;
    outline: none;
    border: 4px solid $ui-white-transparent;
    padding: 0;
    border-radius: $space;
    user-select: none;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: $text-primary;
    overflow: hidden;
}

.box {
    height: 100%;
    display: flex;
}

.header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    height: $library-header-height;

    box-sizing: border-box;
    width: 100%;
    background-color: $motion-primary;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
}

[theme="dark"] .header {
    background-color: black;
}

.header-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: $ui-white;
    user-select: none;
}

[dir="ltr"] .header-image {
    margin-right: 0.5rem;
}

[dir="rtl"] .header-image {
    margin-left: 0.5rem;
}

.header-item-title {
    flex-grow: 1;
    flex-shrink: 0;
    justify-content: center;
    user-select: none;
    letter-spacing: 0.4px;
    cursor: default;
}
