/*
Theme Name: MWB Affiliates - Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.login h1 a {
  background-size: 100% !important;
}

body {
  background: url('/wp-content/themes/flatsome-child/img/baseball-field-bg-dark.jpg');
  background-position: top;
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: #000;
}

.header-wrapper.stuck {
  box-shadow: none;
  background: rgba(0,0,0,0.8);
}

#wrapper, #main {
  background-color: transparent;
}

#content {
  padding-top: 60px;
  padding-bottom: 60px;
  letter-spacing: 0.04ch;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  margin-bottom: 1em;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.4rem;
}

label {
  color: #fff !important;
}

#affwp-affiliate-dashboard {
  background: rgba(0,0,0,0.7);
  padding: 8%;
}

table.affwp-table td, .tickLabel {
  color: #fff !important;
}

/* INFLUENCER PAGES */
.influencer-info {
  font-size: 1.15rem;
}

.influencer-info span {
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.yellow {
  display: inline !important;
  color: #dbbe5b;
}

.influencer-info span:last-of-type {
  margin-bottom: 0.2em;
}

.influencer-info span strong {
  padding-right: 0.4em;
}

.influencer-info .social-links a {
  transition: all 0.2s ease-in-out;
  margin-right: 0.8rem;
  display: inline-block;
}

.influencer-info .social-links a:hover {
  transform: scale(1.15);
}

.influencer-info .social-links svg {
  height: 1.3rem;
  width: 1.3rem;
  object-fit: contain;
  fill: #fff;
  transform: scale(1.2);
  position: relative;
  top: 2px;
}

.influencer-info .social-links a:hover svg * {
  fill: #dbbe5b;
}

.referral-link {
  display: block;
  margin: 1rem;
  text-align: center;
  font-size: 0.8rem;
  word-break: break-all;
}

.influencer-gallery {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.influencer-gallery .box-image {
  width: 200px;
}

.influencer-gallery img {
  object-fit: contain;
}

#other-influencers {
  padding: 80px 0 0 0;
}

.influencers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.influencers-grid:first-of-type {
  margin-bottom: 120px;
}

.influencer-tile {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: 100%;
  position: relative;
}

.influencer-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  opacity: 0;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.influencer-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 1;
  transition: all 0.2s ease-in-out;
}

.influencer-tile-text {
  text-align: center;
  position: absolute;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.influencer-tile-text h3 {
  margin-bottom: 0.6rem;
}

.influencer-tile-text span {
  display: block;
}

.influencer-tile:hover {
  color: #fff;
}

.influencer-tile:hover .influencer-tile-img {
  opacity: 0;
}

.influencer-tile:hover.influencer-tile::before {
  opacity: 75%;
}

.influencer-tile:hover .influencer-tile-text {
  opacity: 1;
}

.influencer-tile-text-mobile {
  display: none;
}

/* FOOTER */
.copyright-footer {
  color: #fff;
}

.copyright-footer a {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .influencer-tile-text-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .influencer-tile-text-mobile .influencer-tile-text {
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
    opacity: 1;
    position: static;
    color: #fff;
  }

  .influencer-tile-text-mobile .influencer-tile-text h3 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
  }

  .influencer-tile:hover .influencer-tile-text, .influencer-tile:hover.influencer-tile::before {
    display: none;
  }

  .influencer-tile:hover .influencer-tile-img {
    opacity: 1;
  }
}
