body {
  background: #eee;
}
nav {
    background: #ddd;
    box-shadow: 0 0 10px 2px #ccc;
}
.navbar-brand h1 {
  color: #ddd;
  font-size: 8px;
}

.navbar-brand h1 span {
  text-wrap: wrap;
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.navbar-nav a:hover {
    transform: scaleY(1.4);
    transition: 0.2s ease;
}

.latest-price-section {
    overflow: hidden;
    width: 100%;
}

.price-marquee {
    display: flex;
    width: max-content;
    animation: marquee-infinite 32s linear infinite;
}

.price-lists {
    display: flex;
    gap: 4rem;
}

.price-lists .item {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
    white-space: nowrap;
}

@keyframes marquee-infinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.crypto-name {
    font-weight: 600;
    font-size: clamp(10px, 2vw, 14px);
}

.price-up {
    color: green;
}

.price-down {
    color: red;
}

main {
    min-height: 100vh;
}

.carousel-item {
  width: 100%;
  height: 400px;
  position: relative;
}
.carousel-item img {
  width: 100%;
  height: 100%;
}

.content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.5rem;
  font-size: 20px;
  font-weight: 600;
  width: 100%;
}

.accordion-button {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 24px);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: inherit;               
}

.accordion-body {
    display: flex;
    justify-content: space-between;
}

.accordionImg-box {
  width: 50%;
  min-width: 200px;
  border: 1px solid #777;
  border-radius: 20px;
  overflow: hidden;
}

.accordionImg-box:hover {
  box-shadow: 0 0 8px 1px #777;
  transition: 0.2s ease;
}

.accordionImg {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.accordion-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    word-break: break-all;
}

.wrapper {
  position: relative;
  max-width: 100vw;
  margin: 6rem 0;
}

#left { left: -22px; }
#right { right: -22px; }

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  pointer-events: all;
}

.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.card {
  flex: 0 0 300px;
  height: 340px;
  background: #fff;
  border-radius: 8px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  overflow: hidden;
}

.card .img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card h4 {
  text-align: start;
  height: 70%;
  padding: 1rem;
}

footer {
    width: 100%;
    background: #eee;
}

.detail-container {
  background: #2c2c2c;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem 1rem;
}

.back-btn {
  text-decoration: none;
}

.detail-backBtn {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
  outline: none;
  gap: 0.5rem;
  border: 2px solid #777;
  width: max-content;
  padding: 0.2rem 1rem;
  border-radius: 10px;
  background: #fff;
}

.detail-backBtn:hover {
  transition: 0.2s ease-in-out;
  transform: scale(1.02);
}

.detail-img-box {
  width: 100%;
}

.img-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.detail-img {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
}

.detail-keywords {
  padding:  0 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  border-bottom: 1px solid #000;
  width: max-content;
  color: #777;
}

.detail-content {
    white-space: pre-line;
    line-height: 3;
    background: #fff;
    padding: 1rem;
    border-left: 4px solid #777;
}

@media (max-width: 992px) {
  .img-box {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .navbar {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .accordion-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .accordionImg-box {
    width: 100%;
  }
}