/* Common.css */

:root {
    --primary-color: #146EF5;
    --primary-color-rgb: 20, 110, 245;
    --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: #282828;

    --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%;
    overflow-x: clip;
    position: relative;
}

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: clip;
    position: relative;
    width: 100%;
}

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;
}

#sprite-plyr {
    display: none !important;
}

.plyr__progress {
    flex: 1;
}

.plyr--full-ui * {
    display: block;
}

.horizontal-separator {
    width: 100%;
    height: 1px;
    background-color: var(--separator-color);
    margin-top: 40px;
    margin-bottom: 10px;
}


.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.text-button {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 35px;
    border-radius: var(--buttons-radius);
    border: 1px solid rgba(var(--accent-color-rgb), 0.3);
}

a.text-button:hover {
    color: var(--accent-color);
    border: 1px solid var(--yellow-color);
    box-shadow: 0 0 20px 1px rgba(239,255,0,0.45);
}

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;
}

.dark-shadow-text {
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.6));
}

.self-center {
    align-self: center;
}

.h1-shadow {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: clamp(55px, calc(4.815vw + 25.55px), 83px);
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.22;
    /*perspective: 20px;*/
}

h1 > span {
    position: relative;
    display: block;
    line-height: 1.1;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 28px rgba(200, 255, 84, 0.65);
    /*transform: rotateX(7deg) RotateY(-12deg) RotateZ(0deg);
    transform-origin: center bottom;*/
    /*transform: rotateX(0deg) RotateY(-0.4deg) RotateZ(-0.7deg);
    transform-origin: center bottom;*/
    scale: 1.04;
}

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: 600px;
    text-align: center;
    text-wrap: balance;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 0, 0, 0.7);
}

.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;
    line-height: 1.2rem;
}


/* 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);
  }
}

.display-desktop {
    display: flex;
}

.display-mobile {
    display: none;
}


@media (max-width: 784px) {
    h2 {
        line-height: 1.25;
    }

    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: flex;
    }
}

/* Status bubbles */
.status-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 4px 12px;
    border-radius: 999px;
    /*border: 1px solid rgba(255, 255, 255, 0.12);*/
    background: rgba(255, 255, 255, 0.02);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}

a.status-bubble {
    cursor: pointer;
}

a.status-bubble:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
}

.led {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 1px;
}

.led-green {
    background: #A3E635;
    animation: pulse-green 3s infinite ease-in-out;
}

.led-red {
    background: #FF3B3B;
    animation: pulse-red 3s infinite ease-in-out;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7),
                    0 0 6px 2px rgba(163, 230, 53, 0.6);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(163, 230, 53, 0),
                    0 0 8px 3px rgba(163, 230, 53, 0.9);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7),
                    0 0 6px 2px rgba(255, 0, 0, 0.55);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 0, 0, 0),
                    0 0 8px 3px rgba(255, 0, 0, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .led-green, .led-red {
        animation: none;
    }
}