/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    height: 100%;
    width: 100%;
}

a {
    color: #efefef;
    cursor: pointer;
    text-decoration: underline;
}

a:focus, a:hover {
    color: #d8d8d8;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

ul, ol {
    list-style: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Generic HTML elements
   ========================================================================== */

* {
    font-family: "Open Sans";
}

body {
    height: 100%;
    width: 100%;
}

.borderless td, .borderless th {
    border: none !important;
}

/* ==========================================================================
   Useful CSS
   ========================================================================== */

.rangeslider__fill {
    background-color: #C61A1B !important;
}

.centerVertically {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.lightBackgroundLink {
    color: #242424;
    cursor: pointer;
    text-decoration: underline;
}

.lightBackgroundLink:focus, .lightBackgroundLink:hover {
    color: #909090;
}

.distributedEvenly {
    margin: auto;
}

.tableContainer {
    overflow: scroll;
    flex: 1;
}

.pagerContainer {
    text-align: center;
}

.paginatedTable {
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.paginatedTableUnderNavContent {
    flex: 1;
    padding: 50px 60px 0 60px;
    display: flex;
    flex-direction: column;
}

.itemsPerPageDropdown {
    margin-right: 15px;
}

.clickableSegment:hover {
    background: #F7F7F7;
    cursor: pointer;
}

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

.flexCenterRow {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.react-markdown > ul {
    list-style: initial;
}

/* ==========================================================================
   Right Content
   ========================================================================== */

.Component_HorizontalNav {
    margin-top: 30px;
    padding: 0 30px;
}

.Component_HorizontalNav > a, .Component_HorizontalNav > a:focus {
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 400;
    padding: 8px;
    display: inline-block;
    text-decoration: none;
}

.Component_HorizontalNav > a:hover {
    text-decoration: none;
    color: #343434;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #E2E2E2;
}

#contentWrapper {
    min-width: 500px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.Component_HorizontalNav > a.active {
    border-bottom: 3px solid #C61A1B;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #FBFBFB;
}

.nav-tabs > li > a {
    color: #969696;
    cursor: pointer !important;
}

.horizontalNavAndContent {
    display: flex;
    flex-direction: column;
}

.underHorizNavContent {
    flex-grow: 1;
    background-color: #FBFBFB;
    position: relative;
}

#pageWrapper {
    flex: 1;
    order: 1;
    display: flex;
    overflow: auto;
    z-index: 0;
}

.pageContent {
    position: relative;
    flex: 1;
    background-color: #EAEAEA;
}

/* ==========================================================================
   Main CSS
   ========================================================================== */

#topContent {
    height: 100%;
    display: flex;
    flex-direction: row;
}

#content {
    height: 100%;
}

#mainRoot {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Bad Browser
   ========================================================================== */

.unsupported-browser-content {
    max-width: 550px;
    text-align: center;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.sheetTransition-enter {
    transform: translateY(70%);
    opacity: 0;
}

.sheetTransition-enter.sheetTransition-enter-active {
    transform: translateY(0%);
    opacity: 1;
    transition: transform 300ms ease-in-out,
                opacity 300ms ease-in-out;
}

.sheetTransition-leave {
    transform: translateY(0%);
    opacity: 1;
}

.sheetTransition-leave.sheetTransition-leave-active {
    transform: translateY(70%);
    opacity: 0;
    transition: transform 400ms ease-in-out,
                opacity 300ms ease-in-out;
}

@keyframes flickerAnimation { /* flame pulses */
    0%   { opacity: 1; }
    25%  { opacity: 1; }
    75%  { opacity: 0.25; }
    100% { opacity: 1; }
}

.animateFlicker {
    opacity:1;
    animation: flickerAnimation 3s infinite;
}

@keyframes update-text-animation {
    0%   { color: #3a3a3a; }
    25%  { color: #3a3a3a; }
    75%  { color: #c61a1b; }
    100% { color: #3a3a3a; }
}

#update-button {
    animation: update-text-animation 3s infinite;
    margin: 0;
    padding: 9px 13px;
    background-color: #ffffff;
}

#notification-group.active {
    animation: notification-group-animation 2.5s infinite;
}

@keyframes notification-group-animation {
    0%   { background-color: #c61a1b; }
    25%  { background-color: #c61a1b; }
    75%  { background-color: #eebd12; }
    100% { background-color: #c61a1b; }
}

/* ==========================================================================
   Leaflet
   ========================================================================== */

.bryxMap {
    flex-grow: 1;
    border: 1px solid lightgray;
}

.ui.red.progress.progress-attachment .bar {
    background-color: #ab1a1c;
}

.leaflet-marker-icon {
    outline: none;
}

.leaflet-marker-icon.leaflet-interactive {
    cursor: pointer;
}

.leaflet-marker-icon.leaflet-interactive.hydrantIcon {
    cursor: default;
}

.leaflet-bar button,
.leaflet-bar button:hover {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #ccc;
    width: 26px;
    height: 26px;
    line-height: 26px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
}

.leaflet-bar button {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    overflow: hidden;
    display: block;
}

.leaflet-bar button:hover {
    background-color: #f4f4f4;
}

.leaflet-bar button:first-of-type {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.leaflet-bar button:last-of-type {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: none;
}

.leaflet-bar.disabled,
.leaflet-bar button.disabled {
    cursor: default;
    pointer-events: none;
    opacity: .4;
}

.leaflet-touch .leaflet-bar button {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

/* ==========================================================================
   Semantic UI
   ========================================================================== */

.btn {
    width: 100%;
    min-height: 38px !important;
    font-size: 13px !important;
}

.dropdown_noIcon > i {
    display: none;
}

.ui.dropdown .menu > .item.dropdown-item-bordered:first-child {
    border-top-left-radius: .28571429rem;
}

.ui.dropdown .menu > .item.dropdown-item-bordered:last-child {
    border-bottom-left-radius: .28571429rem;
}

.popupItem {
    position: relative;
    cursor: pointer;
    display: block;
    border: none;
    height: auto;
    text-align: left;
    border-top: none;
    line-height: 1em;
    color: rgba(0,0,0,.87);
    padding: .78571429rem 1.14285714rem !important;
    font-size: 1rem;
    text-transform: none;
    font-weight: 400;
    box-shadow: none;
    -webkit-touch-callout: none;
}

.popupItem:hover {
    background: rgba(0,0,0,.05);
    color: rgba(0,0,0,.95);
    z-index: 13;
}

.popupCheckbox {
    padding: 1rem 1.14285714rem;
}

.ui.toggle.checkbox.bryxToggle input:checked~label:before {
    background-color: #C61A1B !important;
}

.ui.toggle.checkbox .box:before, .ui.toggle.checkbox label:before {
    background: rgba(0, 0, 0, 0.20);
}

.ui.toggle.checkbox.bryxToggle>label:after {
    background: linear-gradient(transparent,rgba(0,0,0,.05)) #e8e8e8;
}

a.ui.card {
    text-decoration: none;
}

/* ==========================================================================
   Linkify
   ========================================================================== */

.Linkify {
    white-space: pre-wrap;
}

/* ==========================================================================
   Login
   ========================================================================== */

.login-view {
    height: 100%;
    width: 100%;
    background-color: #8f0808;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logoAndText {
    color: white;
    font-size: 16px;
    height: 50px;
    line-height: 20px;
    padding: 20px 15px;
    position: fixed;
    display: inline-block;
    left: 0;
    margin-left: 10px;
    z-index: 1;
}

.grayDivider {
    border-bottom-color: rgba(200, 200, 200, 0.3) !important;
    border-top-color: rgba(200, 200, 200, 0.3) !important;
    color: rgba(200, 200, 200, 0.9) !important;
    margin: 30px 0 20px 0;
}

.whiteDivider {
    border-bottom-color: rgba(249, 249, 249, 0.63) !important;
    border-top-color: rgba(249, 249, 249, 0.63) !important;
    color: rgba(249, 249, 249, 0.9) !important;
    margin: 30px 0 20px 0;
}

#signinLogo {
    margin-right: auto;
    margin-left: auto;
    display: block;
    margin-bottom: 10%;
    width: 45%;
}

@keyframes rotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
        animation-timing-function: ease;
    }
    80% {transform: translateY(-50%) rotate(360deg);}
}

#loadingIcon {
    width: 100px;
    transform: translateY(-50%);
    margin: auto;
    display: block;
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#topBanner {
    -webkit-app-region: drag;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    background: #C61A1B;
    color: white;
    cursor: default;
    font-size: 16px;
    height: 50px;
    line-height: 20px;
    padding: 10px 15px;
}

#joinLink {
    display: table;
    margin: 0 auto;
}

#contactSupportDiv {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    margin-right: 20px;
    padding: 20px 0;
}

#contactSupportLink {
    font-size: 16px;
}

#signinButton {
    background-color: #efefef;
}

#signinButton:hover {
    background-color: #d8d8d8;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

#TopBar_SignedIn {
    background-color: #f1f1f1;
    box-shadow: 1px 1px 7px #afafaf;
    color: #686868;
    font-size: 16px;
    height: 70px;
    z-index: 2;
    order: 0;
}

#TopBar_RightSection {
    margin-right: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#TopBar_AgencyName, #TopBar_Name {
    margin-left: 30px;
    font-weight: 400;
}

#TopBar_Name {
    margin-right: 20px;
}

