/**
 * Copyright (c) Enalean, 2019-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

$card-border-margin: 150px;

.project-registration-default-templates-section {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-registration-template-card {
    display: flex;
    min-height: 120px;
    margin: var(--tlp-medium-spacing) 0 0;

    &:first-child {
        margin: 0;
    }
}

.project-registration-template-card-description-content {
    display: flex;
    flex-direction: column;
}

.project-registration-template-card-description {
    color: var(--tlp-dimmed-color);
    font-size: 14px;
    line-height: 20px;
}

.project-registration-template-card-title {
    margin: 0 0 var(--tlp-small-spacing);
    font-size: 16px;
    font-weight: normal;
    line-height: 18px;
}

.project-registration-template-card-svg {
    fill: var(--tlp-neutral-dark-color);
}

.project-registration-template-card-svg-stroke {
    stroke: var(--tlp-neutral-dark-color);
}

.project-registration-selected-template {
    display: none;

    &:checked {
        + label {
            border-color: var(--tlp-main-color);

            > div > .project-registration-template-card-title {
                margin: 0 0 var(--tlp-small-spacing);
                color: var(--tlp-main-color);
                font-size: 16px;
                font-weight: normal;
                line-height: 18px;
            }

            > div > svg > .project-registration-template-card-svg {
                fill: var(--tlp-main-color);
            }

            > div > svg > .project-registration-template-card-svg-stroke {
                stroke: var(--tlp-main-color);
            }
        }
    }
}

.project-registration-template-label {
    display: flex;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.project-registration-template-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 0 calc((#{$card-border-margin} - var(--tlp-medium-spacing)));
}

.project-registration-template-glyph {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: calc(#{$card-border-margin} - 2 * var(--tlp-medium-spacing));
    height: calc(100% - 2 * var(--tlp-medium-spacing));
}

.user-project-list-select {
    margin: 0 0 var(--tlp-small-spacing);
}
