body.wpdevs_ajax_ec_shortcode #main-content .container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

#wpdevs_ajax_calendar {
  display: flex;
  flex-direction: row;
  margin-bottom: 100px;
  margin-top: 20px;
}

.wpdevs_calendar{
  padding: 4px 0;
}

.wpdevs_calendar_controls {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

#wpdevs_calendar_month,
#wpdevs_calendar_year {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #000;
  font-size: 17px;
  padding: 2px;
  width: 40%;
  border-radius: 0;
  height: auto;
}

#wpdevs_calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Adjusted */
  grid-gap: 0;
}

.wpdevs_calendar_day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  padding: 10px;
  font-size: 40px;
  cursor: pointer;
}

.wpdevs_calendar_selected {
  background-color: #EBECE7;
  color: #fff;
}


.wpdevs_contents {
    width: 100%;
    padding-left: 30px;
    position: relative;
    overflow: hidden;
}


.wpdevs_contents_table_head, #wpdevs_contents_table_body {
  display: table;
  margin: 0 20px;
  border-spacing: 10px;
  width: 100%;
  position: relative;
}


.wpdevs_contents_head,
.wpdevs_contents_body {
  display: table-row;
}

.wpdevs_contents_body_event {
    padding: 20px 0;
}

.wpdevs_contents_body_description {
    display: none;
    padding-top: 30px;
}

.wpdevs_contents_head{
  font-size: 17px;
  padding: 2px;
}

.wpdevs_contents_head .wpdevs_contents_head_date, 
.wpdevs_contents_head .wpdevs_contents_head_event, 
.wpdevs_contents_head .wpdevs_contents_head_control,
.wpdevs_contents_body .wpdevs_contents_body_date,
.wpdevs_contents_body .wpdevs_contents_body_event,
.wpdevs_contents_body .wpdevs_contents_body_control{
  display: table-cell;
}


.wpdevs_contents_head .wpdevs_contents_head_date, 
.wpdevs_contents_body .wpdevs_contents_body_date{
  width: 200px;
}

.wpdevs_contents_head .wpdevs_contents_head_control,
.wpdevs_contents_body .wpdevs_contents_body_control{
  width: 200px;
  text-align: center;
}

.wpdevs_contents_head .wpdevs_contents_head_date, 
.wpdevs_contents_head .wpdevs_contents_head_event, 
.wpdevs_contents_head .wpdevs_contents_head_control {
  font-size: 17px;
  padding: 4px;
  border-bottom: 1px solid #000;
  line-height: 13px;
  vertical-align: middle;
}

.wpdevs_contents_head .wpdevs_contents_head_control{
  border-bottom: 0;
}



.wpdevs_contents_body .wpdevs_contents_body_control{
  cursor: pointer;
}

.wpdevs_event_title {
    text-transform: none;
}

.wpdevs_overlay {
    background: #fff;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-around;
    height: 500px;
}

.wpdevs_overlay .wpdevs_loading {
    color: #fff;
    font-size: 25px;
    margin-top: 50px;
    align-self: flex-start;
}


.wpdevs_contents_date_mobile{display: none;}


.wpdevs_active_day {
    background: #ebece7;
}


/**** Responsive Media Query ****/

/* For screens smaller than 979px */
@media only screen and (max-width: 979px) {
  
  #wpdevs_ajax_calendar {
    display: block;
  }

  .wpdevs_calendar, .wpdevs_contents {
    padding: 10px 20px;
  }

  #wpdevs_calendar {
    max-width: 100%;
  }

  #wpdevs_calendar_month,
  #wpdevs_calendar_year {
    border: 0;
    border-bottom: 1px solid #000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0px; /* Add rounded corners */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="%23333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M30 16L16 30 2 16"/></svg>'); /* Add custom arrow icon */
    background-repeat: no-repeat;
    background-position: right 10px center; /* Adjust icon position */
    background-size: 10px;
    padding-left: 6px;
    padding-right: 6px;
  }


  .wpdevs_calendar_day {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .wpdevs_contents_table_head, #wpdevs_contents_table_body{
    margin: 0;
  }

  .wpdevs_overlay {
      height: 300px;
  }
  
}



/* For screens smaller than 768px */
@media only screen and (max-width: 768px) {
  

  #wpdevs_ajax_calendar {
    display: block;
  }

  .wpdevs_calendar, .wpdevs_contents {
    padding: 10px 20px;
  }

  #wpdevs_calendar {
    max-width: 100%;
  }


  #wpdevs_calendar_month,
  #wpdevs_calendar_year {
    border: 0;
    border-bottom: 1px solid #000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0px; /* Add rounded corners */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="%23333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M30 16L16 30 2 16"/></svg>'); /* Add custom arrow icon */
    background-repeat: no-repeat;
    background-position: right 10px center; /* Adjust icon position */
    background-size: 10px;
    padding-left: 6px;
    padding-right: 6px;
  }


  .wpdevs_calendar_day {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .wpdevs_contents_table_head, #wpdevs_contents_table_body{
    margin: 0;
  }
  
  .wpdevs_contents_table_head {
    display: none;
  }

  .wpdevs_contents_body {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #000;
    padding: 20px 0;
  }
  
  .wpdevs_contents_body:last-child {
    border-bottom: 0;
  }

  .wpdevs_contents_body .wpdevs_contents_body_control{
    display: none;
  }
  .wpdevs_contents_date{display: none;}
  .wpdevs_contents_date_mobile{display: block;text-transform: uppercase;}

  .wpdevs_overlay {
      height: 300px;
  }
}
