.ui-datepicker{
  width: 40%;
  height: auto;
  text-align: center;
  color: gray;
  background-color: #fff;
  border: 1px solid #9f2115;
}

.ui-datepicker table {
  width: 100%;

}

.ui-datepicker-prev, .ui-datepicker-next {
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  background-image: url('icons/right_arrow.png');
  background-repeat: no-repeat;
  line-height: 600%;
  overflow: hidden;
  color: white;
  margin-top: 8px;

}
.ui-datepicker-prev{
  background-image: url('icons/left_arrow.png');
}
.ui-datepicker-prev {
  float: left;
}
.ui-datepicker-next {
  float: right;
  background-position: center 0px;
  padding-right: 5px;
}

.ui-datepicker-title {
  text-align: center;
  background-color: #9f2115;
  color: #fff;
}
.ui-datepicker-header {
  font-weight: bold;
  line-height: 30px;
}

.ui-datepicker thead {
  background-color: #f7f7f7;
  background-image: -moz-linear-gradient(top,  #f7f7f7 0%, #f1f1f1 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#f1f1f1));
  background-image: -webkit-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image: -o-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image: -ms-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image: linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#f1f1f1',GradientType=0 );
  border-bottom: 1px solid ;
}
.ui-datepicker th {
  text-align: center;
  text-transform: uppercase;
  font-size: 10pt;
  padding: 5px 0;
}

.ui-datepicker tr {
  text-align: center;
  padding-top: 3px;
  padding-bottom: 3px;
}
.ui-datepicker tbody {
  color: #9f2115;
  padding: 5px;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: none;
    font-weight: normal;
    color: #9f2115;
    text-align: center;
}


@media only screen and (min-width: 300px) and (max-width: 680px) {
  .ui-datepicker{
    width: 80%;
    height: auto;
    text-align: center;
    color: gray;
    background-color: #fff;
    border: 1px solid #9f2115;
  }
}