/* ==========================================================================
   Side Nav
   ========================================================================== */

.siteName {
    margin-left: 5px;
    font-weight: 500;
}

/* ==========================================================================
   Card Carousel
   ========================================================================== */
.carousel-container {
    padding: 12px 0 12px 12px;
    position: absolute;
    top: 0;
    left: 0;
    width: 33%;
    min-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-y: hidden;
}

.error-container {
    padding: 12px 0 12px 12px;
    position: absolute;
    top: 0;
    right: 0;
    min-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: flex-end;
}

.carousel-container-right {
    padding: 12px 0 12px 12px;
    position: absolute;
    top: 0;
    right: 0;
    width: 15%;
    min-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
}

.drone-info-segment {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 60%;
}

.drone-info-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5%;
}

/* ==========================================================================
   Message Card & Supplementals
   ========================================================================== */

.ui.card.message-active {
    border-bottom: 5px solid rgba(255, 152, 0, 1);
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}

.ui.segment.supplemental {
    border: 3px solid rgba(255, 152, 0, 1);
    -webkit-animation: pulse-whole 2s infinite;
    animation: pulse-whole 2s infinite;
}

.ui.segment.supplemental-update {
    -webkit-animation: pulse-background 0.5s ease-in-out;
    animation: pulse-background 0.5s ease-in-out;
}

