body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('images/parquet.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    gap: 100px;
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.toy-card {
    position: relative; 
    width: 300px;
    height: 400px;
    background-color: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.toy-card__image {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 300px;
    background-image: url(images/barbarian-bg.jpg);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.toy-card__image img {
    position:absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.toy-card:hover .toy-card__image img {
    transform: scale(1.25) translateY(-10%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.toy-card__name {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: black;
}

.toy-card__description {
    padding: 15px;
    height: 50px;
    color: #666;
    font-size: 0.80em;
    text-align: justify;
    background-color: white;
    overflow: hidden;
    border-radius: 10px;

}

.toy-card__unit-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    background-color: orange;
    height: 0;
    opacity: 0;
    background-image: linear-gradient(to left, #000000 0.5px, transparent 0.5px); 
    background-size: 34% 100%; 
    background-repeat: repeat;
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    
}

.toy-card:hover .toy-card__unit-stats {
    height: 60px; 
    opacity: 1; 
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); 
}

.toy-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); 
}

.toy-card:hover .toy-card__description {
    border-radius: 0%;
}

.toy-card__unit-stats > div {
    text-align: center;
    flex: 1;
    padding: 5px 20px; 
}

.toy-card__unit-stats .stat {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
}

.toy-card__unit-stats .stat-value {
    font-size: 1em;
    font-weight: lighter;
    color: white;
}

.oneStat:hover div {
    color: black;
    cursor: progress;
}