
html {
}
body {
    max-width: 1964px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-right: 8px;
}
main {
    display: grid;
    grid-template-rows: 8vh 74vh 1fr;
    grid-template-columns: 74vw 25vw;
    gap: 10px;
    align-items: start;
    overflow: hidden;
}

h4 {
    padding-left: 0.5em;
}
header {
    display: grid;
    grid-area: 1 / 1 / 2 / 3;
    align-items: center;
    overflow: hidden;
}
header span * {
    user-select: none;
}
#grids-page {
    grid-area: 2 / 1 / 3 / 2;
    width: 100%;
    height: 100%;
    padding: 12px 0 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#navPage {
    grid-area: 2 / 2 / 4 / 3;
    margin-right: 10px;
    padding-right: 0.5em;
    overflow: hidden;
    height: 100%;
    margin-top: 12px;
}
#code {
    grid-area: 3 / 1 / 4 / 2;
    overflow: hidden;
}

h4, h6, label, .text-087 {
    user-select: none;
}

/********************/
/* grid layer items */
/********************/
#grid-layer {
    display: grid;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
}
#grid-layer > div {
    min-width: 3em;
    min-height: 3em;
}
#grid-layer .selectable {
}
#grid-layer .item {
    position: relative;
    width: 100%;
    height: 100%;
}
#grid-layer .item-name {
    position: absolute;
    left: 2em;
    top: 2.15em;
    font-size: 0.85em;
    transform: translate(-50%, -50%);
    color: var(--color-primary-50);
    background-color: var(--color-secondary-800);
    padding: 0.05em 0.15em;
    pointer-events: none;
}
#grid-layer .item-move {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 1.5em;
    height: 1.5em;
    cursor: move;
}

/********************/
/* grid interactive */
/********************/
#grid-calcul-wrapper {
    position: absolute;
    left: -10000px;
    top: 10vh;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    z-index: 90;
}

#grid-calcul {
    display: grid;
    align-items: stretch;
    justify-items: stretch;
}

/********************/
/* grid interactive */
/********************/
.stripe-bkg {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' version='1.1' id='checkerboard' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='%230d1a21' id='rect2' style='stroke-width:1' /%3E%3Cpath d='M 0,0 H 8 V 8 H 0 Z' stroke-width='0.8' stroke='none' fill='%2318323f' id='path4' /%3E%3Cpath d='m 8,8 h 8 v 8 H 8 Z' stroke-width='0.8' stroke='none' fill='%231e3f4f' id='path6' /%3E%3C/svg%3E%0A");
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: var(--color-primary-800);
    user-select: none;
}
#grid-container {
    position: relative;
    margin: 0;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--color-secondary-900);
}
#grid-interactive {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.stripe-bkg > div {
    position: absolute;
    color: var(--color-primary-200);
    background-color: var(--color-primary-800);
    z-index: 10;
}
:root {
    --offset-label-col: 1em;
    --offset-label-row: 1em;
}
.stripe-bkg > * {
    font-family: var(--font-monospace);
}
.stripe-bkg .col-row {
    top: calc(-1 * var(--offset-label-row));
    left: calc(-1 * var(--offset-label-col) * 1.5);
    line-height: 1em;
    pointer-events: none;
}
.stripe-bkg .div-end-col {
    top: calc(-1 * var(--offset-label-col));
    right: calc(-1 * var(--offset-label-col) * 1.25);
    line-height: 1em;
    pointer-events: none;
}
.stripe-bkg .div-end-row {
    bottom: calc(-1 * var(--offset-label-row));
    left: calc(-1 * var(--offset-label-row) - var(--offset-label-row) / 4);
    line-height: 1em;
    pointer-events: none;
}
.stripe-bkg .div-end-col-row {
    bottom: calc(-1 * var(--offset-label-col));
    right: calc(-1 * var(--offset-label-col) * 1.25);
    line-height: 1em;
    pointer-events: none;
}

