@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Noto+Sans+Arabic:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Noto+Sans+Arabic:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
* {
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(133,133,133,0.1) 0%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
header {
  height: 52px;
  background-color: #ffffff;
  width: 30%;
  border-radius: 45px 45px 45px 45px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}
ul {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  text-indent: 30px;
  padding-left: 10px;
  margin-top: 12px;
}
li,a{
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin-right: 20px;
}
a:hover{
    color: hsla(0, 88%, 31%, 0.534);
}
footer {
    font-size: 15px;
    font-weight: 400;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    color: hsl(0,0%,0%);
    text-align: center;
    padding: 12px;
}
.parent {
    display: grid;
    grid-template-columns: repeat(7, 5fr);
    grid-template-rows: 95px 95px 95px 95px 95px;
    gap: 7px;
    justify-content: center;
    margin-top: 40px;
}
.item {
    min-height: 38px;
    width: 150px;
    border: 1px solid rgba(224,224,224,0.856);
    border-radius: 25px;
    text-align: center;
    background-color: hsl(0,0%,100%);
    box-shadow: 0 2px 5px rgba(230,227,227,0.5);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}
.item .hijri {
  font-family: "Tajawal";
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 5px;
}
.item .greg-day {
    font-family:"Tajawal";
    font-size: 15px;
    font-weight: 500;
    color: #89ad04;
    margin-bottom: 3px;
}
.item .greg-weekday {
  font-family: "Tajawal";
    font-size: 14px;
    font-weight: bold;
    color: #3f95dba2;
}
.item.today {
    background: #19e29550;
}
button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background-color: #111111cc;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

button:hover {
    background-color: #55d8c7;
}
.month-navigation {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    max-width: 1080px;               
    width: 100%;
}
#todayBox{
    text-align:center;
    margin:35px; 
    width: 350px; 
    background-color: rgba(156, 156, 156, 0.26); 
    font-size: 18px; 
    border-radius: 20px; 
    box-shadow: 15px 15px 5px rgba(230,227,227,0.5); 
    padding: 4px;
}

@media (max-width: 768px) {
    
  /* Header */
header {
    width: 95%;
    margin: 15px auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; 
    margin: 0;
    padding: 0;
    list-style: none;
}
li a {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.3s;
    margin-bottom: -1px;
}
#todayBox {
    width: 85%;
    font-size: 18px;
    margin: 15px auto;
    padding: 10px;
    font-weight: bold;
  }
.month-navigation {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 90%;
    margin: 15px auto;
}

.month-navigation h2 {
    text-align: center;
    flex: 0 1 auto; 
    margin: 0 10px;
}


.month-navigation button.prev {
    order: 2; 
    width: 25%;
    font-size: 14px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background-color: #111;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.month-navigation button.next {
    order: 1; 
    width: 25%;
    font-size: 14px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background-color: #111;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.month-navigation button:hover {
    background-color: #badb25ad;
}

  .parent {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 95%;
    margin: 10px auto;
  }

  .item {
    font-size: 14px;
    padding: 8px;
    min-height: 60px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .item .hijri {
    font-size: 18px;
    font-weight: 600;
  }

  .item .greg-day {
    font-size: 14px;
    color: #777;
    font-weight: bold;
  }

  .item .greg-weekday {
    font-size: 15px;
    color: #3f95dba2;
    font-weight: bold;
  }

  .item.today {
    background-color: #19e29580; 
    border: 2px solid #19e295;
  }

  /* Footer */
  footer {
    font-size: 12px;
    padding: 10px;
    position: relative; 
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
  }

  .content-wrapper {
    flex: 1; 
  }

  footer {
    font-size: 14px;
    padding: 10px;
    text-align: center;
    width: 100%;
  }
}

