@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
    line-height: 1.3;
}


a {
    text-decoration: none;
    font-weight: 500;
}

.main-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.main-menu .main-menu-inner {
    display: flex;
    justify-content: center;
}

.main-menu .main-menu-inner a {
    margin-right: 20px;
    font-size: 18px;
}

.main-menu .main-menu-inner a:last-child {
    margin-right: 0;
}

.events-container {
    width: 250px;
    min-width: 250px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background: #111;
    overflow: auto;
    position: relative;
    z-index: 10;
    transition: all .25s ease;
}

button {
    transition: 0.2s ease-in;
}

button:hover {
    opacity: 0.8;
}

.actions {
    flex-grow: 1;
    position: relative;
}

.charts {
    background: #000;
    position: relative;
    width: 100%;
    height: 500px;
}

.charts .charts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charts .charts-overlay img {
    display: block;
    height: 60px;
    width: auto;
    max-width: calc(100% - 30px);
}

#tradingview_chart_futures {
    z-index: 5;
    position: relative;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

p.no-elements {
    font-weight: 500;
    font-size: 14px;
}

.f-socket-price, .action-trade {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    padding: 5px;
    border-radius: 3px;
}

.f-socket-price span, .action-trade span  {
    text-align: center;
    color: #fff;
}

.f-socket-price span.p-t, .action-trade span.p-t {
    font-weight: 600;
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 2px;
}

.f-socket-price span.p-n, .action-trade span.p-n {
    font-size: 13px;
    opacity: 0.8;
}

.f-socket-price-long {
    background: #20b26c;
}

.f-socket-price-short, .action-trade {
    background: #ef454a;
    margin-bottom: 5px;
}

.action-trade {
    padding: 10px 15px;
}


.order-actions {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.order-actions .order-settings {
    margin-right: 20px;
}

.order-actions button {
    outline: none;
    border: none;
    cursor: pointer;
}

.order-settings {
    font-size: 12px;
}
.order-settings span {
    font-weight: 500;
}
.order-setting {
    margin-bottom: 5px;
}
.order-setting span {
    margin-right: 6px;
}
.order-setting input {
    border: 1px solid #444;
    border-radius: 4px;
    outline: none;
    width: 60px;
    height: 24px;
    padding: 5px;
    display: inline-block;
    margin-right: 3px;
    text-align: center;
}
.order-setting {
    display: flex;
    align-items: center;
    position: relative;
}
.main-trade .order-setting {
    display: block;
}
.order-setting-el {
    font-size: 12px;
    margin-top: 3px;
}
.order-setting-el .content {
    font-weight: 500;
}
.order-setting:last-child {
    margin-bottom: 0;
}

.order-setting input[type='number'] {
    -moz-appearance: textfield;
}
.order-setting input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.form-container {
    max-width: 300px;
    margin: 20px auto 0 auto;
}

.form-container h2 {
    margin-bottom: 10px;
}

.settings-form-container .form-container {
    width: 600px;
    max-width: 100%;
    margin: 20px auto 5px auto;
    padding: 0 20px 40px 20px;
}

.timeframe_pairs button {
    border: none;
    outline: none;
    background: rgba(13, 110, 253);
    transition: 0.15s ease-in;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
}

button.add-pair-btn {
    width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 7px;
}

#pairs-container .pair {
    display: flex;
    margin-bottom: 3px;
}

#pairs-container .pair select {
    margin-right: 3px;
}

.timeframe_pairs button, .timeframe_pairs select {
    height: 28px;
    border-radius: 4px;
}

.timeframe_pairs select {
    min-width: 100px;
}

button.remove-pair-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
}

.remove-pair-btn svg {
    width: 12px;
    height: auto;
}

.checkbox-container {
    margin-top: 15px;
}

.settings-form-container .form-inner {
    margin-bottom: 10px;
}

.settings-form-container .form-inner.checkbox {
    margin-bottom: 15px;
}

.settings-form-container .form-inner.checkbox label {
    display: flex;
    align-items: center;
}

.settings-form-container  .sub-heading {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.settings-form-container .login-form .form-inner.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
}

.settings-form-container .form-inner.checkbox span {
    margin-left: 5px;
}

.to-main {
    margin-top: 20px;
    text-align: center;
}

.login-form {
    font-weight: 500;
}

.login-form h2 {
    text-align: center;
}

.active_timeframes-cont {
    font-size: 13px;
}

.active_timeframes-cont .select2-container .select2-search--inline .select2-search__field {
    margin-top: 7px;
}

.login-form input, .login-form button.btn {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    padding: 10px;
}

.login-form input {
    border: 1px solid #666;
}

.login-form button.btn {
    margin-top: 10px;
    border: none;
    outline: none;
    background: rgba(13, 110, 253);
    transition: 0.15s ease-in;
    color: #fff;
    font-weight: 500;
}

.login-form button:hover {
    opacity: 0.7;
}

.login-form label {
    font-size: 13px;
    margin-bottom: 5px;
}

a.event {
    padding: 5px 10px 12px 10px;
    border-radius: 4px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    width: 100%;
    color: #000;
    font-weight: 400;
}

a.event.highlight {
    box-shadow: -2px 0px 11px 3px rgba(255,255,255,0.75);
    -webkit-box-shadow: -2px 0px 11px 3px rgba(255,255,255,0.75);
    border: 3px solid rgba(255,255,255,0.75);
}

.to-settings {
    margin-top: 15px;
    font-size: 15px;
}

.to-settings a:nth-child(2){
    margin-left: 12px;
}

[event-data-direction="long"] {
  background-color: #20b26c;
}
[event-data-direction="short"] {
  background-color: #f0565b;
}

.event:last-child {
    margin-bottom: 0;
}

