body {
    font-family: 'Poppins', sans-serif;
    background: url('https://upload.wikimedia.org/wikipedia/commons/4/47/Petofi_JanosVitez.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px;
}

h1 {
    font-size: 44px;
    color: rgba(0, 0, 0, 0.767);
    text-align: center;
    margin-bottom: 30px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1140px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

.card {
    width: 250px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    padding: 10px;
    font-size: 22px;
}

.card-front {
    background: #ffcc00;
    color: #333;
}

.card-back {
    background: #0066cc;
    color: white;
    transform: rotateY(180deg);
}

#lapozas {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width:100%;
}

button {
    padding: 12px 40px;
    border-radius: 15px;
    border: none;
    background-color: #0066cc;
    color: white;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

button:hover:enabled {
    background-color: #0051a3;
}


#lapozas button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    margin: 5px 5px;
    cursor: pointer;
    background-color: #0066cc;
    color: white;
  }
  
  #lapozas button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
  }
  
  #lapozas button:hover:enabled {
    background-color: #0051a3;
  }
  

  #kartya-tarolo {
    transition: opacity 0.4s ease;
    opacity: 1;
  }
  
  #kartya-tarolo.fade-out {
    opacity: 0;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;    
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #004c99;
  }

  
  @media only screen and (max-width: 600px) {
    .mobile-select {
        display: flex
        ;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;

    }
  }
