/* Common.css */

:root {
    --primary-color: #146EF5;
    --accent-color: #7FDD00;
    --accent-color-rgb: 255,221,51;
    --yellow-color: #EFFF00;
    --yellow-color-rgb: 239,255,0;
    --disabled-color: #797979;
    --rating-color: #FFD002;
    
    --gray-text-color: #A9A9A9;
    --dark-gray-text-color: #949494;
    --darker-gray-text-color: #8A8A8A;

    --course-card-background: #0d121b;

    --separator-color: #303030;

    --gray-section-color: #F7F7F7;

    --buttons-radius: 6px;

    --social-proof-width: 180px;

    --page-width: 1350px;

    --perspective-items-width: 280px;
    --perspective-items-radius: 10px;

    --section-horizontal-padding: 30px;

    --gradient-white-to-blue: linear-gradient(to right, white, #1F75F5);
    --gradient-green-to-white: linear-gradient(to right, var(--accent-color), white);

    --loader-color-rgb: 0, 0, 0;
}

*{
    box-sizing: border-box;
}

.gradient-white-to-blue-text {
    background: var(--gradient-white-to-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-green-to-white-text {
    background: var(--gradient-green-to-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html {
    height: 100%;
}

body { 
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Inter Tight", sans-serif;
    text-wrap: balance;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

header, section {
    max-width: var(--page-width);
    width: 100%;
}

section {
    padding-left: var(--section-horizontal-padding);
    padding-right: var(--section-horizontal-padding);
}

span {
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

div, section, header, a, body {
    display: flex;
}

.mode-background[mode="light"] {
    background-color: white;
    color: black;
}

.mode-background[mode="dark"] {
    background-color: black;
    color: white;
}


.grow {
    flex-grow: 1;
}

.accent-color {
    color: var(--accent-color);
}

.semi-bold {
    font-weight: 600;
}

.fit-height {
    height: fit-content;
}

.text-no-wrap {
    white-space: nowrap;
}

a.button {
    text-decoration: none;
}

.button {
    color: white;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border: none;
    border-radius: var(--buttons-radius);
    line-height: 1.5;
    text-align: center;

    background-color: var(--primary-color);
    cursor: pointer;

    box-shadow: 0 4px 4px rgba(8, 8, 8, .08), 0 1px 2px rgba(8, 8, 8, .2), inset 0 6px 12px rgba(255, 255, 255, .12), inset 0 1px 1px rgba(255, 255, 255, .2);

    transition: background-color .3s cubic-bezier(.165, .84, .44, 1), box-shadow .3s cubic-bezier(.165, .84, .44, 1);
}

.button:hover {
    /* box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); */
    background-color: #0056D6;


    box-shadow: 0 1px 1px rgba(8, 8, 8, .08), 0 1px 1px rgba(8, 8, 8, .2), inset 0 6px 12px rgba(255, 255, 255, .12), inset 0 1px 1px rgba(255, 255, 255, .2);
}

.gray-button {
    background-color: #222222;
}

.gray-button:hover {
    background-color: #111111;
}

h1 {
    font-size: clamp(70px, calc(4.815vw + 25.55px), 83px);
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.1;
}

h1 > span {
    line-height: 1.1;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: center;
}

h2.big {
    font-size: clamp(50px, calc(0.03091 * 100vw + 29.908px), 67px);
}

h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.subtitle {
    font-size: 22px;
    max-width: 500px;
    text-align: center;
    text-wrap: balance;
    line-height: 1.6;
}

.separator {
    height: 1px;
    background-color: var(--separator-color);
    width: 100%;
}

.vertical-separator {
    width: 1px;
    background-color: var(--separator-color);
    height: 100%;
}

.green-underline {
    border-bottom: 4px solid var(--accent-color);
}


.mode-background[mode="light"] {
    background-color: white;
    color: black;
}

.mode-background[mode="dark"] {
    background-color: black;
    color: white;
}

a:hover {
    color: white;
}

.error-container {
    background-color: red;
    padding: 8px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    position:fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.course-small-dark-gray-text {
    color: var(--dark-gray-text-color);
    font-size: 14px;
    font-weight: 600;
    white-space: pre-wrap;
}


/* Loader */
/**===== wait-anim =====*/
.loader {
    position: relative;
    padding: 25px;
}

.wait-anim {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 50px;
  width: 50px;
  margin: -25px 0 0 -25px;
}

.wait-anim span {
  position: absolute;
  display: block;
  bottom: 10px;
  width: 9px;
  height: 15px;
  background: rgba(var(--loader-color-rgb), 0.25);
  -webkit-animation: wait-anim 2s  infinite ease-in;
          animation: wait-anim 2s  infinite ease-in;
}

.wait-anim span:nth-child(2) {
  left: 11px;
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

.wait-anim span:nth-child(3) {
  left: 22px;
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

.wait-anim span:nth-child(4) {
  left: 33px;
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
}

.wait-anim span:nth-child(5) {
  left: 44px;
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}

@keyframes wait-anim {
  0% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
  25% {
    background: rgba(var(--loader-color-rgb), 1);
  }
  50% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
  100% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
}
@-webkit-keyframes wait-anim {
  0% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
  25% {
    background: rgba(var(--loader-color-rgb), 1);
  }
  50% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
  100% {
    background: rgba(var(--loader-color-rgb), 0.25);
  }
}


