/* Main styles */
body {
  background: #F8F8F8;
  color: #313131;
  margin-top: 5rem;
  font-family: Saira;
}

.full-width {
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	position: absolute;
	right: 50%;
	width: 100vw;
}

h6 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

h6.fw-semibold {
  font-weight: 600;
}

.orange-txt {
  color:#F28320;
}

.orange-txt-link:hover {
  color: #2643AE;
  font-weight: 600;
}

.orange-txt-link:hover i {
  color: #2643AE;
}

a {
  color: #313131;
}

a:hover, a:focus, a:active {/* links without underline */
  text-decoration: none;
  color: #313131;
}

li {
  padding: 10px;
  overflow: auto;
}

a li:hover {
  background: #eee;
  cursor: pointer;
}

a li.inactive:hover {
  background: none;
  cursor: default;
}

.dropdown-toggle:hover {
  cursor: pointer;
}

/* styling on column grid */
.column {
  float: left;
  width: 40%;
}

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

.row {
    margin-left: 15px;
    margin-right: 40px;
}

/* Alert colors */
#alert_warning_color {
  color: #ef4444;
}

#alert_success_color {
  color: #3aa094;
}

.badge {
  font-family: 'Saira', sans-serif !important;
  color: white;
  font-weight: 500 !important;
  letter-spacing: 0.005rem;
}

#status_open{
  background-color: #3aa094;
}

#status_finished{
  background-color: #cbebe2;
  color: #3aa094;
}

#status_closed{
  color: #929292;
}

#status_closed.bg-custom-grey{
  background-color: #dbdbdb;
}

#status_gametype{
  background-color: #f8e1c6;
  color: #F28320;
}

.alert {
  padding: 20px;
  background-color:#ACACAC;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
  margin-bottom: 15px;
}
.alert.success {background-color: #3aa094;}
.alert.warning {background-color: #ef4444;}

/* Navigation bar on top of the page */
.navbar{
  background-color: #122444  !important;
}

.navbar-brand{
  margin-left: 20px;
}

.navbar-brand img {
  max-width: 150px;
    margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 0.5rem;
}

.nav-item{
  color: #ffffff !important;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 300;
  font-size: 14px;
  margin-right: 0.5rem;
}

.nav-item:hover{
  color: #2643AE !important;
  transition: color 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

/* Breadcrumb styling */
.breadcrumb {
  padding: 2px 15px !important;
  background-color: transparent;
  font-size: 0.85rem;
}

.breadcrumb-item+.breadcrumb-item::before{
content: '>';
}

.breadcrumb-item {
  padding: 10px 2px 10px 2px;
}

.breadcrumb-item a:hover {
  color: #2643AE !important;
  font-weight: 600;
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumb li:hover{
  background: none
}

/* Side styling on Product Detail View */

#sidebar { /* styling for everything in the sidebar */
  min-width: 250px;
  max-width: 250px;
  height: 100%;
  transition: all 0.3s;
  background: #122444;
  color: #ffffff;
}

#sidebar a.dropdown-toggle{ /* the padding area of the subtitle that is collapsible */
  padding: 5px 5px 5px 35px;
}

#sidebar div.fieldWrapper { /* parameters bars that are adjustable */
   padding-left: 30px;
   font-size: small;
 }

#sidebar .sidebar-header { /* the padding for the sidebar title*/
  padding: 20px 20px 0px 20px;
}

#sidebar h3{ /* Sidebar title */
  font-size: 20px;
}

#sidebar .sidebar-header h6{ /* this is for the paragraph in the sidebar - needs to overwrite #sidebar h6 */
  color: #ffffff;
  text-transform: none;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.3;
}

#sidebar .sidebar-subtitle { /* the padding for the sidebar subtitle */
  padding: 20px 0px 0px 20px;
}

#sidebar h6{  /* subtitles in sidebar*/
   font-size: 1.1rem;
   font-weight: regular;
   text-transform: uppercase;
   font-size: 14px;
   padding-bottom: 10px;
   color: #7D99FF;
}

#sidebar ul.components { /* this sets the padding and border on all elements containing collapsible parameters in sidebar */
    padding: 0px 0px 10px 0px;
    border-bottom: 1px solid #2643AE;
    border-top: 1px solid #2643AE;
 }

#sidebar ul li a { /* the fixes the size of the collapsible modelling options */
  display: block;
}

#sidebar ul.collapse.collapse.show{ /* the area that when collapsed, showing the parameters */
  background: #273C69;
}

#sidebar li:hover, #sidebar li:focus, #sidebar li:active { /* the modelling options area that is collapsible, when interacting*/
  background: #293B69;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
 }

#sidebar a, #sidebar a:hover, #sidebar a:focus, #sidebar a:active { /* modelling options that is collapsible, when interacting */
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}

/* Styling for invalid fields in parameters fieldwrapper */
.field-error {
  display: block;
  margin-left: -30px;
  min-height: 30px;
  padding: 0.4rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: #ffffff;
  background-color: rgba(239, 68, 68,  0.85);
  text-align: center;
  box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

input .is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68,  0.25);
}

input .fieldWrapper.is-invalid {
  border-color: #ef4444;
}

input .fieldWrapper.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68,  0.25);
}

/* Buttons styling */
.btn {
  border-radius: 25px;
  background-color: #F28320;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  width: 100%;
}

.btn:hover {
  transition: color 0.2s ease;
  color: #F28320 !important;
  font-weight: 600;
  background-color: #FFD3A1 !important;
}

