/* 
    Copyright (c) CaseMaster Technology Ltd. All rights reserved.
    See LICENSE file in the project root for full license information.
*/

.bg-primary {
    background-color: #f37025!important;
}

.bg-secondary {
    background-color: #ffffff !important;
}

.cardLink {
    transition: 0.3s;
	border-radius: 5px; /* 5px rounded corners */
	border: 1px solid #f37025;
}

.cardLink:hover {
	text-decoration: none;
	border: 2px solid #f37025;
}

.text-primary {
    color: #f37025!important;
}

.reg {
	background: linear-gradient(to bottom, #f8d038 0%,#f5ca2e 100%);
	border-left: 20px solid #063298;
	padding: .1em 1em .1em 0.75em;
	font-weight: bold;
	border-radius: 5px;
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	border-right: 1px solid #000;
	box-shadow: 1px 1px 1px #ddd;
	position: relative;
    font-family: helvetica, ariel, sans-serif;
    margin-left: 0.5rem;
    color: black;
}

.card-header .fas {
	transition: .3s transform ease-in-out;
}
.card-header .collapsed .fas {
	transform: rotate(90deg);
}

.rating {
    float:left;
}

/* :not(:checked) is a filter, so that browsers that don’t support :checked don’t 
   follow these rules. Every browser that supports :checked also supports :not(), so
   it doesn’t make the test unnecessarily selective */
.rating:not(:checked) > input {
    position:absolute;
    top:-9999px;
    clip:rect(0,0,0,0);
}

.rating:not(:checked) > label {
    float:right;
    width:1em;
    padding:0 .1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:200%;
    line-height:1.2;
    color:#ddd;
    text-shadow:1px 1px #bbb, 2px 2px #666, .1em .1em .2em rgba(0,0,0,.5);
}

.rating:not(:checked) > label:before {
    content: '★ ';
}

.rating > input:checked ~ label {
    color: #f70;
    text-shadow:1px 1px #c60, 2px 2px #940, .1em .1em .2em rgba(0,0,0,.5);
}

.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
    color: gold;
    text-shadow:1px 1px goldenrod, 2px 2px #B57340, .1em .1em .2em rgba(0,0,0,.5);
}

.rating > input:checked + label:hover,
.rating > input:checked + label:hover ~ label,
.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label,
.rating > label:hover ~ input:checked ~ label {
    color: #ea0;
    text-shadow:1px 1px goldenrod, 2px 2px #B57340, .1em .1em .2em rgba(0,0,0,.5);
}

.rating > label:active {
    position:relative;
    top:2px;
    left:2px;
}

.search-dropdown>.dropdown-menu {
    min-width: 35rem;
}

.card-header.raised {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: -40px;
    padding: 20px 0;
    margin-bottom: 15px;
    -webkit-box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
}

.page-header {
    height: 25vh;
    background-position: center center;
    background-size: cover;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center; 
}
.login .page-header {
    height: 100vh; 
}
.page-header.header-filter:before, .page-header.header-filter:after {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    left: 0;
    top: 0;
    content: ''; 
}
.page-header.header-filter:before {
    background: rgba(33, 37, 41, 0.5); 
}
.page-header.header-filter .container,
.page-header.header-filter .container-fluid {
    z-index: 3; 
}

.message-left {
    position: relative;
    margin-left: 20px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #818285;  
    text-align: left;
    font: 400 .9em 'Open Sans', sans-serif;
    border: 1px solid #818285;
    border-radius: 10px;
    color: #ffffff;
}

.message-right {
    position: relative;
    margin-bottom: 10px;
    margin-right: 20px;
    padding: 10px;
    background-color: #f37025; 
    text-align: left;
    font: 400 .9em 'Open Sans', sans-serif;
    border: 1px solid #f37025;
    border-radius: 10px;
    color: #ffffff;
}

.message-content {
    padding: 0;
    margin: 0;
}

.message-right .message-timestamp {
    font-size: .85em;
    font-weight: 300;
    bottom: 5px;
    right: 5px;
}

.message-left .message-timestamp {
    font-size: .85em;
    font-weight: 300;
    bottom: 5px;
    left: 5px;
}

.message-left:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid #818285;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    top: 0;
    left: -15px;
}

.message-left:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 17px solid #818285;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    top: -1px;
    left: -17px;
}

.message-right:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-bottom: 15px solid #f37025;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    bottom: 0;
    right: -15px;
}

.message-right:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-bottom: 17px solid #f37025;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    bottom: -1px;
    right: -17px;
}

.overflow-auto {
    overflow: auto;
    height: 85vh;
}

.accordion .card:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}


.message-right .message-quote,
.message-right .message-quote a {
    background-color: #818285;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    color: #f37025;
    padding: 5px;
}

.message-left .message-quote,
.message-left .message-quote a {
    background-color: #f37025;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    color: #FFFFFF;
    padding: 5px;
}