@-webkit-keyframes pulse {
    0% {
        border-bottom: 5px solid rgba(255, 152, 0, 1);
    }
    50% {
        border-bottom: 5px solid rgba(255, 152, 0, 0.25);
    }
    100% {
        border-bottom: 5px solid rgba(255, 152, 0, 1);
    }
}

@keyframes pulse {
    0% {
        border-bottom: 5px solid rgba(255, 152, 0, 1);
    }
    50% {
        border-bottom: 5px solid rgba(255, 152, 0, 0.25);
    }
    100% {
        border-bottom: 5px solid rgba(255, 152, 0, 1);
    }
}

@-webkit-keyframes pulse-whole {
    0% {
        border: 3px solid rgba(255, 152, 0, 1);
    }
    50% {
        border: 3px solid rgba(255, 152, 0, 0.25);
    }
    100% {
        border: 3px solid rgba(255, 152, 0, 1);
    }
}

@keyframes pulse-whole {
    0% {
        border: 3px solid rgba(255, 152, 0, 1);
    }
    50% {
        border: 3px solid rgba(255, 152, 0, 0.25);
    }
    100% {
        border: 3px solid rgba(255, 152, 0, 1);
    }
}

@-webkit-keyframes pulse-background {
    0% {
        background-color: #fff;
    }
    50% {
        background-color: rgba(255, 152, 0, 1);
    }
    100% {
        background-color: #fff;
    }
}

