@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;

  
}

.header09 {
   margin-left:1.5rem;
    margin-top: 3rem;
}

.header09 h1 {
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease-out;
    
}


.main {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 70%;
    padding: 20px;
    margin: auto;
    margin-top: 1rem;
}

.card {
    background-color: transparent;
    perspective: 1000px;
    height: 460px;
    cursor: pointer;

}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
   
 
}



.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-front {
    background-color: #ffffff;
}

.card-back {
    background-color: #3498db;
    color: white;
  
}

.card-front img {
    width: 80%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-front h2, .card-back h3 {
    margin: 0;
    font-size: 2.2em;
    margin-top: 0.9em;
    margin-bottom: 0.6em;
    color: hsla(0, 0%, 0%, 0.904);
}

.card-back p {
    margin: 15px 0;
    font-size: 1em;
}

.play-btn {
    display: inline-block;
    padding: 14px 39px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1em;
}



@media (max-width: 768px) {
    .header09 h1 {
        font-size: 2.5em;
    }

    .main {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .card {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .header09 h1 {
        font-size: 2em;
    }

    .card {
        height: 300px;
    }

    .card-front img {
        height: 150px;
    }

    .card-front h2, .card-back h3 {
        font-size: 1.5em;
    }

    .card-back p {
        font-size: 0.9em;
    }
}

