@font-face {
font-family: "Curly";
src: url("Curly.ttf") format("truetype");
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
cursor: url("cursor.png") 0 0, auto !important;
}

/* 🔴 1. تقسيم خلفية الصفحة الكلية إلى جزأين (أزرار فوق، وخطوط تحت) */
body {
font-family: "Curly", cursive, sans-serif;
background:
 url('IMG_4002.jpeg') top center / cover no-repeat,
url('IMG_3998.jpeg') bottom center / cover no-repeat;
 padding-bottom: 50px;
}

/* إلغاء الإطار الخارجي الثقيل لـ main-container وتشفيفه */
.main-container {
 max-width: 500px;
margin: 0 auto;
padding: 10px;
}

/* 🔴 2. الرسمة العلوية قدام خلفية الأزرار مع إطار (Border) نحيف خفيف */
.top-hero-banner {
 border: 2px solid #000; /* إطار نحيف وبسيط بدال القديم */
 border-radius: 12px;
 overflow: hidden;
 background-color: transparent;
 box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* ظل خفيف يبرز الرسمة */
}

.hero-img {
 width: 100%;
 display: block;
}
/* الحاوية العلوية للبانر مع الشجرة */
.top-hero-banner {
  position: relative;
  border: 2px solid #000;
  border-radius: 12px;
  background-color: transparent; /* إلغاء أي خلفية مكررة */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: visible !important; /* للسماح للشجرة بالبروز */
}

/* تنسيق صورة الرسمة العلوية */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
/*  3. شريط الأخبار يقع في النص تماماً كفاصل بين خلفية الأزرار وخلفية الخطوط */
/* شريط الأخبار ممتد بالكامل لأطراف الشاشة */
.news-ticker {
width: 100vw; /* يجعل عرض الشريط يساوي عرض الشاشة بالكامل */
 position: relative;
 left: 50%;
 right: 50%;
 margin-left: -50vw; /* يكسر حدود Container وينطلق للطرف الأيسر */
 margin-right: -50vw;  /* ينطلق للطرف الأيمن */

margin-top: 25px;
 margin-bottom: 25px;
 background-color: #8c71a3; /* اللون البنفسجي من رسمتك */
 border-top: 2px solid #000;
 border-bottom: 2px solid #000;
 overflow: hidden;
white-space: nowrap;
 padding: 10px 0;
}

.ticker-text {
 display: inline-block;
 color: #fff;
 font-size: 2.5rem;
 animation: marquee 14s linear infinite;
}

@keyframes marquee {
0% { transform: translateX(100%); }
 100% { transform: translateX(-100%); }
}

/* 1. تكبير الحاوية الرئيسية لتكون عريضة على مستوى الصفحة */
.main-container {
 max-width: 950px; /* كبرنا العرض من 850px إلى 950px */
 margin: 0 auto;
 padding: 10px;
}
/* الصندوق الأصفر السفلي (فوق خلفية الخطوط) */
.yellow-content-box {
background-color: #f3be18;
border: 2px solid #000;
border-radius: 15px;
 padding: 20px;
 position: relative;
}

.apple-btn {
  display: inline-block;
  width: 110px;
  height: 110px;
  background-image: url('IMG_4022.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-decoration: none;
  
  /* محاذاة النص في منتصف التفاحة */
  line-height: 110px;
  text-align: center;
  color: #0D170D;
  font-family: "Curly", cursive, sans-serif;
  font-size: 2rem;
  font-weight: bold;
 
  
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apple-btn span {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

.apple-btn:hover {
  transform: translateY(-8px) scale(1.15) rotate(-3deg);
  filter: drop-shadow(0px 6px 4px rgba(0, 0, 0, 0.4));
}

/* محاذاة التفاحات في النص تماماً بدون أي انزياح */
.apple-nav {
  display: flex;
  justify-content: center; /* يتوسط المساحة بالكامل */
  align-items: center;
  gap: 35px;
  margin-bottom: 25px;
  width: 100%;
}

/* فصل الهامش عن التفاح وتخصيصه للقسم السفلي فقط */
.bottom-interactive-grid {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  position: relative;
  padding-left: 110px; /* المسافة المخصصة للمسكوت تحت فقط */
}

/* 1. جعل الحاوية هي المرجع لموقع المسكوت */
.bottom-interactive-grid {
display: flex;
 align-items: flex-end;
 gap: 15px;
 position: relative; /* ضروري ليعوم المسكوت بداخله */
 padding-left: 120px; /* تفريغ مساحة أفقية للمسكوت على اليسار */
}

/* 2. تحويل المسكوت لعنصر عائم فوق الصندوق */
.mascot-img {
position: absolute;
left: -20px;  /* يدفع المسكوت قليلاً لليسار خارج الصندوق ليُعطي طبقات Y2K جميلة */
bottom: -10px; /* يثبت قدم المسكوت في الأسفل */
width: 500px; /* تحكمي بالحجم من هنا بحرية */
 height: auto;
 z-index: 10;  /* يضمن ظهور المسكوت فوق الحواف */
 pointer-events: none; /* يمنع المسكوت من إعاقة الضغط على العناصر */
}

.draw-box {
flex: 2;
background-color: #7A671E;
border: 2px solid #000;
border-radius: 12px;
padding: 10px;
}

.draw-header {
display: flex;
justify-content: flex-end;
}

.close-btn {
border: 2px solid #000;
background-color: #fff;
padding: 0 6px;
font-weight: bold;
cursor: pointer;
}

#paintCanvas {
width: 100%;
height: 180px;
background-color: #ffffff;
border: 2px dashed #000;
cursor: crosshair !important;
}

.canvas-controls {
display: flex;
align-items: center;
 justify-content: space-between;
 margin-top: 8px;
}

.draw-label {
  font-size: 1.5rem;
}

.color-palette {
display: flex;
gap: 8px;
}

.color-dot {
width: 22px;
height: 22px;
border: 2px solid #000;
border-radius: 4px;
cursor: pointer;
}

.color-dot:hover, .color-dot.active {
transform: scale(1.2);
outline: 2px solid #000;
}

.journal-box {
flex: 1;
background-color: #f7e1ad;
border: 2px solid #000;
border-radius: 10px;
padding: 12px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 200px;
}

.journal-click-btn {
display: block;
text-align: center;
border: 2px solid #000;
background-color: #fff;
color: #000;
text-decoration: none;
font-size: 1.3rem;
padding: 4px;
}

/* 🌳 الشجرة: الحفاظ على موقعها وحجمها مع إضافة الهوفر */
.tree-img {
  position: absolute;
  right: -200px;   
  bottom: -27px;
  width: 300px; 
  height: auto;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(2px 4px 0px rgba(0, 0, 0, 0.2));
}

.tree-img:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, 0.3));
}

