@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #666;
  background-color: #f6f6f6;
  font: 1em/1 'Open Sans', sans-serif;
}

a {
  text-decoration: none;
}

.containerr {
  position: absolute;
  left: calc(50% - 400px);
  width: 800px;
  margin: 60px auto;
}

.year {
  margin: 0 0 8px;
  color:#09F;
  text-align: center;
  font-size: 4em;
}

.description {
  margin: 0 0 14px;
  color: #acc2c2;
  text-align: center;
  font-size: 2em;
}
.acikla {
  margin: 0 0 44px;
  color:#09F;
  text-align: center;
  font-size: 0.8em;
}

ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  width: 740px;
  margin: -14px auto -14px;
  padding: 0;
  list-style: none;
}

/* Safari/iOS fix: Adjusting both z-index and transform on <article>
   causes text anti-aliasing to die within subsequent <article>
   elements during the transition. Moving z-index to the parent <li>
   fixes this. */
li {
  position: relative;
  z-index: 1;
  width: 25%;
  height: 160px;
  -webkit-transition: z-index;
          transition: z-index;
  -webkit-transition-delay: .4s;
          transition-delay: .4s;
}

article {
  position: absolute;
  top: 50%;
  left: 50%;
  border-bottom: 8px solid #dfe7e7;
  background-color: #fff;
  cursor: pointer;
  -webkit-transform: translate(-50%, -50%) scale(.25);
      -ms-transform: translate(-50%, -50%) scale(.25);
          transform: translate(-50%, -50%) scale(.25);
  -webkit-transition: -webkit-transform .4s;
          transition: transform .4s;
}

/* Firefox fix: The outline style stretches to include absolutely
   positioned child elements (in this case, the offset dismiss
   button). This looks weird. The fix is to have a <div> with no
   child elements, position it to have the same edges as <article>,
   and apply the outline style there. */
.outline {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -8px;
  left: 0;
  right: 0;
}

article:focus {
  outline: none;
}

article:focus .outline {
  outline: 4px solid #dab08c;
}

.dismiss {
  display: block;
  opacity: 0;
  position: absolute;
  top: -28px;
  right: -28px;
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background-color: #666;
  cursor: pointer;
  -webkit-transition: opacity .4s;
          transition: opacity .4s;
}

.dismiss::before {
  content: '\f00d';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  font: 1.7em/1 'FontAwesome';
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.binding {
  height: 40px;
  background-color: #dab08c;
}

.binding::before,
.binding::after {
  content: '';
  display: block;
  position: absolute;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
}

.binding::before {
  left: 25%;
}

.binding::after {
  right: 25%;
}

article h1 {
  height: 52px;
  margin: 16px;
  text-align: center;
  font-size: 3.2em;
}

table {
  width: 592px;
  margin: 16px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

th {
  position: relative;
  width: 80px;
  height: 32px;
  padding: 0 0 12px;
  text-align: center;
}

th::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 20px;
  background-color: #acc2c2;
  -webkit-transition: opacity .4s;
          transition: opacity .4s;
}

td {
  position: relative;
  width: 80px;
  height: 64px;
  padding: 4px;
  vertical-align: top;
  background-color: #dfe7e7;
}

td:empty {
  background-color: transparent;
}

.is-holiday {
  color: #fff;
  background-color: #548383;
}

.day {
  opacity: 0;
  font-size: 1.1em;
  font-weight: bold;
  -webkit-transition: opacity .4s;
          transition: opacity .4s;
}

.split {
  position: absolute;
  bottom: 4px;
  right: 4px;
}

.holiday {
  opacity: 0;
  margin-top: 8px;
  font-size: .7em;
  -webkit-transition: opacity .4s;
          transition: opacity .4s;
}

.notes {
  width: 708px;
  margin: 64px auto 0;
  color: #548383;
  line-height: 1.8;
}

.inactive {
  pointer-events: none;
}

/* Chrome/Safari/iOS fix: Bumping up the z-index from the start of
   the expand animation until the end of the shrink animation
   prevents unnecessary repaints on subsequent <article> elements. */
.active {
  z-index: 2;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

.active article {
  cursor: auto;
  -webkit-transform: translate(-50%, -50%) scale(1);
      -ms-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}

li:nth-child(4n+1).active article {
  -webkit-transform: translate(calc(-50% + 220px), -50%) scale(1);
      -ms-transform: translate(calc(-50% + 220px), -50%) scale(1);
          transform: translate(calc(-50% + 220px), -50%) scale(1);
}
li:nth-child(4n+2).active article {
  -webkit-transform: translate(calc(-50% + 36px), -50%) scale(1);
      -ms-transform: translate(calc(-50% + 36px), -50%) scale(1);
          transform: translate(calc(-50% + 36px), -50%) scale(1);
}
li:nth-child(4n+3).active article {
  -webkit-transform: translate(calc(-50% - 36px), -50%) scale(1);
      -ms-transform: translate(calc(-50% - 36px), -50%) scale(1);
          transform: translate(calc(-50% - 36px), -50%) scale(1);
}
li:nth-child(4n+4).active article {
  -webkit-transform: translate(calc(-50% - 220px), -50%) scale(1);
      -ms-transform: translate(calc(-50% - 220px), -50%) scale(1);
          transform: translate(calc(-50% - 220px), -50%) scale(1);
}

.active .dismiss,
.active .day,
.active .holiday {
  opacity: 1;
}

/* Chrome/Safari/iOS fix: The centered "Sun" text jumps to the right
   when the transition ends. Oddly enough, setting text-indent to 0%
   prevents this. */
.active th {
  text-indent: 0%;
}

.active th::after {
  opacity: 0;
}
