#particles-js {
    mask: radial-gradient(circle at 50% 50%,
            transparent 40px,
            black 150px);
}

/* Buttons */
.white-pill {
    color: white;

    user-select: none;

    padding: 1rem;

    border: solid 1pt white;
    border-radius: 2.5rem;

    transition-duration: 0.5s;

    height: fit-content;
}

.white-pill.white-pill-btn:hover {
    color: black;
    background-color: #fff;
    border-color: transparent;
}

.white-pill.white-pill.white-pill-btn:active {
    transition-duration: 0.2s;
    filter: brightness(0.8);
}

/* Other */
.link {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;

    display: flex;
    align-content: center;
    height: 2em;

    transition-duration: 50ms;
}

.link:hover {
    transform: scale(1.03);
}

.link .icon {
    height: 100%;
}

.link .text {
    height: fit-content;
    align-self: center;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.hub-logo {
    display: flex;
    padding: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hub-logo * {
    font-family: 'Inter';
    font-size: 1.6rem;
}

.hub-icon {
    transform: scale(1.1);
    margin-right: 0.25rem;
    height: 1.2rem;
}

/* Header */
header {
    z-index: 2;
    position: fixed;
    display: flex;

    justify-content: space-between;

    right: 0;
    left: 0;

    background-color: transparent;

    color: white;

    padding: 2rem;

    transition-duration: 0.3s;
}

header>div.bg {
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background-color: var(--header-bg);
    opacity: 40%;
}

header:hover {
    background-color: var(--header-bg);
}

header>.right {
    display: flex;
    align-content: center;
}

header>.right>.link {
    margin: 0.2rem;
    margin-right: 1.25rem;
}

@media screen and (max-width: 800px) {
    header>.right>.link {
        display: none;
    }
}

header .menu-icon-wrapper {
    cursor: pointer;
    height: 2.5rem;
}

header .menu-icon-wrapper:hover {
    transform: scale(1.1);
}

header .menu-icon {
    max-height: 100%;
    max-width: 100%;
}

/* Start Section */
.start-spacer {
    height: 15rem;
}

#start-section {
    display: flex;
    align-items: center;
}

#start-section>h1.title {
    height: fit-content;
    line-height: 2.2rem;
    max-width: 70rem;
}

/* CTA Section */
.cta-spacer {
    height: 15rem;
}

#cta-section>h1 {
    max-width: 530px;
}

#cta-section .buttons {
    max-width: 30rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#cta-section .buttons .button {
    display: block;
    width: fit-content;
    height: fit-content;

    margin: 1rem;
}

@media screen and (max-width: 1500px) {
    .cta-spacer {
        height: 20vw;
    }
}

#cta-logo {
    position: relative;
    max-width: 30rem;
}

#cta-logo-icon {
    position: absolute;
    width: 18%;
    transform: rotate(30deg);
    left: -50rem;
}

#cta-logo.animate #cta-logo-icon {
    left: 50%;
    bottom: 10%;
    transform: rotate(0deg);
    animation: logo-flyin 1.2s ease-out, 1.2s bounce 0.5s;
}


@keyframes logo-flyin {
    0% {
        transform: rotate(30deg);
        left: -50rem;
    }

    62% {
        transform: rotate(25deg);
    }

    65% {
        transform: rotate(0deg);
    }

    75% {
        left: 50%;
    }

    100% {
        transform: rotate(0);
    }
}

/* Fear Section */
.ps-spacer {
    height: 30rem;
}

#public-speaking {
    display: flex;
    flex-direction: column;
}

#public-speaking>* {
    text-align: right;
}

#public-speaking>article {
    align-self: end;
}

/* Instructor Section */
section#instructor {
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;

    justify-content: center;
    align-items: center;

    margin-top: 5rem;
    margin-bottom: 5rem;
}

.instructor-spacer {
    height: 20rem;
}

#instructor>.text {
    z-index: 1;
    min-width: min(550px, 90vw);
}