/* 🐞 الدعسوقة: الحفاظ على موقعها وحجمها مع إضافة الهوفر */
.ladybug-img {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 70px;
  height: auto;
  z-index: 99;
  transform: rotate(-15deg);
  transition: transform 0.2s ease-in-out;
  filter: drop-shadow(2px 3px 0px rgba(0, 0, 0, 0.2));
}

.ladybug-img:hover {
  transform: translateY(-6px) scale(1.2) rotate(-10deg);
  filter: drop-shadow(2px 6px 4px rgba(0, 0, 0, 0.35));
}

/* --- تنسيقات صفحة الفن (art.html) --- */

/* زر العودة للرئيسية */
.back-home-btn {
  display: inline-block;
  margin-bottom: 15px;
  background-color: #f3be18;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 6px 12px;
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.2s;
}

.back-home-btn:hover {
  transform: scale(1.05);
  background-color: #fff;
}

/* --- تنسيق Pinterest للمعرض (أبعاد طبيعية) --- */

.art-page-box {
  text-align: center;
}

.art-title {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #000;
}

/* شبكة أعمدة مثل Pinterest */
.art-grid {
  column-count: 3;          /* تقسيم العرض إلى 3 أعمدة */
  column-gap: 25px;         /* المسافة الأفقية بين الأعمدة */
  width: 100%;
}

/* كرت الرسمة المستقل */
.art-card {
  break-inside: avoid;      /* يمنع انقسام الكرت بين الأعمدة */
  margin-bottom: 25px;      /* مسافة رأسية بين كل رسمة والثانية */
  display: inline-block;    /* تتابع العناصر بسلاسة */
  width: 100%;
  position: relative;
  background: transparent;
  border: none;             /* إلغاء الإطار الخارجي */
  box-shadow: none;
}

/* الحاوية الداخلية للرسمة */
.art-img-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* إظهار الرسمة بأبعادها وطولها الطبيعي الكامل */
.art-card img {
  width: 100%;
  height: auto;             /* 🔴 يحافظ على نسبة الطول والعرض الأصلية بدون قص */
  display: block;
  border-radius: 12px;
  border: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* 🎨 تأثير الهوفر: تكبير الرسمة ببروز كرتوني */
.art-card:hover img {
  transform: scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.35));
}

/* النص يظهر تحت الرسمة عند تمرير الماوس */
.art-info {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #000;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: #fceea7;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  display: inline-block;
}

.art-card:hover .art-info {
  opacity: 1;
  transform: translateY(0);
}

/* --- تنسيقات صفحة About Me المحدثة بالحجم الطبيعي --- */

.about-speech-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px; /* 🔴 صغّرنا العرض الأقصى ليناسب الشاشة تماماً */
  margin: 10px auto;
  display: flex;
  justify-content: center;
}

.about-illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* --- About Page Hero Container (Matching Home Page Style) --- */

.about-hero-banner {
  border: 2px solid #000;
  border-radius: 12px;
  background-color: #f3be18; /* Matching home page yellow */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  max-width: 650px;
  margin: 20px auto;
  padding: 15px;
  text-align: center;
}

.about-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #000;
  border-radius: 10px;
  margin-bottom: 15px;
}

.about-text-box {
  background-color: #fceea7;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 15px;
  color: #000;
  font-family: "Curly", cursive, sans-serif;
  box-shadow: 2px 2px 0 #000;
}

.about-text-box h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-text-box p {
  font-size: 2rem;
  line-height: 1.4;
}