.btn:focus {
  transition: color 0.2s ease;
  color: #F28320 !important;
  font-weight: 600;
  background-color: #FFD3A1 !important;
}

#refresh-calculation-button:disabled {
  cursor: not-allowed;
  background-color: #293B69;
}

#refresh-calculation-button:disabled:hover { /* override hover styling specifically for disabled styling*/
  cursor: not-allowed;
  background-color: #293B69 !important;
  color: white !important;
  font-weight: normal;
}


.btn.btn-home {
  font-size: 1.1rem;
  padding: 16px 20px;
}

.btn.btn-en {
  float: right;
  width: auto;
}

.btn.btn-submit {
  width: 40%;
}

.btn.btn-submit.competitive-disable-btn {
  color: #ffffff;
  background-color: #6c757d;
  cursor: not-allowed;
}

.btn.btn-submit.competitive-disable-btn:hover {
  color: #ffffff !important ;
  background-color: #6c757d !important;
  font-weight: 400 !important;
}

/* Modal button styles - override default .btn styles for Bootstrap buttons */
.modal-footer .btn-primary {
  background-color: #F28320 !important;
  color: white !important;
  border: none !important;
}

.modal-footer .btn-primary:hover {
  background-color: #FFD3A1 !important;
  color: #F28320 !important;
  font-weight: 600 !important;
}

.modal-footer .btn-secondary {
  background-color: #6c757d !important;
  color: white !important;
  border: none !important;
}

.modal-footer .btn-secondary:hover {
  background-color: #5a6268 !important;
  color: white !important;
  font-weight: 600 !important;
}
.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: #313131;
}

/* other styles */
li img {
  float: left;
  margin: 0 15px 0 0;
}

h5.prod_title {
  margin-top: 3.5rem;
  text-align: center;
  color: #313131;
}

h5.team_title {
  margin-top: 2rem;
  color: #313131;
}

.detailed_title h5{
  color: #F28320;
  font-weight: 500;
}

.card-header.detailed_title{
  background-color: white;/* #ffe6c8;
  border-color: #F28320; */
}

/* Games info styling */
#custom_img {
  max-width: 150px;
    margin-top: 0px;
  margin-bottom: 0px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#game-info {
  display: flex;
    align-items: center;
  gap: 20px;
}

h5.game_title {
  color: #F28320;
}

.inactive h5.game_title {
  color: #929292;
}

/* charts styling */
#myCovChart {
 font-family: 'Saira', sans-serif;
}


/* data table styling */
h5.table_title {
  font-size: 0.9rem;
  color: #F28320;
}

th {
  font-weight: 600;
  color: #313131;

}

td.bold, td span.bold{
  font-weight: 600;
}

/* Login styling */
#loginForm {
  position: relative;
  top: 96px;
}

form.container{
  right: 0;
  margin: 20px;
  margin-left: 30px;
  max-width: 300px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius:  10px;
}

input#id_username[type=text], input#id_password[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #e9ecef;
}

input#id_username[type=text]:focus, input#id_password[type=password]:focus {
  background-color: #e9ecef;
  outline: none;
}

input[type=submit], input[type=number], select{
  width: 75%;
  padding: 8px 8px;
  margin: 4px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
 }

 /* other */
select#id_final_model{
  width: 100%;
  padding: 8px 8px;
  margin: 4px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
 }

 div.fieldWrapper #id_dbf_covariates {
  margin: 0px;
  padding: 0px;
}

.info {
    padding: 5px 20px !important;
}

.row.row-eval{
  text-align: right;
}

.jumbotron{
  background-color:transparent !important;
}

.jumbotron.logout {
  background-color: #e9ecef !important;
  margin-top: 64px;
  margin-left: 32px;
  margin-right: 32px;
  border-radius:  10px;
}

.container.logout {
  display: center;
}

p.paragraph{
  margin-top: 1rem;
}

ul.product {
  padding-left: 0px;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 100%;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.tabcontent {
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}
.wrapper {
    display: flex;
    align-items: stretch;
}

/* is this part sidebar? */
a[data-toggle="collapse"] {
    position: relative;
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
}

.card-header.dropdown-toggle {
  font-size: large;
}

ul.collapse.collapse.show{
  background: #eee;
}

li.submenu {
  padding: 0px;
}

h6.acc {
  padding-bottom: 5px;
}

.grid-container {
  position: flex;
  display: inline-grid;
  grid-template-columns: auto auto auto ;
  grid-gap: 10px;
  padding: 10px;
  margin-left: 5%;
}

/* Products grid with fixed cell width and equal spacing - max 4 columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  gap: 10px;
  padding: 2px 0;
  width: 100%;
  max-width: 100%;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}

.product-item:hover {
  background: #eee;
  cursor: pointer;
}

.product-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-content #custom_img {
  float: none;
  margin: 0 auto 10px auto;
  max-width: 150px;
  display: block;
}

.product-content .prod_title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.collapsible {
  background-color: #888;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.tactive, .collapsible:hover {
  background-color: #666;
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}

.collapsible:after {
  content: "\f077";
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.tactive:after {
  content: "\f078";
}

/* Performance analysis styling */
.performance {
  margin: 0 3% 0 3%;
}

.table-sm{
  font-size: 13px;
}

.simulated_accuracy_tabel {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

/* Table header styling for editable tables */
.table-editable th {
  min-width: 60px;
  font-size: 13px;
  padding: 8px 2px;
}

.table-editable td {
  font-size: 13px;
  padding: 8px 2px;
}