﻿html, body {
  width: 100%;
  height: 100%; }

body {
  font-size: 17px;
  background-color: black; }
  
.grid {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 100%;
  overflow: hidden;
   }
  .grid li {
    height: 15em;
    color: white;
    display: block;
    cursor: pointer;
    position: relative;
    margin: 5px;
    z-index: 0;
    background-color: black;
    box-shadow: none; }
        
    .grid li.open {
      z-index: 10; 
      }
      
      .grid li:hover .item-bg {
        -webkit-transform: scale(1.05);
        -moz-transform: scale(1.05);
        -ms-transform: scale(1.05);
        -o-transform: scale(1.05);
        transform: scale(1.05); }
        
      .grid li:hover .item-name h1 {
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
        -webkit-transition-delay: 0s;
        -moz-transition-delay: 0s;
        transition-delay: 0s; }
      .grid li:hover .item-name p {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
        -webkit-transition-delay: 0.1s;
        -moz-transition-delay: 0.1s;
        transition-delay: 0.1s; }
  .grid .item-bg {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    position: absolute;
    top: 0px;
    left: 0px;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s; }
  .grid .item-name {
    display: table;
    width: 100%;
    height: 100%;
    text-align: center; }
  .grid .item-name-inner {
    display: table-cell;
    vertical-align: bottom; }
        
    .grid .item-name-inner h1 {
      -webkit-transition: all 0.2s 0.05s;
      -moz-transition: all 0.2s 0.05s;
      transition: all 0.2s 0.05s;
      -webkit-transform: translate(0, 25px);
      -moz-transform: translate(0, 25px);
      -ms-transform: translate(0, 25px);
      -o-transform: translate(0, 25px);
      transform: translate(0, 25px); }
      .grid .item-name-inner h1 small {
        display: block;
        text-transform: uppercase;
        color: white;
        font-size: 14px;
        margin-bottom: 15px;
        font-weight: 400;
        letter-spacing: 0.05em; }
      .grid .item-name-inner h1 b {
        display: block;
        margin-bottom: 30px;
        font-size: 30px;
        font-weight: 200;
        background-color:rgba(0, 0, 0, 0.5);
        border-radius: 4px;}

    .grid .item-name-inner p {
      font-size: 2em;
      font-weight: 200;
      border-bottom: 2px solid white;
      display: inline-block;
       margin-bottom:90px;
      letter-spacing: 0.05em;
      opacity: 0;
      -webkit-transition: all 0.2s 0s;
      -moz-transition: all 0.2s 0s;
      transition: all 0.2s 0s;
      -webkit-transform: translate(0, 25px);
      -moz-transform: translate(0, 25px);
      -ms-transform: translate(0, 25px);
      -o-transform: translate(0, 25px);
      transform: translate(0, 25px);
      color:#800000; }
  .grid .item-overlay {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
    z-index: -1;
    z-index:9999;
    background-size: cover !important;
    pointer-events: none;
    cursor: default;
    overflow: auto;
    -webkit-overflow-scrolling: touch; }

  .grid .item-content {
  hideheader: true;
 	width:100%;
    margin: 0 auto;
    padding: 80px 60px 60px; }
    .grid .item-content h2 {
      font-size: 80px;
      margin-bottom: 50px;
      margin-top: 0;
      font-weight: 200; }
    .grid .item-content p {
      margin-bottom: 25px; }
    .grid .item-content .image {
      display: block;
      margin: -90px -80px 3px;
      float:right; }
      .grid .item-content .image img {
        width: 100%; }
  .grid .close {
    cursor: pointer;
    z-index: 1000;
    text-shadow: none;
    color: white;
    font-weight: 100;
    font-size: 90px;
    opacity: 0.7;
    position: fixed;
    top: 100px;
    right: 60px; }
    .grid .close:hover {
      opacity: 1; }
   
   .mi{
 width:50%;
 height:50%;
}
    
.grid li:nth-child(1) .item-content { background: #3399CC; }
.grid li:nth-child(2) .item-content { background: #2D87B4; }
.grid li:nth-child(3) .item-content { background: #33CCCC; }
.grid li:nth-child(5) .item-content { background: #2DB4B4; }
.grid li:nth-child(7) .item-content { background: #996699; }
.grid li:nth-child(8) .item-content { background: #B83D3D; }
.grid li:nth-child(9) .item-content { background: #3399CC; }
.grid li:nth-child(10) .item-content { background: #3399CC; }
.grid li:nth-child(11) .item-content { background: #3399CC; }
.grid li:nth-child(13) .item-content { background: #3399CC; }
.grid li:nth-child(14) .item-content { background: #3399CC; }
.grid li:nth-child(15) .item-content { background: #3399CC; }
.grid li:nth-child(16) .item-content { background: #3399CC; }
.grid li:nth-child(17) .item-content { background: #3399CC; }
.grid li:nth-child(18) .item-content { background: #3399CC; }
.grid li:nth-child(19) .item-content { background: #3399CC; }
.grid li:nth-child(20) .item-content { background: #3399CC; }
.grid li:nth-child(21) .item-content { background: #3399CC; }
.grid li:nth-child(22) .item-content { background: #3399CC; }
.grid li:nth-child(23) .item-content { background: #3399CC; }
.grid li:nth-child(25) .item-content { background: #3399CC; }
.grid li:nth-child(26) .item-content { background: #3399CC; }
.grid li:nth-child(27) .item-content { background: #3399CC; }
.grid li:nth-child(28) .item-content { background: #3399CC; }
.grid li:nth-child(29) .item-content { background: #3399CC; }
.grid li:nth-child(30) .item-content { background: #3399CC; }
.grid li:nth-child(31) .item-content { background: #3399CC; }
.grid li:nth-child(32) .item-content { background: #3399CC; }

.grid li:nth-child(1) .item-bg, .grid li:nth-child(1) .item-overlay { background: #47d1d1 url('../img/eba200.png') no-repeat center ; }
.grid li:nth-child(2) .item-bg, .grid li:nth-child(2) .item-overlay { background: #47d1d1 url('../img/eba270.png') no-repeat center ;}
.grid li:nth-child(3) .item-bg, .grid li:nth-child(3) .item-overlay {background: #47d1d1 url('../img/eba280.png') no-repeat center ;  }
.grid li:nth-child(5) .item-bg, .grid li:nth-child(5) .item-overlay { background: #5bd6d6 url('../img/haematokrit.png') no-repeat scroll left center ; }
.grid li:nth-child(7) .item-bg, .grid li:nth-child(7) .item-overlay { background: #2db7b7 url('../img/mikro185.png') no-repeat center ;}
.grid li:nth-child(8) .item-bg, .grid li:nth-child(8) .item-overlay { background: #33CCCC url('../img/mikro200.png') no-repeat center ;  }
.grid li:nth-child(9) .item-bg, .grid li:nth-child(9) .item-overlay { background: #47d1d1 url('../img/mikro200r.png') no-repeat center ; }
.grid li:nth-child(10) .item-bg, .grid li:nth-child(10) .item-overlay { background: #5bd6d6 url('../img/mikro220.png') no-repeat center ; }
.grid li:nth-child(11) .item-bg, .grid li:nth-child(11) .item-overlay { background: #6bdada url('../img/mikro220r.png') no-repeat center ; }
.grid li:nth-child(13) .item-bg, .grid li:nth-child(13) .item-overlay { background: #2db7b7 url('../img/rotofix_a.png') no-repeat center ; }
.grid li:nth-child(14) .item-bg, .grid li:nth-child(14) .item-overlay { background: #2db7b7 url('../img/universal_a.png') no-repeat center ; }
.grid li:nth-child(15) .item-bg, .grid li:nth-child(15) .item-overlay { background: #2db7b7 url('../img/universal_b.png') no-repeat center ; }
.grid li:nth-child(16) .item-bg, .grid li:nth-child(16) .item-overlay { background: #2db7b7 url('../img/rotina_a.png') no-repeat center ; }
.grid li:nth-child(17) .item-bg, .grid li:nth-child(17) .item-overlay { background: #2db7b7 url('../img/rotina_b.png') no-repeat center ; }
.grid li:nth-child(18) .item-bg, .grid li:nth-child(18) .item-overlay { background: #2db7b7 url('../img/rotina_c.png') no-repeat center ; }
.grid li:nth-child(19) .item-bg, .grid li:nth-child(19) .item-overlay { background: #2db7b7 url('../img/rotina_d.png') no-repeat center ; }
.grid li:nth-child(20) .item-bg, .grid li:nth-child(20) .item-overlay { background: #2db7b7 url('../img/rotina_e.png') no-repeat center ; }
.grid li:nth-child(21) .item-bg, .grid li:nth-child(21) .item-overlay { background: #2db7b7 url('../img/rotina_f.png') no-repeat center ;  }
.grid li:nth-child(22) .item-bg, .grid li:nth-child(22) .item-overlay { background: #2db7b7 url('../img/rotofix_b.png') no-repeat center  ; }
.grid li:nth-child(23) .item-bg, .grid li:nth-child(23) .item-overlay { background: #2db7b7 url('../img/rotofix_c.png') no-repeat  center ; }
.grid li:nth-child(25) .item-bg, .grid li:nth-child(25) .item-overlay { background: #5bd6d6 url('../img/rotanta_a.png') no-repeat center  ; }
.grid li:nth-child(26) .item-bg, .grid li:nth-child(26) .item-overlay { background: #5bd6d6 url('../img/rotanta_b.png') no-repeat center  ;   }
.grid li:nth-child(27) .item-bg, .grid li:nth-child(27) .item-overlay { background: #5bd6d6 url('../img/rotanta_c.png') no-repeat center  ;  }
.grid li:nth-child(28) .item-bg, .grid li:nth-child(28) .item-overlay { background: #5bd6d6 url('../img/rotanta_d.png') no-repeat center  ;  }
.grid li:nth-child(29) .item-bg, .grid li:nth-child(29) .item-overlay { background: #5bd6d6 url('../img/rotanta_e.png') no-repeat center  ;  }
.grid li:nth-child(31) .item-bg, .grid li:nth-child(31) .item-overlay { background: #8ce2e2 url('../img/rotolavit.png')  no-repeat center ; }

@media (max-width: 992px) {
  .grid .item-content {
    padding: 40px;}
    .grid .item-content .image {
      margin-left: 0;
      margin-right: 0; } }
@media (max-width: 768px) {
  .grid .item-content {
  width:100%;      
    padding: 40px 30px; }
    .grid .item-content h2 {
      font-size: 50px;        top: 100px;
      margin-bottom: 30px;
      margin-top: 50px;
      font-weight: 200; }
    .grid .item-content .image {
      margin: 30px 0; }
  .grid .close {
    font-size: 50px;
    top: 100px;
    right: 60px;
    font-weight: 200; } }
