/* General Styles */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f0f0f0;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  color: #222;
}

h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Card Container */
.card-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

/* Card Styles */
.card {
  width: 150px;
  height: 250px;
  perspective: 1000px;
}

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

.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-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding:10px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .card-container {
    flex-direction: column; /* Stack cards vertically on narrow screens */
  }

  h1 {
    font-size: 2rem; /* Adjust header size for smaller screens */
  }
}
  .card-front {
    background-color: #333;
    color: white;
    font-size: 1.2rem;
  }
  
  .card-back {
    background-color: #fff;
    transform: rotateY(180deg);
    text-align: center;
    margin-bottom: auto;
  }
  
  .card-back img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }

  .card-back p {
    color: white;
    font-weight: 900;
    background-color: rgba(0, 0, 0, .6);
    align-self: flex-end;
  }

  #seer div{
    background-image: url('assets/images/seer.jpg');
  }

  #tarot{
    background-image: url('assets/images/tarot.jpg');
  }

  #cookie div{
    background-image: url('assets/images/cookie.jpg');
  }

  .card-title {
    background-color: #000000;
    border-radius: 8px;
    filter: alpha(opacity=60);
    opacity: 0.60;
  }

  nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .menu {
    position: -webkit-sticky;
    position: fixed;
    top: 0;
    right: 0;
    display: inline-block;
  }
  
  .menu-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #333;
    cursor: pointer;
  }
  
  .menu-items {
    position: absolute;
    top: 100%;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-top: none;
    display: none;
  }
  
  .menu-items li {
    padding: 10px;
  }
  
  .menu-items li a {
    text-decoration: none;
    color: #333;
  }
  
  input[type="checkbox"] {
    display: none;
  }
  
  input[type="checkbox"]:checked ~ .menu-items {
    display: block;
  }
  
  .menu-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #333;
    cursor: pointer;
  }
  
  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .menu-icon::before {
    top: calc(50% - 6px);
  }
  
  .menu-icon::after {
    top: calc(50% + 4px);
  }

  img[alt=""], img:not([alt]) {
    outline: 2px solid red;
  }

  /* Ensure good color contrast and accessibility */
  body {
    color: #222;
    background: #fff;
  }