.event .event-actions {
    display: flex;
    justify-content: space-between;
}

.event .event-actions span {
    margin-right: 20px;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    display: inline-block;
    padding: 3px;
    color: #fff;
}

.event .event-actions span img {
    display: block;
    height: 16px;
    width: auto;
}

.event .event-actions span:last-child {
    margin-right: 0;
}

.event-info {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-info span {
    margin-bottom: 2px;
    font-size: 12px;
}

.event-info span:last-child {
    margin-bottom: 0;
}

.event-info span.event-volume {
    width: 160px;
    max-width: 100%;
    margin-top: 5px;
    text-align: center;
    padding: 5px;
    color: #000;
    border: 1px solid #444;
    border-radius: 4px;
    background: #dce0dd;
}


/* spinner */
.process-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: inherit;
}

.disabled .process-spinner {
  display: flex;
}

.spinner-icon {
  position: absolute;
  z-index: 3;
  animation: loading-bar-spinner 400ms linear infinite;
  width: 18px;
  height: 18px;
  border:  solid 2px transparent;
  border-top-color:  #999;
  border-left-color: #999;
  border-radius: 50%;
}

.order-actions button .spinner-icon {
  border-top-color:  #fff;
  border-left-color: #fff;
}

.main-trade .order-actions button {
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-trade .order-actions button span.p-t {
    margin-bottom: 0;
}

@keyframes loading-bar-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.menu-button {
    position: fixed;
    top: auto;
    left: auto;
    right: 10px;
    bottom: 15px;
    z-index: 20;
    background: #fff;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all .25s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.menu-button.menu-button-els {
    position: fixed;
    top: auto;
    left: 10px;
    right: auto;
    bottom: 15px;
    z-index: 20;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all .25s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.menu-button.menu-button-els button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    transition: all .25s ease;
    background: #fff;
}

.menu-button.menu-button-els.menu-button-settings {
    left: 60px;
    display: none;
}

.menu-button.menu-button-els.menu-button-settings svg {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.menu-button.menu-button-els.menu-button-settings button.open svg {
    transform: rotate(180deg) scale(1.3);
}

.menu-button.menu-button-els button svg {
    display: block;
    height: 20px;
    width: auto;
    transition: all .25s ease;
}

.menu-button.menu-button-els button.open svg {
    transform: rotateY(180deg);
}

.hamburger {
    background: #fff;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    transition: all .25s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hamburger .lines {
    width: 24px;   /* было 28px */
    height: 16px;  /* было 20px */
    position: relative;
    display: block;
}

.hamburger .lines span {
    display: block;
    height: 2.5px;     /* было 3px */
    width: 100%;
    background: #1a1a1a;
    border-radius: 99px;
    position: absolute;
    left: 0;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1),
                opacity .2s ease,
                top .35s cubic-bezier(.2, .9, .3, 1);
}

.hamburger .lines span:nth-child(1) {
    top: 0;
}

.hamburger .lines span:nth-child(2) {
    top: 6.5px;  /* было 8.5px */
}

.hamburger .lines span:nth-child(3) {
    top: 13px;  /* было 17px */
}

.hamburger.open .lines span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open .lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.2);
}

.hamburger.open .lines span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.menu-container {
    position: fixed;
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: #fff;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.35s ease-in-out;
}

.menu-container.active {
    transform: scale(1);
}

.menu-container .menu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-container .menu a {
    margin-bottom: 20px;
    color: #000;
}

.menu-container .menu a:visited {
    color: #000;
}

.menu-container .menu a:last-child {
    margin-bottom: 0;
}

#signal_trade .btn-group {
    margin-top: 10px;
}

.table_controls {
    margin: 15px 0;
}

.table_controls h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

#columnSelector {
    display: flex;
    flex-wrap: wrap;
}

#columnSelector label {
    margin-left: 0!important;
    margin-right: 10px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    padding: 0!important;
    width: auto;
}

#columnSelector label span {
    margin-left: 4px;
}

#columnSelector label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0!important;
    position: static!important;
}

@media (max-width: 1200px) {
    .events-container {
        position: fixed;
        transform: translateX(-100%);
        top: 0;
        left: 0;
        height: calc(100% - 75px);
    }

    .events-container.active {
        transform: translateX(0);
    }

    .menu-button.menu-button-els {
        display: flex;
    }
}

@media (max-width: 800px) {
    .menu-button.menu-button-els.menu-button-settings {
        display: flex;
    }
    .order-actions .order-buttons {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 15px;
        top: auto;
        width: calc(100% - 160px);
        left: auto;
        right: 55px;
        padding: 0 10px;
    }

    .f-socket-price-short, .action-trade {
        margin-bottom: 0;
        margin-right: 5px;
    }

    .main-trade .action-trade {
        margin-right: 0;
    }

    .order-setting:after {
        content: '';
        display: block;
        position: absolute;
        bottom: -8px;
        height: 1px;
        width: 100%;
        background: rgba(0,0,0,0.3);
    }

    .order-setting:last-child:after {
        display: none;
    }

    .order-actions {
        padding: 0;
        display: block;
    }

    .order-actions .order-settings {
        margin-right: 0;
        padding: 30px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% - 75px);
        overflow: auto;
        transform: scale(0);
        transform-origin: bottom left;
        transition: transform 0.35s ease-in-out;
        z-index: 15;
        background: #fff;
    }

    .order-setting {
        margin-bottom: 20px;
    }

    .order-actions button {
        height: 46px;
        width: 100px;
    }

    .order-actions .order-settings.active {
        transform: scale(1);
    }

    .charts {
        position: fixed;
        height: calc(100% - 75px);
        top: 0;
        left: 0;
    }

}