body, html {
  margin: 0;
  padding: 0;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background2.jpg');
  background-repeat: repeat; 
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
}

.content {
  position: relative;
  text-align: center;
  color: white;
  margin-top: 10%;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 10px; /* Adjust padding */
}

.title {
  font-size: 50px; /* Adjust font size */
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px; /* Adjust font size */
  margin-bottom: 5%;
}

.memory-cards {
  display: flex;
  flex-wrap: wrap; /* Ensure cards wrap on smaller screens */
  justify-content: center;
  margin: 0 -5px; /* Adjust margin */
  transition: opacity 0.3s ease; /* Add transition for smoother hiding/showing */
}

.memory-card {
  padding-top: 5%;
  width: calc(33.33% - 10px); /* Adjust card width for responsiveness */
  max-width: 300px; /* Set maximum card width */
  height: 300px;
  perspective: 1000px;
  margin: 10px 5px; /* Adjust margin */
  border-radius: 20px;
  transition: opacity 0.3s ease; /* Add transition for smoother hiding/showing */
}

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

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

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #5e5c7e;
  border-radius: 20px;
  font-size: 16px; /* Adjust font size */
  color: white;
  background-color: #5e5c7e;
}

.card-back {
  background-color: #1f1e2e;
  color: #5e5c7e;
  transform: rotateY(180deg);
}

/* Style for search input */
.search-container {
  position: relative;
  margin: 20px auto; /* Adjust margin */
  width: 80%; /* Adjust width */
}

.search-container input[type="text"] {
  background-color: rgba(0, 0, 0, 0.8);
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  color: #ccc;
  outline: none;
  transition: background-color 0.3s ease; /* Add transition for smoother visual feedback */
}

.search-container input[type="text"]:focus {
  border-color: #5e5c7e;
  color: #ccc;
}
.search-container button {
  display: none; /* Hide the button */
}

/*
.search-container button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ccc;
  border: none;
  border-radius: 20px;
  padding: 10px 20px; 
  cursor: pointer;
  font-size: 16px; 
  color: black;
}

.search-container button:hover {
  background-color: #000000;
  color: #ccc;
}
*/
