body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.left, .right {
    margin: 20px;
}

.card {
    width: 300px;
    height: 180px;
    border-radius: 10px;
    background-color: #ccc;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.card .front, .card .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.card .front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card .back {
    background-color: #333;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card-container {
    perspective: 1000px;
}

.card.flipped .front {
    transform: rotateY(180deg);
}

.card.flipped .back {
    transform: rotateY(0deg);
}

.card-number, .card-name, .expiry-date, .cvv {
    margin: 10px 0;
}

.right form input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    font-size: 18px;
}

.container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.left, .right {
    flex: 1;
    padding: 20px;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
}

.left img {
    width: 80%;
    margin-bottom: 20px;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right h1 {
    text-align: center;
    margin-bottom: 20px;
}

.right h1 span {
    color: red;
    font-weight: bold;
}

.right form {
    display: flex;
    flex-direction: column;
}

.right form input {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.right form button {
    padding: 10px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.right form button:hover {
    background-color: #0056b3;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        height: 80%;
    }
    .left, .right {
        width: 48%;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

/* New styles for animations and color palette */
body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    border-color: #162447;
    transition: border-color 0.5s;
}

.left {
    background-color: #0f3460;
    transition: background-color 0.5s;
}

.left img {
    transition: transform 0.5s;
}

.left img:hover {
    transform: scale(1.1);
}

.right h1 span {
    color: #e94560;
    transition: color 0.5s;
}

.right form input {
    border-color: #162447;
    transition: border-color 0.5s, background-color 0.5s;
}

.right form input:focus {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.right form button {
    background-color: #0f3460;
    transition: background-color 0.5s, transform 0.5s;
}

.right form button:hover {
    background-color: #162447;
    transform: scale(1.05);
}

.right form button:active {
    background-color: #1a1a2e;
    transform: scale(0.95);
}