html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

*,
::before,
::after {
    box-sizing: border-box;
}

/* SCROLLBAR */

/* width */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #00000025;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4rem;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }

body {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    background-color: #394047;
    color: gainsboro;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    font-kerning: auto;
}

#main {
    height: 100vh;
    /*height: -webkit-fill-available;*/
    max-height: 100vh;
    overflow: auto;
    margin-left: 280px;
    padding: 16px;
    transition: margin-left .5s;
}

#sidebar {
    width: 280px;
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: 0.5s;
}

@media screen and (max-width: 820px) {
    #sidebar {
        width: 0px;
        overflow-y: hidden;
        padding: 0px !important;
    }

    #main {
        margin-left: 0px;
    }
}

.card.item {
    padding: 0.65rem 1rem;
    background-color: transparent;
    border-radius: 6px;
    border:none;
}

    .card.item:hover {
        background-color: #3b4957;
        cursor: grab;
        color: white;
    }

.card.item.noDrag {
    cursor: pointer !important;
}

input[type="datetime-local"], input[type="date"] {
    background-color: gainsboro;
    border-radius: 10px;
    padding-inline: 10px;
}

.modebar-group {
    background-color: transparent !important;
}

/*.modebar-btn {
    font-size: 18px !important;
}*/

#Canvas1 {
    background-color: #212529;
    border-radius: 1rem 1rem 0rem 0rem;
}

table {
    background-color: #212529 !important;
    --bs-table-bg: #212529 !important;
    --bs-table-hover-bg: #3b4957 !important;
    color: gainsboro !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

.colorPicker {
    block-size: 20px;
    appearance: none;
    background: none;
    border: 0;
    margin-top: 4px;
}

.delete {
    height: 26px;
    border-radius: 2rem;
    opacity: 0.75;
    padding: 0;
    vertical-align: bottom !important;
}

    .delete:hover {
        opacity: 1;
        background-color: red;
    }

.homeButton {
    border: 2px solid gray;
    border-radius: 1rem;
    padding: 10px !important;
}

.homeButtons {
    border: 2px solid gray;
    border-radius: 1rem;
    padding: 10px !important;
    font-size: 24px;
}

.homeButtons:hover, .homeButton:hover {
    background-color: #3b4957;
    border-color: gainsboro;
}

#variables {
    display: block;
    max-height: 260px;
    overflow: auto;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 0;
}

    #variables thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

#map.historian {
    border-radius: 1rem;
    height: 64vh;
    border: 5px solid #212529;
}

#map.online {
    border-radius: 1rem 1rem 0rem 0rem;
    /*height: 100%;*/
    padding: 0px 6px;
    /*background-color: #212529;*/
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 0fr);
    grid-auto-flow: column;
}

.leaflet-touch .leaflet-bar a {
    background-color: gainsboro;
}

.leaflet-container .leaflet-control-attribution {
    background-color: transparent !important;
}

.onlineCanvas {
    display: none;
    border: 1px solid black;
    background-color: #2e3338;
    border-radius: 1rem;
}

.canvas_textfield {
    padding: 0px 5px 0px 10px;
    font-size: 1.25rem;
    font-weight: bold;
    color: gainsboro;
}

.shafts_text {
    font-size: 16px;
    color: gainsboro;
}

#fuelConsumption {
    border-radius: 1rem;
    margin-right: -10px;
}

#wind_direction {
    -webkit-transform: scaleY(-1) scaleX(-1);
    transform: scaleY(-1) scaleX(-1);
}

#wind_direction_circle {
    display: flex;
    position: absolute;
    font-size: 28px;
    font-weight: bold;
    color: gainsboro;
    z-index: 1;
    border-radius: 10rem;
    background-color: transparent;
    width: 140px;
    height: 144px;
}

#wind_direction_value {
    display: flex;
    width: 140px;
    justify-content: center;
    align-items: center;
}

#vessel_speed {
    margin-left: 5px;
    width: 118px;
    transform: rotate(310deg);
}

#vesselspeed_text {
    position: absolute;
    z-index: 9999;
    margin-left: 92px;
    margin-top: 72px;
    flex-direction: column;
}

#vessel_speed_text {
    font-size: 28px;
    font-weight: 800;
    line-height: 26px;
    align-self: end;
}

