* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-container {
    perspective: 1000px;
}

.card {
    width: 400px;
    height: 300px;
    cursor: pointer;
}

.front {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.front.open {
    transform: rotateY(-180deg);
}

.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cover h2 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.inside {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 10px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.inside-left {
    width: 30%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: flex-start;
    padding: 20px 10px;
}

.inside-left h3 {
    color: white;
    font-size: 1rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.inside-right {
    width: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-title {
    color: #f5576c;
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0;
}

.align-self-end {
    align-self: flex-end;
    font-style: italic;
}
