/* new header */
    header {
      background: linear-gradient(to left, #4facfe, #00f2fe);
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      color: white;
    }
    .logo span:first-child {
      font-size: 26px;
      font-weight: bold;
    }
    .logo span:last-child {
      font-size: 40px;
    }
    nav a {
      text-decoration: none;
      color: white;
      background-color: rgba(255, 255, 255, 0.2);
      padding: 10px 20px;
      border-radius: 30px;
      transition: background-color 0.3s, color 0.3s;
      font-weight: bold;
    }
    nav a:hover {
      background-color: white;
      color: #00c6ff;
    }
    body {
    font: bold 20px 'Cairo';
    margin: 0;
    padding: 0;
    line-height: 2em;
    background-color: #e2c4e2;
    font-size: 18px;
}
h3 {
    font-family: 'Cairo';
}
@font-face {
  font-family: 'InriaSans';
  src: url('fonts/InriaSans-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'NotoNaskhArabic';
  src: url('fonts/NotoNaskhArabic-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'BebasNeue';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Amiri';
  src: url('fonts/Amiri-Bold.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background: #eee;
    font-family: 'Cairo';
    }
.plate1 {
    text-align: center
}
    .input-area {
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    input {
    font-size: 18px;
    padding: 5px;
    width: 30px;
    margin: 5px;
    text-align: center;
}

    button {
      font-family: 'Cairo';
      padding: 10px 20px;
      font-size: 16px;
    }

    .plate {
      font-family: 'ge dinarone';
      width: 90%;
      max-width: 600px;
      height: auto;
      aspect-ratio: 4/1;
      background: #fff;
      border: 2px solid #000;
      margin: 20px auto;
      border-radius: 6px;
      display: grid;
      grid-template-columns: 2.5fr 1fr 2.5fr;
      grid-template-rows: 1fr 1fr;
      gap: 2px;
      direction: rtl;
      position: relative;
    }

    .box {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .char-box1, .char-box2, .char-box3, .char-box4 {
        font-family: Amiri;
    }
    .char-box_s1, .char-box_s2, .char-box_s3 {
        font-family: NotoNaskhArabic;
    }
    
	.char-box_s1 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
    .char-box_s2 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
	.char-box_s3 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
    .char-box_s4, .char-box_s5, .char-box_s6 {
        font-family: BebasNeue;
    }
	.char-box_s4 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
	.char-box_s5 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
	.char-box_s6 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }

      .char-box1 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
    .char-box2 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }

	.char-box3 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }

	.char-box4 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
    
.char-box5, .char-box6, .char-box7, .char-box8 {
    font-family: "InriaSans";
    font-weight: 500;
}
	.char-box5 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }

	.char-box6 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
	.char-box7 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }
    .char-box8 {
      width: 50px;
      text-align: center;
      font-size: 50px;
      font-weight: bold;
    }


    .letter-arabic {
      grid-column: 1;
      grid-row: 1;
    }

    .letter-english {
      grid-column: 1;
      grid-row: 2;
    }

    .middle-box {
      grid-column: 2;
      grid-row: 1 / span 2;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      font-size: 14px;
      text-align: center;
    }

    .middle-box .icon {
      font-size: 28px;
      line-height: 28px;
    }

    .number-arabic {
      grid-column: 3;
      grid-row: 1;
    }

    .number-english {
      grid-column: 3;
      grid-row: 2;
    }

    /* كلاس لتوسيط الرقمين الثاني والثالث */
    .center-two-numbers {
      justify-content: center;
      gap: 30px;
    }
    h2, label {
        font-family: 'Cairo';
    }
    @media (max-width: 480px) {
  
  .plate {
    aspect-ratio: 4/1;
    grid-template-columns: 2fr 1fr 2fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .char-box_s1, .char-box_s2, .char-box_s3,
  .char-box_s4, .char-box_s5, .char-box_s6,
  .char-box1, .char-box2, .char-box3, .char-box4,
  .char-box5, .char-box6, .char-box7, .char-box8 {
    font-size: 25px;
    width: 15px;
  }

  .middle-box {
    font-size: 12px;
  }

  .middle-box .icon {
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 8px 16px;
  }
}