.container{
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    text-align: center;
    direction: rtl;
    padding: 0 5px;
    box-sizing: border-box;
}

#introduce{
    display: block;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    color: white;
    padding: 8px 0;
    background-color: #4CAF50;
    text-decoration: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Page Style */
@font-face{font-family:Shabnam;src: url(../font/Shabnam.ttf) format("truetype");font-weight:400}

body {
  background-color: lightgray;
  font-family: 'Shabnam';
  margin: 0;
  padding: 0;
}

.dynamic-element{
	display: none;
}

.active-element{
	display: block;
}

.calendar-wrapper{
	text-align: left;
	direction: ltr;
	width: 100%;
	position: relative;
}

.clearfix, .clearfix::before, .clearfix::after{
	clear: both;
	content: "";
	display: block;
}

.calendar-base {
  width: 100%;
  max-width: 900px;
  height: auto;
  min-height: 400px;
  border-radius: 15px;
  background-color: white;
  position: relative;
  z-index: 1;
  color: black;
  overflow: hidden;
  margin: 0 auto;
  padding-bottom: 15px;
}

.active-season{
	background-color: #d3cccc !important;
	color:white !important;
}

.active-season-bg{
	background-color: #d3cccc !important;
}

.active-season-cr{
	color: #d3cccc !important;
}

.month-hover.active-season-cr{
	font-weight: bold;
}

.holiday{
	background-color: #f44336;
	color:#fff !important;
}

.holiday:hover{
	background-color: #d3cccc !important;
}

.disable-one{
	opacity: 0.3;
}

.year {
  color: #d3cccc;
  font-size: 18px;
  text-align: center;
  position: relative;
  margin: 15px auto;
  font-weight: bold;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.year-meta{
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 15px;
	color: #d3cccc;
    font-size: 14px;
}

.triangle-left {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-right: 8px solid #E8E8E8;
  border-bottom: 4px solid transparent;
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 2;
}

.triangle-right {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-left: 8px solid #E8E8E8;
  border-bottom: 4px solid transparent;
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
}

.triangle-left:hover{
  border-right: 8px solid#2ECC71;
}
.triangle-right:hover{
  border-left: 8px solid#2ECC71;
}

.month-color {
  color: #27AE60;
}

.month-hover:hover{
  cursor: pointer;
  color: #d3cccc !important;
}

.months {
  color: #6b6b6b;
  position: relative;
  width: 95%;
  margin: 50px auto 0;
  text-align: center;
  word-spacing: 2px;
  font-size: 11px;
  line-height: 1.4;
  padding: 0 5px;
  box-sizing: border-box;
}

.month-line {
  border-color: #E8E8E8;
  position: relative;
  top: 45px;
  width: 95%;
  margin: 0 auto;
}

.days {
  color: #6b6b6b;
  position: relative;
  font-size: 11px;
  width: 95%;
  margin: 50px auto 0;
  text-align: center;
  word-spacing: 0;
  font-weight: 600;
  padding: 0 5px;
  box-sizing: border-box;
}

.days ul{
	margin: 0;
	padding: 0;
    display: flex;
    justify-content: space-between;
}

.days ul li{
  background-color: transparent !important;
  height: auto !important;
  font-size: 10px;
  width: 14%;
  box-sizing: border-box;
  padding: 3px 0;
  text-align: center;
  list-style: none;
}

.num-dates {
   position: relative;
   width: 95%;
   margin: 60px auto 0;
   text-align: center;
   padding: 0 5px;
   box-sizing: border-box;
}

.num-dates ul{
	margin: 0 0 10px 0;
	padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.num-dates ul li{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    text-align: center;
    width: 13%;
    margin: 1% 0.5%;
    font-weight: bold;
    box-sizing: border-box;
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 8px #e5e3e3;
    color: #6b6b6b;
    min-height: 40px;
}

.num-dates ul li:hover{
	background-color: #d3cccc;
	color: white;
}

.num-dates ul li small{
    font-size: 8px;
    font-weight: normal;
    line-height: 1.2;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.num-dates ul li small#miladi{
    order: 1;
}

.num-dates ul li small#ghamari{
    order: 2;
}

.active-day {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #2ECC71;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.white {
  color: white;
}

.event-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #2980B9;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.grey {
  color: #AAAAB1;
}

