body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto;
    padding: px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

h2 {
    margin-bottom: 20px;
    color: #444444;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-template-rows: auto;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
    width: 100%;
    height: 150px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid #dddddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.card-back {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    transform: rotateY(180deg);
}

.card-front small,
.card-back small {
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .card {
        height: 130px;
    }

    .card-front,
    .card-back {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card {
        height: 120px;
    }

    .card-front,
    .card-back {
        font-size: 12px;
    }
}
