.marquee {
  display: flex;
  gap: 5px;
  will-change: transform;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.stock-ticker__container {
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background:rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  height: auto;
  animation: slideUp 0.3s forwards cubic-bezier(1, 0.04, 1, 0.82);
}

li#stkg-stock-card:hover {
  cursor: pointer;
}

.stock-ticker {
  display: flex;
  flex-direction: row;
  width: max-content;
  list-style: none;
  gap: 5px;
  padding: 0;
  padding-inline-start: 0;
  margin: 0;
  /*overflow: auto;*/
}

.stock-ticker * {
  font-weight: 400;
  letter-spacing: 0.3px;
}

.ticker--card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: auto;
  min-width: max-content;
  padding: 1rem;
  height: auto;
  max-height: 100px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  align-items: center;
  overflow: visible;
  border-radius: 5px;
  border: 1px solid rgb(218, 220, 224);
  background: #ffffffb4;
  backdrop-filter: blur(5px);
}
/*
.ticker--card[data-changedirection="stkg-up"]{
    background: rgb(230,244,234);
}
.ticker--card[data-changedirection="stkg-down"]{
    background: rgb(252,232,230);
}
    */
/*
.ticker--card::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 80%;
    background-color: rgb(240, 241, 243);
    top: auto;
    bottom: auto;
    right: -1px;
}
*/
.ticker--card:hover {
  background: rgb(248, 249, 250);
}

.ticker--name--highlow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticker--bearish {
  background: #fff3f3;
}

.ticker--bearish::before {
  content: "";
  position: absolute;
  top: auto;
  bottom: auto;
  right: -0.5rem;
  width: auto;
  height: 100%;
  aspect-ratio: 1/1;
  background-image: url(stock-bear.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.ticker--bullish {
  background: #e6fff6;
}

.ticker--bullish::before {
  content: "";
  position: absolute;
  top: auto;
  bottom: auto;
  right: -0.5rem;
  width: auto;
  height: 100%;
  aspect-ratio: 1.2/1;
  background-image: url(stock-bull.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.ticker--name--highlow,
.ticker--lower--content {
  z-index: 2;
}

.stock-up {
  width: 32px;
  height: 32px;
  background-image: url(stock-arrow-up.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.stock-down {
  width: 32px;
  height: 32px;
  background-image: url(stock-arrow-down.webp);
  background-size: contain;
  background-repeat: no-repeat;
}

.stock-symbol {
  font-size: 12px;
  font-weight: 600;
}

.stock-price {
  font-size: 12px;
  letter-spacing: 1px;
}

.stock--high-low {
  font-size: 12px;
  letter-spacing: 0;
}

.ticker--lower--content {
  gap: 5px;
}

.stock-pchange,
.stock-change {
  font-size: 12px;
  line-height: 1;
}

.price-up,
.price-down {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}

.price-up,
.up,
.day-high,
.stkg-up {
  color: #137f5b;
}

.price-down,
.down,
.day-low,
.stkg-down {
  color: #ac0c0c;
}

.stkg-stock-modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.stkg-stock-modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.stkg-modal-bg {
  position: absolute;
  background: rgb(0 0 0 / 60%);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
}

.stkg-modal-close {
  position: absolute;
  right: -25px;
  top: -25px;
  outline: none;
  appearance: none;
  color: red;
  background: none;
  border: 0px;
  font-weight: bold;
  cursor: pointer;
  background: white;
  width: 3rem;
  height: 3rem;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

#chart-container {
  width: calc(100% - 1rem);
  height: 500px;
  margin-top: 1rem;
}

#chart-container style {
  display: none !important;
  visibility: hidden;
}

@media (max-width: 768px) {
  #chart-container {
    height: 200px;
    margin-top: 1rem;
  }
}

@media (max-width: 500px) {
  #chart-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .stkg-modal-close {
    right: 5px;
    top: 5px;
    background: transparent;
  }
}

/*--------*/
.stkg-flex-row {
  flex-direction: row !important;
  gap: 0.5rem;
}

.stkg-flex-col {
  flex-direction: column !important;
  gap: 0.5rem;
}

.stkg-modal-container,
.stkg-modal-container * {
  display: flex;
  gap: 0.5rem;
}

.stkg-modal-container a,
.stkg-modal-container span#stkg-isin {
  color: #0a47ff;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
}

.stkg-modal-container a:hover {
  color: #132763;
}

.stkg-modal-container {
  border-radius: 0.5rem;
  background: #fffefc;
  position: relative;
  padding: 1.5rem;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: column;
  box-shadow: 0px 0px 30px -6px black;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stkg-current-price-block {
  font-size: 14px;
  align-items: center;
  font-weight: 600;
}

.stkg-current-price-block span {
  align-items: center;
}

.stkg-current-price-block img {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 1rem;
}

.header h2 {
  font-size: 24px;
}

.header .price {
  font-size: 20px;
  font-weight: 600;
}

.header div {
  flex-direction: column;
}

.content {
  display: flex;
  flex-wrap: wrap;
}

.content .info {
  flex: 1;
  min-width: 300px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.content .info ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style-type: none;
  padding: 0;
}

.content .info ul li {
  padding: 1rem;
  background: #ebebeb;
  display: flex;
  justify-content: space-between;
  border-radius: 0.3rem;
}

@media (min-width: 769px) {
  .content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .content .info {
    flex: 1 1 48%;
    min-width: 300px;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .content {
    flex-direction: row;
    gap: 0.5rem;
  }

  .content .info {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

@media (max-width: 320px) {
  .header h1,
  .header .price {
    font-size: 14px;
  }
}

.header div .price {
  flex-direction: row;
  margin-bottom: 0.2rem;
}

.current-date {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgb(129, 129, 129);
}

.header div .day-high-low {
  flex-direction: row;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

#nse_stat, #bse_stat{
  border-radius: 5px;
  border: 1px solid rgb(218, 220, 224);
  background: #ffffffb4;
  opacity: 0;
  display: none;
}

.stat_up,
.stat_up * {
  color: green !important;
}
.stat_down,
.stat_down * {
  color: red !important;
}

.stat_up .stat_icon {
  width: 32px;
  height: 32px;
  background-image: url(stock-arrow-up.webp);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.stat_down .stat_icon {
  width: 32px;
  height: 32px;
  background-image: url(stock-arrow-down.webp);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