#vessel_direction_arrow {
    height: 30px;
    position: absolute;
    z-index: 9999;
    margin-top: 48px;
    margin-left: 50px;
    transform: rotate(-45deg);
}

#circleCompass {
    height: 90px;
    width: 90px;
    border-radius: 22rem;
    position: absolute;
    z-index: 1;
    margin-top: 28px;
    margin-left: 25px;
    box-shadow: inset 0px 0px 10px gainsboro;
}

#rudder_angle, #rudder_angle_2 {
    -webkit-transform: scaleY(-1) scaleX(-1);
    transform: scaleY(-1) scaleX(-1);
}

#rudder_text {
    position: absolute;
    z-index: 1;
    margin-left: 65px;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 20px;
}

#heel-container {
    position: absolute;
    display: flex;
    width: 130px;
    height: 120px;
}

#heel-indicator {
    position: absolute;
    font-size: 50px;
    margin-left: 10px;
    margin-top: -4px;
    color: orangered;
}

#half-circle {
    position: absolute;
    z-index: 1;
    margin-left: 108px;
    width: 160px;
    height: 72px;
    background-color: #202020;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    border-top: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#heel_value {
    display: flex;
    width: 160px;
    height: 30px;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: gainsboro;
}

#heel-text {
    display: flex;
    width: 160px;
    height: 30px;
    justify-content: center;
    align-items: end;
    color: #6c757d;
    font-weight: 500;
}

#trim-vertical {
    transform: rotate(270deg);
    position: absolute;
    z-index: 2;
    margin-left: 335px;
    margin-top: 60px;
}

#trim-container {
    position: absolute;
    display: flex;
    width: 130px;
    height: 120px;
}

#half-circle-2 {
    position: absolute;
    z-index: 1;
    margin-left: 70px;
    width: 160px;
    height: 75px;
    background-color: #202020;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    border-top: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#trim_value {
    transform: rotate(90deg);
    display: flex;
    width: 130px;
    height: 15px;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: gainsboro;
    margin-top: -18px;
}

#trim-text {
    transform: rotate(90deg);
    display: flex;
    width: 140px;
    height: 30px;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
    margin-left: 30px;
    margin-top: 16px;
}

#trim-up {
    position: absolute;
    transform: rotate(90deg);
    margin-top: 50px;
    margin-left: 240px;
    font-size: 20px;
    font-weight: 500;
}

#trim-down {
    position: absolute;
    transform: rotate(90deg);
    margin-top: -130px;
    margin-left: 35px;
    font-size: 20px;
    font-weight: 500;
}

#loading {
    position: absolute;
    display: flex;
    z-index: 5;
    font-size: 30px;
    font-weight: 500;
    width: 50%;
    height: 500px;
    align-items: center;
    justify-content: center;
}

#loadingMap {
    position: absolute;
    display: flex;
    z-index: 999;
    font-size: 30px;
    font-weight: 500;
    width: 26%;
    height: 644px;
    align-items: center;
    justify-content: center;
}

.green-circle {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' fill='%23000000'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><circle fill='%236cbf40' cx='18' cy='18' r='18'></circle></g></svg>");
    width: 12px;
    height: 12px;
    display: block;
}

.red-circle {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' fill='%23000000'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><circle fill='%23cb4d4d' cx='18' cy='18' r='18'></circle></g></svg>");
    width: 12px;
    height: 12px;
    display: block;
}

#NMEA-1 {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 315px;
    margin-top: 210px;
    font-weight: 800;
}

#NMEA-2 {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 860px;
    margin-top: 210px;
    font-weight: 800;
}

#MOXA-1 {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 610px;
    margin-top: 840px;
    font-weight: 800;
    width: 150px;
    flex-wrap: wrap;
}

#MOXA-2 {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 960px;
    margin-top: 850px;
    font-weight: 800;
    width: 150px;
    flex-wrap: wrap;
}

#MOXA-3 {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 60px;
    margin-top: 180px;
    font-weight: 800;
}

#PLC {
    position: absolute;
    display: flex;
    width: auto;
    margin-left: 140px;
    margin-top: 870px;
    font-weight: 800;
    width: 150px;
    flex-wrap: wrap;
}

