/* Fonts */
@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/lato-regular-hu.eot');
    src: url('../fonts/lato-regular-hu.eot?#iefix') format('embedded-opentype'),
         url('../fonts/lato-regular-hu.woff') format('woff'),
         url('../fonts/lato-regular-hu.ttf') format('truetype'),
         url('../fonts/lato-regular-hu.svg#LatoWeb') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/lato-italic-hu.eot');
    src: url('../fonts/lato-italic-hu.eot?#iefix') format('embedded-opentype'),
         url('../fonts/lato-italic-hu.woff') format('woff'),
         url('../fonts/lato-italic-hu.ttf') format('truetype'),
         url('../fonts/lato-italic-hu.svg#LatoWeb') format('svg');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/lato-bold-hu.eot');
    src: url('../fonts/lato-bold-hu.eot?#iefix') format('embedded-opentype'),
         url('../fonts/lato-bold-hu.woff') format('woff'),
         url('../fonts/lato-bold-hu.ttf') format('truetype'),
         url('../fonts/lato-bold-hu.svg#LatoWeb') format('svg');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/HelveticaNeueLTStd-Roman.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/HelveticaNeueLTStd-Bd.otf');
    font-weight: bold;
    font-style: normal;
}

/* Defaults */
body {
    border-top: 5px solid #edf2f6;
    overflow-y: scroll;
}

.navbar {
    background: #001f5f;
}

.navbar .active a {
    background: #001339 !important;
}

.navbar a:hover {
    color: #cedeff !important;
}

.btn-success {
    background-color: #001f5f !important;
    border-color: #001f5f !important;
}

.btn-action {
    background-color: #9f1f2c !important;
    border-color: #9f1f2c !important;
    color: #ffffff;
}

.error-emoji {
    width: 100%;
    float: left;
    font-size: 32px;    
    padding: 50px 0;
    text-align: center;
}

.error-emoji i {
    font-size: 60px;
    line-height: 1.5em;
    display: block;
}

.container {
    max-width: none !important;
    width: 1200px;
}

.color-green {
    color: #59a51c !important;
}

.color-red {
    color: #c11d1d !important;
}

.btn {
    text-decoration: none !important;
}

h2, h3, h4, h5, h6 {
    font-weight: bold;
}

/* Header */
.admin-header {
    padding: 10px 0 18px 0;
}

.admin-header h1.site-title {
    font-size: 24px;
    font-weight: 300;
    color: #001f5f;
}

.admin-header h1.site-title b {
    font-weight: bold;
}

.admin-header .user-block {
    color: #001f5f;
    margin-top: 22px;
    padding-right: 30px;
}

.admin-header .user-block .btn {
    margin-left: 5px;
}

/* Login form */
#login-form {
    width: 400px;
    margin: 30px auto;
}

#login .admin-header h1.site-title {
    font-size: 42px;
    text-align: center;
}

/* Sections */
h2.page-title {
    color: #001f5f !important;
    font-weight: bold;
    margin: 10px 0 30px 0;
}

/* Events */
#events .table td,
#events .table th {
    text-align: center;
    vertical-align: middle !important;
}

.filter-results {
    text-align: right;
    margin-bottom: 20px;
}

.filter-results h2 {
    width: auto;
    float: left;
    margin-top: 4px;
}

.filter-results .btn-add.btn-sm {
    margin: 5px 0 0 20px;
}

/* Partners */
#partners .table td,
#partners .table th {
    text-align: center;
    vertical-align: middle !important;
}

/* Edit partner */
.form-control-tiny {
    width: 50%;
}

#partner-edit h3 {
    margin-top: 5px;
    margin-bottom: 25px;
    color: #bcbcbc;
}

#partner-edit .email-add,
#partner-edit .email-item {
    width: 100%;
    float: left;
}

#partner-edit .email-add {
    margin-top: 5px;
}

#partner-edit .email-item {
    margin-bottom: 5px;
}

#partner-edit .email-item .form-control {
    width: 92.5% !important;
    float: left;
}

#partner-edit .email-remove {
    float: right;
    margin: 7px 5px 0 0;
}

#partner-edit table td {
    vertical-align: middle;
    text-align: center;
}

