/* Islamic theme colors */
:root {
    --primary-color: #006400;  /* Dark green - Traditional Islamic color */
    --secondary-color: #8b4513; /* Saddle brown - Wood/papyrus color */
    --gold-accent: #d4af37;    /* Gold accent for Islamic art */
    --cream-bg: #f8f0e3;       /* Cream/parchment background */
    --dark-text: #331800;      /* Dark brown text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri', 'Noto Naskh Arabic', Arial, sans-serif;
    background-color: var(--cream-bg);
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.header h1 span {
    position: relative;
}

.header h1::before,
.header h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-accent), transparent);
}

.header h1::before {
    left: -70px;
}

.header h1::after {
    right: -70px;
}

.card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

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

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: white;
    overflow: hidden;
}

.flip-card-front {
    background-color: white;
    color: var(--dark-text);
    background-image: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');
    border: 8px solid var(--primary-color);
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    background-image: url('https://www.transparenttextures.com/patterns/subtle-dark-vertical.png');
    border: 8px solid var(--gold-accent);
}

/* Islamic decorative border */
.flip-card-front::before,
.flip-card-back::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--gold-accent);
    border-radius: 8px;
    opacity: 0.7;
    pointer-events: none;
}

.flip-card-back::before {
    border-color: white;
}

/* Arabic text styling */
#question, #answer {
    font-size: 1.8rem;
    text-align: center;
    direction: rtl;
    line-height: 1.6;
    font-weight: 500;
}

#answer {
    font-weight: 700;
    color: var(--gold-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Add Islamic corner decorations */
.flip-card-front::after,
.flip-card-back::after {
    content: "☪";
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.flip-card-back::after {
    content: "۩";
    color: var(--gold-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-container {
        max-width: 90%;
        height: 250px;
    }
    
    #question, #answer {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}
.btn{
    background-color: green;
    color: antiquewhite;
    padding: 10px;
    border-radius: 5px;
  }