.card-container {
    perspective: 1500px;
    width: 90%;
    max-width: 480px;
    height: 320px;
    padding-top: 20px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card-container:hover:not(:has(.Different-Card-Buttons:hover)) .flip-card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    background-image: url("/static/images/image.png");
    background-size: cover;
    background-position: center;
}

.card-back {
    transform: rotateY(180deg);
    color: #1f2937;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background-image: url("/static/images/image-sqr.png");
    background-position: center;
    background-size: cover;
}

.card-back {
    padding-top: 0; /* Remove padding from the top */
}

.card-back pre {
    margin-top: 0; /* Remove margin from the top */
    padding-top: 0;
    -webkit-text-stroke-color: white;
    -webkit-text-stroke-width: 0.2px;
}


/* .flex .flex .text-black{
    -webkit-text-stroke-color: white;
    -webkit-text-stroke-width: 0.8px;
} */


.card-content {
    text-align: center;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.card-footer {
    background-color: #e5e7eb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Responsive adjustments */
/* @media (max-width: 600px) {
    .card-container {
        height: 250px;
    }

    .card-front img {
        width: 80px;
        height: 80px;
    }
} */

.triangle {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background-color: #000000;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    border-top-right-radius: 10px; /* Adjust this value to match the card's rounded corners */
    }

.logo-img {
    position: absolute;
    top: 5px;
    left: 32px;
    width: 35px;
    height: 35px;
}

.logo-corner:hover .logo-img {
    animation: LClogo-wave 560ms ease-in-out
}

@keyframes LClogo-wave {

    0%,
    100% {
        transform: rotate(0)
    }

    20%,
    60% {
        transform: rotate(-25deg)
    }

    40%,
    80% {
        transform: rotate(10deg)
    }
}

@media (max-width:500px) {
    .logo-corner:hover .logo-img {
        animation: none
    }

    .logo-corner .logo-img {
        animation: LClogo-wave 560ms ease-in-out
    }
}


.chart-container {
    flex: 0.8; /* Chart section takes slightly less space */
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    max-width: 40%; /* Ensures the chart doesn't overflow */
    aspect-ratio: 1; /* Keeps the chart circular */
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1); /* Subtle background */
    backdrop-filter: blur(8px);
}