@import url(https://fonts.googleapis.com/css2?family=Saira:wght@500&display=swap);
body {
  padding-top: 1rem;
  font-family: "Saira" !important;
}

h4 {
  user-select: none;
}

#donate {
  display: block;
  position: fixed;
  top: 10px;
  right: 10px;
  text-align: center;
  width: 166px;
  font-size: 10px;
  border: 1px solid #c1c1c1;
  border-radius: 10px;
  padding: 5px;
}

.js-button {
  width: 30px;
  height: 30px;
  background-color: rgb(230 230 230);
  border: 2px solid rgb(177, 177, 177);
  display: block;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  display: inline-flex;
  margin: 5px;
  user-select: none;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.05);
}

.hat {
  border: 1px solid grey;
  width:50px;
  height:50px;
  border-radius: 25px;
  /* display: inline-block; */
  margin: 10px;
  position: relative;
  box-shadow: 0px 0px 10px #00000026;
}
.hat-id {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color:rgb(97, 97, 97);
}

.hat-arrow:not([state])::before, .hat-arrow[state="15"]::before {
  content:"" !important;
  width:20px;
  height:20px;
  border-radius: 10px;
  background-color: rgb(205, 205, 205);
}

.hat-arrow[state]::before {
  content:"🡅";
}

.hat-arrow:not([state]) {
  transform: rotate(90deg);
  align-items: center;
  color: grey;
}

#joystick-col {
}

.hat-arrow {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 0px;
  transform-origin: center;
  transform: rotate(0deg);
  color: red;
}
.hat-arrow[state="0"] {
  transform: rotate(0deg);
}
.hat-arrow[state="1"] {
  transform: rotate(45deg);
}
.hat-arrow[state="2"] {
  transform: rotate(90deg);
}
.hat-arrow[state="3"] {
  transform: rotate(135deg);
}
.hat-arrow[state="4"] {
  transform: rotate(180deg);
}
.hat-arrow[state="5"] {
  transform: rotate(225deg);
}
.hat-arrow[state="6"] {
  transform: rotate(270deg);
}
.hat-arrow[state="7"] {
  transform: rotate(315deg);
}
.hat-arrow[state="15"] {
  transform: rotate(90deg);
  align-items: center;
  color: grey;
}


.js-button[checked="true"] {
  border: 2px solid rgb(250, 147, 147);
  background-color: rgb(253, 42, 42);
  color: white;
  box-shadow: 0px 0px 5px 2px rgba(253, 42, 42, 0.3);
}

#joystick-area {
  width:150px;
  height:150px;
  background-color: rgb(241, 241, 241);
  border: 1px solid grey;
  display: block;
  position: relative;
  border-radius: 5px;
}

#joystick-ball {
  width:10px;
  height: 10px;
  background-color: rgb(211, 9, 177);
  border-radius: 5px;
  transform: translate(-50%,-50%);
  left: 50%;
  top:50%;
  position: absolute;
  box-shadow: 0px 0px 5px rgb(211, 9, 177)
}

#horiz-line {
  position: absolute;
  display: inline-block;
  border-bottom: 1px dashed var(--bs-gray-500);
  top:0px;
  width: 100%;
  height: 50%;
}

#vert-line {
  position: absolute;
  display: inline-block;
  border-right: 1px dashed var(--bs-gray-500);
  top:0px;
  width: 50%;
  height: 100%;
}

.learn-more-link {
  margin-left: 8px;
  text-decoration: underline;
  cursor: pointer;
}

.learn-more-tooltip {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 260px;
  max-width: 320px;
  font-size: 0.95em;
  font-family: system-ui, sans-serif;
}

.learn-more-tooltip.visible {
  display: block;
}

body.loading {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

body.loaded {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s;
}

.notification-button {
  position: relative;
  padding: 6px 12px;
}
.notification-button.active {
  /* color: #0d6efd; */
}
.card {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.logo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.logo-title-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-title-row img {
  height: 56px;
  width: auto;
}
.header-divider {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}
.fw-controls .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.device-section-row {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.card-body {
  padding: 1.25rem 1.5rem;
}
.progress {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.output-label {
  /* font-family: monospace; */
  font-size: 1em;
  /* color: #555; */
}
.output-value {
  /* font-family: monospace; */
  font-size: 1em;
  /* color: #222; */
}
#loading-screen {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 1.5rem;
  z-index: 9999;
}