#NMEA-1-date, #MOXA-1-date,
#MOXA-2-date, #MOXA-3-date,
#PLC-date {
    font-size: 14px;
    font-weight: 400;
    color: #adb5bd;
    padding-left: 5px;
}

.leaflet-control-attribution a {
    display: none;
}

#over-map-info {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background-color: #212529;
    min-height: 190px;
    margin-top: -40px;
    border-radius: 0rem 0rem 1rem 1rem;
    padding-top: 20px;
    justify-content: space-around;
    padding-right: 80px;
}

#wind {
    margin-top: -12px;
}

#front-vessel {
    position: absolute;
    width: 130px;
    height: 120px;
    padding: 30px;
}

#port {
    position: absolute;
    margin-left: 28px;
    font-size: 12px;
    font-weight: 500;
}

#stbd {
    position: absolute;
    margin-left: 78px;
    font-size: 12px;
    font-weight: 500;
}

.sidebar-link {
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;
    padding: 10px;
    color: lightgray;
    cursor: pointer;
    background-color: #212529;
    border: 0;
}

    .sidebar-link:hover {
        color: white;
        background-color: #3b4957;
    }

#shafts {
    background-color: #212529;
    border-radius: 0rem 1rem 0rem 0rem;
    padding: 25px;
    height: 100%;
    padding-left: 15px;
    margin-left: -25px;
}

.shafts_gif {
    width: 100px;
    filter: invert(1) opacity(0.95);
    border: 2px solid #333333;
    border-radius: 10rem;
    padding: 12px;
}

#heave {
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-weight: 600;
    font-size: 18px;
    color: white;
}

#heave-container {
    position: absolute;
    display: flex;
    width: 130px;
    height: 120px;
    filter: blur(1px) brightness(0.5);
}

#heave-indicator {
    position: absolute;
    font-size: 50px;
    margin-left: 35px;
    margin-top: 20px;
    color: orangered;
    transform: rotate(90deg);
}

.modal-backdrop {
    z-index: 0 !important;
}

.modal-content {
    background-color: #394047bf !important;
    border: 1px solid rgb(255 255 255 / 40%) !important;
    backdrop-filter: blur(6px);
}

.modal-header {
    border-bottom: 1px solid rgb(255 255 255 / 25%) !important;
}

.modal-footer {
    border-top: 1px solid rgb(255 255 255 / 25%) !important;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

#diagnosticImg {
    height: 95vh;
    position: relative;
    overflow: hidden;
    align-items: center;
    display: flex;
}

.network {
    position: absolute;
    top: 0px;
    left: -80px;
    width: 85%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease-out;
}

#north {
    position: absolute;
    margin-left: 66px;
    margin-top: 2px;
    font-size: 10px;
    background-color: #212529;
    z-index: 1;
}

#west {
    position: absolute;
    margin-top: 63px;
    font-size: 10px;
    background-color: #212529;
    padding: 2px;
    z-index: 1;
}

#east {
    position: absolute;
    margin-left: 127px;
    margin-top: 63px;
    padding: 2px;
    font-size: 10px;
    background-color: #212529;
    z-index: 1;
}

#south {
    position: absolute;
    margin-top: 129px;
    margin-left: 61px;
    padding: 0px 6px 0px 6px;
    font-size: 10px;
    background-color: #212529;
    z-index: 1;
}

#csv_download {
    background-color: #212529;
    padding: 20px;
    border-radius: 1rem;
}

#trim_angle, #heel_angle, #rudder_angle, #rudder_angle_2 {
    width: 132px;
}

.site-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /*background-color: rgb(33 37 41 / 75%);*/
    padding-top: 25px;
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 24px;
    color: gray;
}
    .site-footer svg {
        height: 40px;
        padding: 10px;
        /*background-color: #394047;*/
        background-color: rgb(33 37 41 / 50%);
        border-radius: 8rem;
        margin-right: 10px;
    }

    .site-footer hr {
        border-top-color: #bbb;
        opacity: 0.25;
    }

        .site-footer hr.small {
            margin: 20px 0;
        }

    .site-footer h6 {
        color: gainsboro;
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 0;
    }

    .site-footer a {
        color: gainsboro;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 0;
    }

        .site-footer a:hover {
            color: #0d6efd;
            text-decoration: none;
        }

