Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* General container for all cards */
.card-container {
display: flex;
justify-content: center;
gap: 20px;
padding: 20px;
box-sizing: border-box;
perspective: 1000px; /* Perspective for 3D flip */
}
/* Card styling */
.card {
width: 300px;
height: 200px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: relative;
cursor: pointer;
overflow: hidden;
}
/* Inner wrapper for flip effect */
.card-inner {
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.6s ease-in-out;
position: relative;
}
/* Front and back styling */
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
box-sizing: border-box;
}
/* Back face flipped */
.card-back {
transform: rotateY(180deg);
background-color: #f8f8f8;
}
/* Flip effect */
.card:hover .card-inner {
transform: rotateY(180deg);
}
/* Sub-panel styling */
.sub-panel {
font-size: 14px;
color: #333;
text-align: center;
}