/*
  AUTO GRID
  Set the minimum item size with `--auto-grid-min-size` and you'll
  get a fully responsive grid with no media queries.
*/
.auto-grid {
  --auto-grid-min-size: 11rem;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
  grid-gap: 1rem;
  padding-left:0px;
  margin-top: 0px;
}

.auto-grid li{
  display: block;
}

h1{
  text-align: right;
  font-size: 3rem;
  font-weight: 200;
}

h2{
  font-size: 2rem;
  margin:10px 0;
  font-weight: 200;
}

h3{
  font-size: 1.5rem;
  font-weight: 200;
  margin:0 0 10px 0;
}


/* Presentational styles */

section{
  max-width: 1200px;
  margin:auto;
}

body {
  background: #15cc9c url("icons/logo-white_alfa.png") no-repeat;
  background-size: contain;
  padding: 1rem;
  line-height: 1.4;
  font-family: 'Encode Sans', sans-serif;
  color:white;
  font-weight: 300;
}

li {
  /*padding: 5rem 1rem;*/
  text-align: center;
  font-size: 1rem;
  color: black;
  background: #929c9a5e;
}

li a{
  display: inline-block;
  width: 100%;
  height: 150px;
  vertical-align: bottom;
  color: white;
  text-decoration: none;
  //border-top: 1px white solid;
  position: relative;
}

li a span{
  position: absolute;
  bottom: 10px;
  margin: auto;
  display: block;
  width: 100%;
}

li a:hover{
  background-color: #32997F;
}

.flex-box{
  display: flex;
  flex-wrap: nowrap;
}

.box-content{
  width: 100%;
}
.act-content{
  width: 29%;
  margin-left: 1%;
  //border-top: 1px white solid;
visibility: hidden;
}
.intranet{
  display: block;
  width: 83%;
  height: 52px;
  //border: 1px white solid;
  text-align: center;
  color: #12cd9c;
  text-decoration: none;
  background: #fff url("icons/lock.svg") 2% center no-repeat;
  background-size: 16%;
  //margin-top: 20px;
  padding-top: 18px;
  padding-left: 15%;
  padding-right:2%;
  font-weight: 400;
  font-size: x-large;
}

.intranet:hover{
  background-color: #32997F;
}

.intranet2{
  background: #fff url("icons/lock.svg") 50% 10% no-repeat;
  background-size: 40%;
  font-weight: 400;
  font-size: x-large;
  text-align: center;
  color: #12cd9c;
  text-decoration: none;
}

.intranet2:hover{
  background-color: #32997F;
}

.act-content p{
  text-align: justify;
}

.act-content img{
  width: 100%;
}

.act-content h3 a{
  color: white;
  text-decoration: none;
}

.act-content h3 a:hover{
  color:#32997F;
}

.nakup{
  background: url("icons/nakup.svg") center 40% no-repeat;
}

.info{
  background: url("icons/teacher.svg") center 40% no-repeat;
}

.calendar{
  background: url("icons/calendar - kopie.svg") center 40% no-repeat;
}

.change{
  background: url("icons/change - kopie.svg") center 40% no-repeat;
}

.food{
  background: url("icons/dinner.svg") center 40% no-repeat;
}

.mail{
  background: url("icons/mail - kopie.svg") center 40% no-repeat;
}

.cloud{
  background: url("icons/cloud - kopie.svg") center 40% no-repeat;
}

.reservation{
  background: url("icons/booking.svg") center 40% no-repeat;
}

.blocked{
  background: url("icons/mortarboard.svg") center 40% no-repeat;
}

.office{
  background: url("icons/microsoft.svg") center 40% no-repeat;
}

.print{
  background: url("icons/print - kopie.svg") center 40% no-repeat;
}

.crm{
  background: url("icons/process.svg") center 40% no-repeat;
}

.kontakt{
  background: url("icons/contact.svg") center 40% no-repeat;
}

.rada{
  background: url("icons/rada.svg") center 40% no-repeat;
}

.dm{
  background: url("icons/dm.svg") center 40% no-repeat;
}

.idm{
  background: url("icons/idm.svg") center 40% no-repeat;
}

.zmeny{
  background: url("icons/zmeny.svg") center 40% no-repeat;
}

.gym{
  background: url("icons/gym.svg") center 40% no-repeat;
}

.student{
  background: url("icons/student.svg") center 40% no-repeat;
}

.book{
  background: url("icons/book.svg") center 40% no-repeat;
}

.size_icon{
  background-size: 30%;
}

@media only screen and (max-width: 800px) {
  .box-content{
    width: 100%;
  }
  .act-content{
    width: 100%;
    margin-left: 0%;
  }

  .flex-box{
    flex-wrap: wrap;
  }

  h1{
    font-size: 2.3rem;
  }
}

@media only screen and (max-width: 420px) {
  .size_icon {
    background-size: 20%;
  }
  
  h1{
    text-align: center;
  }

  li {
  font-size: 1.2rem;
  background: none;
  }

  li a {
  border-top: 1px white solid;
  }

.auto-grid {
  grid-gap: 0rem;
  }

.intranet2{
  background: #fff url("icons/lock.svg") 50% 25% no-repeat;
  background-size: 30%;
  font-size: large;
  }

}