/*****************/
/* grid elements */
/*****************/
.grid-1-1 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}
.grid-2-1 {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}
.grid-2-1-header {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}
.grid-3-1 {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}
.grid-4-1 {
    display: grid;
    grid-template-columns: 50% 20% 15% 15%;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}
.grid-5-1 {
    display: grid;
    grid-template-columns: 40% 20% 10% 10% 15%;
    grid-template-rows: 1fr;
    gap: 0.25em;
    align-items: center;
}

/*******************/
/* header: ui-view */
/*******************/
#portrait-landscape {
    cursor: pointer;
}
#portrait-landscape span {
}
.ico-landscape, .ico-portrait {
    display: inline-block;
    border: 1px solid var(--color-primary-50);
    margin-top: 4px;
}
.ico-landscape {
    width: 36px;
    height: 24px;
    margin-top: 12px;
}
.ico-portrait {
    width: 24px;
    height: 32px;
}
.ico {
    pointer-events: none;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1em;
}

/**********/
/* ui-nav */
/**********/
.nav-part {
    position: relative;
    margin: 0 0 1em 0;
}
.nav-part .accordion {
    max-width: 100%;
    padding-right: 0.25em;
}
.nav-part h3 {
    line-height: var(--line-height);
    padding: 0;
    margin: 0 0 0 1em;
}
.nav-part .material-symbols-outlined {
    cursor: pointer;
}
.nav-part button {
    display: block;
}
.nav-part img {
    height: auto;
    margin: 0 auto;
}

/* UI layout */
#header ul {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    padding-top: 0.5em;
}
#header ul li {
    list-style: none;
    vertical-align: middle;
    text-align: center;
}
#header ul li .material-symbols-outlined {
    padding: 0.15em 0.25em;
}
#header ul li:first-child {
    user-select: none;
}
#header ul li:nth-child(2) {
    height: 32px;
}
.layout-item, .layout-selected {
    position: relative;
    text-align: center;
}
.layout-item .title, .layout-selected-txt {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary-50);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.layout-item .date {
    font-size: 0.85em;
    color: var(--color-primary-50);
    position: absolute;
    bottom: 0.5em;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
img.layout {
    max-width: 85%;
    padding-top: 0.5em;
    pointer-events: none;
}
#header img {
    max-height: 7vh;
    width: auto;
    margin-top: 0.5vh;
}
.layout-selected-txt {
    font-weight: 700;
    font-size: 0.85em;
    text-align: center;
    width: fit-content;
    line-height: 0.85em;
}

/* *************** */
/*      input      */
/* *************** */
label {
    font-size: 0.85em;
    text-align: right;
}
input {
    font-size: 1em;
    width: fit-content;
}
#navPage input {
    text-align: right;
}
.dropdown-content input {
    font-size: 1.25em;
    width: 100%;
    color: var(--color-secondary-50);
}
input.rowcol-value {
    max-width: 5ch;
}
input[type=number] {
    text-align: right;
}
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input::-webkit-input-placeholder {
    -webkit-appearance: none;
}
.dropdown-content input:focus-visible {
    outline: none;
    color: var(--color-primary-100);
}
.dropdown-content input {
    border: 0;
    background: none;
    box-shadow: none;
    border-bottom: 1px solid var(--color-primary-200);
}
#modal input {
    font-size: 1.25em;
}
#modal label {
    display: inline-block;
    width: 20ch;
}

/* *************** */
/*  cursor pointer */
/* *************** */
#pluscol, #minuscol, #plusrow, #minusrow, .remove-colrow, #item-create, #item-save, .layout-item, .layout-click, .clipboard-copy, #tooltip-on-off, #documentation, #predifined, #item-up, #item-down {
    cursor: pointer;
}

/* *************** */
/* dropdown styles */
/* *************** */
.dropdown-click { /* class for elements to fire the drop-down, NEEDED */
    position: relative;
    cursor: pointer;
    z-index: 88;
}

.dropdown-content { /* class for elements to drop-down, NEEDED */
    position: absolute;
    top: -3000px;
    opacity: 0;
    min-width: fit-content;
    z-index: 89;
    margin: 0;
    padding: 0;
}