.max-width-100 {
    max-width: 100%;
}

.message-content .dropdown-toggle::after {
    display: none;
}

::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: #F5F5F5;
}

::-webkit-scrollbar
{
	width: 10px;
	background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #f37025;
}

.message-left .btn-link,
.message-right .btn-link,
.message-left a,
.message-right a {
    color: #ffffff;
}

.row-box {
    border: #f37025 1px solid;
    border-radius: 10px;      
}

body {
    font-size: 0.9rem;
    background-color: #d3d3d32e;
}

.mh-100px {
    max-height: 100px;
}

.dropdown-menu.show {
    z-index: 9999;
}

.display-5 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
    color: #ffffff !important;
    text-decoration: none;
    background-color: #f37025;
}

.dropdown-menu {
    border: 2px solid #f37025;
    border-radius: unset;
}

.footer {
    background-color: #f37025;
    color: #ffffff !important;
    height: 100%;
}

.navbar a,.navbar button {
    color: #ffffff !important;
    font-size: 1.1rem;
}

.navbar .dropdown-menu .btn-link {
    color: #ffffff !important;
}

.navbar .dropdown-menu .btn-link:hover {
    color: #ffffff !important;
}

aside .navbar a {
    color: #f37025 !important;
    font-size: 0.9rem;
}

aside .navbar a.active {
    color: #ffffff !important;
    font-size: 0.9rem;
}

.dropdown-menu a {
    color: #f37025 !important;
}

.footer a{
    color: #ffffff !important;
}

aside .navbar a:hover {
    color: #ffffff !important;
    background-color: #f37025 !important;
}

.btn.btn-round {
    width: calc(1.5em + 0.75rem + 2px);
    height: calc(1.5em + 0.75rem + 2px);
    line-height: calc(1.5em + 0.75rem + 2px);
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: #f37025;
    color: #ffffff;
}

.lead-2 {
    font-size: 1.5rem;
    font-weight: 300;
}

nav.navbar {
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, #f37025 20%);
}

aside .navbar {
    background: unset;
}

.text-primary-muted {
    color: #f3702570;
}

.btn {
    font-size: 0.9rem;
}

.body-wrapper {
    min-height: calc(100vh - 170px);
}

.fnol-nav {
    background-color: #efefef;
    border-bottom: 1px solid #80808047;
}

th {
    font-weight: 300;
    padding: 0.5rem !important;
}

.vh-75 {
    height: 75vh !important;
}

.card-img-top {
    height: 40vh;
    object-fit: cover;
}

.fnol-nav .active p{
    font-weight: 500 !important;
}

.btn-lg {
    font-size: 1.25rem;
}

.fnol-nav .btn-link:hover p {
    font-weight: 500 !important;
    color: #f37025;
}

.fnol-nav .btn-link:hover {
    text-decoration: none !important;
}

.nav-item.active {
    color: #f37025 !important;
}

.nav-item.active a:not(.dropdown-item) {
    color: #f37025 !important;
}

time.icon
{
  font-size: 0.7em; /* change icon size */
  display: block;
  position: relative;
  width: 7em;
  height: 7em;
  background-color: #fff;
  border-radius: 0.6em;
  border: #f37025 1px solid;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: rotate(0deg) skewY(0deg);
  -webkit-transform-origin: 50% 10%;
  transform-origin: 50% 10%;
}

time.icon *
{
  display: block;
  width: 100%;
  font-size: 1em;
  font-weight: bold;
  font-style: normal;
  text-align: center;
}

time.icon strong
{
  position: absolute;
  top: 0;
  padding: 0.4em 0;
  color: #fff;
  background-color: #f37025;
  border-bottom: 1px dashed #133905;
  box-shadow: 0 2px 0 #f37025;
}

time.icon em
{
  position: absolute;
  bottom: 0.3em;
  color: #f37025;
}

time.icon span
{
  width: 100%;
  font-size: 2.8em;
  letter-spacing: -0.05em;
  padding-top: 0.7em;
  color: #2f2f2f;
}

.fc h2 {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Temp fix for select2, post content now looks fine, but any other's don't */
.select2 {
    min-width: 75%;
    max-width: 100%;
    width: unset !important;
}

.traffic-light {
    background-color: black;
    border-radius: 5px;
}

.traffic-light .red {
    background-color: #ff0000;
    border-radius: 25px;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.traffic-light .red.muted {
    background-color: #ff000080;
}

.traffic-light .amber {
    background-color: #ffa500;
    border-radius: 25px;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.traffic-light .amber.muted {
    background-color: #ffa50080;
}

.traffic-light .green {
    background-color: #32cd32;
    border-radius: 25px;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.traffic-light .green.muted {
    background-color: #32cd3280;
}

.select2.warning {
    box-shadow: 0 0 10px #F44336;
    border-radius: 4px;
}