body {
   font-family: kufi-reg;
    font-style: normal;
    font-weight: 400;
  background: #f5f5f5;
  direction: rtl;
  margin: 0;
  padding: 0;
  background-image: url("img/background.png");
}

@font-face {
  font-family: 'My-Font-1';
  src: url('fonts/madaNormal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'My-Font-2';
  src: url('fonts/madaBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'My-Font-3';
  src: url('fonts/letNormal.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'My-Font-4';
  src: url('fonts/letBold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.preload-fonts {
  font-family: 'My-Font-1', 'My-Font-2', 'My-Font-3', 'My-Font-4';
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

.container {
  max-width: 1050px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  box-shadow: 1px 2px 29px #77777752, -1px -2px 29px #7777776b;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #ccc;
}

h1,
h2 {
  color: #333;
  margin-bottom: 20px;
}

label {
  display: block;
  text-align: right;
  font-weight: bold;
  margin: 15px 0 5px;
  color: #333;
}

input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

.templates {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 20px 0;
}

.template-img {
  width: 190px;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.template-img:hover {
  transform: scale(1.05);
  border-color: #28a745;
}

button {
  background: #28a745;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

.card-container {
  margin-top: 30px;
}

#downloadBtn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 30px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

#downloadBtn:hover {
  background: #218838;
}

/* للموبايل */
@media (max-width: 600px) {
  #downloadBtn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    box-sizing: border-box;
  }
}

#success-message {
  color: #28a745;
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .template-img {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.7);
}
img.site-logo {
  height: auto;
  margin-left: 1rem;
  display: block;
  margin: 0px auto;
  max-width: 100%;
  margin-bottom: 1rem;
}
.section-title {
  font-weight: 100;
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  font-size: 24px;
  margin-bottom: 2rem;
}

.site-logo {
  width: 100px;
  height: 120px;
  margin-left: 1rem;
}
.footer {
  background: #048f91;
  color: white;
  text-align: center;
  padding: 10px;
}
.social-icons {
  margin: 3px 10px;
}
.social-icons a {
  display: inline-block;
  margin: 22px 2px;
  font-size: 18px;
  color: white;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #007bff;
}
@media screen and (max-width: 950px) {
  .site-logo {
    max-height: 124px;
    width: auto;
  }
}

/* ريسبونسيف للموبايل */
@media (max-width: 500px) {
  .container {
    padding: 20px 10px;
    margin: 20px 10px;
  }

  .template-img {
    width: 135px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .templates{
    gap: 20px;
  }
  .footer p{
    font-size: 14px;
  }

  button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  h1,
  h2 {
    font-size: 20px;
  }

  label {
    font-size: 14px;
  }

  input[type="text"] {
    font-size: 14px;
  }
  input {
    font-size: 15px;
  }
}