html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body.light-mode {
  background-color: #fff;
  color: #333;
  transition: background-color 0.3s ease;
}

.logo {
  background-image: url("../img/RaceTruck_LogoOriginal_r.webp");
  width: 50px;
  background-repeat: no-repeat;
  background-size: 50px;
}

.headerLogoBlack {
  background: url("../img/RaceTruck_LogotipoOriginal_r.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 500px;
  height: 224px;
  display: "";
}

.headerLogoWhite {
  background: url("../img/RaceTruck_LogotipoBlanco_r.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 500px;
  height: 0px;
  display: "";
}

@media (max-width: 500px) {
  .headerLogoBlack {
    background: url("../img/RaceTruck_LogotipoOriginal_r.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px;
    height: 224px;
    display: "";
  }

  .headerLogoWhite {
    background: url("../img/RaceTruck_LogotipoBlanco_r.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px;
    height: 0px;
    display: "";
  }

  .sponsor img {
    width: 150px !important;
    height: 70px !important;
  }
}

#products .hover-text {
  padding: 72% 0 0;
}

.dropdownCountrySelection button {
  background: transparent;
  color: #555;
}

#products .hover-text {
  box-shadow: inset 0px 0px 40px 40px white;
  color: black !important;
}

#products .hover-text h4 {
  color: black !important;
}

body.dark-mode #products .hover-text {
  box-shadow: inset 0px 0px 40px 40px #1b2938;
  color: white !important;
}

body.dark-mode #products .hover-text h4 {
  color: white !important;
}

body.dark-mode {
  background-color: #10171d;
  color: #dfdfdf !important;
}

body.dark-mode .dropdownCountrySelection button {
  background: transparent;
  color: white;
}

body.dark-mode .headerLogoBlack {
  display: none;
}

body.dark-mode .headerLogoWhite {
  display: block;
  height: 224px;
}

body.dark-mode .logo {
  background-image: url("../img/RaceTruck_LogoBlanco_r.webp");
  width: 50px;
  background-repeat: no-repeat;
  background-size: 50px;
}

body.dark-mode .cards {
  background-color: #30323d !important;
}

body.dark-mode .timeline-card-content {
  background-color: #1b2938 !important;
  color: white;
}

body.dark-mode .timeline-card-content > span {
  background-color: #1b2938 !important;
  color: white;
}

body.dark-mode .row-title-text {
  color: white;
}

body.dark-mode .rs-modal-title {
  color: white;
}

body.dark-mode .rs-modal-content {
  background: #10171d;
  color: white;
}

body.dark-mode .faq-row-wrapper {
  background-color: transparent;
}

body.dark-mode .arrow-image {
  background: #005b75;
  border-radius: 100%;
}

body.dark-mode .row-content-text {
  color: white !important;
}

body.dark-mode #footer {
  background: rgba(0, 91, 117, 0.2);
}

body.dark-mode .rc-card-text > p {
  color: white;
}

body.dark-mode .intro-text > h1 {
  color: black !important;
}

body.dark-mode #root > div > div {
  background-color: #10171d;
  color: white;
}

body.dark-mode .intro-text > p {
  color: black !important;
}

body.dark-mode .navbar-nav > li > a {
  color: white !important;
}

body.dark-mode .navbar-brand {
  color: white !important;
}

body.dark-mode .navbar {
  background-color: #1b2938 !important;
  color: white !important;
}

body.dark-mode .dark-mode-toggle > button {
  color: #999;
}

body.dark-mode .dark-mode-toggle > button:last-child {
  color: lightblue;
}

.content {
  padding: 20px;
  margin: 0 auto;
  margin-top: 60px;
  max-width: 600px;
  font-size: 20px;
  line-height: 1.3em;
}

.content h1 {
  font-size: 2rem;
}

.content img {
  width: 100%;
}

.content code {
  background-color: #cbe9ff;
  border-radius: 2px;
  font-size: 1em;
  padding: 0 5px;
}

.content a {
  text-decoration: none;
  color: #006688;
}

.content button {
  color: #006688;
  background-color: transparent;
  border: none;
  font-size: 1em;
  padding: 0;
}

body.dark-mode .content code {
  background-color: #1b2938;
}

body.dark-mode .content a {
  color: #ee09;
}

body.dark-mode .content button {
  color: #ee09;
}

.dark-mode-toggle {
  display: flex;
  position: relative;
  margin-left: auto;
  left: 10px;
  top: 0px;
}

.dark-mode-toggle > button {
  font-size: 1.2em;
  background: none;
  border: none;
  color: #ffe600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dark-mode-toggle > button:last-child {
  color: #666;
}

.dark-mode-toggle > button:focus {
  outline: none;
}

.toggle-control {
  position: relative;
  padding: 0 4px;
  display: flex;
  align-items: center;
  top: -2px;
}

input[type="checkbox"].dmcheck {
  width: 40px;
  height: 10px;
  background: #555;
  position: relative;
  border-radius: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  vertical-align: 2px;
  outline: none;
}

input[type="checkbox"].dmcheck:checked + label {
  left: 30px;
}

input[type="checkbox"].dmcheck:focus-visible {
  outline: solid 2px white;
}

input[type="checkbox"].dmcheck + label {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  position: absolute;
  left: 2px;
  background: #fff;
  opacity: 0.9;
  background-color: #b5b5b5;
  margin: 0;
  top: 13px;
  opacity: 1;
}

.languageSwitcher {
  min-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle, #dfffdb 50%, white 50%);
  background-position-y: -390px;
  margin: auto 0;
  background-size: 100% 800px;
  background-repeat: no-repeat;
}

.lang {
  display: flex;
  height: 40px;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100px;
  float: right;
}

.lang .dropdown {
  position: relative;
  left: 0;
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang:hover .dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang:hover .dropdown li {
  margin: 0;
  display: block;
  padding: 5px 0;
}
