/* Custom App Style */

:root {
  --primary-color: #ff4f20;
  --secondary-color: #E1E1E1;
  --tertiary-color: #fd914e;
  --dark-color: #111111;
  --white-color: #F2F2F2;
  --transparent-color: #fb641930;
  --default-animation: all .4s ease-in-out;
}

@font-face {
  font-family: 'Digital Numbers Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Digital Numbers Regular'), url('../fonts/DigitalNumbers-Regular.woff') format('woff');
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #F5F5F5;
  margin: 0;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
input,
label,
span,
small {
  font-family: 'Roboto', sans-serif;
}

.app-bar {
  background: var(--primary-color);
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 32%);
  color: var(--white-color);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-bar img {
  width: 74px;
  height: auto;
  padding: 12px;
  background: white;
  border-radius: 20%;
}

.app-bar-text {
  background: var(--primary-color);
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--tertiary-color) 32%);
  border-radius: 0 0 128px 0;
  padding: 12px 16px 16px 16px;
  color: var(--white-color);
  font-size: 28px;
  margin-top: -1px;
}

.app-bar-text h1 {
  height: 32px;
  overflow: hidden;
}

.app-bar-text p {
  font-size: 24px;
  color: var(--dark-color);
}

.app-bar-text small {
  font-size: 14px;
  display: block;
  padding-right: 44px;
  margin-bottom: 1rem;
}

header#header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
}

.app-bar i {
  font-size: 24px;
}

.content {
  padding: 16px;
  padding-top: 176px !important;
}

.content.has-subtitle {
  padding-top: 208px !important;
}

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  margin-bottom: 16px;
}

.fab {
  background-color: var(--tertiary-color);
  border: none;
  border-radius: 50%;
  position: fixed;
  bottom: 8px;
  right: 15px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.fab:active {
  background-color: var(--primary-color);
}

.fab i {
  color: var(--white-color);
}

.fab.top {
  top: 8%;
  width: 40px;
  height: 40px;
}

.download-button-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  margin-bottom: 24px;
}

.btn-download {
  background-color: #6c757d !important;
  color: #fff !important;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  text-decoration: none !important;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.2s ease-in-out;
}

.btn-download:hover {
  background-color: #5a6268 !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  color: white !important;
}

.btn-download:active {
  background-color: #495057 !important;
}

.btn-download i {
  font-size: 18px;
}

.btn.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
  outline: none !important;
  border: 1px solid var(--primary-color) !important;
}

.app-bg {
  background-image: url('../images/track-time-background-square.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 80vh;
  border-radius: 0 0 128px 0;
  position: relative;
}

header.app-bg h1 {
  position: absolute;
  bottom: 32px;
  left: 24px;
  width: 232px;
  font-size: 64px;
  color: var(--white-color);
  text-shadow: 2px 2px 12px var(--bg-darker);
}

main.app-init {
  height: 20vh;
}

.btn {
  padding: 12px 24px !important;
}

.btn.btn-lg {
  padding: 16px 28px !important;
}

main.auth-main {
  position: absolute;
  left: 0;
  right: 0;
  top: 6%;
}

div.auth-form {
  padding: 16px;
  width: 92%;
  height: auto;
  background-color: var(--bg-dark);
  border: 1px solid var(--secondary-color);
  margin: 16px;
  border-radius: 16px;
}

.form-control:focus {
  border-color: var(--transparent-color);
  box-shadow: 0 0 0 .15rem var(--transparent-color);
}

.accordion-button.bg-primary {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

.font-medium.text-sm.text-green-600.mb-4 {
  color: var(--primary-color);
}

a.menu {
  color: var(--white-color);
  z-index: 9;
}

a.menu:hover {
  color: var(--white-color);
}

a.menu i.fa-xmark {
  font-size: 28px !important;
}

menu {
  width: 100vw;
  height: 100vh;
  transform: translateX(-100%);
  transition: var(--default-animation);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark-transparent);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  margin: 0;
  padding: 44px 32px;
  z-index: 8;
  border-radius: 0;
  overflow-y: auto;
}

menu.opened {
  transform: translateX(0);
  border-radius: 0 192px 0 0;
}

menu h2 {
  color: var(--primary-color);
  margin-bottom: 24px;
}

menu ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  width: 98%;
  margin-left: -32px;
}

