html{
    height: 100%;
}

body {
    font-family: sans-serif;
    background-color: #2a3040;
    height: 100%;
    font-size: 20px;
}

body#xmas{
    overflow-y: hidden;
}

#collection .nav-link:not(.active){
    color: white;
}

.container{
    color: white;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

#loading-message {
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

/* Overlay styles for the popup */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
}

.card{
    cursor: pointer;
}

.card .count-circle{
    position: absolute;
    bottom: 2%;
    right: 2%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.button-container img{
    max-width: 50px;
}

footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2e3444;
    color: white;
    text-align: center;
    border-radius: 10px 10px 0 0;
}
footer .btn{
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ebfa;
    border-radius: 10px 0 0 0;
}

footer .btn a{
    color: black;
}

footer .btn.active{
    background-color: #e9ebfa;
    border: 1px solid #e9ebfa;
}
footer .btn:last-child{
    border-radius: 0 10px 0 0;
    border-left: none;
}

footer .btn.active a{
    color: black;
}

#loading-indicator {
    display: none;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

#acquired-overlay, #pack-overlay {
    display: none; 
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.7); 
    justify-content:center; 
    align-items:center; 
    z-index:9999;
}

#pack-overlay{
    flex-direction: column;
}

#acquired-overlay-content {
    position:relative; 
    background:#fff; 
    padding:20px; 
    border-radius:8px; 
    max-width:300px; 
    text-align:center;
}

#acquired-card-image, #pack-card-image {
    max-width:100%; 
    /* border:1px solid #ccc;  */
    border-radius:4px;
}

#acquired-card-name {
    margin-top:10px;
}

#close-acquired-overlay {
    margin-top:10px;
}

/* Overlay styling */
#pack-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#pack-card-container {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

#pack-card-image {
    width: 100%;
    border-radius: 4px;
    opacity: 0; 
}

/* Optional fade-in class if needed */
.fade-in {
    opacity: 1 !important;
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in transition */
}

/* Press/Swipe text styling */
#press-swipe-text {
    color: white;
    margin-top: 10px;
    font-weight: bold;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0; }
}

.set-selection, .special-pack-ui {
    margin-bottom: 20px;
    text-align: center;
}

#set-select {
    margin-left: 10px;
    padding: 5px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
}

.special-pack-ui label {
    margin-right: 10px;
}

#special-pack-count {
    vertical-align: middle;
}

#special-pack-value {
    margin-left: 10px;
}

#buy-pack-btn {
    display: block;
    margin: 2rem auto;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    background: #212529;
    border: 1px solid #e9ebfa;
    color: #fff;
    border-radius: 4px;
}

#buy-pack-btn:hover {
    background: #555;
}

.slider-container {
    overflow-x: auto;
    white-space: nowrap;
}

.slider-wrapper {
    display: inline-flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.slide {
    display: inline-block;
    /* padding: 10px 20px; */
    /* border-radius: 8px; */
    cursor: pointer;
    white-space: normal;
    font-weight: bold;
    /* border: 1px solid #ccc; */
    transition: background 0.2s ease;
    text-align: center;
}

#xmas .collection-set{
    max-width: 200px;
}

#xmas .set-booster{
    max-width: 200px;
}

#xmas .pack-select .nav-tabs{
    border-bottom: none;
}

#collection .collection-set{
    max-width: 80px;
}

#collection .slide{
    height: 100%;
}

.nav-link{
    padding: .5rem 0.7rem;
}

.slider-container.pack-select {
    position: relative;
    width: 100%; /* or a fixed width if you prefer */
    overflow-x: auto;  /* Enable horizontal scrolling */
    overflow-y: hidden;
    white-space: nowrap; /* Prevent line breaks so slides stay in one line */
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on mobile */
}

.pack-select .slider-wrapper {
    display: inline-flex; /* Arrange slides horizontally */
    gap: 20px; /* Space between slides */
    padding: 10px; /* Optional padding */
    margin: 0; /* Remove default UL margins */
    list-style: none; /* Remove bullets */
}

