/*Bootstrap colors*/
:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #3c8dbc;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/*
systemPipeShiny CSS Styles
*/

.sps-page.container-fluid{
    padding-left: 0;
    padding-right: 0;
}


/*buttons, default is too ugly*/
.sps .btn-default{
  color: #fff;
  background-color: var(--primary);
  border-color: #2e6da4;
}

.sps .btn-default:hover{
  background-color: #4c92cf;
}

/*fix drawer buttons*/
.sps .drawer .btn-default{
  color: black;
  background-color: transparent;
  border-color: initial;
}

.sps .drawer .btn-default:hover{
  background-color: initial;
}

/*widget user in shinydashboardplus*/
.widget-user {
  overflow-y:auto;
}


/* about tab background */
.widget-user-header {
	background: linear-gradient(-45deg, #428bca, #ccccff, #b3b3b3);
	background-size: 400% 400%;
	animation: card_bg 10s ease infinite;
}

@keyframes card_bg {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}


/* background color of box inside bt3 accordion*/
.panel-collapse .panel-body .box {
    background-color: #f6f6f6;
}


/*blink class*/

.sps-blink {
  animation: blinking 2s linear infinite;
}

.sps-blink:hover {
  animation: none;
}

@keyframes blinking {
  50% { opacity: 0; }
}


/*disconnect*/
/*credit to daattali: https://github.com/daattali/shinydisconnect*/
#shiny-disconnected-overlay {
    background-color: #000000 !important;
    z-index: 9997 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}
#ss-connect-dialog label { display: none !important; }

#ss-overlay {
  background-color: #000000 !important;
  opacity: 0.6 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 9998 !important;
  overflow: hidden !important;
  cursor: not-allowed !important;
}

#ss-connect-dialog {
  background: white !important;
  color: #444444 !important;
  width: 550px !important;
  transform: translateX(-50%) translateY(-50%) !important;
  font-size: 22px !important;
  top: 50% !important;
  position: fixed !important;
  bottom: auto !important;
  left: 50% !important;
  padding: 0.8em 0.5em !important;
  text-align: center !important;
  height: auto !important;
  opacity: 1 !important;
  z-index: 9999 !important;
  border-radius: 15px !important;
  box-shadow: rgba(0, 0, 0, 0.3) 3px 3px 10px !important;
}

#ss-connect-dialog > a {
  display: block !important;
  color: #337ab7 !important;
  font-size: 0 !important;
  margin-top: 22px !important;
  font-weight: normal !important;
}

#ss-connect-dialog > a::before {
  content: 'Reconnect';
  font-size: 22px;
}

#ss-connect-dialog img{
  display: block;
  margin: auto;
}

#ss-connect-dialog span {
    font-size: 15px;
}

#ss-connect-dialog span > a {
    display: inline !important;
    color: #337ab7 !important;
}

.shiny-discon::before { content: 'SPS Disconnected: Error occurred or timeout reached' }

.shiny-discon-noserver::before { content: 'Cannot connect to the server' }


div.active:focus, :focus {
    outline: 0;
}

.plot-control-panel {
    border: 1px solid #bce8f1;
    min-height: 500px;
    margin-left: 5px;
    padding: 0 5px;
}


/* reset some values changed by shiny accessibility, so ugly -_- */
.carousel:hover .carousel-caption, .carousel.contrast .carousel-caption {
    background-color: initial;
}

a.carousel-control:focus {
    outline: initial;
    background-image: initial;
    box-shadow: initial;
}

/* some text size change */
.text-main {
  font-size: 2rem;
}

.text-minor {
  font-size: 1.5rem;
}

/* table in markdown */
.desc-table table {
  margin: 0 auto;
  font-size: 2rem;
}

.desc-table thead {
  border-bottom: 2px solid #9e9e9e;
}

.desc-table th:not(:first-of-type) {
  border-left: 1px solid #9e9e9e;
}

.desc-table th {
  padding: 0 5px;
}

.desc-table td:not(:first-of-type) {
  border-left: 1px solid #9e9e9e;
}

.desc-table td {
  padding: 0 5px;
}

.desc-table tbody td {
  padding: 5px 0;
}

.desc-table tr:nth-child(even) {
      background-color: rgb(243 243 243);
}


/*lower modal overlay 1 level to show notification*/
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background-color: #000;
}
