/* -------------------------------- 

File#: _1_text-background-effects
Title: Text Background Effects
Descr: A collection of text backgrounds animated on hover
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}



table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --tm7-color-primary-hsl: 213, 48%, 50%;
  --tm7-color-bg-hsl: 0, 0%, 100%;
  --tm7-color-contrast-high-hsl: 230, 7%, 23%;
  --tm7-color-contrast-higher-hsl: 230, 13%, 9%;
  --tm7-color-contrast-medium-hsl: 225, 4%, 47%;
  --tm7-color-accent-hsl: 342, 89%, 48%;
  --tm7-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --tm7-space-4xs: 0.125rem;
  --tm7-space-md: 1.25rem;
  --tm7-space-sm: 0.75rem;
  --tm7-space-xs: 0.5rem;

  /* typography */
  --tm7-text-md: 1.2rem;
  --tm7-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --tm7-space-4xs: 0.1875rem;
    --tm7-space-md: 2rem;
    --tm7-space-sm: 1.125rem;
    --tm7-space-xs: 0.75rem;

    /* typography */
    --tm7-text-md: 1.5625rem;
    --tm7-text-sm: 1rem;
  }
}

/* component */
.text-bg-fx {
  background-repeat: no-repeat;
  will-change: background-size;
  transition: background-size 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.text-bg-fx:hover {
  background-size: 100% 100%;
}

.text-bg-fx--scale-x {
  padding: var(--tm7-space-4xs) 0;
  background-image: linear-gradient(hsla(var(--tm7-color-primary-hsl), 0.2), hsla(var(--tm7-color-primary-hsl), 0.2));
  background-size: 0% 100%;
}

.text-bg-fx--scale-y {
  text-decoration: none;
  background-image: linear-gradient(hsla(var(--tm7-color-primary-hsl), 0.2), hsla(var(--tm7-color-primary-hsl), 0.2));
  background-size: 100% 2px;
  background-position: center bottom;
}

.text-bg-fx--underline,
.text-bg-fx--underline-bold {
  text-decoration: none;
  background-size: 0% 100%;
}

.text-bg-fx--underline {
  /* text underline size = 1px */
  background-image: linear-gradient(transparent calc(100% - 3px), currentColor calc(100% - 3px), currentColor calc(100% - 2px), transparent 2px);
}

.text-bg-fx--underline-bold {
  background-image: linear-gradient(transparent 50%, hsla(var(--tm7-color-primary-hsl), 0.2) 50%);
}

.text-bg-fx--text-shadow {
  /* you can use this with the .text-bg-fx--underline effect */
  text-shadow: 1.5px 1px hsl(var(--tm7-color-bg-hsl)), -1.5px 1px hsl(var(--tm7-color-bg-hsl)), 0px 1px hsl(var(--tm7-color-bg-hsl));
}

/* utility classes */
.tm7-color-contrast-medium {
  --tm7-color-o: 1;
  color: hsla(var(--tm7-color-contrast-medium-hsl), var(--tm7-color-o, 1));
}

.tm7-text-md {
  font-size: var(--tm7-text-md);
}

.tm7-text-component :where(h1, h2, h3, h4) {
  line-height: var(--tm7-heading-line-height, 1.2);
  margin-top: calc(var(--tm7-space-md) * var(--tm7-space-multiplier, 1));
  margin-bottom: calc(var(--tm7-space-sm) * var(--tm7-space-multiplier, 1));
}

.tm7-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--tm7-body-line-height, 1.4);
}

.tm7-text-component :where(ul, ol, p, blockquote, .tm7-text-component__block) {
  margin-bottom: calc(var(--tm7-space-sm) * var(--tm7-space-multiplier, 1));
}

.tm7-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.tm7-text-component ul :where(ul, ol), .tm7-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.tm7-text-component ul {
  list-style-type: disc;
}

.tm7-text-component ol {
  list-style-type: decimal;
}

.tm7-text-component img {
  display: block;
  margin: 0 auto;
}

.tm7-text-component figcaption {
  margin-top: calc(var(--tm7-space-xs) * var(--tm7-space-multiplier, 1));
  font-size: var(--tm7-text-sm);
  text-align: center;}

.tm7-text-component em {
  font-style: italic;
}

.tm7-text-component strong {
  font-weight: bold;
}

.tm7-text-component s {
  text-decoration: line-through;
}

.tm7-text-component u {
  text-decoration: underline;
}

.tm7-text-component mark {
  background-color: hsla(var(--tm7-color-accent-hsl), 0.2);
  color: inherit;
}

.tm7-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--tm7-color-contrast-lower-hsl));
  font-style: italic;
}

.tm7-text-component hr {
  margin: calc(var(--tm7-space-md) * var(--tm7-space-multiplier, 1)) auto;
  background: hsl(var(--tm7-color-contrast-lower-hsl));
  height: 1px;
}

.tm7-text-component > *:first-child {
  margin-top: 0;
}

.tm7-text-component > *:last-child {
  margin-bottom: 0;
}

.tm7-text-component.tm7-line-height-xs {
  --tm7-heading-line-height: 1;
  --tm7-body-line-height: 1.1;
}

.tm7-text-component.tm7-line-height-sm {
  --tm7-heading-line-height: 1.1;
  --tm7-body-line-height: 1.2;
}

.tm7-text-component.tm7-line-height-md {
  --tm7-heading-line-height: 1.15;
  --tm7-body-line-height: 1.4;
}

.tm7-text-component.tm7-line-height-lg {
  --tm7-heading-line-height: 1.22;
  --tm7-body-line-height: 1.58;
}

.tm7-text-component.tm7-line-height-xl {
  --tm7-heading-line-height: 1.3;
  --tm7-body-line-height: 1.72;
}

.tm7-article {
  --tm7-heading-line-height: 1.22;
  --tm7-body-line-height: 1.66;
  --tm7-space-multiplier: 1.2;
}

.link_color{
  color: #4279BC;
}

.link_margin{
  margin-top: 2vh;
}