body {
    background: #00ffff70;
    display: flex;
    flex-direction: column;
}

html, body {
    min-height: 100vh;
    min-width: 900px !important;
}

main {
    flex: 1;
}

button:active {
    transform: scale(0.8);
}

#toast-container > div {
    opacity: 1 !important;
}

#toast-container {
    margin-top: 20px !important;
}

.canvasjs-chart-tooltip div:empty, 
.canvasjs-chart-tooltip:empty {
    display: none !important;
}

#lang-label {
    width: 112px;
    height: 41px;
    position: relative;
    display: block;
    background: white;
    border-radius: 200px;
    box-shadow: inset 0px 5px 15px rgba(0,0,0,0.4), inset 0px -5px 15px rgba(255,255,255, 0.4);
    cursor: pointer;
    border: 4px outset #bdbebe;
    transition: 0.5s;
}

#lang-label:after {
    content: "";
    width: 49px;
    height: 28px;
    position: absolute;
    top: 2px;
    left: 4px;
    background: transparent;
    border: 2px solid #0dcaf0;
    border-radius: 36px;
    box-shadow: 0px 2px 2px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.lang-img {
    position: absolute;
    border: 1px solid #0dcaf0;
    width: 30px;
    height: 20px;
    left: 12px;
    top: 6px;
    z-index: 100;
}

.lang-img.eng{
    left: 62px;
}

#language-toggle {
    width: 0;
    height: 0;
    visibility: hidden;
}

#language-toggle:checked + #lang-label:after {
    left: 100px;
    transform: translateX(-100%);
    background: linear-gradient(90deg, #045e68, #0dcaf0);
    border: none;
}

::-webkit-scrollbar {
    display: none;
}

#top_navbar {
    min-height: 116px;
    min-width: 600px !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    width: 100%;
    border-bottom: 8px inset rgb(203, 207, 210) !important;
    background: linear-gradient(90deg,rgba(3, 21, 28, 1) 0%, rgba(4, 58, 120, 1) 0%, rgba(1, 133, 205, 1) 88%);
}

#lower_footer {
    border-top: 8px outset rgb(149, 163, 166) !important;
    background: linear-gradient(90deg,rgba(3, 21, 28, 1) 0%, rgba(4, 58, 120, 1) 0%, rgba(1, 133, 205, 1) 88%);
}

.overview {
    height: 180px;
    background-color: rgb(255, 255, 255);
}

#graf1 {
    display: flex;
    margin-top: 15px;
    margin-right: 20px;
    margin-right: 20px;
    width: auto;
}

.flex-container {
    display: flex;
    align-content: center;
    margin-left: 150px;
    flex-wrap: wrap;
    flex-direction: row;
}
  
.flex-container > div {
    width: 30%;
    text-align: center;
    line-height: 75px;
    font-size: 30px;
}

@media (max-width: 1249px) {
    #slider{
        margin: 25px;
        display: flex;
        place-content: center;
        max-width: 500px;
    }
    .controls {
        margin: 20px;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
    }
    .container {
        max-width: 540px !important;
    }
    .navbar-nav {
        flex-direction: row !important;
    }

    .modal-backdrop,
    body.modal-open .modal-backdrop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
        min-height: 100% !important;

        display: inline-block !important;
        height: 100% !important;
        width: 100% !important;
    }

    html, body {
        position: relative !important;
    }
    
    body.modal-open,
    body.modal-open[style] {
        padding-right: 0px !important;
        margin-right: 0px !important;
        overflow: auto !important;
    }

    .modal-open .fixed-top, 
    .modal-open .fixed-bottom, 
    .modal-open .navbar, 
    .modal-open footer {
        padding-right: 0px !important;
        margin-right: 0px !important;
    }

    .modal-content {
        margin-left: 20px !important;
    }

    html, body {
        min-height: 200vh;
    }
}

@media (min-width: 1250px) {
    #slider{
        display: flex;
        place-items: center;
        max-width: 500px;
    }
    .controls {
        margin: 20px;
        display: flex;
        flex: 1;
        flex-direction: row;
    }
}

@media (max-width: 1500px) {
    #Graf {
        margin-bottom: 20px;
        flex-direction: column;
        max-width: fit-content;
        min-height: 990px;
    }
    #chartContainer {
        margin-left: 60px;
    }
}


#range1,
#range2 {
    cursor: pointer !important;
}

.range {
    height: 64px;
    width: 100%;
    max-width: 300px;
    border-radius: 4rem;
    padding-inline: 2.5rem;
    display: grid;
}

.range__content{
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}

.range__slider {
    width: 100%;
    height: 16px;
    background-color: rgb(255, 255, 255);
    border-radius: 4rem;
    box-shadow: 1px 1px 3px;
    overflow: hidden;
}

.range__slider-line {
    width: 100%;
    height: 100%;
    width: 0;
}

.range__thumb{
    width: 50px;
    height: 32px;
    background-color: #ffc107;
    border-radius: 5px;
    box-shadow: 0 0 2px black;
    position: absolute;
}

.range__thumb_2{
    width: 50px;
    height: 32px;
    background-color: #0dcaf0;
    border-radius: 5px;
    box-shadow: 0 0 2px black;
    position: absolute;
}

.range__value{
    width: 50px;
    height: 30px;
    position: absolute;
    top: 5px;
}