#instructor>.images {
    z-index: 1;
    position: relative;
    height: 700px;

    pointer-events: none;
}

#instructor>.text * {
    text-align: right;
}

.instructor-helping {
    position: absolute;
    max-width: 50vw;
    width: 20rem;
}

.instructor-lecture {
    position: absolute;
    top: min(50%, 30vw);
    left: 10%;
    max-width: 50vw;
    width: 30rem;

    transform-style: preserve-3d;
}

.instructor-lecture>img.pink-rectangle {
    position: absolute;

    width: 129%;
    left: -16%;
}

.instructor-lecture>img.instructor {
    max-width: 50vw;
    width: 30rem;
}

.instructor-rectangle .border {
    position: absolute;
    top: min(50%, 30vw);
    left: -5%;
    width: calc(100% * 1.1);
    height: 6rem;

    border: solid 5px var(--color-pink);

}

.instructor-rectangle {
    position: absolute;
    top: min(50%, 30vw);
    left: -5%;
    width: calc(100% * 1.1);
    height: 6rem;

    border: solid 5px var(--color-pink);

}

#particles-js {
    z-index: 0;

    position: absolute;
    top: -5rem;
    left: -12vw;

    width: 100vw;
    height: calc(100% + 10rem);

    mask-image: linear-gradient(to bottom, transparent 5%, black 15%, black 85%, transparent 95%);
    /*-webkit-mask-image: linear-gradient(left 90%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)))*/
    /* -webkit-mask-image: -webkit-gradient(linear, left 90%, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0))) */
}

#instructor-text {
    display: flex;
    align-items: start;
}

#instructor-text>.description {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#instructor .invisible-quote {
    width: 4rem;
}

#instructor-text>img:first-child {
    transform: scaleY(-1);
}

#instructor-text>img:last-child {
    transform: scaleX(-1);
    align-self: flex-end;
}

img.quote-icon {
    width: 4rem;
}

/* Makes quotes smaller for small devices */
@media screen and (max-width: 500px) {
    img.quote-icon {
        width: 1rem;
    }

    #instructor .invisible-quote {
        width: 0;
    }
}

/* Centers images if too small */
@media screen and (max-width: 700px) {
    #instructor>.images {
        display: flex;
        flex-direction: column;

        justify-content: space-around;
        align-items: center;

        height: fit-content;
    }

    #instructor>.images>* {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 2rem;
    }
}

#instructor>.text,
#instructor>.images {
    margin-top: 5rem;
    width: 50%;
}

/* Register Section */
#register {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 1600px) {
    #register {
        flex-direction: column;
    }

    #register>.carousel {
        margin-left: 0 !important;
        margin-top: 3rem;

        align-self: center;
    }
}


#register>.text {
    max-width: 600px;
}

#register>.carousel {
    position: relative;

    margin-left: 3rem;

    width: 600px;
}

#register-carousel .carousel-image {
    background-color: #0007;
    display: flex;
    justify-content: center;

    height: 400px;
}

@media screen and (max-width: 800px) {
    #register>.carousel {
        max-width: 80vw;
    }

    #register-carousel .carousel-image {
        height: calc(80vw * (2 / 3));
    }
}

#register-carousel>*>img {
    max-width: 100%;
    max-height: 100%;
}

.carousel button.arrow {
    position: absolute;
    margin: auto;

    top: 0;
    bottom: 0;

    width: 2rem;
    height: 2rem;

    border: none;

    cursor: pointer;

    background-color: transparent;

    background-image: url('/assets/img/arrow.png');
    background-size: contain;
}

.carousel button.arrow:hover {
    transform: scale(1.05);
}

.carousel button.arrow:active {
    transform: scale(1.1);
}

.carousel button.arrow.left-btn {
    left: -2rem;
}

.carousel button.arrow.right-btn {
    right: -2rem;
    transform: rotate(180deg);
}

