/*
*   Code for Thesis
*   Author: Konstantinos Tsiouplakis
*   CSS file
*   Version: 1.0.15
*/

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e9e9e9;
    border-radius: 0.8rem;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.8rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #666; 
}
/* end: Scrollbar */

/* Navbars */
.navbar {
    background-color: #7cadf8;
    height: 90px;
}

.tools {
    padding: 0;
    height: 50px;
    background-color: #d4e4fd;
}

.navbar-buttons {
    width: 35px !important;
    height: 35px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0.2rem !important;
}

.col-md-1 {
    width: 5%;
}
/* end: Navbars */

/* Logos of Navbar */
img {
    max-width: 100%;
    height: auto;
}

.logo-tatm {
    width: 65px;
    height: 65px;
}

.logo-municipality {
    width: 25%;
}
/* end: Logos of Navbar*/

/* Map */
.map {
    width: 100%;
    height: calc(100dvh - 90px - 50px);
}

.crosshair-cursor {
    cursor: crosshair;
}

.pointer-cursor {
    cursor: pointer;
}
/* end: Map */

/* Modal */
.custom-modal {
    display: flex;
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}
  
.custom-modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    max-width: 550px;
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 0 128px 0 rgb(0 0 0 / 10%), 0 32px 64px -48px rgb(0 0 0 / 50%);
    position: relative;
}

.close {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: -50px;
    right: 1px;
}
  
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* end: Modal */

.ol-mouse-position {
    display: block;
    padding: 10px !important;
    background-color: #0d6efd !important;
    color: #fff !important;
    border-radius: 0.2rem;
}

/* Ol Popup */
.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 0.5rem !important;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 200px;
    text-align: center;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: -30px;
    right: -1px;
}

.ol-popup-closer:after {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ff0f6f;
    content: "\00d7";
    text-shadow: 0 -1px 8px #000 !important;
}

.ol-popup-closer:hover {
    cursor: pointer;
}

.info-popup {
    width: 400px;
    height: 200px;
}

.info-popup-closer {
    top: 0;
    right: 2px;
    z-index: 10000000;
}
/* end: Ol Popup */

/* Ol Tooltip */
.ol-tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    color: #fff;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
    font-size: 12px;
    cursor: default;
    user-select: none;
}
  
.ol-tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.ol-tooltip-static {
    background-color: #ffcc33;
    color: #000;
    border: 1px solid #fff;
}

.ol-tooltip-measure:before,
.ol-tooltip-static:before {
    border-top: 6px solid rgba(0, 0, 0, 0.5);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
}

.ol-tooltip-static:before {
    border-top-color: #ffcc33; 
}
/* end: Ol Tooltip */

/* Ol Buttons */
.ol-zoom-in,
.ol-zoom-out,
.ol-rotate,
.ol-rotate-reset {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #0d6efd !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 0.2rem !important;
    font-size: 1.3rem !important;
}

.ol-remove-color {
    background-color: transparent !important;
}

.ol-rotate {
    visibility: visible;
    top: 100px !important;
    left: 0.5em !important;
    right: 0 !important;
}
/* end: Ol Buttons */

/* Popover */
.custom-popover-options {
    position: fixed;
    z-index: 1000;
    max-width: 300px; 
    max-height: 520px;
    margin-top: 15px; 
    border: 1px solid #0d6efd;
    right: 1%;
}

.card-header:first-child {
    border-radius: 0.2rem 0.2rem 0 0 !important;
}

.close-popover {
    cursor: pointer;
}

hr {
    opacity: 100 !important;
}

.square {
    width: 20px;
    height: 20px;
    background-color: transparent;
}

.parcel {
    border: 1px solid #6610f2;
}

.property {
    border: 1px solid #d63384;
}

.text-pink {
    color: #d63384;
}

.pinakides {
    border: 1px solid #fd7e14;
}

.tomeis {
    border: 1px solid #052c65;
}

.text-primary-text-emphasis {
    color: #052c65;
}

.street-line {
    color: #198754;
    width: 40px;
}

.building-line {
    color: #dc3545;
    width: 40px;
}

.fa-signs-post {
    color: #ff0f6f;
}

.popover-info {
    display: inline-block;
    font-size: 0.8rem;
    text-align: center !important;
}

.arrows {
    color: #0d6efd;
}

.arrows:hover {
    cursor: pointer;
}

.layer-info {
    width: 280px !important;
}

.layer-info-text {
    font-size: 0.9rem;
}

.page-number {
    font-size: 1.07rem;
}
/* end: Popover */

/* Scale line */
.ol-scale-text {
    font-weight: 700;
    text-shadow: 0 -1px 8px #fff !important;
}

.ol-scale-step-text {
    font-weight: 700;
    text-shadow: 0 -1px 8px #fff !important;
}
/* Scale line */

/* Snackbar */
.snackbar {
    min-width: 250px;
    margin-left: -125px;
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 0.7rem;
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: 30px;
}
/* end: Snackbar */

/* Mobile Version */
@media screen and (max-width: 720px) {
    .title {
        font-size: 1rem;
    }
}

@media screen and (min-width: 721px) and (max-width: 1000px) {
    .title {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 400px) {
    .navbar-buttons {
        width: 30px !important;
        height: 30px !important;
    }
}

@media screen and (min-width: 401px) and (max-width: 720px) {
    .navbar-buttons {
        width: 35px !important;
        height: 35px !important;
    }
}

@media screen and (max-width: 720px) {
    .logo-municipality {
        width: 80%;
    }    

    .logo-tatm {
        margin-top: -10px;
    }

    .custom-modal-content {
        width: 90%;
    }

    .custom-popover-options {
        right: 2%;
    }
}

@media screen and (min-width: 720px) and (max-width: 1000px) {
    .logo-municipality {
        width: 50%;
    }   

    .custom-popover-options {
        right: 2%;
    }
}

@media screen and (min-width: 1000px) and (max-width: 1200px) {
    .logo-municipality {
        width: 40%;
    }  
    
    .custom-popover-options {
        right: 2%;
    }
}
/* end: Mobile Version */