.range__value-number{
    margin: 5px;
}

.range__input{
    appearance: none;
    width: 100%;
    height: 16px;
    position: absolute;
    background-color: red;
    opacity: 0;
}

.range__input::-webkit-slider-thumb {
    appearance: none;
    width: 48px;
    height: 32px;
    background-color: lawngreen;
}

.range__input::-webkit-slider-thumb_hover {
    cursor: move;
}

#quantity {
    margin-top: 20px;
    background-color:#ffc107;
    border-color: rgb(44 44 44);
    border-radius: 5px;
}

#quantity_2 {
    background-color: #0dcaf0;
    margin-top: 20px;
    border-color: rgb(44 44 44);
    border-radius: 5px;
}

.checkboxes {
    width: 200px;
}

#infoButton {
    width: 68px;
    height: 48px;
    border: 4px outset #9fc00ef7;
    padding: 0px;
}

#infoButton:hover {
    background: rgb(175, 212, 6);
    box-shadow: 3px 4px 10px 2px rgb(128, 162, 3);
}

#changeAnimationButton,
#vgsOnOffButton,
#vdsOnOffButton,
#toggleButton {
    font-size: large;
    margin: 5px;
    width: 150px;
    height: 70px;
}

#infoIcon {
    margin: 5px;
    width: 150px;
    height: 70px;
    font-size: 20px;
}

#stopSign,
#vgs_button_sign,
#vds_button_sign,
#toggleSign{       
    margin: 5px;      
    width: 150px;
    height: 70px;
    font-size: 32px;
}

#ofet {
    display: none;
}

.container {
    position: relative;
}

#Graf {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}

#chartContainer {
    max-width: 1000px;
    flex-grow: 1 !important;
    margin-top: 15px !important;
    margin-right: 20px !important;
    border: 8px outset rgb(203, 207, 210);
    border-radius: 20px;
    overflow: hidden; 
}

.canvasjs-chart-toolbar {
    margin-top: 5px !important;
    margin-right: 15px !important;
    color: black;
}

.canvasjs-chart-toolbar button {
    margin-left: 8px !important;
    padding: 4px 8px !important; 
    border: 3px solid rgb(145, 141, 141) !important;
    color: #ffc107 !important;
}

.canvasjs-chart-toolbar div div {
    color: #000000 !important;
}

.canvasjs-chart-toolbar div div:hover {
    color: #ffffff !important;
}

.canvasjs-chart-credit {
   display: none !important;
}

.materials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector {
    width: 350px;
}

#selectField,
#selectField2 {
    width: 100%;
    padding: 5px 20px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: rgba(43, 187, 223, 0.7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 3px 3px 6px rgb(22 224 235 / 61%);
    border: 4px outset #0c9de1f7;
}

#selectField img,
#selectField2 img {
    width: 24px;
    transition: transform 0.5s;
}

#selectField p,
#selectField2 p {
    margin: 5px;
}

#material_list,
#material_list_drain_source {
    width: 100%;
    padding: 0;
    background: rgba(43, 187, 223, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 6px 17px rgb(22 224 235 / 61%);
    border: 4px outset #0c9de1f7;
}

.options,
.options_drain_source {
    width: 100%;
    padding: 2px 0 15px 120px;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.options p,
.options_drain_source p {
    margin-top: 16px;
    font-size: smaller;
}

.options img,
.options_drain_source img {
    width: 76px;
    height: 45px;
    position: absolute;
    top: 12px;
    left: 25px;
}

.options:hover,
.options_drain_source:hover {
    background: rgba(255, 255, 255, 0.5);
}

.showList{
    display: none;
}

.rotate {
    transform: rotate(180deg);
}

.modal-content {
    background: linear-gradient(145deg, #0c9de1f7, #144b51) !important;
    box-shadow: 4px 1px 20px rgb(22 224 235 / 61%) !important;
    border: 2px solid #0c9de1f7 !important;
}

#vdsOnOffButton {
    border: 4px outset #0c9de1f7;
}

#vdsOnOffButton:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 9px 11px 13px 6px rgb(28 228 237);
}

#vgsOnOffButton {
    border: 4px outset rgb(227, 243, 0);
}

#vgsOnOffButton:hover {
    background: rgb(227, 243, 0);
    box-shadow: 5px 9px 17px 4px rgb(255 172 7 / 97%);
}

.btn-danger {
    border: 4px outset rgb(255 0 0);
}

.btn-danger:hover {
    background: rgba(237, 22, 22, 0.79) !important;
    box-shadow: 5px 9px 17px 4px rgb(243 18 18 / 79%) !important;
}

#toggleButton {
    border: 4px outset rgb(40 5 211);
}

#toggleButton:hover {
    background: rgb(40 5 211);
    box-shadow: 6px 7px 12px 3px rgb(5 11 217 / 60%);
}

.differentType {
    border: 4px outset rgb(9, 201, 105) !important;
}

.differentType:hover {
    background: rgb(9, 201, 105) !important;
    border: 4px outset rgb(8 203 54) !important;
    box-shadow: 5px 9px 17px 4px rgba(8, 174, 33, 0.79) !important;
}

#selectedImg,
#selectedImgDrainSource {
    width: 50px;
    top: 12px;
    left: 290px;
}


