:root {
    --blue: rgb(118, 118, 235)
}

.handleAreaWrapper {
    box-shadow: 0 0 10px rgb(35, 35, 35);
    background-color: rgb(35, 35, 35);
    width: 300px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handleArea {
    overflow: visible;
}

.handleArea:focus {
    outline: none;
}

* {
    box-sizing: border-box;
}

.handler:hover {
    cursor: move;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: rgb(30, 30, 30);
    color: white;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    padding: 3em 1em;
}

main {
    flex-grow: 1;
    overflow: auto;
    padding-bottom: 3em;
}

.topArea {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

@media screen and (max-width: 800px) {
    .topArea {
        display: unset
    }

    .handleAreaWrapper {
        width: 100%
    }

    body {
        padding: 1em
    }
}

.topAreaUI {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.tabs {
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tab-registers {
    overflow-x: visible;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.799);
    z-index: 99;
}

.tab-registers button {
    margin: 0;
    display: inline;
    padding: 0.4em;
}

.tab-registers button.active-tab {
    background-color: rgb(50, 50, 50)
}

.tab-bodies {
    overflow: auto;
    flex-grow: 1;
    padding: 1em;
}




.inputAndButton {
    display: flex
}

.inputAndButton input {
    flex-grow: 1;
}

.handlerLine {
    stroke: var(--blue);
    stroke-width: 1;
}

.customDisplay {
    background-color: var(--blue);
    word-break: keep-all;
}

/* .display {
    margin-top: 20px;
    display: flex;
    flex-direction: column
}

.display>*>div {
    animation-duration: 2s;
    animation-name: changewidth;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    display: inline-block;
    margin-bottom: 20px;
    height: 40px;
    clear: both;
}
.display>div>div:not(.customDisplay) {
    background-color: rgb(60, 60, 60);
    opacity: 0.2;
}

*/



.display {
    display: flex;
    flex-direction: column;
}

.displayRow {
    display: flex;
    position: relative;
    height: 50px;
}

.displayRow > *:first-child {
    width: 200px;
    margin-right: 20px
}

.displayRow > *:last-child {
    animation-duration: 2s;
    animation-name: changewidth;
    animation-iteration-count: infinite;
    /* animation-direction: alternate; */
    visibility: hidden;
    height: 40px;
    position: absolute;
    right: 0;
}
.displayRow > *:last-child:not(.customDisplay) {
    background-color: rgb(60, 60, 60);
}
.displayRow > *:not(.customDisplay) {
    opacity: 0.5;
}

@keyframes changewidth {
    0% {
        visibility: visible;
    }
    
    10% {
        width: 0;
    }
    
    80% {
        width: 70%;
        visibility: visible;
    }
} 




.presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px
}

.preset {
    background-color: rgb(40, 40, 40);
    min-height: 100px;
    padding: 1em;   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preset svg {
    overflow: visible
}

.axisText {
    fill: grey
}

.rotate {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
}



h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: normal;
    margin: 0;
}

a {
    color: var(--blue)
}

path {
    stroke: var(--blue)
}

input,
button {
    box-shadow: 0 0 10px rgb(35, 35, 35);
    font: inherit;
    font-family: Consolas, monospace;
    color: inherit;
    background-color: rgb(40, 40, 40);
    outline: none;
    border: none;
    padding: 1em;
}

::-webkit-scrollbar {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.2);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(100, 100, 100);
}