@import '~@equitysim/react-uikit/dist/styles/styleguide';

.c-competition-content {
    background-color: $grey-97;
    position: relative;
    min-height: 100vh;
    height: auto;
    z-index: 0;

    &__main {
        position: relative;
        margin: 0 auto;
        padding: v-space(8) var(--container-padding-h);
        width: 100%;
        max-width: $container-max-width;
        overflow-x: hidden;
        z-index: 10;
    }

    &__title,
    &__subtitle,
    &__description {
        margin-top: 0;
        margin-bottom: v-space(4);
    }

    &__subtitle,
    &__description,
    &__participants {
        width: 100%;
        max-width: h-space(8);
    }

    &__title {
        @extend %title;
        font-size: 5.6rem;
        color: $seafoam-140;
    }

    &__subtitle {
        @extend %subtitle;
        color: $grey-30;
    }

    &__description {
        @extend %heading-sm;
        font-weight: $font-weight-bold;
        line-height: v-space(3);
        color: $grey-50;
    }

    &__participants {
        display: flex;
        margin-top: v-space(3);

        p {
            &:first-child {
                @extend %heading-xs;
                color: $seafoam-140;
                line-height: v-space(2);
                padding-right: v-space(6);
            }

            &:last-child {
                @extend %number-value-lg;
                color: $seafoam-140;

                span {
                    @extend %number-value-xs;
                    color: $grey-75;
                }
            }
        }
    }

    &__illustration {
        &--cloud {
            position: absolute;
            top: -11.75rem;
            width: 100%;
            height: auto;
        }
        &--teamwork {
            position: absolute;
            bottom: 0;
            right: 12.6rem;
            width: 84rem;
            @media screen and (max-width: h-space(10)) {
                opacity: 0.1;
            }
        }
    }

    &__details {
        padding-left: v-space(2);
        list-style: none;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: v-space(1) v-space(5);

        @media screen and (max-width: $screen-medium) {
            grid-template-columns: 1fr;
        }

        &__value {
            @media screen and (max-width: $screen-medium) {
                margin-bottom: v-space(2);
            }
        }
    }

    &__details-title {
        color: $seafoam-140;
        margin-top: v-space(3);
        grid-column: 1 / -1;
    }

    &__prizes {
        display: grid;
        grid-template-columns: 1fr;
        padding-left: v-space(2);
    }
}
