body {
  margin: 0;
  font-family: Arial, sans-serif;   
}

header {
  background-color: #3498db;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: fixed; /* Make the header fixed */
  top: 0; /* Position it at the top */
  width: 100%; /* Make it span the full width */
  z-index: 500; /* Adjust z-index to ensure it's above other content */
}

header h1 {
  font-size: 28px;
  margin: 0;
}

header p {
  font-size: 16px;
  margin: 5px 0;
}

footer {
  background-color: #34495e;
  color: white;
  text-align: center;
  padding: 10px 0;
}

footer p {
  font-size: 14px;
  margin: 5px 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #3498db;
  perspective: 1000px;
  padding-top: 100px; /* Add padding to create space below the fixed header */
  padding-left: 20px; /* Add left padding for aesthetic balance */
  padding-right: 20px; /* Add right padding for aesthetic balance */
}

.card {
  width: 160px;
  height: 180px;
  margin: 10px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
  border-radius: 10px;  
  background-color: black;
  text-align: center;
  padding: 10px; 
  box-sizing: border-box;
}

.card-front {
  background-color: plum;
}

.card-back {
  background-color: black;
  transform: rotateY(180deg);  
}
.card:hover .card-inner {
  transform: rotateY(180deg);
}
