@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0072ce;
}

.btn-primary {
    color: #fff;
    background-color: #0072ce;
    border-color: #1861ac;
}
    .btn-primary:hover {
        background-color: #0088f5;
        color: white;
    }

    .btn-primary:active {
        background-color: #007de2;
        color: white;
    }

.btn-details {
    color: #fff;
    background-color: #0072ce;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    /*overflow of blue color in the navigation bar and side bar*/
    background-image: linear-gradient(180deg, rgb(0, 114, 206) 20%, #003158 90%);
}

    .sidebar .top-row {
        background-color: #0072CE;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

        .sidebar .nav-item {
            font-size: 0.9rem;
            padding-bottom: 0.5rem;
        }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
            cursor: pointer;
        }

            .sidebar .nav-item a.active {
                background-color: #007de2; /*rgba(255,255,255,0.25);*/
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: #0088f5; /*rgba(255,255,255,0.1);*/
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.datepicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #cfd2d3;
    background-color: white;
    outline-color: #0072ce;
    width: 100%;
}

.navbar-toggler {
    /*background-color: rgba(255, 255, 255, 0.1);*/
    color: white;
    border: 0px;
}

.navbar-toggler:focus {
    outline: 1px none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8rem;
}


.td, th {
    border: 0px solid #18364F;
    border-collapse: collapse;
    text-align: center;
    padding: 8px;
    width: 50%;
}

.td3ColumnFirstColumn, .th3ColumnFirstColumn {
    border: 0px solid #18364F;
    border-collapse: collapse;
    text-align: center;
    padding: 8px;
    width: 30%;
}

.td3ColumnSecondColumn, .th3ColumnSecondColumn {
    border: 0px solid #18364F;
    border-collapse: collapse;
    text-align: center;
    padding: 8px;
    width: 30%;
}

.td3ColumnThirdColumn, .th3ColumnThirdColumn {
    border: 0px solid #18364F;
    border-collapse: collapse;
    text-align: center;
    padding: 8px;
    width: 30%;
}

.button_details_refresh {
    display: inline-block;
    width: calc(50% - 4px);
    margin: 0 auto;
    color: #fff;
    background-color: #0072ce;
    border-color: #1861ac;
    display: inline-block;
    text-align: center;
}

    .button_details_refresh:hover {
        background-color: #0088f5;
        color: white;
    }

    .button_details_refresh:active {
        background-color: #007de2;
        color: white;
    }

.button_submit {
    display: inline-block;
    width: calc(50% - 4px);
    margin: 0 auto;
    color: #fff;
    background-color: #0072ce;
    border-color: #1861ac;
    display: inline-block;
    text-align: center;
}

    .button_submit:hover {
        background-color: #0088f5;
        color: white;
    }

    .button_submit:active {
        background-color: #007de2;
        color: white;
    }

.tr:nth-child(odd) {
    background-color: #cfd2d3;
}


.spinner {
    /*
    border: 16px solid #cfd2d3;
    border-top: 16px solid #0072ce;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1000ms cubic-bezier(0.7, 0.1, 0.1, 0.7) infinite;
    position: absolute;
    */
    float: right;
    border: 16px solid #cfd2d3;
    border-top: 16px solid #0072ce;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1000ms cubic-bezier(0.7, 0.1, 0.1, 0.7) infinite;
}

.loginFailedTextBox {
    color: red;
    border-color: red;
    box-shadow: 0 0 5px red;
}

/* Tooltip container */
.tooltip-wrapper {
    float: right;
    position: relative;
    display: inline-block;
    color: red;
    text-decoration: underline;
    cursor: help;
}

    /* Tooltip text */
    .tooltip-wrapper .span {
        visibility: hidden;
        width: 160px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        top: 125%;
        right: 0%;
        font-size: 0.8rem;
        /* breaking text and adding new lines*/
        white-space: pre-line;
        /* Fade in tooltip */
        opacity: 0;
        transition: opacity 0.3s;
    }

        /* Tooltip arrow */
        .tooltip-wrapper .span::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 50%;
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #555 transparent;
        }

    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip-wrapper:hover span {
        visibility: visible;
        opacity: 1;
    }

