/* RESET */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* .container {
    display: flex;
    flex-direction: column;
}

@media all and (min-width: 768px) {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    header,
    footer {
        width: 100%;
    }
    main {
        flex: 2;
        order: 2;
        min-height: 80vh;
    }

    .left-sidebar {
        order: 1;
        flex: 1;
    }
    .right-sidebar {
        flex: 1;
        order: 3;
    }
    footer {
        order: 4;
    }
} */

body {
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #666666;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

h2 {
    padding-top: 10px;
}

span.buoy-info {
    font-weight: bold;
}

.well-transparent {
    background-color: rgba(255, 255, 255, 0.8);
    width: 25%;
}

input,
button,
.btn,
.well,
select {
    border-radius: 5 !important;
}

a.gray {
    color: gray;
}

.container-transparent {
    background-color: rgba(84, 114, 69, 0.8);
    padding-top: 15px;

}

.container-transparent2 {
    background-color: rgba(235, 233, 233, 0.8);
    padding: 16px;
    float: left;
    /* height: 90%; */
}

.container-transparent3 {
    background-color: rgba(245, 245, 245, 0.8);
    padding: 16px;
    float: left;
    /* height: 90%; */
}

.container-all {
    min-height: calc(100% - 189px);
}

.modal-center {
    display: flex;
    justify-content: center;
}

/* The Modal (background) */
.modal-alert {
    display: block;
    /* Stay in place */
    position: fixed;
    /* Sit on top */
    z-index: 999;
    /* Location of the box */
    top: 74px;
    height: fit-content;
    /* Enable scroll if needed */
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content-alert {
    margin: auto;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Stay in place */
    position: fixed;
    /* Sit on top */
    z-index: 999;
    /* Location of the box */
    left: 50px;
    top: 183px;
    max-width: calc(45% - 5px);
    max-height: 733px;
    /* Enable scroll if needed */
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: transparent;
    margin: auto;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.container-buoy-detail {
    background-color: transparent;
    padding: 0px;
    float: left;
    overflow-y: auto;
}

.loader {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container-right-column {
    padding: 14px;
    margin-bottom: 8px;
}

.container-right-bg {}

.btn-w1 {
    width: 75px;
    margin-top: 8px;
    margin-left: 0px;
}

.btn-l1 {
    width: 88px;
    height: 90px;
    border: 8px solid #666666;
    border-radius: 16px 16px 16px 16px;
}

.bearingAngle {
    color: white;
    font-size: xx-large;
    font-weight: bold;
}

.container-course-list {
    background-color: transparent;
}

.container-course-setup {
    background-color: transparent;
}

.dropdown-fixed-height {
    max-height: 500px;
    width: fit-content;
    overflow: auto;
}

.container-buoy-icon-bg {
    background-color: #666666;
    padding-top: 5px;
    padding-bottom: 5px;
    display: inline-flex;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
    cursor: pointer;
}

.container-buoy-icon {
    border-radius: 16px 16px 16px 16px;
    border: 6px solid #666666;
    padding: 8px;
    height: 90px;
    width: 88px;
}

.container-buoy-icon:hover {
    border: 6px solid #ffffff;
}

.container-buoy-icon-selected {
    border-radius: 16px 16px 16px 16px;
    border: 6px solid #ffffff;
    padding: 8px;
    height: 90px;
    width: 88px;
}

.container-buoy-time-all {
    border-radius: 16px 16px 16px 16px;
    border: 6px solid #666666;
    padding: 8px;
    height: 20px;
    width: 98px;
}

.container-buoy-icon-small {}

.buoy-icon {}

.buoy-icon-small {
    height: 46px;
    width: 46px;
}

.container-buoy-disarm {
    background-color: #9a9a9a;
    color: white
}

.container-buoy-ok {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.container-buoy-na {
    background-color: rgba(80, 80, 100, 1);
    color: white
}

.container-buoy-command {
    background-color: lightgray;
    color: orange;
}

.btn {
    font-weight: bold;
}

h2:first-child {
    margin-top: 0;
}

h2 {
    margin-top: 50px;
}

h3 {
    margin-top: 35px;
}

a.ref {
    font-weight: 600;
    display: inline-block;
}

a.ref:before {
    content: "\e080";
    font-family: 'Glyphicons Halflings';
    position: relative;
    top: 1px;
    display: inline-block;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    margin-right: 3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.img-thumbnail {
    margin-bottom: 20px;
}

.buoy_btn_large {
    padding-top: 5px;
}

.buoy-info {
    font-size: small;
    margin-bottom: 100px;
    /* line-height: normal; */
}

/* #map {
    height: 100%;
    float: left;
} */

#mapid {
    height: auto;
    float: left;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.col-buoys {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 500px;
}


.custom-popup .leaflet-popup-content-wrapper {
    background: #666666;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
}

.custom-popup .leaflet-popup-content-wrapper a {
    color: rgba(255, 255, 255, 0.5);
}

.custom-popup .leaflet-popup-tip-container {
    width: 30px;
    height: 15px;
}

.custom-popup .leaflet-popup-tip {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #666666;
}

.control-label {
    font-weight: bold;
}

/* .flex-container {
    display: flex;
    flex-wrap: wrap;
} */

.form-control {
    width: 100%;
    font-size: 18px;
    height: auto;
    padding: .2rem .4rem;
}

.column1 {
    float: left;
    width: 100px;
}

.column4 {
    float: left;
    width: calc(50% - 0px);
}

.column6 {
    float: left;
    width: calc(50% - 100px);
}

.column8 {
    float: left;
    width: 66.67%;
}

.column10 {
    float: left;
    width: calc(100% - 100px);
}

.column12 {
    float: left;
    width: 100%;
}

.row {
    margin-right: 0px;
    margin-left: 0px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

.popupIcon {}

.b-buoy-detail {
    width: 45%;
    margin-bottom: 10px;
}

.i-buoy-btn {
    margin-top: -30px;
}

.btn-txt-big {
    font-size: 35px;
}

.buoy-command-btn {
    width: 95px;
    height: 75px;
    margin: 6px 2px 2px 2px;
    padding: 1px;
}

.buoy-command-btn-sm {
    width: 95px;
    height: 65px;
    /* font-size: small; */
    padding: 1px;
}

.buoy-status-btn {
    width: 50px;
    height: 50px;
    margin: 6px 2px 2px 2px;
    padding: 1px;
}

.buoy-data-list {
    padding-left: 0px;
    padding-top: 16px;
    font-size: small;
    list-style-type: none;
}

ul.buoy-data-list span {
    font-weight: bold;
    font-size: medium;
}

li.buoy-data-big {
    font-size: large;
}

li.buoy-data-big span {
    font-size: larger;
}

.input-hidden {
    position: absolute;
    left: -9999px;
}

input[type=radio]+label>img {
    border: 5px solid rgb(255, 255, 255);
    border-radius: 12px;
    max-width: 70%;
}

input[type=radio]:checked+label>img {
    border: 5px solid rgb(8, 0, 126);
    border-radius: 12px;
    max-width: 70%;
}

.course-selected {
    font-weight: bold;
    color: #dc3545;
}

.is_current_fuse_on {
    color: #00b73e;
}

.is_current_fuse_off {
    color: #e9003e;
}

.is_current_fuse_na {
    color: #3c3b40;
}

.card_buoy {
    position: relative;
    display: grid;
}

.card_thumb {
    padding-top: 0px;
}

.card_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card_time {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card_thumb,
.card_content,
.card_time {
    grid-area: 1/3;
}

.card_btn {
    position: relative;
    display: grid;
}

.card_btn_thumb {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.card_btn_content {
    padding-top: 5px;
}

.card_btn_thumb,
.card_btn_content {
    grid-area: 1/2;
}

.buoy_time {
    margin-top: -8px;
    margin-left: 0px;
    font-weight: 900;
    color: black;
}

.buoy_id {
    color: black;
    font-weight: 900;
    font-size: 30px;
    font-family: 'Open Sans Condensed';
}

.rc_id {
    font-weight: 900;
    color: black;
}

.play_buoy_time {
    margin-top: -5px;
    margin-left: -25px;
    font-weight: 900;
    color: black;
}

.tabContent {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    padding-top: 1em;
    padding-bottom: 1em;
}

.edit_buoys {
    position: absolute;
    display: inline;
    margin-left: -21px;
    margin-top: -22px;
    font-weight: bold;
    color: black;
}

.reset_buoys {
    position: absolute;
    display: inline;
    margin-left: -31px;
    margin-top: -17px;
    font-weight: bold;
    color: black;
}

.edit_buoys_hand {
    position: absolute;
    display: inline;
    margin-left: -21px;
    margin-top: -8px;
    font-weight: bold;
    color: black;
}

.btn_edit_buoys {
    padding: 8px;
    height: 65px;
}

.buoy_status_ok {
    color: #00880e;
}

.buoy_status_mid {
    color: #b78000;
}

.buoy_status_bad {
    color: #b70000;
}

.buoy_status_na {
    color: #5f5f5f;
}

.ticket_status {
    color: #000000;
}

.ticket-field {
    font-size: medium;
}

.label-padding {
    padding-top: 10px;
}

.ticket-msg {
    font-size: large;
    font-weight: bolder;
}

.leaflet-tooltip.my-labels {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-weight: bolder;
    font-size: 24px;
}

.my-div-image {
    position: relative;
    left: -14px;
    top: -16px;
    width: 40px;
    height: 40px;
}

.mapMarkerBuoy-txt {
    position: absolute;
    left: -8px;
    top: -9px;
    font-weight: 800;
    font-size: 20px;
    width: 30px;
    display: flex;
    justify-content: center;
    font-family: 'Open Sans Condensed';
}

.mapMarkerBM-txt {
    position: absolute;
    left: 12px;
    top: 7px;
    font-weight: 900;
    font-size: 8px;
}

.mapMarkerTarget-txt {
    position: absolute;
    left: -8px;
    top: -5px;
    font-weight: 800;
    font-size: 15px;
    width: 30px;
    display: flex;
    justify-content: center;
    font-family: 'Open Sans Condensed';
}

.mapMarker-txt {
    position: absolute;
    left: -1px;
    top: -6px;
    font-weight: 900;
    font-size: 12px;
    color: #ffffff;
}

.mapPopupBuoy-txt {
    position: relative;
    left: 26px;
    top: -21px;
    font-weight: 900;
    font-size: 16px;
    color: white;
    font-family: 'Open Sans Condensed';
}

.buoy_id-update {
    position: absolute;
    display: inline;
    padding-top: 5px;
    padding-left: 0px;
    color: black;
    font-weight: 900;
    font-size: 16px;
}

.buoy_id-btn {
    position: absolute;
    font-weight: 800;
    font-size: 15px;
    width: 30px;
    display: flex;
    justify-content: center;
    font-family: 'Open Sans Condensed';
    color: black;
    margin-top: -32px;
    margin-left: 7px;
}

table {
    border-collapse: collapse;
}

tr {
    display: none;
}

tr.collapsible_header {
    cursor: pointer;
    display: block;
}

tr.normal_header {
    display: block;
}

div-table {
    display: table;
    background-color: #eee;
    border: 1px solid #666666;
    border-spacing: 5px;
    /* cellspacing:poor IE support for  this */
    width: 100%;
}

.div-table-row {
    display: table-row;
    width: auto;
    clear: both;
}

.div-table-col-th {
    float: left;
    /* fix for  buggy browsers */
    display: table-column;
    width: 2em;
    min-height: 70px;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.div-table-col-name {
    float: left;
    /* fix for  buggy browsers */
    display: table-column;
    width: 17em;
    padding-left: 10px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.div-table-col-key {
    float: left;
    /* fix for  buggy browsers */
    display: table-column;
    width: 22em;
    padding-left: 10px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.div-table-col-date {
    float: left;
    /* fix for  buggy browsers */
    display: table-column;
    width: 12em;
    padding-left: 20px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.div-table-col-action {
    float: left;
    /* fix for  buggy browsers */
    display: table-column;
    width: 6em;
    padding-left: 10px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.bolded {
    font-weight: 900;
}

.div-table-warning {
    background-color: rgb(231, 231, 66);
}

.td-span {
    display: block;
    overflow-x: auto;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    background-color: white;
    width: fit-content;
    max-height: 400px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown-content a,
.dropdown-content label.empty-courses {
    color: black;
    padding: 8px 8px 0px 8px;
    font-size: medium;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.hide {
    display: none;
}

.main-area-buttons {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding-left: 5px;
}

.collapsible-wrapper-buttons {
    display: flex;
    padding-right: 5px;
}

.collapsible-buttons {
    background-color: #666666;
    display: flex;
}

.toggle-btn-buttons {
    background-color: rgba(80, 80, 100, 1);
    outline: none;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: background-color 0.3s;
}

.toggle-btn-buttons:hover {
    background-color: rgba(70, 70, 90, 1);
}

.toggle-btn-buttons:focus {
    outline: none;
}

@media (max-width: 768px) {
    .btn_media_small_size {
        transform: scale(0.8);
        transform-origin: center;
    }
}

.collapsible-content-buttons {
    flex: 1;
    overflow-y: auto;
    /* width: auto;
    overflow: auto; */
    transition: all 0.5s ease-out;
}

.collapsed-buttons .collapsible-content-buttons {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
    display: none;
}

.right-content-buttons {
    flex: 1;
    overflow-y: auto;
}

/* The switch - the box around the slider for meters and nautical miles */
.toggle-container {
    display: inline-block;
    font-family: Arial, sans-serif;
}

.marine-toggle {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 20px;
}

.marine-toggle .marine-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.marine-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.marine-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 40px;
    left: 4px;
    bottom: 2px;
    background-color: #000;
    transition: .4s;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.marine-label {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 10px;
}

.marine-meters {
    color: #000;
    transition: color 0.3s;
}

.marine-nmi {
    color: #ff4444;
    transition: color 0.3s;
}

.marine-input:not(:checked)+.marine-slider:before {
    background-color: #000;
}

.marine-input:not(:checked)+.marine-slider .marine-meters {
    color: #fff;
}

.marine-input:checked+.marine-slider:before {
    transform: translateX(52px);
    background-color: #ff4444;
}

.marine-input:checked+.marine-slider .marine-nmi {
    color: #fff;
}

.marine-input:checked+.marine-slider .marine-meters {
    color: #000;
}

.marine-input:not(:checked)+.marine-slider .marine-nmi {
    color: #ff4444;
}