.copyright-text {
    margin: 0;
    display: flex;
    justify-content: center;
}

@media (max-width:991px) {
    .site-footer [class^=col-] {
        margin-bottom: 30px
    }

    .login-contact [class^=col-] {
        margin-bottom: 30px
    }
}

@media (max-width:767px) {
    .site-footer {
        padding-bottom: 0
    }

        .site-footer .copyright-text, .site-footer .social-icons {
            text-align: center
        }
}

#mapdate {
    background-color: #212529;
    border-radius: 0 0 1rem 1rem;
    padding: 6px;
    padding-top: 16px;
    margin-top: -15px;
    font-size: 14px;
    color: slategray;
}

.login-contact {
    font-size: 15px;
    line-height: 24px;
    color: gray;
    padding-left: 20px;
}

    .login-contact svg {
        height: 40px;
        padding: 10px;
        /*background-color: #394047;*/
        background-color: rgb(33 37 41 / 50%);
        border-radius: 8rem;
        margin-right: 10px;
    }

    .login-contact h6 {
        color: gainsboro;
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 0;
    }

    .login-contact a {
        color: gainsboro;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 0;
    }

        .login-contact a:hover {
            color: #0d6efd;
            text-decoration: none;
        }

.stacks {
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 10px;
    min-width: max-content;
    border: 2px solid hsl(210 11% 30% / 1);
    background-color: hsl(210 11% 24% / 1);
    /*box-shadow: 0px 4px 8px hsl(210 11% 14% / 1);*/
    font-size: 14px;
}

    .stacks > div {
        line-height: 19px;
    }

    .stacks:hover {
        background-color: #3c464d;
    }

.dryers {
    background-color: #262c33;
    border-color: #555b61;
    box-shadow: none;
    margin-bottom: 6px;
}

#analogue {
    border-radius: 0rem 0rem 1rem 1rem;
    /*background-color: #212529;*/
    padding: 0px;
    /*padding-bottom: 14px;*/
    /*margin-right: 6px;*/
}

#analogueValues {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    align-items: center;
    background: rgba( 255, 255, 255, 0.1 );
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 2px solid rgba( 255, 255, 255, 0.1 );
    margin-right: 14px;
}

#stackContainer {
    position: absolute;
    right: 0;
    display: flex;
    width: 420px;
    flex-wrap: wrap;
    overflow-y: scroll;
    height: 943px;
    border: 2px solid #608b8a;
    padding: 5px;
}

.stackBtns {
    width: 190px;
    color: gainsboro;
    position: relative;
    border-radius: 20px !important;
    border: 1px solid #608b8a;
}

    .stackBtns:hover {
        color: white;
        background-color: rgb(255 255 255 / 25%);
    }

.analogueInputs {
    font-size: 16px;
    color: #83dcf7;
    line-height: normal;
}

#collapseStack {
    height: 40vh !important;
    overflow-y: auto;
}

#collapseSentron {
    height: auto !important;
    overflow-y: auto;
}

.healthOK {
    background-color: #46eb7d;
}

.healthBAD {
    background-color: orangered;
}

#menuVariables {
    overflow-y: auto;
    display: grid;
}

#lastReadingDate {
    z-index: 99999;
    position: absolute;
    top: 10px;
    left: 10px;
    color: gainsboro;
}

.text-info {
    color: #83dcf7 !important;
}

#container {
    overflow: auto;
    padding-bottom: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
}

.dryerText {
    position: absolute;
    margin-left: 100px;
    margin-top: 62px;
    background-color: #394047;
    padding: 0px 5px;
    font-variant-caps: all-small-caps;
    color: #779fda;
    line-height: 1;
    border-radius: 6px;
}

#currentLastDate {
    display: flex;
    justify-content: space-evenly;
    padding: 20.75px 10px;
    align-items: baseline;
    background: rgba( 255, 255, 255, 0.1 );
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 2px solid rgba( 255, 255, 255, 0.1 );
}

#sentron {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    align-items: center;
    background: rgba( 255, 255, 255, 0.1 );
    backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 2px solid rgba( 255, 255, 255, 0.1 );
    margin: 6px 16px;
}

.blurring {
    filter: drop-shadow(0px 0px 20px black) blur(4px) brightness(1.25);
    pointer-events: none;
}