  @media screen and (min-width: 768px) {
    #selected-output {
      max-width: 1024px;
      margin: 0 auto;
      width: 18%;
        overflow: visible;
    }
    #selected-output img {
      width: 18%;
    }
  	#card-carousel {
       margin-left: auto;
    margin-right: auto;
    display: block;
     max-width: 1024px;/
  	}
  	.mobile-only {
    	display: none !important;
    }
    #carousel-inner {
    margin: 0 auto;
    left: 0;
    right: 0;
    }
  } 

  @media screen and (max-width: 768px) {
    	.mobile-only {
    	display: flex;
    }
    #card-carousel {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    min-width: 600px;         /* You can adjust as needed */
    max-width: none !important;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    margin: 0 auto;
    padding: 0 0 12px 0;
    display: flex; 
    width: fit-content; 
    max-width: 100%
    scrollbar-width: none;        /* Firefox */
    	-ms-overflow-style: none;     /* IE 10+ */
    }
	#card-carousel::-webkit-scrollbar {
 	 display: none;                /* Chrome/Safari/Webkit */
	}
      #interpretation-output {
    margin-bottom: 36px;
    padding-bottom: 2.8rem;
    min-height: 240px;
  }
}

body, button, h1, h2, h3, h4, h5, h6, p, div, span {
  font-family: 'Open Sans', sans-serif;
}

.hide {
  display: none !important;
}

.shuffling img {
    filter: brightness(0.3);
    transition: filter 0.2s ease;
  }

  .shuffling-button {
    animation: pulseShuffle 1s infinite;
  }

  @keyframes pulseShuffle {
    0% { background-color: #0B75BE; }
    50% { background-color: red; }
    100% { background-color: #0B75BE; }
  }

  #oracle-controls {
    text-align: center;
    margin-bottom: 1.5rem;
  }
.selected-card-wrapper.selected {
  display: inline-block;
  border-radius: 8px 8px 0 0;
  background: #eef7fd;
  border: 2px solid #0B75BE;
  border-bottom: none;
  margin: 0 2px;
  padding: 3px 3px 20px 3px;
    max-width: 240px;
    height: auto;
}

  #selected-output img {
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
  }


  #selected-output img:hover {
    transform: scale(1.1);
    z-index: 2;
  }

#selected-output.tight {
  margin-top: 0 !important;
}

  #card-carousel-back img {
    height: auto;
    border-radius: 6px;
    border: 15px solid #FFFFFF;
  }

  #interpretation-output {
    max-width: 1024px;
     margin: 0 auto 30px auto;
    margin-top: -4px;
  	min-height: 400px;
    height: auto !important;
    padding: 1rem;
    padding-bottom: 2.5rem; 
    background-color: #eef7fd;
    border: 2px solid #0B75BE;
    border-radius: 0px 0px 8px 8px;
    font-size: 15px;
    line-height: 1.5;
    overflow: visible;
    box-sizing: border-box;
  }

.card-layout-label {
  display: inline-block;
  font-size: 2em;
  font-variant: small-caps;
  font-weight: 600;
  color: #0b75be;
  background: #eef7fd;
  padding: 3px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  margin-top: 0.5em;
  letter-spacing: 0.03em;
  border-left: 4px solid #0b75be;
}

#card-carousel {
  width: 100%;
  max-width: 100vw;
  min-width: 400px;
  height: 150px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  position: relative;
  padding: 5px;
  display: block !important;
  background: none;
background: #000000;
	
   transition: opacity 1.5s, transform 1.5s, max-height 1.5s;
  opacity: 1;
  transform: translateY(0);
}

#card-carousel.fade-away {
  opacity: 0;
  transform: translateY(-60px);
  max-height: 0;
  pointer-events: none;

}

#carousel-inner {
  position: relative;
  min-width: 900px; /* Adjust if your stack is wider or narrower */
  height: 150px;
  /* This lets the inner area overflow horizontally */
}

.card.zstack {
  width: 100px;
  height: 140px;
  position: absolute;
  border-radius: 10px;
  border: 2px solid #bbb;
  box-shadow: 0 1px 7px rgba(11,117,190,0.11);
  background: #fff;
	
}

.card.zstack.disabled {
  filter: brightness(0.4) grayscale(0.6);
  pointer-events: none;
  opacity: 0;
}

.card.zstack.fading-out {
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

#intention-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#user-intention {
  width: 90%;
  min-height: 2.5em;
  max-width: 500px; /* Prevents stretching to full parent width */
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}