menu ul li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--tertiary-color);
}

menu ul li:last-child {
  border-bottom: none;
}

menu ul li a {
  color: var(--dark-color);
  text-decoration: none;
  font-size: 22px;
}

menu ul li a:active {
  color: var(--primary-color);
}

ul.app-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

li.app-item {
  width: 100%;
}

li.app-item a {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--secondary-color);
  margin-bottom: 0;
  border-radius: 24px 44px 44px 24px;
  text-decoration: none;
  color: var(--dark-color);
}

li.app-item:nth-child(even) a {
  background: var(--tertiary-color);
}

li.app-item a:active {
  background: var(--primary-color);
  color: var(--white-color);
}

li.app-item a:active h3,
li.app-item a:active p {
  color: var(--white-color);
}

li.app-item a:active i {
  border-color: var(--white-color);
}

.app-item.app-item-selected a {
  border: 4px solid var(--dark-color) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.texts h3 {
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 4px;
}

.texts p {
  font-size: 14px;
  color: gray;
  margin-bottom: 0;
}

li:nth-child(even) p {
  color: var(--dark-color);
}

li.app-item i {
  border: none;
  padding: 14px 16px;
  border-radius: 50%;
  background-color: white;
  color: darkslategrey;
}

.app-item {
  position: relative;
}

.app-item:has(.racer-radio:not(.d-none)) {
  padding-left: 2.5rem;
}

.racer-radio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  top: 50%;
  left: 0.15rem;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 2px solid #555;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.racer-radio:checked {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 2px white inset;
}

.kart-name {
  margin-bottom: 0.25rem;
}

.kart-details {
  margin-bottom: 0.25rem;
}

.declare-label {
  font-size: 0.85em;
  transition: all 0.2s ease-in-out;
}

.declare-label.inactive {
  opacity: 0.5;
  font-style: italic;
  color: var(--bs-text-muted);
}

.kart-link {
  width: 100%;
  text-decoration: none;
  display: block;
  position: relative;
}

.declare-toggle-label {
  font-size: 0.9rem;
}

.btn-check:checked + .btn-outline-warning {
  background-color: #ff7c00;
  border-color: #ff7c00;
  color: #fff;
}

div.search-group {
  position: relative;
  z-index: 0;
  width: 100%;
}

div.search-group input.search-input {
  width: 100%;
  padding: 14px 48px 14px 24px;
  border-radius: 24px;
  border: none;
  margin-bottom: 16px;
}

div.search-group input.search-input:focus-visible {
  outline: 1px solid var(--tertiary-color);
}

.search-input {
  padding-left: 1.75rem;
}

div.search-group i {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  color: var(--tertiary-color);
}

.form-check-input {
  cursor: pointer;
}

.form-switch {
  padding-left: 2.75em;
}

.form-switch .form-check-input {
  width: 2.5rem;
  height: 1.5rem;
  background-color: #ccc;
  border: none;
  transition: background-color 0.2s;
}

.form-switch .form-check-input:checked {
  background-color: #ff7c00;
}

.form-switch .form-check-input:focus {
  box-shadow: none;
}

.form-check-label {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  user-select: none;
  font-weight: 600;
  color: var(--primary-color);
}

header.race {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 999;
  width: 90%;
}

header.race img {
  display: none;
  width: 7%;
  padding: 8px;
  height: auto;
  border-radius: 20%;
  background: white;
}

