* {
  box-sizing: border-box;
}

/* force scrollbar */

html {
  overflow-y: scroll;
}

body {
  font-family: sans-serif;
}

#happyTailsTitle {
  text-align: center;
  margin-bottom: 10px;
}

.carousel-inner>.item>img {
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-inner>.item {
  background-color: black;
}

.carousel {
  width: 300px;
  height: 300px;
}

.carousel-caption {
  background: #fff;
  height: 30%;
  width: 100%;
  opacity: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  padding: 0;
  transition: opacity .5s;
  padding-top: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: black;
}

.carousel-caption:hover {
  opacity: 1;
  transition: opacity .5s;
}

.errortext {
  color: red;
  font-size: 16px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

/* ---- grid ---- */

.grid {
  background: #FFF;
}

/* clear fix */

.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 20%;
}

.grid-item {
  float: left;
  position: relative;
  overflow: hidden;
}

.grid-item:hover img {
  -webkit-transform: scale(1.1, 1.1);
  -moz-transform: scale(1.1, 1.1);
  transform: scale(1.1, 1.1);
}

.grid-item img {
  display: block;
  max-width: 100%;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.grid-item-overlay {
  background: #fff;
  height: 100%;
  width: 100%;
  opacity: 0;
  top: 0;
  left: 0;
  position: absolute;
  padding: 0;
  transition: opacity .5s;
  padding-top: 20%;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
}

.grid-item-overlay:hover {
  opacity: .7;
  transition: opacity .5s;
}

#loading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#numResultsDiv {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.redError {
  color: red;
  font-size: 14px;
  font-style: italic;
}

#selectTitleDiv > div{
  text-align: center;
  padding-left: 3px;
}

@media screen and (min-width: 480px) {
  .grid-item-overlay {
    font-size: 14px;
  }
}

@media screen and (min-width: 800px) {
  .grid-item-overlay {
    font-size: 18px;
  }
}
