@import url(https://fonts.googleapis.com/css2?family=Roboto&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Work+Sans:wght@500&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Oswald&display=swap);
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    user-select: none;
}

#root {
    background-color: #e4e4e7;
    width: 100vw;
    height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.toolbar {
    margin: 1rem 0;
}

.tool, .color-tool, .tool-expander {
    background-color: #e2e8f0;
    text-align: center;
    vertical-align: middle;
    height: 1.5rem;
    border: 0.0625rem solid #94a3b8;
    border-radius: 0.125rem;
    cursor: pointer;
}

.tool:hover,
.color-tool:hover,
.tool-expander:hover {
    background-color: #f1f5f9;
    border-color: #64748b;
}

.tool:active,
.color-tool:active,
.tool-expander:active {
    background-color: #cbd5e1;
}

.tool {
    width: 1.5rem;
    margin-right: 0.25rem;
}

.italic {
    padding-right: 0.125rem;
}

.tool > sup, 
.tool > sub {
    font-size: 0.625rem;
}

.tool,
.tool > b,
.tool > i,
.tool > u,
.tool > span {
    font-size: 0.875rem;
    font-family: "Work Sans", Arial, sans-serif;
}

.color-tool-set {
    display: inline-block;
    width: 2.1875rem;
    height: 1.5rem;
    margin-right: 0.25rem;
}

.color-tool {
    font-size: 0.875rem;
    font-family: "Work Sans", Arial, sans-serif;
    width: 1.5rem;
    margin-right: -0.0625rem;
}

.tool-expander {
    width: 0.75rem;
    height: 1.5rem;
}

.tool-expander > svg {
    box-sizing: content-box;
    transition: transform 0.25s ease-in-out;
}

.highlighted {
    background-color: #cbd5e1; 
}

.color-picker {
    position: absolute;
    background-color: #e4e4e7;
    z-index: 10;
    padding: 1rem;
    border: 0.0625rem solid #a1a1aa;
    border-radius: 0.125rem;
    box-shadow: 0.25rem 0.25rem 0.5rem 0.125rem #6b728066;
    transform: translate(0rem, 0.25rem) translateZ(0rem);
}

.color-picker > p {
    font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
    margin-bottom: 0.5rem;
}

.color-table, .custom-color-row {
    display: grid;
    grid-template-columns: repeat(10, 1rem);
    grid-template-rows: 1rem;
    gap: 0.125rem;
}

.color-table {
    margin-bottom: 1rem;
}

.color-square {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.0625rem solid #a1a1aa;
    cursor: pointer;
}

.color-square:hover {
    border: 0.0625rem solid #000000;
    box-shadow: 0 0 0 0.0625rem #ffffff inset;
}

.color-input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    z-index: -10;
    transform: translate(0.5rem, 0.25rem);
}

#logo {
    display: inline-block;
    font-size: 1.5rem;
    font-family: "Oswald", Arial, sans-serif;
    text-align: right;
    line-height: 0.5;
}

#logo > span {
    font-size: 0.75rem;
    font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
}

#editor-container {
    background-color: #d1d5db;
    width: 100vw;
    height: calc(100vh - 3.5rem);
    padding: 2rem calc((100vw - 52.625rem) / 2);
    border-top: 0.0625rem solid #a1a1aa;
    overflow: scroll;
}

#editor {
    background-color: #f9fafb;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    width: 49.625rem;
    min-height: 70.125rem;
    padding: 4.5rem;
    margin: 1rem;
    box-shadow: 0.25rem 0.25rem 0.5rem 0.25rem #6b728066;
    white-space: pre-wrap;
    user-select: initial;
}

#editor, #editor:focus {
    border: 0.0625rem solid #9ca3af;
    outline: none;
}

#editor::selection {
    background: #d1d5db;
}

#editor *::selection {
    background: #d1d5db;
}

#editor * {
    user-select: initial;
}

ul {
    list-style-position: inside;
}

