@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: poppins, sans-serif  ;
}
:root{
    --primary-color: #0a67b3;
    --secondary-color: #084f8a;
    --text-color: #555;
    --background-color: #f5f5f5;
    --arabic-font: 'Tajawal', sans-serif;
}
body {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* Card */
.quiz-card {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
}

/* Image Placeholder */
.image-box {
  width: 100%;
  height: auto;
  background: #d9e6f2; /* placeholder color */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.content {
  padding: 120px 20px;
  text-align: center;
}

.content .ar {
    font-family: var(--arabic-font);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 6px;
}

.content .en {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 50px;
}

/* Options */
.options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 60px;
}

.options button {
  background: #0a67b3;
  color: #fff;
  border: none;
 padding: 6px 44px;
    border-radius: 15px;
  cursor: pointer;
  font-size: 30px;
  font-weight: 600;
}
.options button:focus,
.options button:active{
    background: #45a049;
}

.options button:hover {
  background: #084f8a;
}

/* Submit text */
.submit {
    font-family: var(--arabic-font);
    font-weight: 600;
  font-size: 28px;
  line-height: 1.6;
}

.submit a {
  color: #0a67b3;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
.footer {
  background: #0a67b3;
  color: #fff;
  padding: 15px 20px 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-left {
  text-align: center;
}
.footer-left p {
  font-size: 11px;
  font-weight: bold;
  margin-top: 6px;
}

.footer-right p {
  font-size: 12px;
  text-align: right;
}
.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: start;
    margin-bottom: 6px;
}.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

      .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        
      }

      .overlay.show {
        display: block;
        opacity: 1;
        transition: all 0.3s ease;
      }

      .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        background: white;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        opacity: 0;
        transition: all 0.3s ease;
        width: 90%;
        max-width: 700px;
        transition: all 0.3s ease;

      }

      .popup.show {
        display: block;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        transition: all 0.3s ease;

      }

      .popup h3 {
        margin-top: 0;
        text-align: center;
        color: #333;
        margin-bottom: 20px;
      }

      .popup input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        background: #d9ecff;
        font-size: 18px;
        box-sizing: border-box;
        transition: border-color 0.3s;
      }

      .popup input:focus {
        outline: none;
        border-color: #0a67b3;
      }
      .input-grid {
        display: grid;
        grid-template-columns: repeat(2 , 1fr);
        gap: 14px;
      }
      .submit-btn {
        width: 100%;
        padding: 12px;
        margin-top: 15px;
        background: #4CAF50;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background 0.3s;
      }

      .submit-btn:hover {
        background: #45a049;
      }

      .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s;
      }

      .close-btn:hover {
        color: #333;
      }
 .quiz-btn.active {
      background-color: #4CAF50 !important;
      color: white;
    }
    
    .success-popup  {
      width: max-content;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: #dcf6dc;
      padding: 40px;
      border-radius: 10px;
      text-align: center;
      font-size: 24px;
      z-index: 9999;
      display: none;
      box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
    .success-popup p{
      color: #4CAF50;
    }
    .success-popup-box{
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .success-popup.show {
      display: block;
    }

/* Responsive */
@media (max-width: 480px) {

  .options {
    flex-direction: column;
  }

  .options button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-right p {
    text-align: center;
  }
  .content {
    padding: 50px 10px;
  }
  .content .ar {
  font-size: 28px;
  margin-bottom: 6px;
}

.content .en {
  font-size: 26px;
  margin-bottom: 30px;
}
.options{
    margin-bottom: 30px;
}
.submit {
  font-size: 24px;
}
  .input-grid {
        grid-template-columns: repeat(1 , 1fr);
        gap: 8px;
      }
      .success-popup-box{
        flex-direction: column;
      align-items: center;
      gap: 20px;
    }
}
