:root {
  --bg: #f7f9fb;
  --card: #fff;
  --text: #222;
  --muted: #666;
  --accent: #0070f3;
  --secondary: #6b7280;
  font-family: 'Tajawal', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 48px auto;
  padding: 16px;
}

h1 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 20px;
}

form {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 1rem;
}
button.secondary {
  background: var(--secondary);
}
button:hover {
  opacity: 0.9;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}
.hidden { display: none; }

#resultDetails dt {
  font-weight: bold;
  margin-top: 8px;
}
#resultDetails dd {
  margin: 0 0 8px 0;
}

footer {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}


.logo {
  display: block;
  margin: 40px auto;       
  width: 100%;             
  max-width: 900px;        
  height: auto;            
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}


.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.modal-content.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}


.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover {
  color: #ff4444;
}


#caption {
  text-align: center;
  color: #ccc;
  padding: 10px;
  font-size: 1.1rem;
}

.info-block {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}



#result {
  text-align: center;
}

#resultDetails {
  display: inline-block;
  text-align: right;
  margin-top: 10px;
}

.info-block {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-right: 4px solid #0070f3;
}

.highlight-block {
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.highlight-block.class {
  background: linear-gradient(135deg, #0070f3, #009dff);
  border-right: none;
}

.highlight-block.wing {
  background: linear-gradient(135deg, #059669, #10b981);
  border-right: none;
}

#resultDetails dt {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

#resultDetails dd {
  margin: 0;
  font-size: 1rem;
}

small.en {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}








#result {
  text-align: center;
}

#resultDetails {
  display: inline-block;
  text-align: right;
  margin-top: 10px;
}

.info-line {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-right: 4px solid #0070f3;
  text-align: right;
}

.info-line span {
  font-size: 1.05rem;
  color: #111827;
}

.info-line strong {
  color: #0f172a;
}

.highlight.class {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  border: none;
}

.highlight.wing {
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  color: #fff;
  border: none;
}

.highlight small.en {
  color: rgba(255,255,255,0.9);
}

small.en {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 3px;
}





.buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

button {
  background-color: #4CAF50; 
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

button.secondary {
  background-color: #E57373;
}

button.preview {
  background-color: #64B5F6;
}

