/* If Image does not load, apply this image : https://stackoverflow.com/a/980948 */
img:before {
  content: " ";
  display: block;
  position: absolute;
  height: 256px;
  width: 256px;
  background-image: url(../assets/img/error-keymoji.png);
}

body {
  margin: 0;
  font-family: "Josefin Sans";
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #FFFFFF;
  background-color: #3870FB;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.blur-nsfw {
  -webkit-filter: blur(10px);
  filter: blur(10px);
}

.navbar-brand img {
    width: 150px;
    height: auto;
    max-height: 100%;
    margin-left: 0px;
    margin-top: 0px;
}

/* In desktop view, overflow-y: scroll is required to add elements at the bottom*/
.gridparent {
  overflow-y: scroll;
  min-height: 500px;
}

/* reveal grid after images loaded */
.grid.are-images-unloaded {
  opacity: 0;
}

.grid__item,
.grid__col-sizer {
  width: 20%;
  display: inline-block;
}

.grid__gutter-sizer {
  width: 40px;
}

/* hide by default */
.grid.are-images-unloaded .image-grid__item {
  opacity: 0;
}

.grid__item {
  margin-bottom: 20px;
  width: calc(100% / 2);
  max-width: calc(100% / 2);
}
.grid__item .card {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.23);
  border-radius: 8px;
  border: 0;
  overflow: hidden;
  background: #E3E9FF !important;
}
.grid__item img {
  display: block;
  max-width: 100%;
}

.grid__item .card-footer {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #192abb;
  border-radius: 4px;
  border: 0;
  padding: 0.1rem 0.2rem;
}
.grid__item .card-footer-green {
  background-color: #adff2f !important;
}
.grid__item .card-footer-green .card-text-price {
  color: #192abb;
}

.grid__item .card-footer h6 {
  color: #fff;
}
.grid__item .card-title {
  font-size: 15px;
  color: #262626;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 90%;
  white-space: normal;
}

/* Page Load Animation Start */
.page-load-status {
  display: none; /* hidden by default */
  padding-top: 20px;
  border-top: 1px solid #ffffff;
  text-align: center;
  color: #90ee90;
}

.loader-ellips {
  font-size: 20px; /* change size here */
  position: relative;
  width: 4em;
  height: 1em;
  margin: 10px auto;
}

.loader-ellips__dot {
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background: #90ee90; /* change color here */
  position: absolute;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
  left: 0;
}
.loader-ellips__dot:nth-child(3) {
  left: 1.5em;
}
.loader-ellips__dot:nth-child(4) {
  left: 3em;
}

@keyframes reveal {
  from {
    transform: scale(0.001);
  }
  to {
    transform: scale(1);
  }
}

@keyframes slide {
  to {
    transform: translateX(1.5em);
  }
}

.loader-ellips__dot:nth-child(1) {
  animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
  animation-name: slide;
}

.loader-ellips__dot:nth-child(4) {
  animation-name: reveal;
  animation-direction: reverse;
}
/* Page Load Animation End */
.card-text-price {
  font-size: 0.7rem;
}

.box {
  /* background-color: white; */
  background: #4c7ffc !important;
  border-radius: 15px;
}

.box-label {
  background-color: #4c7ffc;
  color: #ffffff;
  border-radius: 15px;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
  border: 1px solid #192abb;
  background: #90ee90;
  border-radius: 10px;
}
.ui-slider-horizontal {
  height: 0.4em;
}
.ui-widget-header {
  background: #192abb;
}
.ui-slider-horizontal .ui-slider-handle {
  top: -0.5em;
  margin-left: -0.6em;
}

/*Card Hover styles*/

.card {
  transition: 0.4s ease-out;
}
.card:hover {
  transform: translateY(10px);
}
.card:hover:before {
  opacity: 0.9;
}
.card:hover .info {
  opacity: 1;
  transform: translateY(0px);
}
.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #90ee90;
  z-index: 2;
  transition: 0.5s;
  opacity: 0;
}
.cardFree:before {
  background: rgba(57, 112, 253, 0.9);
}

.card .info {
  position: absolute;
  z-index: 3;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.5s;
  width: 100%;
  height: 100%;
}
.card .info h1 {
  margin: 0px;
}
.card .info p {
  letter-spacing: 1px;
  font-size: 15px;
  margin-top: 8px;
}
.card .info button {
  padding: 0.6rem;
  outline: none;
  border: none;
  border-radius: 3px;
  background: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s ease;
}
.card .info button:hover {
  background: dodgerblue;
  color: white;
}

.nsfw {
  background: rgba(219, 3, 3, 0.13);
  border: 1px solid rgba(219, 3, 3, 0.13);
  font-size: 12px;
  color: #d10000;
  border-radius: 6px;
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 5px;
}

.customFilterOptions {
  width: 94%;
}

.border-blue,
.border-blue:hover {
  border-color: #192abb;
}
.fontsmall {
  font-size: 14px;
}
@media (min-width: 768px) {
  .grid__item {
    margin-bottom: 20px;
    width: calc(100% / 3);
    max-width: calc(100% / 3);
  }
  .card-text-price {
    font-size: 0.9rem;
  }
  .grid__item .card-footer {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #192abb;
    border-radius: 4px;
    border: 0;
    padding: 0.1rem 0.2rem;
  }
  .nsfw {
    right: 15px;
    top: 15px;
    padding: 3px 5px;
  }
}

@media (min-width: 992px) {
  .gridparent {
    overflow-y: scroll;
    min-height: calc(100vh - 310px);
  }
  .grid__item {
    margin-bottom: 20px;
    width: calc(100% / 4);
    max-width: calc(100% / 4);
  }
}
@media (min-width: 1200px) {
  .grid__item {
    margin-bottom: 20px;
    width: calc(100% / 4);
    max-width: calc(100% / 4);
  }
}
@media (min-width: 1400px) {
  .grid__item {
    margin-bottom: 20px;
    width: calc(100% / 5);
    max-width: calc(100% / 5);
  }
}

.buyBtn {
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff!important;
  border: 1px solid #192abb!important;
  color: #192abb!important;
}

.gradient-bg {
  background: linear-gradient(to right, #192abb, #2539e2);
  border-radius: 10px;
}

.white-text {
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 15px;
}

.white-text-hover:hover {
  color: #84cd84;
}

.heading-keymoji-icon {
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  margin-left: 5px;
}
