/* BASE STYLES */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-x: hidden !important;
}

body {
  font-family:
    "Roboto",
    "Roboto-fallback",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  padding-right: 0 !important;
}

/* CARD COMPONENTS */
.card {
  border-radius: 0.375rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-header {
  background-image: linear-gradient(135deg, #2980b9, #1e6091);
}

.card-header h3 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 180px);
}

.card-width {
  max-width: min(90vw, 800px);
  width: 100%;
}

/* BUTTON STYLES */
.btn-3d {
  border: 2px solid transparent;
  display: inline-block;
  text-align: center;
  user-select: none;
  cursor: pointer;
  position: relative;
  outline: 0 !important;
  outline-offset: 0 !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.15);
  transition:
    box-shadow 0.2s ease,
    border 0.2s ease;
}

.btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 10px 10px 0 0;
}

.btn-3d:hover {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    0 3px 7px rgba(0, 0, 0, 0.2);
}

.btn-3d:active {
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.2) inset,
    0 1px 2px rgba(0, 0, 0, 0.1);
  outline: 0 !important;
}

.btn-3d:focus,
.btn-3d:focus-visible {
  outline: 0 !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.btn-3d:disabled {
  box-shadow: none;
  cursor: not-allowed;
  outline: 0 !important;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
  .card-header h3 {
    font-size: 1.5rem;
    max-width: calc(100% - 180px);
  }
}

@media (max-width: 768px) {
  .card-header h3 {
    font-size: 1.5rem;
    max-width: calc(100% - 160px);
  }
}

@media (max-width: 576px) {
  .card-width {
    max-width: 100%;
  }
  .card-header h3 {
    font-size: 1.4rem;
    max-width: calc(100% - 140px);
  }
}

@media (max-width: 480px) {
  .card-header h3 {
    font-size: 1.4rem;
    max-width: calc(100% - 130px);
  }
}

@media (max-width: 400px) {
  .card-header h3 {
    font-size: 1.3rem;
    max-width: calc(100% - 120px);
  }
}