.calendar-left {
  width: 100%;
  max-width: 280px;
  height: auto;
  min-height: 250px;
  border-radius: 15px;
  background-color: #2ECC71;
  position: relative;
  margin: 15px auto;
  color: white;
  box-sizing: border-box;
  padding: 15px;
}

.hamburger {
  position: absolute;
  top: 10px;
  left: 10px;
}

.burger-line:hover, .hamburger:hover{
  background-color:#27e879 !important;
}

.burger-line {
  width: 20px;
  height: 2px;
  background-color: white;
  border-radius: 15%;
  margin-bottom: 3px;
}

.num-date {
  font-size: 60px;
  width: 100%;
  margin: 15px auto 0;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.day {
  width: 100%;
  margin: 0px auto;
  font-size: 18px;
  text-align: center;
  margin-top: 5px;
}

.current-events {
  font-size: 13px;
  margin-top: 15px;
  text-align: right;
}

.posts {
  text-decoration: underline dotted;
}

.posts:hover{
  color:#27e879 !important;
}

.events-list{
	direction: rtl;
	width: 100%;
	height: 150px;
    overflow-y: auto;
    text-align: right;
    margin-top: 10px;
    padding-right: 5px;
}

.events-list li{
	margin-bottom: 5px;
	font-size: 12px;
    padding: 3px 0;
    line-height: 1.3;
}

.events-list li span.event-day{
	font-weight: bold;
}

.events-list li div.event-title{
	display: inline-block;
	margin-left: 3px;
}

/* Media Queries for Responsive Design */
@media (min-width: 480px) {
  #introduce{
    font-size: 24px;
    padding: 10px 0;
  }
  
  .months {
    font-size: 12px;
  }
  
  .days ul li{
    font-size: 11px;
  }
  
  .num-dates ul li{
    font-size: 16px;
    min-height: 45px;
  }
  
  .num-dates ul li small{
    font-size: 9px;
  }
  
  .calendar-left {
    min-height: 280px;
  }
  
  .num-date {
    font-size: 70px;
  }
  
  .day {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .container{
    width: 90%;
  }
  
  #introduce{
    font-size: 28px;
  }
  
  .calendar-wrapper{
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
  }
  
  .calendar-base {
    width: 65%;
    height: auto;
    min-height: 500px;
    padding-bottom: 0;
  }
  
  .calendar-left {
    width: 32%;
    height: auto;
    min-height: 500px;
    margin: 0;
    border-radius: 15px 0 0 15px;
  }
  
  .months {
    font-size: 14px;
    width: 90%;
    margin: 60px auto 0;
  }
  
  .days ul li{
    font-size: 12px;
  }
  
  .num-dates ul li{
    width: 12%;
    margin: 0.5%;
    font-size: 18px;
    min-height: 50px;
  }
  
  .num-date {
    font-size: 90px;
  }
  
  .day {
    font-size: 24px;
  }
  
  .events-list{
    height: 300px;
  }
  
  .year {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .calendar-base {
    width: 900px;
    height: 570px;
  }
  
  .calendar-left {
    width: 300px;
    height: 570px;
  }
  
  .num-dates ul li{
    width: 64px;
    margin: 0 5px 10px 0;
    font-size: 22px;
    min-height: 60px;
  }
  
  .year {
    font-size: 30px;
    float: right;
    position: relative;
    right: 45px;
    top: 30px;
    width: auto;
    margin: 0;
  }
  
  .months {
    position: relative;
    left: 340px;
    top: 90px;
    width: auto;
    margin: 0;
    font-size: 16px;
  }
  
  .month-line {
    position: relative;
    top: 85px;
    width: 57%;
    left: 178px;
  }
  
  .days {
    position: relative;
    left: 14px;
    top: 80px;
    width: auto;
    margin: 0;
    font-size: 14px;
  }
  
  .num-dates {
    float: right;
    position: relative;
    top: 90px;
    right: 44px;
    width: auto;
    margin: 0;
  }
  
  .num-dates ul{
    display: block;
  }
  
  .num-dates ul li{
    float: right;
    width: 64px;
    margin-left: 11px;
  }
  
  .days ul{
    display: block;
  }
  
  .days ul li{
    float: right;
    width: 64px;
    margin-left: 11px;
  }
}