.carousel button.arrow.right-btn:hover {
    transform: scale(1.05) rotate(180deg);
}

.carousel button.arrow.right-btn:active {
    transform: scale(1.1) rotate(180deg);
}

.register-spacer {
    height: 20rem;
}

#register .register-button {
    display: block;
    padding: 1rem;

    width: fit-content;

    padding-right: 1rem;
    padding-left: 12vw;

    user-select: none;

    white-space: nowrap;

    font-family: 'Inter';
    font-size: 2.5rem;
    font-weight: lighter;
    border: solid var(--color-pink) 2px;
    border-left: none;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;

    margin-left: -12vw;

    transform: scale(min(1, calc(90vw / 400px)));
    transform-origin: top left;
}

#register .register-button:hover {
    background-color: var(--color-pink);
    transition-duration: 0.5s;
}

#register .register-button:active {
    opacity: 90%;
    filter: brightness(0.8);
}

@media screen and (max-width: 650px) {
    #register .register-button {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 400px) {
    #register .register-button {
        padding-right: 1rem;
        padding-left: 6vw;
        margin-left: -6vw;
    }
}

/* Módulos */

.modules-spacer {
    height: 20rem;
}

.accordion>.accordion-entry {
    margin-bottom: 1rem;
}

.accordion-entry {
    border: solid 1px transparent;
    border-radius: 32px;
}

.accordion-entry.active {
    border-color: var(--color-pink);
}

.accordion-entry>.title {
    display: flex;
    align-items: center;

    justify-content: space-between;

    min-height: 64px;

    box-sizing: border-box;

    position: relative;
    padding: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;

    cursor: pointer;
}

.accordion-entry>.title img {
    transform: rotate(180deg);
    margin-left: 1rem;
    transition-duration: 150ms;
    max-height: 2rem;
}

.accordion-entry.active>.title img {
    transform: rotate(0deg);
}

.accordion-entry>.title * {
    font-size: 1.5rem;
    line-height: 1.5rem !important;
}

.accordion-entry.active>.content {
    height: auto;
    padding: 1rem;
    line-height: 1em;
}

.accordion-entry>.content {
    overflow: hidden;
    height: 0;
    font-size: 1.2rem;
    padding: 0;
}

.accordion-entry .lesson-title {
    line-height: 1.3rem;
    font-size: 1.25rem;
}

.accordion-entry>.title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    border-radius: 32px;

    background-color: var(--color-pink);
    opacity: var(--module-title-opacity);
    z-index: -1;

    transition-duration: 0.1s;
}

.accordion-entry>.title:hover::before {
    opacity: var(--module-title-hover-opacity);
}

.accordion-entry>.title:active::before {
    opacity: var(--module-title-active-opacity);
    transition-duration: 50ms;
}

/* Testimonies Section */
#testimonies {
    display: flex;
    flex-direction: column;
}

#testimonies>.title {
    display: flex;
    flex-direction: column;

    max-width: 15rem;
}

#testimonies>.title>* {
    margin-bottom: 1rem;
}

#testimonies>.title .title-logo {
    position: relative;
}

#testimonies>.title .logo {
    max-width: 100%;
}

#testimonies>.title .logo-icon {
    left: 50%;
    bottom: 10%;
    position: absolute;
    width: 18%;
}

#testimonies>.video-browser {
    position: relative;

    max-width: 60rem;
    align-self: center;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

#testimonies>.video-browser>#rotating-text {
    position: absolute;

    width: 25vw;

    top: -12.5vw;
    right: -12.5vw;

    z-index: -1;

    user-select: none;

    animation: rotate 10s linear infinite;
}

#testimonies>.video-browser::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;

    border-radius: 32px;

    z-index: -1;

    transition-duration: 0.1s;
}

#testimonies>.video-browser video {
    width: 100%;
}

#testimonies>.video-browser .testimony-data {
    position: absolute;

    color: black;
    font-weight: bold;

    left: -5vw;

    background-color: var(--color-yellow);
}

