* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Helvetica Now Text', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #FFFFFF;
    background: #121212;
    -webkit-font-smoothing: antialiased;
}

/***   STRUCTURE   ***/

#wrap {
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #262626;
    display: grid;
    grid-template-rows: 40px minmax(0, 780px) 40px;
    grid-template-columns: 1fr 400px 1fr;
    grid-template-areas: ". . ." ". app ." ". . .";
}

#app {
    display: block;
    grid-area: app;
    background: #121212;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#app::-webkit-scrollbar {
    display: none;
}

#top {
    grid-area: top;
}

#content {
    grid-area: content;
}

#form {
    grid-area: form;
}

#actions {
    grid-area: actions;
    display: flex;
}

#actions .button {
    margin-left: 16px;
}

#actions .button.first {
    margin-left: auto;
}

/***   GENERIC   ***/

p {
    line-height: 24px;
}

a,
.button {
    border: none;
    text-decoration: none;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #F0F0F0;
}

.title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.title-wrap .title {
    margin-bottom: 0;
}

.title-wrap .note {
    margin-left: auto;
    color: #666666;
    font-size: 12px;
}

.subtitle {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    color: #F0F0F0;
}

.note {
    color: #B3B3B3;
}

.button {
    font-size: 16px;
    font-family: 'Arimo', serif;
    font-weight: 700;
    color: #E6E6E6;
}

.button.highlight {
    color: #00a6ff;
}

.button.highlight:hover {
    color: #3cb5f6;
}

.button.small {
    font-size: 12px;
}

.button.bordered {
    height: 40px;
    padding: 13px 20px;
    border-radius: 20px;
    font-size: 12px;
    background: #262626;
}

.button.bordered:hover {
    background: #2E2E2E;
}

.button.bordered.highlight {
    color: #FFFFFF;
    background: #00a6ff;
}

.button.bordered.highlight:hover {
    color: #FFFFFF;
    background: #3bbaff;
}

.separator-16 {
    height: 16px;
}

.separator-24 {
    height: 24px;
}

.separator-32 {
    height: 32px;
}

.separator-48 {
    height: 48px;
}

.invisible {
    opacity: 0;
}

#serial input {
    margin: 0 -8px 0 8px;
    font-family: "Arimo", serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.loader {
    border: 3px solid #F3F3F3;
    border-top: 3px solid #888888;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/***   FORM   ***/

input,
textarea {
    width: 100%;
    height: 100%;
    color: #F0F0F0;
    border: none;
    background: none;
    font-family: 'Helvetica Now Text', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding-left: 8px;
    padding-top: 3px;
}

textarea {
    resize: none;
    margin: 10px 0 20px;
    overflow-y: hidden;
}

input:-webkit-autofill {
    -webkit-box-shadow: none;
}

input:-webkit-autofill::first-line {
    font-family: 'Helvetica Now Text', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

input:focus,
textarea:focus {
    outline: none;
}

.input-invalid {
    position: relative;
    margin: -12px 0 0 8px;
    font-size: 12px;
    color: red;
}

.input-invalid.tagged {
    position: relative;
    margin: -24px 0 0 0;
    font-size: 12px;
    color: red;
}

::placeholder {
    color: #404040;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #404040;
}

:-ms-input-placeholder {
    color: #404040;
}

.input-box {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
}

.input-box {
    display: flex;
    border-bottom: 2px solid #404040;
}

.input-box.multiline {
    height: unset;
    min-height: 40px;
}

.input-box.tagged {
    background: #1F1F1F;
    margin-bottom: 24px;
    border-bottom: 2px solid transparent;
}

.input-box.stuck {
    background: #1F1F1F;
    border-bottom: #404040 2px solid;
    margin-bottom: 0
}

.input-box:focus-within {
    border-bottom: 2px solid #00a6ff;
}

.input-box.invalid,
.input-box.invalid:focus-within {
    border-bottom: 2px solid red
}

.input-box .icon {
    width: 24px;
    height: 24px;
    margin: 12px 8px 0 -32px;
    opacity: .4;
    z-index: 10;
}

.input-box .icon.password-visible-toggle {
    cursor: pointer;
}

.input-box .icon.password-visible-toggle:hover {
    opacity: .8;
}

.input-box.disabled .icon {
    opacity: 1;
}

.input-box:focus-within .icon {
    opacity: .6;
}

.input-box.multiline {
    height: unset;
    min-height: 40px;
}

.input-top {
    display: flex;
    width: 100%;
}

.input-tag {
    margin: 0 0 8px 2px;
    color: #A6A6A6;
    font-size: 12px;
}

.input-note,
.input-counter {
    margin-left: auto;
    color: #666666;
    font-size: 12px;
}

/***   PROFILE   ***/

.card-preview {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-auto-flow: column;
    margin: 0 -8px;
    border-radius: 16px;
    border: 1px solid #A6A6A6;
    background: #212121;
}

.card-preview .right {
    height: 192px;
    overflow-y: hidden;
    padding-left: 24px;
    padding-top: 42px;
}

.card-preview .right .title {
    margin-bottom: 4px;
    line-height: 26px;
}

/***   LINKS   ***/

#form .link {
    margin-bottom: 16px;
}

#form .link .actions {
    display: flex;
    width: 100%;
}

#form .link .actions img {
    width: 32px;
    height: 32px;
    margin-left: 12px;
    padding: 8px 0 0 8px;
    opacity: .6;
    cursor: pointer;
}

#form .link .actions img:hover {
    opacity: .8;
}

#form .link .actions img.first {
    margin-left: auto;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/***   FONTS   ***/

@font-face {
    font-family: 'Nitti Bold';
    src: url('/fonts/nittibold.ttf');
}

@font-face {
    font-family: 'Helvetica Now Text';
    src: url('/fonts/HelveticaNowText-Light.eot');
    src: local('Helvetica Now Text  Light'), local('HelveticaNowText-Light'), url('/fonts/HelveticaNowText-Light.eot?#iefix') format('embedded-opentype'), url('/fonts/HelveticaNowText-Light.woff2') format('woff2'), url('/fonts/HelveticaNowText-Light.woff') format('woff'), url('/fonts/HelveticaNowText-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now Text';
    src: url('/fonts/HelveticaNowText-Regular.eot');
    src: local('Helvetica Now Text  Regular'), local('HelveticaNowText-Regular'), url('/fonts/HelveticaNowText-Regular.eot?#iefix') format('embedded-opentype'), url('/fonts/HelveticaNowText-Regular.woff2') format('woff2'), url('/fonts/HelveticaNowText-Regular.woff') format('woff'), url('/fonts/HelveticaNowText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now Text';
    src: url('/fonts/HelveticaNowText-Bold.eot');
    src: local('Helvetica Now Text  Bold'), local('HelveticaNowText-Bold'), url('HelveticaNowText-Bold.eot?#iefix') format('embedded-opentype'), url('/fonts/HelveticaNowText-Bold.woff2') format('woff2'), url('/fonts/HelveticaNowText-Bold.woff') format('woff'), url('/fonts/HelveticaNowText-Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/***   QUERIES   ***/

@media only screen and (max-width: 700px) {
    #wrap {
        display: block;
    }
    #app {
        height: 100%;
    }
}

/***   REMOVE CLEAR CROSS FROM INPUT FIELDS IN IE AND CHROME   ***/

input[type=search]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type=search]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}