/* Factors */
#factors table td,
#factors table th {
    text-align: center;
    vertical-align: middle;
}

#factors table td .input-sm {
    text-align: center;
}

#factor-select {
    width: 250px;
    float: left;
    margin-left: 20px;
}

#factor-question label {
    font-size: 1.3em;
    line-height: 2.2em;
}

#factor-question input {
    width: 100%;
}

#factors .option-cols .input-group {
    margin-bottom: 5px;
}

#factors .option-cols .input-group input {
    width: 60px;
    text-align: center;
}

#factors .option-cols .has-warning input {
    width: 90px;
}

#factor-edit form {
    width: 840px;
    margin: 20px auto;
}

#factors .zone-group {
    text-align: left;
    margin-bottom: 20px;
}

#factors .zone-group .col-sm-4 {
    padding: 5px 5px 5px 0 !important;
}

#factors .zone-group input {
    text-align: center;
}

#factors .zone-handle {
    width: 100%;
    float: left;
    margin-bottom: 0 !important;
    height: 25px !important;
}

#factors .zone-handle button {
    float: right;
    position: relative;
    top: -8px;
    outline: none;
}

#factors .zone-multiplier-input {
    width: 80%;
    margin-left: 10%;
    margin-top: 10px;
}

#factors .sub-title {
    display: inline-block;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 10px;
}

.table-huge-border tbody td {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    border-bottom: 4px solid #2c3e50 !important;
}

/* Edit event */
#event-edit table th,
#event-edit table td {
    vertical-align: middle;
    text-align: center;
}

/* Edit questions */
#tests table th,
#tests table td {
    vertical-align: middle;
    text-align: center;
}

/* CSS settings */
#color-form .row {
    margin-left: 0;
    margin-right: 0;
}

#color-form .minicolors {
    width: 100%;
    float: left;
}

#color-form .minicolors-swatch {
    position: absolute;
    top: 13px;
    left: auto !important;
    right: 12px;
}

#color-form .bootstrap-filestyle {
    width: auto !important;
    margin-left: 0 !important;
    margin-bottom: 5px !important;
}

/* Graphs */
.graph-cols {
    width: 100%;
    float: left;
    margin-left: 0;
}

.graph-cols .col-md-6.pull-right {
    border-left: 5px solid #c0c0c0;
}

.graph-block {
    width: 80%;
    float: left;
    margin: 20px 0 0 10%;
    border: 3px solid #2c3e50;
    border-radius: 5px;
}

.graph-block:last-child {
    margin-bottom: 30px;
}

.graph-block .graph-title {
    background: #2c3e50;
    color: #fff;
    padding: 5px;
    font-weight: bold;
    text-align: center;
}

.graph-block .graph-title .hidden-input {
    width: 85%;
    position: relative;
    top: -2px;
    background: none !important;
    border: 1px solid transparent;
    color: #fff;
    text-align: center;
    outline: none;
}

.graph-block .graph-title .hidden-input:hover {
    border: 1px solid rgba(255, 255, 255, .3);
}

.graph-block .graph-list {
    width: 100%;
    float: left;
    padding: 2.5%;
}

.graph-block .graph-item {
    margin-bottom: 5px;
}

.graph-block .graph-item .form-control {
    width: 92%;
    margin-right: 10px;
}

.input-small-q {
    width: 140px;
    display: inline-block;
    margin-left: 10px;
}

.lang-modal, .static-lang-modal {
    cursor: pointer;
}

#lang-modal {
    max-height: calc(100% - 100px);
    position: fixed;
    top: 100px;
    left: calc(50% - 400px);
    width: 800px;
    color: #4a5666;
    background: linear-gradient(to bottom right, white, #F8F8F8) !important;
    box-shadow: 0 15px 20px -15px rgba(0, 0, 0, 0.3), 0 35px 50px -25px rgba(0, 0, 0, 0.3), 0 85px 60px -25px rgba(0, 0, 0, 0.1);
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    padding: 10px;
}

#lang-modal.active {
    visibility: visible;
    opacity: 1;
}

#lang-modal-close {
    display: block;
    margin-top: -2px;
    margin-left: 10px;
    margin-right: 5px; 
    float: right;
    text-decoration: underline;
}