/*
 * MIT License
 *
 * Copyright (c) 2021 Thiago Lamenza e Victor Martins
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

:root {
    --tabWidth: 15pt;
}
/* Menu de algoritmos */
#algorithmMenu {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 0;
    top: 10pt;
    height: fit-content;
    max-height: calc(100% - 150pt);
    z-index: 15;
    transition: all 0.2s ease-in-out;
    transform: translateX(calc(-100% + var(--tabWidth)));
}

#algorithmMenu:hover, #algorithmMenu.open{
    transform: unset;
}

#algorithmMenuBody {
    display: flex;
    flex-direction: column;
    background-color: #2F2D32;
    overflow: auto;
    max-height: 100%;
    width: 425pt;
    border-bottom-right-radius: 12pt;
}


#algorithmMenuTab {
    width: var(--tabWidth);
    height: 100pt;
    border-top-right-radius: 8pt;
    border-bottom-right-radius: 8pt;
    background-color: rgba(0, 0, 0, 0.8);
    border-left: 2pt solid #aaa;
    /*margin-left: -2pt;*/
    margin-bottom: auto;
}

#algorithmMenuPin, #algorithmMenuUnpin {
    /*position: absolute;*/
    /*top: 5px;*/
    /*right: 5px;*/
    color: white;
    width: 20pt;
    /*opacity: 0.4;*/
    z-index: 20;
    display: none;
    cursor: pointer;
}

#algorithmMenu:hover #algorithmMenuPin, #algorithmMenu:hover #algorithmMenuUnpin {
    display: block;
}

#algorithmMenuUnpin {
    display: none !important;
    /*opacity: 1;*/
    fill: white;
}

#algorithmMenu.open #algorithmMenuUnpin {
    display: block !important;
}

#algorithmMenu.open #algorithmMenuPin {
    display: none;
}


#algorithmMenuTabs {
    display: flex;
    justify-content: space-around;
    align-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8) 80%);
    border-bottom: 2pt solid #888;
}
#algorithmMenuTabs > div {
    border-left: 2pt solid #888;
    height: 15pt;
}
#algorithmMenuTabs > #pin {
    border-left: none;
}

#algorithmMenuTabs > div {
    /*margin-left: 10px;*/
    color:white;
    /*background-color: red;*/
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
    /*position: relative;*/
    width: 50%;
    z-index: 100;
}
#algorithmMenuTabs > div[active="true"] {
    background-color: #888;
}

#algorithmMenuTabs p {
    margin: 0;
    width: fit-content;
    height: fit-content;
}
.tab, #pin {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#pin {
    flex: 0 0 15pt;
    margin-left: auto;
    margin-right: auto;
    /*background: #888;*/
    /*background-color: #555;*/
}
#pin {
    background-color: #555;
}