/* -------------------------------------
 * Set to false if you are not using Chrome
 * ------------------------------------- */
/* -------------------------------------
 * Styles
 * ------------------------------------- */
 @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
 body {
  background-color: #ffffff;
  line-height: 24px;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  visibility: visible;
  font-family: "Work Sans", sans-serif;
  position: relative;
  overflow-y: scroll !important;
  padding: 10px;
  }
 
 h2, #note {
   margin: 0; }
 
 #timeline {
   margin-top: 35rem;
   padding: 0;
   border-top: 8px solid #4a4a4a;
   list-style: none;
   display: flex; }
   #timeline li {
     padding-top: 30px;
     position: relative;
     flex: 1;
     transition: all 0.4s ease-in-out; }
     #timeline li:hover {
       padding-bottom: 80px;
       flex: 2; }
       #timeline li:hover label {
         opacity: 1;
         transform: translateY(10px); }
 
 label {
   max-width: 200px;
   margin: 0 auto;
   padding: 5px 10px;
   border-width: 2px;
   border-style: solid;
   border-color: #000000;
   border-radius: 5px;
   position: absolute;
   left: 0;
   right: 0;
   cursor: pointer;
   opacity: 0;
   transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out; }
   label:before, label:after {
     content: "";
     width: 0;
     height: 0;
     border: solid transparent;
     position: absolute;
     bottom: 100%;
     pointer-events: none; }
   label:before {
     border-bottom-color: #000000;
     border-width: 15px;
     left: 52%;
     margin-left: -15px; }
   label:after {
     border-bottom-color: #000000;
     border-width: 12px;
     left: 52%;
     margin-left: -12px; }
   label span {
     text-align: center;
     white-space: nowrap;
     text-overflow: ellipsis;
     overflow: hidden;
     display: block; }
 
 .date {
   width: 100%;
   padding-bottom: 30px;
   text-align: center;
   position: absolute;
   top: -60px;
   display: block; }
 
 .circle {
   width: 10px;
   height: 10px;
   margin-left: -5px;
   background: #d4d4d4;
   border: 5px solid #000000;
   border-radius: 50%;
   position: absolute;
   top: -14px;
   left: 50%; }
 
 .content {
   width: 800px;
   height: 240px;
   margin: 0 auto;
   border: 2px solid #b7b7b7;
   border-radius: 8px;
   position: fixed;
   top: 200px;
   left: 0;
   right: 0;
   z-index: 100;
   background: #ffffff;
   transform: perspective(1000px) rotateY(20deg);
   animation: switching_back 0.8s; }
   .content h3, .content p {
     margin: 0 20px 10px;
     text-align: justify;
     opacity: 0; }
   .content h3 {
     margin-top: 20px;
    color: black; }
 
 .radio {
   display: none; }
 
 .radio:checked + label {
   opacity: 1;
   transform: translateY(10px);
   transition: opacity 0.4s ease-in-out 0.25s, transform 0.3s ease-in-out 0.25s; }
 
 .radio:checked ~ .circle {
   background: rgb(19, 19, 19); }
 
 .radio:checked ~ .content {
   z-index: 999;
   transform: perspective(1000px) rotateY(15deg) translate(40px, 25px);
   animation: switching 1s ease; }
   .radio:checked ~ .content h3, .radio:checked ~ .content p {
     opacity: 1;
     transition: opacity 0.4s ease-in-out 0.4s; }

     /* Media query for tablet (iPad) */
     @media (max-width: 960px){
      body{
          font-size: 16px;
      }
      .content{
          width: 700px;
          margin:50px auto;
          height: 400px;
          justify-content: center;
          align-items: center;
      }
  }


 
     /* Media query for tablet (iPad) */
@media (max-width: 768px){
    body{
        font-size: 14px;
    }
    .content{
        width: 600px;
        margin:50px auto;
        height: 400px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px){
  body{
    font-size: 12px;
  }
  .content{
    width: 300px;
    margin: -30px 30px;
    height: 450px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 280px){
  body{
    font-size: 12px;
  }
  .content{
    width: 200px;
    margin:30px;
    height: 600px;
    justify-content: center;
    align-items: center;
  }
}
 
 @keyframes switching {
   0% {
     transform: perspective(1000px) rotateY(20deg); }
   40% {
     transform: perspective(1000px) rotateY(15deg) translate(100px, 35px); }
   100% {
     transform: perspective(1000px) rotateY(15deg) translate(40px, 25px); } }
 
 @keyframes switching_back {
   0% {
     transform: perspective(1000px) rotateY(15deg) translate(40px, 25px);
     z-index: 200; }
   40% {
     transform: perspective(1000px) rotateY(15deg) translate(0px, 0px) scale(1.08); }
   100% {
     transform: perspective(1000px) rotateY(20deg);
     z-index: 100; } }
 