@import '../../less/reset';
@import '../../less/palette';

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9000;
    overflow: hidden;
    overflow-scrolling: touch;
    outline: 0;
    background-color: fade(@color-primary, 70%);
    height: 100%;

    .modal-dialog {
        margin: 0 auto;
        width: 390px;
        background-color: #fff;
        border-radius: 6px;
        position: relative;
        top: 50%;
        // the scale removes half pixel artifacts
        transform: translateY(-50%) scale(1.000001);
        overflow: hidden;
    }

    .modal-content {
        padding: 30px;
        margin: 0 auto;
        font-size: 14px;
        text-align: center;

        h3 {
            margin-top: 0;
        }

        .button {
            width: 100%;
        }
    }
}