main.race {
  background-color: #EEE;
  /*background-image: url('../images/car_panel_light.png');*/
  background-image: linear-gradient(180deg, #9e9393, transparent);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: 'Digital Numbers Regular';
  font-weight: normal;
}

main.race *:not(i) {
  font-family: 'Digital Numbers Regular';
  font-weight: normal;
}

.progress-bar {
  font-family: 'Roboto', sans-serif !important;
}

main.race .progress-container {
  width: 35%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

main.race .progress-container i {
  text-align: center;
  color: var(--white-color);
  margin-bottom: 6px;
  margin-top: 6px;
}

.line1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 2% auto;
  font-size: 1.2rem;
  letter-spacing: -4px;
}

.line1 .column {
  width: 100%;
}

.line1 .column:nth-child(2) {
  width: 25%;
}

.line2 {
  display: flex;
  width: 74%;
  margin: 0 auto;
  font-size: 1.6rem;
  letter-spacing: -2px;
  justify-content: space-between;
}

.line2 .column {
  text-align: center;
  width: 11%;
}

.line3 {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 4% auto 0;
  font-size: 1.1rem;
  letter-spacing: -2px;
}

.line3 .column {
  width: 16%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

main.race .fa-circle-down {
  color: green;
  margin-right: 4px;
}

main.race .fa-circle-up {
  color: red;
  margin-right: 4px;
}

main.race .center {
  position: fixed;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
}

div#\31 8-velocimetro {
  font-size: 2rem;
}

div#\31 0-numero-carro {
  font-size: 2.9rem;
}

.center-line2 {
  display: flex;
}

.center .left {
  color: red;
}

.center .right {
  color: green;
}

main.race .kart {
  width: 64px;
  height: auto;
  transform: scaleX(-1);
}

main.race .kart g {
  fill: var(--dark-color);
}

.line4 {
  display: flex;
  justify-content: space-between;
  width: 92%;
  margin: 10% auto 0;
  font-size: 1.6rem;
  letter-spacing: -1px;
}

.line4 .column {
  width: 18%;
  text-align: center;
}

.line5 {
  display: flex;
  justify-content: space-between;
  width: 96%;
  margin: 1% auto 0;
  padding-left: 4px;
  font-size: 0.72rem;
  letter-spacing: -1px;
}

.line5 .column {
  width: 100%;
  text-align: center;
}

.race-flag-icon {
  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
}

.race-flag-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.text-red {
  color: #ff3737 !important;
}

.smaller-text {
  font-size: 0.8rem;
}

.wider-column {
  width: 150px;
}

.blocked-row td, 
.blocked-row td * {
  color: #6c757d !important;
  font-style: italic !important;
  pointer-events: none !important;
}

#rehabilitate-button,
#rehabilitate-button * {
  color: white !important;
  font-style: normal !important;
  pointer-events: auto !important;
}

.combobox-wrap { position: relative; }
#email-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

@media (min-width: 576px) {
  .app-bar img {
    width: 56px;
    padding: 8px;
  }

  .app-bar-text {
    padding-top: 0;
    padding-bottom: 2px;
    font-size: 26px;
  }

  .content {
    padding-top: 128px !important;
  }

  .content.has-subtitle {
    padding-top: 160px !important;
  }

  main.race {
    background-size: 100% 100%;
  }

  header.race img {
    display: block;
  }
}

@media (min-width: 740px) {
  .line1 {
    margin: 1% auto;
    font-size: 3.9rem;
  }

  .line2 {
    font-size: 2.25rem;
  }

  .line3 {
    margin: 2.5% auto 0;
    font-size: 1.4rem;
  }

  main.race .center {
    font-size: 1.9rem;
  }

  .line4 {
    margin: 2.5% auto 0;
    font-size: 2.25rem;
  }

  .line5 {
    margin: 1% auto 0;
    font-size: 1.2rem;
  }

  .app-bar-text h1 {
    font-size: 30px;
  }

  p {
    margin-bottom: 12px;
  }
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

.btn-outline-secondary {
  color: #6c757d;
  border: 1px solid #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

.img-fluid-kart {
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .img-fluid-kart {
    width: 33%;
    max-width: 33%;
  }

  li.app-item {
    width: calc(50% - 8px);
  }

  li.app-item a {
    background: var(--tertiary-color);
  }

  li.app-item:nth-child(even) a {
    background: var(--tertiary-color);
  }
}