.testimony-data {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#testimony-video {
    max-width: 60rem;
    max-height: 35rem;
    width: 70vw;
    height: 40vw;
}

#testimony-name {
    top: 20%;
    font-size: 6vw;
    line-height: 6vw;
}

#testimony-age {
    top: calc(20% + 6vw + 1vw);
    font-size: 3vw;
    line-height: 3vw;
}

@media screen and (max-width: 800px) {
    .testimonies-video-spacer {
        height: 5rem;
    }
}

#testimonies .video-browser>.carousel {
    position: absolute;

    max-width: 72vw;
    width: 35rem;
    height: 8rem;
    bottom: -8rem;
    right: 0;
}

#testimony-carousel .carousel-image {
    background-color: #0007;
    display: flex;
    justify-content: center;

    height: 8rem;

    cursor: pointer;
    transition-duration: 60ms;
}

#testimony-carousel .carousel-image:hover {
    transform: scale(1.1);
}

#testimony-carousel img {
    max-width: 100%;
    max-height: 100%;
}

/* Companies*/
.companies-spacer {
    height: 20rem;
}

#companies>.title {
    max-width: 30rem;
}

#companies>.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#companies>.gallery .company-image-wrapper {
    align-self: center;

    width: 10rem;
    height: fit-content;
    margin: 0.5rem;
}

#companies>.gallery img {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

/* Plans*/
.plans-spacer {
    height: 20rem;
}

#plans {
    display: flex;
    justify-content: center;
}

#plans>.plan {
    padding: 0;

    border: solid 1px white;
    border-radius: 48px;

    max-width: 500px;
}

#plans>.plan>* {
    padding-left: 3rem;
    padding-right: 3rem;

    padding-top: 2rem;
    padding-bottom: 2rem;

    border: solid 1px white;
}

#plans>.plan>.plan-title {
    text-align: center;

    border-top-left-radius: 48px;
    border-top-right-radius: 48px;

    background-color: white;

    font-size: 1.5rem;
    font-weight: bold;
    color: black;
}

#plans>.plan>.plan-features {
    display: flex;
    flex-direction: column;
}

#plans>.plan>.plan-features>img:first-child {
    max-width: 20%;
    align-self: center;
    margin-bottom: 3rem;
}

#plans>.plan>.plan-features>.feature {
    display: flex;
    margin: 0.5rem;
}

#plans>.plan>.plan-features>.feature>img.check {
    width: 1rem;
    height: 1rem;

    margin-right: 0.25rem;
}

#plans>.plan>.plan-price {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

    font-size: 1.5rem;
    text-align: center;
}

#plans>.plan>.plan-price * {
    font-size: 1.5rem;
    line-height: 2rem;
    font-family: 'Inter';
}

#plans>.plan>.plan-subtitle {
    padding-top: 1rem;
    padding-bottom: 1rem;

    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;

    font-size: 1.3rem;
}

/* QA Section */
.QA-spacer {
    height: 10rem;
}

#QA {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer */
.footer-spacer {
    height: 5rem;
}

footer {
    width: 100%;
}

footer>.footer-links {
    position: relative;
    padding: 3rem;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer>.footer-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--footer-bg);
    opacity: var(--footer-opacity);
    z-index: -1;
}

footer>.footer-links>* {
    margin: auto;
}

footer>.footer-links>*>* {
    width: fit-content;
}

footer>.footer-links>.right {
    display: flex;
    flex-direction: column;
    align-items: end;
}

footer>.footer-links>.right>* {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

footer>.footer-copyright {
    position: relative;
    min-height: 3rem;
    display: flex;
    justify-content: center;
}

footer .copyright-text {
    height: fit-content;
    align-self: center;
}

footer>.footer-copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--footer-copyright-bg);
    opacity: var(--footer-copyright-opacity);
    z-index: -1;
}