@charset "utf-8";
/* CSS Document */

.accHorizontal {
  max-width: 100%;
  overflow: hidden !important;
  padding: 80px 0;
  background-color: #f8f8f8;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row nowrap;
	-ms-flex-flow: row nowrap;

	justify-content: center;
	-webkit-justify-content: center;
  
  .accHorizontal__item {
    margin: 0 20px;
    position: relative;

		-webkit-flex: 1 0 250;
		flex: 1 0 250;
    
    .acc_cBox {
      width: 250px;
      overflow: hidden;
      position: relative;
      
      -webkit-transition: width 0.3s ease;
      -moz-transition: width 0.3s ease;
      transition: width 0.3s ease;
      
      .acc_cImg {
        width: 250px;
        float: left;
        margin-right: 20px;
        position: relative;
        
        -webkit-transition: background 0.3s ease;
        -moz-transition: background 0.3s ease;
        transition: background 0.3s ease;
        
        img {
          width: 100%;
          margin-bottom: 10px;
        }
        
        header {
          color: #aeaeae;
          font-size: 16px;
          font-family: "Roboto";
          padding: 25px 20px;
          border: 1px solid #e0e0e0;
          background-color: #fcfcfc;
          -webkit-transition: all .3s ease-in;
          transition: all .3s ease-in;
          
          h3 {
            margin-bottom: 3px;
            text-transform: uppercase;
          }
          
          p { margin: 0; }
        }
      }
      
      .acc_cCont {
        width: 490px;
        max-height: 396px;
        margin-left: 260px;
        padding: 20px;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.1);
      }
    }
    
    .state {
      position: absolute;
      top: -1000vh;
      left: 0;
      display: none; // removes jumps to top onclick
    }
    
    .backdrop {
      position: absolute;
      z-index: 3;
      margin: 0;
      padding: 0;
      width: 250px;
      height: 100%;
      
      > .fa {
        z-index: 4;
        display: block;
        opacity: 0;
        content: "";
        position: absolute;
        margin: 0 0 0 -30px;
        left: 50%;
        top: 25%;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        color: #fff;
        text-align: center;
        line-height: 60px;
        background-color: rgba(0,194,169, .8);
        
        -webkit-transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        -moz-transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        
        animation: example 5s linear 2s infinite alternate;
        
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        
        &:before {
          font-size: 28px;
        }
      }
          
      &:hover {
        > .fa {
          opacity: 1;
        }
      }
    }
    
    .state:checked ~ .backdrop:hover > .fa {
      -webkit-transform: rotate(0);
      -moz-transform: rotate(0);
      -ms-transform: rotate(0);
      -o-transform: rotate(0);
      transform: rotate(0);
    }

    .state:checked ~ .acc_cBox {
      width: 750px;
    }

    .backdrop:hover ~ .acc_cBox > .acc_cImg > header,
    .state:checked ~ .acc_cBox > .acc_cImg > header {
      background-color: rgba(0,194,169, .8);

      h3, p {
        color: #fff;
      }
    }
  
  }
}


/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
  
  .accHorizontal {
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    
    .accHorizontal__item {
			margin-bottom: 20px;
      
      .acc_cBox {
        max-height: 400px;
        margin: auto;
        -webkit-transition: max-height 0.5s ease-in-out;
        -moz-transition: max-height 0.5s ease-in-out;
        transition: max-height 0.5s ease-in-out;
        
        .acc_cImg {
          float: none;
          margin: auto;
          margin-bottom: 20px;
        }
        
        .acc_cCont {
          width: 250px;
          margin: auto;
          min-height: auto;
          max-height: none;
        }
      }
      
      .state:checked ~ .acc_cBox {
        width: inherit;
				max-height: 2000px;
      }
      
      .backdrop { width: 100%; }
      
      .backdrop > .fa { top: 110px; }
      
		}
	}
}