/* some styles for the inner of drop-down, to have something visible for the demo */
.dropdown-content ul {
    margin: 0;
    padding: 0.5em 1em;
    text-align: center;
    min-width: 20vw;
}
.dropdown-content li {
    list-style: none;
    padding: 0.5em 2em;
}

/*********/
/* login */
/*********/
#login-error {
    color: var(--color-error);
}

/********/
/* code */
/********/
code {
    font-size: 0.85em;
}
/**************/
/* DIV LAYOUT */
/**************/
#item-selected {
    padding: 0.25em;
    margin-bottom: 1em;
}
#item-content label {
    font-size: 0.85em;
    margin-right: 0.15em;
}
#item-content input {
    text-align: left;
}
#item-content b {
    font-size: 1.5em;
    color: var(--color-secondary-200);
}
/*************/
/* accordion */
/*************/
.accordion-pre {
    padding-bottom: 1em;
}
.accordion-content-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 0;
    transition: all 0.5s ease;
}
.accordion-content {
    padding: 0.5em;
    margin-bottom: 1em;
}
.accordion-open {
    max-height: 10000px;
}
.expand {
    cursor: pointer;
}
.check-edit {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}
.check-edit span {
    font-size: 2em;
}

/*************/
/*   modal   */
/*************/
.modal {
    position: absolute;
    z-index: 97;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.75);
}
.modal-content-wrapper {
    position: relative;
    z-index: 98;
    left: 5vw;
    top: 5vh;
    width: 90vw;
    height: 90vh;
}
#modal .modal-content-wrapper {
    position: relative;
    z-index: 98;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    min-width: 50%;
    max-width: 90%;
    height: fit-content;
}

/* Modal Content/Box */
.modal-content {
}
.modal-content h4 {
    pointer-events: none;
}
.modal-content .content-wrapper {
    width: 100%;
    height: calc(90vh - 5vh);
    overflow-x: hidden;
    overflow-y: auto;
}

/* The Close Button */
.modal-close {
    z-index: 99;
}
.modal .active {
    background-color: var(--color-primary-700);
}

/***********/
/* tooltip */
/***********/
.tooltip {
    position: fixed;
    width: auto;
    padding: 0.25em 0.5em;
    border: 1px solid var(--color-primary-800);
    border-radius: 4px;
    text-align: center;
    font-style: italic;
    font-size: 0.85em;
    color: var(--color-primary-800);
    background: var(--color-primary-50);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .3);
    z-index: 99;
    white-space: nowrap;
}
#tooltip-on-off span {
    padding: 0.15em;
}
.active {
    background-color: var(--color-primary-900);
}
/*********/
/* icons */
/*********/
.rotateLandscape {
    transform: rotate(-45deg);
}
.material-symbols-outlined {
    pointer-events: none;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}
.item-resize {
    display: none;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    z-index: 20;
}
.icon-NW {
    top: 8px;
    left: 8px;
    border-top-width: 3px;
    border-top-style: solid;
    border-left-width: 3px;
    border-left-style: solid;
}
.icon-NE {
    top: 8px;
    right: 8px;
    border-top-width: 3px;
    border-top-style: solid;
    border-right-width: 3px;
    border-right-style: solid;
}
.icon-SE {
    bottom: 1em;
    right: 1em;
    cursor: nwse-resize;
}
.icon-SW {
    bottom: 8px;
    left: 8px;
    border-bottom-width: 3px;
    border-bottom-style: solid;
    border-left-width: 3px;
    border-left-style: solid;
}

/*********/
/* reset */
/*********/
a {
    text-decoration: none;
    color: var(--color-primary-100);
}
a:hover {
    color: var(--color-primary-50);
    transform: scale(1.2);
}
/*********/
/* utils */
/*********/
.line-soft {
    height: 0;
    border: 1px solid var(--color-primary-200);
    margin: 0.5em 0 1em 1em;
}
/**
 * Clear any floats
 */
.clearfix:before,
.clearfix:after {
    display: table;
    content: " ";
}

.clearfix:after {
    clear: both;
}
