@import '~assets/styles/variables.scss';

.block-tile {
    padding: 0;

    &.is-square:not(.vertical) {
        .block-node-container {
            padding-bottom: 100%;
        }
    }

    &.vertical {
        &.is-square {
            padding-bottom: 100%;
            height: 0;
        }

        .block-node-container {
            padding-bottom: 50%;
        }
        .tile-content-node-container {
            margin: 0;
        }
    }

    .block-node-container {
        position: relative;
        min-width: 30%;

        &:not(.no-padding) {
            padding-bottom: 50%;
        }

        .tile-text {
            table {
                height: 100%;
                width: 100%;
                text-align: center;
                font-size: 24px;
                font-weight: 500;
            }
        }
    }

    .tile-content-node-container {
        width: 100%;
        margin: 8px 16px;

        .tile-content {
            margin-bottom: 0;
            height: 100%;

            .tile-content-title {
                font-weight: unset;
                margin-bottom: 0;
                overflow: hidden;

                @include phone {
                    font-size: calc(12px + 1vmin);
                }

                @include tablet {
                    font-size: calc(11px + 1vw);
                }

                @include desktop {
                    font-size: calc(10px + 0.5vmax);
                }
            }
        }

        .tile-content-extra:not(.only-content) {
            padding-top: 8px;
        }
    }

    &:hover {
        cursor: pointer;

        box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14),
            0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
    }
}
