.tag {
  display: inline-block;
  font-size: 14px;
  border-radius: 3px;
  padding: .2em .5em .3em;
  border-radius: 2px;
  background: var(--tag-bg);
  color: var(--text-color);
  /* font-weight: 400; */
  margin: .25em .1em
}

.tag-sm {
  font-size: .7em;
  display: inline-block;
  letter-spacing: .15ch;
  font-weight: 400
}

.tag-lg {
  font-size: 1.2em;
  border-radius: 4px
}

.tag-bg {
  background: var(--background)
}

.tag-green,.tag-pro {
  background: var(--green);
  color: #fff
}

.tag-purple {
  background: var(--purple);
  color: #fff
}

.tag-contrast {
  background: var(--text-color);
  color: var(--background)
}

.tag-ukt {
  background: #00c22a;
  color: #fff
}
.tag-lights {
  background: #6b1300;
  color: #fff
}
.tag-overlaps {
  background: #e63430;
  color: #fff
}
.tag-сargo {
  background: #006a26;
  color: #fff
}
.tag-parking {
  background: #467f92;
  color: #fff
}
.tag-gaz {
  background: #017cbf;
  color: #fff
}
.tag-water {
  background: #007fcd;
  color: #fff
}
.tag-energy {
  background: #d5a902;
  color: #fff
}
.tag-heating {
  background: #ff1014;
  color: #fff
}
.tag-broadcast {
  background: #720f00;
  color: #fff
}
.tag-alerts {
  background: #00b537;
  color: #fff
}
.tag-razryt {
  background: #ceb100;
  color: #fff
}
.events-container {
  overflow: auto;
  height: 357px;
  /* float: right; */
  margin: 0px auto;
  font: 13px Helvetica, Arial, sans-serif;
  display: inline-block;
  padding: 0 10px;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
}
.events-container:after{
  clear:both;
}
.event-card {
  padding: 20px 0;
  /* width: 350px; */
  margin: 20px auto;
  display: block;
  background: #fff;
  border-left: 10px solid #157fc4;
  border-radius: 3px;
  box-shadow: 3px 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  -moz-box-shadow: 3px 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  -webkit-box-shadow: 3px 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.event-count, .event-name, .event-cancelled {
  padding: 0 10px;
  font-size: 1rem;
}
.event-count {
  color: #157fc4;
  text-align: right;
}
.event-name {
  padding-right:0;
  text-align: left;
}
.event-cancelled {
  color: #b5b5b5;
  text-align: right;
}

/*  Calendar wrapper */
.calendar-container  {
  float: left;
  position: relative;
  margin: 0px auto;
  height: 100%;
  background: #fff;
  font: 13px Helvetica, Arial, san-serif;
  display: inline-block;
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}
.calendar-container:after{
  clear:both;
}
.calendar {
  display: table;
}

/* Calendar Header */
.year-header {
  background: #157fc4;

  font-family: Helvetica;

  height: 40px;
  text-align: center;
  position: relative;
  color:#fff;
  border-top-left-radius: 3px;
}
.year-header span {
  display:inline-block;
  font-size: 20px;
  line-height:40px;
}
.left-button, .right-button {
  cursor: pointer;
  width:28px;
  text-align:center;
  position:absolute;
}
.left-button {
  left:0;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topleft: 5px;
  border-top-left-radius: 5px;
}
.right-button {
  right:0;
  top:0;
  -webkit-border-top-right-radius: 5px;
  -moz-border-radius-topright: 5px;
  border-top-right-radius: 5px;
}
.left-button:hover {
  background: #3FADFF;
}
.right-button:hover {
  background: #00C1FF;
}

/* Buttons */
.button{
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  font-size: 1rem;
  border-radius: 25px;
  padding: 0.65rem 1.9rem;
  transition: .2s ease all;
  color: white;
  border: none;
  box-shadow: -1px 10px 20px #9BC6FD;
  background: #157fc4;
  background: -moz-linear-gradient(left,  #157fc4 0%, #00C9FB 80%, #00C9FB 100%);
  background: -webkit-linear-gradient(left,  #157fc4 0%, #00C9FB 80%, #00C9FB 100%);
  background: linear-gradient(to right,  #157fc4 0%, #00C9FB 80%, #00C9FB 100%);
}
#cancel-button {
  box-shadow: -1px 10px 20px #FF7DAE;
  background: #b5b5b5;
  background: -moz-linear-gradient(left,  #b5b5b5 0%, #FF5D95 80%, #FF5D95 100%);
  background: -webkit-linear-gradient(left,  #b5b5b5 0%, #FF5D95 80%, #FF5D95 100%);
  background: linear-gradient(to right,  #b5b5b5 0%, #FF5D95 80%, #FF5D95 100%);
}
#add-button {
  display: block;
  position: absolute;
  right:20px;
  bottom: 20px;
}
#add-button:hover, #ok-button:hover, #cancel-button:hover {
  transform: scale(1.03);
}
#add-button:active, #ok-button:active, #cancel-button:active {
  transform: translateY(3px) scale(.97);
}

/* Days/months tables */
.days-table, .dates-table, .months-table {
  border-collapse:separate;
  text-align: center;
}
.day {
  height: 26px;
  width: 26px;
  padding: 0 10px;
  line-height: 26px;
  border: 2px solid transparent;
  text-transform:uppercase;
  font-size:90%;
  color:#9e9e9e;
}
.month {
  cursor: default;
  height: 26px;
  width: 26px;
  padding: 0 2px;
  padding-top:10px;
  line-height: 26px;
  text-transform:uppercase;
  font-size: 11px;
  color:#9e9e9e;
  transition: all 250ms;
}
.active-month {
  font-weight: bold;
  font-size: 14px;
  color: #157fc4;
}
.month:hover {
  color: #157fc4;
}

/*  Dates table */
.table-date {
  cursor: default;
  color:#2b2b2b;
  height:26px;
  width: 26px;
  font-size: 15px;
  padding: 10px;
  line-height:26px;
  text-align:center;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 250ms;
}
.table-date:not(.nil):hover {
  border-color: #b5b5b5;
  box-shadow: 0 2px 6px RGB(181, 181, 181);
}
.event-date {
  border-color:#157fc4;
  box-shadow: 0 2px 8px RGBA(130, 180, 255, .9);
}
.active-date{
  background: #b5b5b5;
  box-shadow: 0 2px 8px RGB(181, 181, 181);
  color: #fff;
}
.event-date.active-date {
  background: #157fc4;
  box-shadow: 0 2px 8px RGBA(130, 180, 255, .9);
}

/* input dialog */
.dialog{
  z-index: 5;
  background: #fff;
  position:absolute;
  width:415px;
  height: 500px;
  left:387px;
  border-top-right-radius:3px;
  border-bottom-right-radius: 3px;
  display:none;
  border-left: 1px #aaa solid;
}
.dialog-header {
  margin: 20px;
  color:#333;
  text-align: center;
}
.form-container {
  margin-top:25%;
}
.form-label {
  color:#333;
}
.input {
  border:none;
  background: none;
  border-bottom: 1px #aaa solid;
  display:block;
  margin-bottom:50px;
  width: 200px;
  height: 20px;
  text-align: center;
  transition: border-color 250ms;
}
.input:focus {
  outline:none;
  border-color: #00C9FB;
}
.error-input {
  border-color: #b5b5b5;
}



/* Small phone screens */
@media only screen and (max-width: 400px) {
  .content, .events-container, .year-header, .calendar-container {
    width: 100%;
  }
  .dialog {
    width: 320px;
  }
  .months-table {
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  .event-card {
    width: 100%;
  }
  .day {
    padding: 0 7px;
  }
  .month {
    display: inline-block;
    padding: 10px 10px;
    font-size: .8rem;
  }
  .table-date {
    width: 20px;
    height: 20px;
    line-height: 20px;
  }
  .event-name, .event-count, .event-cancelled {
    font-size: .8rem;
  }
  .add-button{
    bottom: 10px;
    right: 10px;
    padding: 0.5rem 1.5rem;
  }
}
