body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

#card-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 90%;
    max-height: 600px;
    overflow: hidden;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: white;
    font-size: 24px;
    padding: 20px;
    box-sizing: border-box;
}

.card-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.card:not(:first-child) {
    transform: scale(0.95);
    opacity: 0.8;
}

.card:first-child {
    transform: scale(1);
    opacity: 1;
}
