.linksContainer {
  
}

.links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-align-content: stretch;
      -ms-flex-line-pack: stretch;
          align-content: stretch;
  padding: 0;
  list-style: none;
}

.links li {
  float: left;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  background-color: #fff;
  border-left: solid 1px #E6E6E6;
  border-top: solid 1px #E6E6E6;
  border-bottom: solid 1px #E6E6E6;
  /*margin: -1px;*/
  padding: 15px 0;
}

.links li a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.links li:last-child {
  border-right: solid 1px #E6E6E6;
}

.links li img {
  width: 80px;
}

.links li:hover{
  background-color: #FFF0F0;
}

#linksText {
    margin-top: 5px;
    color: ##333;
  }
#linksText:hover {
    color: #FF6666;
  }

@media screen and (min-width: 769px) {
  .links li {
    width: calc(100%/6);
/*    height: calc(100%/6);*/
  }
}
@media screen and (min-width: 401px) and (max-width: 768px) {
  .links li {
    width: calc(100%/2);
/*    height: calc(100%/2);*/
    margin-top: -1px;
  }

  .links li a {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
            justify-content: space-around;
  }

  .links li:nth-child(2n) {
    border-right: solid 1px #E6E6E6;
  }

  .links li img {
    width: 60px;
  }

  .links li a p {
    min-width: 140px;
  }

}
@media screen and (max-width: 400px) {
  .links li a {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
            justify-content: space-around;
  }

  .links li {
    width: 100%;
    height: 100%;
    border: solid 1px #E6E6E6;
    margin-top: -1px;
  }

  .links li img {
    width: 40px;
  }

  .links li a p {
    min-width: 180px;
  }
}
