body {
    height: 100vh;
    font-size: 20px;
    color: white;
    background-color: rgb(15, 23, 42);
    display: flex;
    flex-direction: column;
    margin: 0;
    user-select: none;
    font-family: Arial, Helvetica, sans-serif;
}
button {
    color: white;
    cursor: pointer;
    background-color: rgb(23 47 92);
    line-height: 1.5;
    border-radius: 3px;
    border: 1px solid darkgray;
    font-size: 40px;
    padding: 7px 15px;
    margin: 15px;
    &:hover {
        background-color: rgb(36 58 99);
    }
}
input {
    background-color: rgb(23 47 92);
    color: white;
    border: 1px solid white;
}
select {
    background-color: rgb(23 47 92);
    color: white;
    border: 1px solid white;
    width: fit-content;
}
img {
    display: block;
}
.icon-button {
    height: 70px;
    cursor: pointer;
    &:hover {
        filter: url(/lenses_and_mirrors.html#filter-hover);
    }
}
.invisible {
    display: none !important;
}


/* main */
#main-banner {
    display: flex;
    height: 100px;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(35, 50, 84);
    border-bottom: 1px solid darkgray;
    font-size: 50px;
}
#main-sidebar {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 300px;
    top: 0;
    bottom: 0;
    background-color: rgb(23 47 92);
    border-right: 1px solid darkgray;
}
#main-sidebar > div {
    font-size: 36px;
}
#main-sidebar > :nth-child(1) > :nth-child(1) {
    cursor: pointer;
}
#main-sidebar > :nth-child(1) > .clickable:hover > img {
    filter: url(/lenses_and_mirrors.html#filter-hover);
}
#main-sidebar > :nth-child(1) > .tab {
    height: 40px;
    flex-grow: 1;
    justify-items: center;
    align-content: center;
    border-color: darkgray;
    border-style: solid;
    border-width: 0;
}
#main-sidebar > :nth-child(n + 2) {
    padding: 10px;
}
#main-canvas {
    position: absolute;
    inset: 0 0 0 300px;
}

/* general-settings */
#general-settings-frame {
    position: absolute;
    right: 10px;
    top: 10px;
}
#general-settings-icon {
    height: 50px;
    float: right;
    cursor: pointer;
    transition: transform 0.3s ease;
    &:hover {
        transform: rotate(90deg);
    }
}
#general-settings {
    display: flex;
    flex-direction: column;
    background-color: rgb(23 47 92);
    margin-top: 55px;
    border: 1px solid darkgray;
    padding: 10px;
}
#general-settings * {
    font-size: 20px;
}
#general-settings > * {
    margin-bottom: 5px;
}
#general-settings > :nth-child(n + 2){
    border-top: 1px solid darkgray;
    padding: 5px;
}
.general-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min-content;
}
.general-settings-grid > * {
    margin: 5px;
}
.general-settings-grid > input {
    max-width: 100px;
    height: fit-content;
    align-self: center;
}
.general-settings-grid > div {
    text-align: right;
}

/* element */
#element-add > div {
    padding-left: 3px;
    cursor: pointer;
    &:hover {
        border: 2px solid darkgray;
    }
}
#element-list > div {
    padding-left: 3px;
    margin-bottom: 10px;
    cursor: pointer;
    &:hover {
        color: lime;
    }
}
#element-center, #element-delete {
    flex-grow: 1;
}
#element-delete {
    color: crimson;
}


/* element-settings */
#element-settings {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: rgb(23 47 92);
    right: 0;
    top: 0;
    bottom: 0;
    border-left: 1px solid darkgray;
    padding: 10px;
    font-size: 30px;
}
#element-settings * {
    font-size: 30px;
}
#element-settings > * {
    margin-bottom: 10px;
}
#element-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min-content;
}
#element-settings-grid > * {
    margin: 10px;
}
#element-settings-grid > input {
    max-width: 200px;
    height: fit-content;
    align-self: center;
}
#element-settings-grid > div {
    text-align: right;
}

/* misc */
#button-download, #button-upload {
    margin-right: 10px;
}
#button-home {
    margin-left: 10px;
}
#message-box {
    display: none;
    position: absolute;
    z-index: 1;
    top: 50px;
    left: 50%;
    font-size: 30px;
    padding: 10px;
    transform: translateX(-50%);
}
.scrollbar {
    overflow-y: auto;
    scrollbar-color: white transparent;
}