*, *:before, *:after {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
}

/**
 1. LightTool.js overwrite this value in setInitHeight()
 */
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 100vh; /* 1 */
}

/* Safari 10.1+ */
@media not all and (min-resolution: .001dpcm) {
    @media {
        .container {
            /*overflow: hidden;*/
            /*max-height: calc(100vh - 80px);*/
        }
    }
}

/* firefox */
@-moz-document url-prefix() {
    .container {
        /*max-height: calc(100vh - 7px);*/
    }
}

.nr {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.nr-gpt {
    background: #efefef;
    bottom: 0;
    height: 90px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.nr-service-banner {
    height: 90px;
}

h1, h2, h3, h4 {
    font-weight: 300;
}

button {
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    line-height: 2.5rem;
    font-size: 0.8rem;
    padding: 0 2rem;
}

button:disabled {
    cursor: not-allowed !important;
}

select,
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="text"],
textarea {
    border: 0;
    border-radius: 0.2rem;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.21);
    line-height: 2.5rem;
    font-size: 0.8rem;
    padding: 0 1rem;
}

input:disabled {
    border-radius: 0.2rem;
    line-height: 2.5rem;
    padding: 0 1rem;
}

select {
    cursor: pointer;
    padding: 0.7rem 1rem;
}

.qui-select .text {
    font-size: 0.8rem;
    padding: 0.1rem 0 0 0.9rem !important;
}

.fa-close:before {
    content: '\00d7';
}

/** general word
 ============================================== */

.word {
    color: #606f7b;
    cursor: default;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}

.word img {
    margin-right: 0.5rem;
}

/** NameRobot loader
 ============================================== */

.nr-loader {
    align-items: center;
    background: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nr-loader-animation {
    display: block;
    font-size: 5rem;
    margin-bottom: 2rem;
}

.nr-loader-animation-tip {
    clear: both;
    display: block;
    max-width: 400px;
    width: 100%;
}

/** messages
 ============================================== */

.message-info,
.message-error {
    display: flex;
    padding: 1rem;
}

.messages-message-header-time {
    display: none;
}

.message-info {
    background: #e8fffe;
    color: #39948b;
}

.message-info span:first-child {
    color: #4dc0b5;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 1.25rem;
    width: 2rem;
}

.message-info span {
    display: inline-block;
    flex-grow: 1;
    max-width: calc(100% - 2rem);
}

.message-error {
    background: #fcebea;
    border-width: 0;
    border-color: #ef5753;
    border-left: 4px;
    color: #cc1f1a;
}

.messages-message-destroy {
    position: absolute;
    right: 10px;
    top: 10px;
}

.nobody .messages-message {
    background: #fcebea !important;
    border-width: 0 !important;
    border-color: #ef5753 !important;
    border-left-width: 4px !important;
    color: #cc1f1a !important;
    font: 12px/16px sans-serif;
    flex-direction: column;
    padding: 1rem !important;
}

.nobody .message-error .messages-message-header {
    margin: 0 0 5px 0 !important;
}

.message-info span > * {
    max-width: 100%;

    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.namerobot-tool-message {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .12);
    margin: 0.5rem 0;
    max-width: 100%;
    width: 100%;
    background-color: #e8fffe;
    border-left-color: #4dc0b5;
    color: #0d3331;
    border-radius: 0.25rem;
    border-left-width: 4px;
    border-left-style: solid;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    font-size: 0.9rem;
}

.namerobot-tool-message-text {
    flex-grow: 1;
    width: calc(100% - 2rem);
}

.namerobot-tool-message-icon {
    float: left;
    display: inline-block;
    color: #4dc0b5;
    font-size: 1.2rem;
    width: 2rem;
}

/****************/
/* premium hint */
/****************/
.nr-tool-premium-hint__bg,
.nr-tool-settings--popup__bg {
    background: rgba(238, 238, 238, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nr-tool-premium-hint-description {
    display: block;
}

.nr-tool-premium-hint-buttons {
    display: inline-block;
    margin-top: 1rem;
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
    width: 800px;
}

.nr-tool-premium-hint-buttons a {
    display: inline-block;
    max-width: 50%;
    padding: 0.5rem 1rem;
    text-align: center;
}

.nr-tool-premium-hint-buttons .submit-button {
    max-width: 50%;
    text-align: center;
    width: 260px;
}

@media (max-width: 768px) {
    .nr-tool-premium-hint-buttons a {
        max-width: 40%;
        width: calc(40% - 10px);
    }

    .nr-tool-premium-hint-buttons .submit-button {
        max-width: 60%;
    }
}
