@font-face {
  url({{ 'myriad-pro.ttf' | asset-url }}) format('truetype');
}

.ad-overlay-container {
  position: fixed;
  top: 20vh;
  left: 0;
  transition: all .3s ease-in-out;
  pointer-events: none;
}

.ad-overlay-close-container {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
}

.ad-overlay-close-button svg {
  height: 0.8em;
  width: 0.8em;
}

.ad-overlay-close-button {
  background: none;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  color: #fff;
}

.ad-overlay-close-button:hover {
  color: #d53224;
}

#sos-ad-overlay-container .ad-overlay-close-button:hover {
  color: #548f40;
}

.ad-overlay-container--hide {
  left: -800px;
}

.ad-overlay-container--show {
  left: 0 !important;
}

.ad-overlay-card {
  position: relative;
  border-radius: 0 1em 1em 0;
  padding: 2em;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
  max-width: 550px;
  pointer-events: auto;
  -webkit-user-drag: none;
}

.ad-overlay-logo {
  position: absolute;
  left: 1em;
  top: 1em;
  width: 2em;
  height: auto;
}

.ad-overlay-card > * {
  z-index: 32;
}

.ad-overlay-card-bg {
  z-index: 31;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.yt-partner-container--show .ad-overlay-card {
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.5),
  0 0 2em 0 rgba(0, 0, 0, 0.5);
}

.ad-overlay-image {
  width: 20em;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.ad-overlay-text {
  text-align: center;
  margin-top: 2em;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.4;
  color: #d1d1d1;
}

#sos-ad-overlay-container .ad-overlay-text {
  color: #fff;
}

#sos-ad-overlay-container .ad-overlay-text {
  font-size: 1em;
}

.ad-overlay-text strong {
  color: #fff;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

.ad-overlay-text strong.ad-overlay-highlight {
  color: #e73324;
}

#sos-ad-overlay-container .ad-overlay-text strong.ad-overlay-highlight {
  color: #335a26;
}

.ad-overlay-link {
  margin-top: 1em;
  padding-bottom: 2em;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
}

.ad-overlay-item-stack {
  flex: 1;
  width: 100%;
  height: 100px;
  flex-shrink: 0;
  position: relative;
}

.ad-overlay-item {
  position: absolute;
  padding: 0.5em 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all .2s ease-in-out;
  pointer-events: auto;
  animation: hovering-on-ground 2s infinite ease-in-out;
  user-select: none;
}

.ad-overlay-item:hover {
  transform: scale(1.05);
}

.ad-overlay-item:nth-child(1) {
  z-index: 1;
  rotate: -5deg;
  background: #313131;
  animation-delay: 0.2s;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);
}

.ad-overlay-item:nth-child(2) {
  z-index: 4;
  rotate: 1deg;
  left: calc(50% - 1em);
  top: 2em;
  background: #4c4c4c;
}

.ad-overlay-item:nth-child(3) {
  z-index: 2;
  right: -0.5em;
  top: 0.25em;
  rotate: 5deg;
  background: #282828;
  animation-delay: 0.4s;
}

#sos-ad-overlay-container .ad-overlay-item:nth-child(1) {
  background: #2b5e25;
}

#sos-ad-overlay-container .ad-overlay-item:nth-child(2) {
  background: #90cd75;
}

#sos-ad-overlay-container .ad-overlay-item:nth-child(3) {
  background: #568d40;
}

.ad-overlay-item img {
  width: 3em;
  height: auto;
}

.ad-overlay-link-icon {
  height: auto;
  width: 4em;
  object-fit: contain;
  user-select: none;
}

#sos-ad-overlay-container .ad-overlay-link-icon {
  width: 5em;
}

.ad-overlay-link-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-overlay-channel-container {
  flex: 1;
  display: block;
}

.ad-overlay-channel-container img {
  transition: all .2s ease-in-out;
  user-select: none;
}

.ad-overlay-channel-container:hover img {
  transform: translateY(-0.2em);
  opacity: 90%;
}

.ad-overlay-channel {
  width: 100%;
  height: auto;
  object-fit: scale-down;
  border-radius: 0.25em;
}

@keyframes hovering-on-ground {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

.ad-side-button-container {
  position: fixed;
  top: calc(20vh + 5em);
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.ad-side-button {
  pointer-events: auto;
  border: none;
  padding: 0.5em 0.5em;
  background: #f30a07;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.75em;
}

.ad-side-button:hover {
  background: #e30c09;
  cursor: pointer;
}

#sos-ad-side-button-container .ad-side-button {
  background: #70B458FF;
}

#sos-ad-side-button-container .ad-side-button:hover {
  background: #7dc863;
  cursor: pointer;
}

.ad-side-button img {
  object-fit: contain;
  width: 2em;
  height: auto;
}

#sos-ad-side-button-container img {
  filter: brightness(10);

}

.sos-ad-side-button-text {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  writing-mode: vertical-rl;
  line-height: 1em;
}

.sos-ad-side-button-text strong {
  letter-spacing: -0.125em;
  font-size: 1.4em;
  font-stretch: ultra-expanded;
  font-weight: 800;
  text-orientation: upright;
}

.sos-ad-side-button-text span {
  font-size: 0.6em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.sos-ad-side-button-text-xs span {
  font-size: 0.4em;
}

.ad-side-button-container--hide {
  display: none !important;
}

.ad-side-button-container--hide {
  display: none;
}

@media only screen and (max-width: 480px) {
  .ad-overlay-container {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.75em;
  }

  .ad-overlay-container--hide {
    left: 0;
    bottom: 0;
    display: none;
  }

  .ad-overlay-card {
    max-width: 100%;
    border-radius: 1em 1em 0 0;
    box-shadow: 0 -0.25em 0.5em 0 rgba(0, 0, 0, 0.3);
  }

  .ad-side-button {
    rotate: 0deg;
  }

  .ad-overlay-logo {
    display: none;
  }

  .ad-overlay-text {
    font-size: 1.1em;
  }

  .ad-side-button-container {
    left: 10vw;
    position: fixed !important;
    top: auto;
    bottom: 0;
  }

  .ad-side-button {
    flex-direction: row;
    padding: 0.25em 0.5em;
    gap: 0.5em;
  }

  .ad-side-button img {
    width: 1.75em;
  }

  .sos-ad-side-button-text {
    writing-mode: horizontal-tb;
    font-size: 0.7em;
    align-items: flex-start;
    line-height: 1.1em;
  }

  .sos-ad-side-button-text strong {
    letter-spacing: 0.125em;
    text-orientation: inherit;
    font-size: 0.9em;
    font-weight: 500;
  }

  .sos-ad-side-button-text span {
    font-size: 0.75em;
    font-weight: 500;
  }

  #youtube-ad-side-button-container .ad-side-button {
    padding: 0.4em 0.5em
  }
}

.ad-side-button-container, .ad-overlay-container {
  font-family: "Myriad Pro", sans-serif;
}

.lang-variant {
  display: none;
}

.lang-variant .lang-variant--active {
  display: inherit;
}