:root {
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --drawer-w: 280px;
}

html,
body {
  height: 100%;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  margin: 0;
}

.background {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-blend-mode: darken, luminosity;
  background-color: rgba(0, 0, 0, 0.747);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.paywall {
  display: none;
  height: 100%;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.row {
  width: auto;
}

.paywall_title {
  font-size: 1.2em;
  font-weight: 500;
  margin: 0 auto;
  color: #dde3ed;
}

.paywall_description {
  white-space: pre-line;
  max-width: 500px;
  max-height: 12em;
  margin: 0 auto;
  color: #dde3ed;
  text-align: center;
  overflow: auto;
}

.paywall_price {
  font-size: 1.2em;
  font-weight: 500;
  margin: 0 auto;
  color: #dde3ed;
}

.button {
  cursor: pointer;
  color: #fff;
  display: flex;
  margin: 0 auto;
  padding: 10px 16px;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #4967ee;
  background: #4967ee;
  width: clamp(100px, 60cqi, 300px);
  min-width: fit-content;
  max-width: 100%;
  flex-shrink: 1;
  font-size: inherit;
}

.text {
  margin: 0 auto;
  color: #dde3ed;
  font-size: inherit;
}

.content {
  display: none;
}

.carrot-btn {
  position: fixed;
  bottom: 70px;
  right: 10px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.carrot-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}
.carrot-btn span {
  display: block;
  font-size: 22px;
  color: #fff;
  transform: rotate(180deg); /* carrot pointing left */
  transition: transform 0.25s ease;
}
.drawer.open ~ .carrot-btn span {
  transform: rotate(0deg); /* point right when open */
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: var(--drawer-w);
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 1002;
}
.drawer.open {
  transform: translateX(0);
}

.drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.drawer header h2 {
  margin: 0;
  font-size: 1rem;
}
.icon-btn {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}
.icon-btn:hover {
  background: #f3f3f3;
}

.drawer nav {
  padding: 8px;
}
.drawer-title {
  color: black;
}
.menu-item {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
}
.menu-item:hover {
  background: #f6f6f6;
}

.loader {
  display: none;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #4967ee; /* Blue */
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.offline-container {
  display: none;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: black;
  color: white;
  align-items: center;
  justify-content: center;
}

.main-loader-container {
  display: none;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: black;
  color: white;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #4967ee; /* Blue */
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.firebaseui-tos {
  color: #ffffff !important; /* change to your desired color */
}
