// stylelint-disable max-nesting-depth, selector-max-compound-selectors

.preprints-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .preprint-header {
        border-bottom: 1px solid var(--primary-color);
        width: 100%;
        background-color: var(--secondary-color);
        color: var(--primary-color) !important;

        a:not(.btn) {
            color: var(--primary-color);
            text-decoration: underline;
        }

        .description {
            color: var(--primary-color);
        }

        .submit-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--primary-color);

            .or-container {
                font-size: 21px;
                margin-bottom: 20px;
                font-weight: 300;
                line-height: 1.4;
                color: $color-text-white;
        
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

            .example-container {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%;
                margin-top: 25px;
            }
        }
    }

    /* Subject Panel */
    .preprint-subjects-container {
        background-color: $color-bg-gray-lighter;
        border-bottom: 1px solid #6d8a98;
        padding: 15px 0;
        width: 100%;
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;

        .preprint-subjects-inner-container {
            background-color: $color-bg-gray-lighter;
            padding: 0 30px;
            width: calc(100% - 60px);
            flex-direction: column;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;

            .subject-list-container {
                padding: 25px;
                width: 100%;
                flex-direction: column;
                display: flex;
                justify-content: flex-start;
                align-items: flex-start;
            }
        }
    }

    /* Preprint providers and become provider */
    .preprint-tool-container {
        background: var(--hero-background-img-url);
        color: $color-text-white;
        text-shadow: 0 0 5px #506069;
        background-size: cover;
        padding: 15px 0;
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;

        .preprint-tool-inner-container {
            padding-right: 30px;
            padding-left: 30px;
            width: calc(100% - 60px);
            flex-direction: column;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;

            .subtitle {
                margin-bottom: 25px;
            }

            .preprint-contact-container,
            .preprint-logos-container {
                padding: 25px;
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                display: flex;
                justify-content: center;
                align-items: flex-start;

                .provider-logo {
                    width: 150px;
                    height: 75px;
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: center;
                    margin: 15px;
                }
            }

            .preprint-contact-container {
                flex-direction: column;
                align-items: center;

                .lead {
                    font-size: 21px;
                    line-height: 1.4;
                    font-weight: 300;
                    padding-bottom: 10px;
                    text-align: center;

                    .links {
                        color: $color-text-white;
                        text-decoration: underline;
                    }
                }

                .contact {
                    margin-top: 20px;
                }
            }
        }
    }

    .osf-preprint-advisory-container {
        background-image: none;
    }

    &.mobile {
        .preprint-subjects-inner-container {
            padding: 0;
            background-color: $color-bg-gray-lighter;
            padding: 0, 10px;
            width: calc(100% - 20px);

            .subject-list-container {
                padding: 25px 0;
                width: 100%;
                flex-direction: column;
            }
        }

        .preprint-tool-inner-container {
            padding: 15px 10px;
            width: calc(100% - 20px);
        }
    }

    .btn {
        display: inline-block;
        margin-bottom: 0;
        font-weight: 400;
        text-align: center;
        white-space: nowrap;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 2px;
        padding: 6px 12px;
        font-size: 14px;
        line-height: 1.42857;
        user-select: none;
        vertical-align: middle;
        color: $color-text-white;
    }

    .btn-success {
        background-color: #357935;
        border-color: #2d672d;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 18px;
        line-height: 1.33333;
    }
}
