body {
    margin: 0;
    overflow: hidden;
}

#waitLoad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 99999;
}

.loading-main {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
}

.loading-main div {
    margin: auto;
}

.src-loading {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 100%;
    animation: circle infinite 0.75s linear;
}

@keyframes circle {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

#app {
    display: grid;
    grid-template-rows: 50px 1fr;
}

#nav {
    user-select: none;
    -webkit-user-select: none;
    background-color: #00C0FF;
    display: grid;
    grid-template-columns: auto auto auto 280px 1fr 70px 70px;
}

.nav-item {
    display: flex;
    width: fit-content;
    height: 50px;
    cursor: pointer;
}

.nav-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-input {
    padding: 5px;
}

.nav-input input {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    padding: 5px;
    outline: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    background-color: #3ecfff;
    border-radius: 5px;
}

.nav-input input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.nav-input input:focus {
    color: rgba(255, 255, 255, 1);
    background-color: #69daff;
}

.nav-input input:hover {
    color: rgba(255, 255, 255, 1);
    background-color: #69daff;
}

#main {
    display: grid;
    grid-template-columns: 30vw 70vw;
}

#editor {
    width: 70vw;
    height: calc(100vh - 50px);
}

#docTitle {
    width: 30vw;
    height: 21px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
}

#previewFrame {
    background-color: white;
    width: 30vw;
    height: calc(100vh - 50px - 21px);
    border: none;
}

#preview {
    background-color: lightgrey;
}

.labels>.blocklyFlyoutLabelText {
    font-style: italic;
}

.menuMain {
    display: grid;
    position: fixed;
    border-radius: 5px;
    background-color: white;
    padding: 3px;
    grid-template-columns: auto;
}

.menuItem {
    padding: 3px;
    cursor: pointer;
}

.menuItem:hover {
    background-color: rgba(211, 211, 211, 0.5);
    border-radius: 5px;
}

.blocklyToolboxDiv {
    background-color: white;
}

.blocklyFlyoutBackground {
    fill: rgba(255, 255, 255, 0.8);
}

.nav-text {
    padding-left: 3px;
    padding-right: 3px;
    justify-content: center;
    align-items: center;
}

#fileMenu {
    user-select: none;
    -webkit-user-select: none;
    text-align: center;
    position: fixed;
    top: 55px;
}

#fileMenu {
    left: 35px;
}

[data-nav-menu="hidden"] {
    display: none;
}

[data-nav-menu="show"] {
    display: flex;
}

#docTitleInput {
    margin-left: 100px;
}

#save,
#publish {
    width: 50px;
    height: 30px;
    border: none;
    background-color: white;
    border-radius: 7px;
    margin: 10px;
    cursor: pointer;
}