.form_submit_wide {
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    float: right;
    margin-right: 8px;
    width: 33%;
    padding-left: 0px;
    padding-right: 0px;
}

.venues_spinner {
    display: inline-block;
    vertical-align: middle;
    float: right;
    margin-right: 20%;
}

.float_right_max_width {
    float: right;
}

.venues_date_select {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    width: 198px;
    height: 30px;
}

.ensico_logo_narrowscreen {
    height: 30px;
}

.ensico_logo_widescreen {
    display: none;
}

/*
.chartdiv, .legendwrapper {
    width: 100%;
    height: 300px;
}

.legenddiv {
    height: 300px;
}

.legendwrapper {
    max-height: 120px;
    overflow-x: unset; /* prej je tuki pisal "none"
    overflow-y: auto;
}
*/

.chartdiv, .legenddiv {
    width: 100%;
    height: 300px;
}

.legenddiv {
    height: 0px;
}

.unreached-casino-warning {
    width:100%; 
    text-align: center; 
    margin-top:20%; 
    color:red;
}

.venues_swipe_listener {
    height: 100vh;
}






@keyframes spin {
    0% {
        transform: rotate(0deg)
    }
    50% {
        animation: 500ms;
    }
    100% {
        transform: rotate(360deg)
    }
}



#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 430px) {
    /*so that text in the buttons (when display is small, for example on older phones) does not get cut off*/
    .button_details_refresh {
        font-size: 14px;
    }
    .button_submit {
        font-size: 14px;
    }
}

@media (max-width: 370px) {
    /*so that text in the buttons (when display is small, for example on older phones) does not get cut off*/
    .button_details_refresh {
        font-size: 12px;
    }
    .button_submit {
        font-size: 12px;
    }
}

@media (max-width: 330px) {
    /*so that text in the buttons (when display is small, for example on older phones) does not get cut off*/
    .button_details_refresh {
        font-size: 10px;
    }
    .button_submit {
        font-size: 10px;
    }
}

@media (max-width: 300px) {
    /*so that text in the buttons (when display is small, for example on older phones) does not get cut off*/
    .button_details_refresh {
        font-size: 8px;
    }
    .button_submit {
        font-size: 8px;
    }
}

@media (max-width: 500px) {
    .venues_date_select {
        width: 145px;
        height: 30px;
    }

    .small_screen_heading {
        font-size: 2rem;
    }
}





@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .td3ColumnFirstColumn, .th3ColumnFirstColumn {
        width: 30%;
    }

    .td3ColumnSecondColumn, .th3ColumnSecondColumn {
        width: 20%;
    }

    .td3ColumnThirdColumn, .th3ColumnThirdColumn {
        width: 50%;
    }

    .form_submit_wide {
        display: table;
        float: right;
        margin-left: 8px;
        margin-top: 8px;
        width: 50%;
        padding-left: 0px;
        padding-right: 0px;
    }

    .float_right_max_width {
        float: right;
    }


    .venues_spinner {
        display: table;
        float: left;
        margin-left: 15%;
        margin-top: 8px;
    }
}

@media (max-width: 940px) {
    .form_submit_wide {
        display: table;
        float: left;
        margin-left: 8px;
        margin-top: 8px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .float_right_max_width {
        float: left;
    }

    .venues_spinner {
        display: table;
        float: left;
        margin-left: 20%;
        margin-top: 8px;
    }
}

/*when screen is wide*/
@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-brand {
        width: 100%;
        text-align: center;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .ensico_logo_widescreen {
        bottom: 0;
        position: fixed;
        padding-left: 85px;
        padding-bottom: 85px;
        padding-top: 85px;
        display: block;
    }

    .ensico_logo_narrowscreen {
        display: none;
    }

    .venues_swipe_listener {
        height: unset;
    }
}

@media (max-height: 545px) {
    /*so that when screens height is small enough, the ensico logo stays in one place and does not cover the menus elements*/
    .ensico_logo_widescreen {
        position: relative;
    }
}

@media (min-width: 500px) {
    .datepicker {
        width: unset;
    }
}

@media (min-width: 1000px) {
    .button_details_refresh {
        width: 30%;
    }
}

@media (min-width: 1500px) {
    .button_details_refresh {
        width: 25%;
    }
}