@font-face {
    font-family: 'El Messiri';
    src: url('../../fonts/ElMessiri-Medium.woff2') format('woff2'),
        url('../../fonts/ElMessiri-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #eee;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .50) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .50) 50%, rgba(255, 255, 255, .50) 75%, transparent 75%, transparent);
    background-size: 200px 200px;
    font-family: 'El Messiri';
    margin: 0;
    padding: 0;
}

@keyframes pulseBorder {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
h1 {text-align: center; font-size: 25px}
.event-card.highlight {
    border: 3px solid red !important;
    border-radius: 10px;
    animation: pulseBorder 1.5s infinite;
}

.events-container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bbb;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 22px;
    font-weight: bold;
    flex: 1;
    text-align: right;
}

.share-btn {
    font-family: 'El Messiri';
    background: #25D366;
    color: #FFF;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.share-btn:hover {
    background: #128c7e;
}

.event-dates {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 5px;
}

.event-dates div:first-child {
    text-align: right;
}

.event-dates div:last-child {
    text-align: left;
}

.event-day {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: red;
    margin: 10px 0;
}

.event-season {
    font-size: 20px;
    margin-bottom: 5px;
}
.event-season div {
    text-align: center;
    margin: 10px auto;
}
.season {font-size: x-large;}
.event-card.past { display: none; }
.show-past .event-card.past { display: block; }

.season span{
  font-size:22px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}

.toggle-btn {
    font-family: 'El Messiri';
    background: #444;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px auto 15px;
    display: block;
}

.timer {
    background: #FFF;
    color: #000;
}
span {font-size: 18px; font-weight: 800;}
.countdown {
    text-align: center;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #bfbfbf;
    background: #fff;
    border-radius: 8px;
}

  h2 {
      font-size: 20px;
  }


/* إخفاء الأحداث المنتهية افتراضياً */
.event-card.past {
    display: none;
    opacity: 0.5;
    filter: grayscale(80%);
}

/* عند عرضها */
.event-card.past.show {
    display: block;
}

/* زر إظهار/إخفاء الأحداث المنتهية */
.toggle-past-btn {
    background: #0c3465;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-family: 'El Messiri';
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    transition: 0.3s;
}

.toggle-past-btn:hover {
    background: #06294d;
}

/* الوان الوقت والساعة والدقيقة والثانية */
.days {color: red;}
.hours {color: orange;}
.minutes {color:blue;}
.seconds {color: green;}    
.days, .hours, .minutes, .seconds {font-weight:800;}

.aa {
    display: flex;
    justify-content: center;
}
.inl {
    display: flex;
}
.osm {
    display: flex;
    margin: 0px 5px 0px 0px;
}
.square {
    background-color: #faec6652;
    border: 1px #000000 solid;
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
    display: inline-block;
    box-shadow: 1px 1px #777;
}
.square2 {
    background-color: #f5ca7b61;
    border: 1px #000000 solid;
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
    display: inline-block;
    box-shadow: 1px 1px #777;
}
.square3 {
    background-color: #3498db40;
    border: 1px #000000 solid;
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
    display: inline-block;
    box-shadow: 1px 1px #777;
}
.square4 {
    background-color: #88f3724d;
    border: 1px #000000 solid;
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
    display: inline-block;
    box-shadow: 1px 1px #777;
}
/* تنسيق عام للأرقام */
.num {
    font-weight: bold;
    padding: 6px 6px;
    border-radius: 6px;
    /*color: white;*/
    font-size: 22px;
    border-radius: 25px;
}
.main2 {
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    background: white;
    width: 90%;
    margin: 0 auto;
}
.main2 span {
    color: red;
    font-size: 18px;
    font-weight: 700;
}

/* يوم — أحمر */
.num.day {
    color: #e63946;
}

/* ساعة — بنفسجي */
.num.hour {
    color: #8e44ad;
}

/* دقيقة — أزرق */
.num.min {
    color: #1d4ed8;
}

/* ثانية — أخضر */
.num.sec {
    color: #16a34a;
}
/* ثلج داخل كروت الشتاء فقط */
.event-card.winter {
    position: relative;
    overflow: hidden;
}

.event-card.winter::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.6) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255,255,255,0.3) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255,255,255,0.1) 0 2px, transparent 3px);
    background-size: 40px 50px, 60px 80px, 100px 140px;
    animation: snow-parallax 15s linear infinite;
}

@keyframes snow-parallax {
    0% { background-position: 0 -50px, 0 -80px, 0 -120px; }
    100% { background-position: 0 500px, 0 550px, 0 600px; }
}


@media (max-width: 480px) {
.countdown {
    text-align: center;
    font-size: 12px;
    padding: 2px;
    border: 1px solid #bfbfbf;
    background: #fff;
    border-radius: 8px;
}    
}

/* عند التفعيل - عرض المنتهية */
.show-past .event-card.past {
    display: block;
}

.toggle-btn {
    font-family: 'El Messiri';
    background: #444;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    margin: 10px auto;
    display: block;
}