@keyframes pulse-background {
    0% {
        background-color: #fff;
    }
    50% {
        background-color: rgba(255, 152, 0, 1);
    }
    100% {
        background-color: #fff;
    }
}

.message-container {
    position: absolute;
    bottom: 21px;
    right: 4px;
    display: flex;
    flex-direction: row-reverse;
}

.message-container > .ui.card {
    width: 400px;
    max-height: 90%;
    margin-left: 12px;
}

.message-container > .ui.card > .content {
    overflow-y: visible;
    word-wrap: break-word;
}

.message-container > .ui.card > .content > .header {
    font-size: 27px;
    margin-bottom: 3px;
}

.message-container > .ui.card > .content > .meta {
    font-size: 19px;
}

.message-container > .ui.card > .content > .description {
    font-size: 20px;
    line-height: 25px;
}

/* ==========================================================================
   Info Section (Weather, Unit Status)
   ========================================================================== */

.info-container {
    position: absolute;
    bottom: 21px;
    left: 33%;
    width: calc(67% - 410px);
    display: flex;
    flex-direction: row;
}

.info-container > .ui.card:only-child {
    width: 100%;
}

/* two items */
.info-container > .ui.card:first-child:nth-last-child(2),
.info-container > .ui.card:first-child:nth-last-child(2) ~ .ui.card {
    width: 50%;
}

.info-container > .ui.card {
    max-height: 90%;
    margin: 0 12px;
}

.info-container > .ui.card > .content {
    overflow-y: hidden;
}

.info-container > .ui.card > .content > .header {
    font-size: 27px;
    margin-bottom: 3px;
}

.info-container > .ui.card > .content > .meta {
    font-size: 19px;
}

.info-container > .ui.card > .content > .description {
    font-size: 20px;
    line-height: 25px;
}

.dot-container {
    padding: 5px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.36);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dot {
    height: 20px;
    width: 20px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 5px;
    display: inline-block;
}

.dot.selected {
    background-color: #fff;
}

.ui.segment .label {
    font-size: 20px;
}


.ui.segment.labeled {
    padding-top: 40px;
}


.carousel-container .ui.progress.attached, .carousel-container .ui.progress.attached .bar {
    height: 0.4em;
}

/* ==========================================================================
   Job Detail Animations
   ========================================================================== */
@keyframes responder-pulse {
    0% {
        color: #ff9800;
    }
    50% {
        color: #000;
    }
    100% {
        color: #ff9800;
    }
}

@-moz-keyframes responder-pulse {
    0% {
        color: #ff9800;
    }
    50% {
        color: #000;
    }
    100% {
        color: #ff9800;
    }
}

@-webkit-keyframes responder-pulse {
    0% {
        color: #ff9800;
    }
    50% {
        color: #000;
    }
    100% {
        color: #ff9800;
    }
}

.responder-active {
    color: #ff9800;
    animation: responder-pulse 2s infinite;
}

.turnout-blink {
    -webkit-animation: turnout-blinker 1s linear infinite;
    -moz-animation: turnout-blinker 1s linear infinite;
    animation: turnout-blinker 1s linear infinite;
}

@-webkit-keyframes turnout-blinker {
    0% { opacity: 1; }
    50% { opacity: 1; }
    50.01% { opacity: 0; }
    100% { opacity: 0; }
}

@-moz-keyframes turnout-blinker {
    0% { opacity: 1; }
    50% { opacity: 1; }
    50.01% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes turnout-blinker {
    0% { opacity: 1; }
    50% { opacity: 1; }
    50.01% { opacity: 0; }
    100% { opacity: 0; }
}

/* ==========================================================================
   SA Login Code View
   ========================================================================== */
.login-number {
    border: 3px solid #333;
    border-radius: 6px;
    padding: 50px;
    font-size: 36px;
    margin-right: 20px;
    font-weight: bold;
    background-color: #ccc;
}
