﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Bootstrap related */
.table {
    margin-bottom: 0px;
}

.list-group {
    margin-bottom: 0px;
}

.modal-header {
    background-image: var(--bg-image) !important;
}

.modal-footer {
    background-image: var(--bg-image) !important;
}

.btn-close-footer {
    color: #BBBBBB;
    font-size: small;
}

    .btn-close-footer:hover {
        color: #ECBA16;
    }

/* General colors / Feel & look */
:root {
    --text-heading-color: #DC143C;
    --main-color: #337AB7;
    --main-color-dark: #4C76AB;
    --btn-color: #DC143C;
    --btn-hover-color: #FF0033;
    --nav-link-color: #070707;
    --nav-link-hover-color: #FF0033;
    --nav-bg-color: #f8f8f8;
    --border-radius: 4px;
    --bg-image: url('../sets/tobel/images/bg.png');
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

@media (min-width: 768px) {
    .modal-xlg {
        width: 90%;
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    .modal-xlg {
        width: 90%;
        max-width: 1900px;
    }
}

/* Google charts flicker fix */
svg > g:last-child > g:last-child {
    pointer-events: none
}

div.google-visualization-tooltip {
    pointer-events: none
}

/* Buttons tooltip */
.tooltip {
    position: fixed;
}

/* Loading modal */
div.md_progress {
    background: #ffffff;
    text-align: center;
    width: 400px;
    padding: 10px;
    box-shadow: 0px 0px 10px #cccccc;
    border-radius: 5px;
    z-index: 9999;
}

    div.md_progress img.md_progress_img {
        height: 40px;
        margin-bottom: 6px;
        display: inline;
    }

    div.md_progress div.md_progress_text {
        font-size: large;
        text-align: center;
    }

/* Tool buttons */
.tool-btn {
    cursor: pointer;
    background-color: var(--btn-color);
    color: white;
    border: none;
    border-width: 0;
    z-index: 11;
    border-radius: var(--border-radius);
    padding: 9px 10px;
    float: right;
    width: 44px;
    height: 44px;
    outline: black;
    border: 1px solid white;
    font-size: 20px;
    line-height: 0;
}

.tool-btn--right {
    float: left;
}

.tool-btn--crimson {
    background-color: #DC143C;
}

@media (hover: hover) {
    .tool-btn--crimson:hover {
        background-color: #FF0033 !important;
    }
}

.tool-btn--blue {
    background-color: #337AB7;
}

@media (hover: hover) {
    .tool-btn--blue:hover {
        background-color: #4C76AB !important;
    }
}

.history-tool-btn {
    cursor: pointer;
    background-color: var(--btn-color);
    color: white;
    border: none;
    border-width: 0;
    z-index: 11;
    border-radius: var(--border-radius);
    padding: 2px 2px;
    float: right;
    width: 30px;
    height: 100%;
    outline: black;
    border: 1px solid white;
    font-size: 20px;
    line-height: 0;
}

.tool-btn-disabled {
    background-color: darkgray;
    pointer-events: none;
}

.active-tool {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.active-toggle-tool {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.navbar-default {
    background-color: var(--nav-bg-color);
}

    .navbar-default .navbar-nav li a {
        color: var(--nav-link-color);
    }

        .navbar-default .navbar-nav li a:visited {
            color: var(--nav-link-color);
        }

        .navbar-default .navbar-nav li a:hover {
            color: var(--nav-link-hover-color);
        }

@media (min-width: 768px) and (max-width: 1010px) {
    .navbar-header {
        float: none;
    }

    .navbar-left, .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

        .navbar-nav > li {
            float: none;
        }

            .navbar-nav > li > a {
                padding-top: 10px;
                padding-bottom: 10px;
            }

    .collapse.in {
        display: block !important;
    }
}

@media (hover: hover) {
    .tool-btn:hover {
        background-color: var(--btn-hover-color);
    }
}

@media (hover: hover) {
    .history-tool-btn:hover {
        background-color: var(--btn-hover-color);
    }
}

/*3D viewer*/
.viewer3d {
    height: calc(100% - 50px);
    width: 100%;
    position: absolute;
}
