body {
    margin: 0;
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
}

.d-n {
    display: none !important;
}

.d-g {
    display: grid;
}

#main-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 70px 1fr;
}

#side-bar {
    text-align: center;
    grid-column: 1/2;
    grid-row: 1/2;
    height: 100%;
    /* background-color: #0D1625; */
    background: transparent linear-gradient(180deg, #435980 0%, #0D1625 3%) 0% 0% no-repeat padding-box;
    /* border: 1px solid #2c4c57; */
}
#logo{
    width: 60px;
    margin-top: 10px;
}
#viewers-container {
    grid-column: 2/3;
    grid-row: 1/2;
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    background-color: darkgray;
    gap: 1.5px;
    padding: 1px;
}

.viewer {
    width: 100%;
    height: 100%;
    position: relative;
    min-width: 300px;
    min-height: 450px;
}

.viewer canvas {
    position: absolute;
}

.study-select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.viewer svg {
    cursor: pointer;
}

.max {
    z-index: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.max:hover {
    opacity: 1;
}

.max * {
    pointer-events: none;
}

.fem-map {
    position: absolute;
    top: 50px;
    left: 10px;
    height: calc(100% - 70px);
    max-height: 400px;
    pointer-events: none;
}

.model-visibility-controls {
    z-index: 1;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.model-visibility-controls svg:hover ellipse {
    fill: #2e2d2d;
}

.model-visibility-controls>* {
    margin-bottom: 10px;
}

.model-visibility-controls>div {
    width: 56px;
    height: 62px;
    align-items: flex-end;
    justify-content: flex-end;
    display: flex;
    cursor: pointer;
    user-select: none;
}

.model-visibility-controls>div>img {
    pointer-events: none;
}

.toolbar-btn-container {
    position: relative;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    /* z-index: 500; */
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 32px;
    /* padding: 6px; */
    margin: 10px auto;
    border: 1px solid transparent;
    cursor: pointer;
    /* text-align: center; */
}

#layout-select {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
    /* grid-template-rows: repeat(4,1fr); */
}

.layout-rect {
    height: 40px;
    width: 40px;
    background-color: #5e7aa5;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}

.toolbar-menu {
    position: absolute;
    /* top: 70px; */
    left: 70px;
    background-color: #132137;
    border: 1px solid #466089;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 10px;
    padding: 20px 10px;
    display: none;
    z-index: 250;
}

.toolbar-btn>svg {
    fill: #5E7AA5;
    height: 30px;
}

.toolbar-btn-container:hover .toolbar-menu {
    display: grid;
}

.toolbar-btn-container:hover .toolbar-btn {
    border: 1px solid #466089;
    background-color: #132137;
    color: #D8E2FF;
}

.toolbar-btn-container:hover svg {
    fill: #D8E2FF;
}

.layout-rect:hover {
    background-color: #D8E2FF;
}

.layout-rect:hover~div {
    background-color: #D8E2FF;
}

.views-container {
    position: absolute;
    display: flex;
    bottom: 12px;
    left: 8px;
    height: 20px;
}
.views-btn {
    width: 24px;
    height: 20px;
    background-color: #5e7aa5;
    margin: 0px 2px;
    text-align: center;
    opacity: 0.25;
    border-radius: 4px;
    padding: 2px 0px;
    cursor: pointer;
    user-select: none;
}
.views-btn:hover {
    opacity: 1;
}

progress {
    width: 50%;
    position: absolute;
    top: 50%;
    margin: 0px 25%;
}