* {
  font-family: sans-serif;
  box-sizing: border-box;
}

body {
  overflow: scroll;
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans-serif);
  margin-top: 1rem;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(30deg, #bd7a28, #edb74b, #ffea61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  white-space: nowrap;
}

.title {
  display: flex;
  align-items: center;
}

.title-emoji {
  font-size: 2.5rem;
  margin-right: 0.5rem;
}

.guide-title {
  text-align: center;
  margin: auto;
}

.hero-sub {
  font-weight: 800;
  /* white-space: nowrap; */
  font-size: 1.1rem;
  margin-top: 3rem;
}

.section-heading {
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-title {
  font-weight: 600;
  font-size: 1.6rem;
  margin: 2rem auto 1rem;
  font-family: var(--sans-serif);
  text-align: center;
}

.city-card {
  display: none;
  scroll-snap-align: start;
  background-color: var(--theme-background);
  border-radius: 14px;
  width: 400px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-border, #333);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.active {
  display: block;
}

.city-card:hover {
  transform: translateY(-4px);
}

.city-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.city-name {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 0.75rem;
  font-family: var(--sans-serif);
}

.add {
  color: #b3b3b3;
}

.quick-guide-card {
  background: linear-gradient(120deg, var(--theme-background), #232323 90%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 750px;
  margin: 2.5rem auto 0;
  border: 1.5px solid var(--theme-border, #444);
  font-family: var(--sans-serif);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.guide-list {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 2.1;
  font-size: 1.18rem;
  font-family: var(--sans-serif);
  list-style: none;
}

.guide-step {
  font-weight: 700;
  color: var(--theme-foreground-focus);
  margin-right: 0.5rem;
  font-family: var(--sans-serif);
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 2rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
}

.scroll-button.left {
  left: 0;
}
.scroll-button.right {
  right: 0;
}

.gray {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 400;
}

.green {
  color: #4caf50;
}

.blue {
  color: #2196f3;
}

.yellow {
  color: #ffeb3b;
}

.purple {
  color: #9c27b0;
}

.orange {
  color: #ff9800;
}

.guide-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
}

.guide-image {
  background-color: #bebebe;
  width: 700px;
  border-radius: 15px;
  margin-right: 5rem;
  height: 400px;
  transition: transform 0.3s ease;
}

.text {
  color: #a2a2a2;
}

.scale {
  transform: scale(1.03);
}

.about {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about p {
  min-width: 65vw;
}

#observablehq-toc ~ #observablehq-main {
  padding-right: 0 !important;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.kaaba {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.kaaba img {
  height: 300px;
  width: auto;
  margin: 5rem;
}

.cities-grid {
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
  align-items: center;
}

.canada,
.usa {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cities-grid h1 {
  text-align: left;
}

.city {
  border: 1px solid #fff;
  margin-right: 1rem;
  margin-top: 1rem;
  border-radius: 18px;
  /* padding: 0.5rem 2rem; */
  text-align: center;
  /* margin: 1rem; */
  font-size: 1.3rem;
  /* background: linear-gradient(#333, #333) padding-box, */
  /* linear-gradient(to right, gold, rgb(230, 156, 36)) border-box; */
  /* animation: border-pulse 3s infinite; */
  background-size: 250% 250%;
  /* border: 2px solid transparent; */
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  background-color: #333;
}

.city:hover {
  transform: translateY(-4px);
}

.canada img,
.usa img {
  height: 120px;
  width: 250px;
  border-radius: 17px 17px 0 0;
}

.cities-grid h1 {
  display: flex;
  align-items: center;
}

.cities-grid h1 img {
  width: 55px;
  height: 30px;
  margin-left: 1rem;
  border-radius: 2px;
}

.usa-t {
  margin-top: 4rem;
}

.cities-grid {
  margin-top: 2rem;
}

.city {
  display: flex;
  flex-direction: column;
}

.cities-grid a {
  color: #fff;
  font-weight: 900;
}

.cities-grid span {
  margin: 0.5rem 0;
  color: #fff;
}

.contact {
  margin: auto;
  text-align: center;
  padding: 2rem;
}

@keyframes border-pulse {
  0% {
    background-position: 10% 0%;
  }
  50% {
    background-position: 91% 100%;
  }
  100% {
    background-position: 10% 0%;
  }
}

@media (max-width: 1200px) {
  .guide-box {
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    text-align: center;
  }

  .guide-image {
    margin-right: 0rem;
    margin-bottom: 5rem;
    width: 80vw;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 80%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .city-card {
    width: 85%;
    min-width: 85%;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .quick-guide-card {
    margin: 1.5rem;
    padding: 1.2rem 1rem;
  }
  .guide-title {
    font-size: 1.3rem;
  }
  .guide-list {
    font-size: 1rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .canada img,
  .usa img {
    height: 100px;
    width: 200px;
  }
}