.pack-select .slider-wrapper::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari, and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.pack-select .slider-wrapper .slide {
    flex: 0 0 auto; /* Each slide maintains its width */
    display: inline-block;
    vertical-align: middle;
    /* Optionally give each slide a fixed width */
    width: 200px; /* Adjust as needed */
    cursor: pointer;
}

.pack-select .slider-wrapper li img.set-booster {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.pack-select .slider-wrapper li:not(.active) {
    opacity: 0.5; /* dim inactive slides */
    transform: scale(0.9); /* slightly smaller */
}

/* First pack has padding left */
.pack-select .slider-wrapper li:first-child {
    margin-left: 5%;
}

/* Last pack has padding right */
.pack-select .slider-wrapper li:last-child {
    margin-right: 5%;
}

/* .user-energy{
    width: 60%;
    margin: auto;
} */

.energy-count{
    font-size: 24px;
}

.energy-count img, #buy-pack-btn img{
    width: 24px;
    margin-left: 0.4rem;
    vertical-align: text-top;
}


.puritan-regular {
    font-family: "Puritan", serif;
    font-weight: 400;
    font-style: normal;
}
  
.puritan-bold {
    font-family: "Puritan", serif;
    font-weight: 700;
    font-style: normal;
}
  
.puritan-regular-italic {
    font-family: "Puritan", serif;
    font-weight: 400;
    font-style: italic;
}
  
.puritan-bold-italic {
    font-family: "Puritan", serif;
    font-weight: 700;
    font-style: italic;
}

.tool-text{
    visibility: hidden;
    background-color: black;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    border: 1px solid #e9ebfa;
    position: absolute;
}

.energy-count .tool-text{
    font-size: 18px;
}

.tool-tip.active .tool-text {
    visibility: visible;
    position: absolute;
    z-index: 999;
    padding: 5px 10px;
    left: 3%;
}

header{
    height: 10%;
}

/* Responsive Design for screens with height less than 650px */
@media (max-height: 640px) {
    #buy-pack-btn{
        margin: 1.2rem auto;
    }
    #xmas .set-booster {
        max-width: 150px;
    }
}

.new-label{
    position: absolute;
    left: -5%;
    background: white;
    border-radius: 5px;
    padding: 2px 8px;
    top: -7%;
    color: red;
    text-shadow: 1px 1px 2px pink;
    opacity: 0; 
}

.new-label.not-new{
    opacity: 0 !important;
}

#pack-card-image{
    position: relative;
}

#pack-card-container > div{
    position: relative;
}

.star-container svg{
    width: 24px;
    opacity: 0;
}

.star-container.silver svg{
    fill: #bfbfbf;
}

.star-container.gold svg{
    fill: #FFD700;
}

#card-rarity{
    display: none;
}

/* Example CSS */
.toggle-res-btn {
    color: #fff;
    /* padding: 8px 16px; */
    border-radius: 4px;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.toggle-icon {
    margin-right: 8px;
    fill: #fff;
}

/* Button styling (adjust to your preference) */
.open-settings-btn {
    position: relative;
    background: #212529;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.open-settings-btn:hover {
    background: #212529;
}

/* Overlay container */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* The content area inside the overlay */
.settings-content {
    background: #212529;
    color: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* The close button at the bottom */
.close-settings-btn {
    font-size: 24px;
    margin-top: 20px;
    background: #e9ebfa;
    color: black;
    border: 1px solid #e9ebfa;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    align-self: center;
    padding: 3px 10px;
}

.close-settings-btn:hover {
    background: #555;
}

.btn-success .x-icon, .btn-danger .check-icon{
    display: none;
}

.btn-success .check-icon, .btn-danger .x-icon{
    display: block;
}

.settings-text{
    font-size: 18px;
}

.reminder{
    font-size: 14px;
}