body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #3176b9;
    color: white;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3176b9;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.header .title {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    display: flex;
    align-items: center;
    margin: 10px 10px 10px 0;
    width: 40%;
    max-height: 100px; /* Adjust as needed */  
}

.card-image img {
    max-height: 100px;
    width: auto;
    border-radius: 10px;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
    width: 60%;
    padding-left: 10px;
    display: flex;
    align-items: center;
}
.card-image + .title {
    display: flex;
    align-items: center;
}

.content {
    flex: 1;
    overflow-y: auto;
    border-radius: 10px;
    margin: 0 10px;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #3176b9;
}

.footer button {
    flex: 1;
    margin: 0 5px;
    padding: 10px;
    font-size: 1rem;
    background-color: #1e4a82;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer button:hover {
    background-color: #9ed4f6;
}

/* Customize scrollbar */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: #9ed4f6;
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb {
    background: #3176b9;
    border-radius: 10px;
}
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background-color: linear-gradient(to bottom, #3176b9, #9ed4f6);
            color: white;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background-color: #431d7e;
        }

        .header button {
            padding: 10px;
            font-size: 1rem;
            background-color: #9ed4f6;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .header button:hover {
            background-color: #3176b9;
        }

        .card-area {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

       .selected-card {
            width: 200px;
            height: 300px;
            background-color: #9ed4f6;
            border-radius: 10px;
            margin: 0 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .selected-card .card {
            position: absolute;
            width: 80px;
            height: 120px;
            font-size: 1rem;
        }

        .selected-card .card:first-child {
            left: 20px;
        }

        .selected-card .card:last-child {
            right: 20px;
        }

        .card-pile {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 10px;
        }

        .card {
            width: 100px;
            height: 150px;
            aspect-ratio: 2/3;
            margin: 5px;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            overflow: hidden;
        }

        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card span {
            position: absolute;
            top: 5px;
            left: 5px;
            font-size: 1rem;
            color: white;
            text-shadow: 2px 2px 4px #000;
        }

        .selected-card.card {
            width: 80px;
            height: 120px;
            font-size: 1rem;
        }

        .card.selected {
            border: 2px solid #93bfd8;
        }
        .card.fly-to-selected {
            transition: transform 0.5s ease, top 0.5s ease, left 0.5s ease, opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
            z-index: 10;
        }
        .selected-card .card {
            transform-style: preserve-3d;
            transition: transform 0.5s ease;
        }
        .selected-card .card.flipped {
            transform: rotateY(180deg);
        }
