@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* css */
/* === */

/* .btn.icon - Both btn and icon. e.g. <div class="btn icon"> </div>*/
/* .btn .svg - When svg is a decendant of btn. e.g. <div class="btn"> <div class="svg"> </div> </div>*/

:root {
    /*--image-btn-container-width: 140px;*/
    --border-shadow-colour: #f0f0f0;
    /* Header */
    --header-btn-container-width: 268px;
    --header-height-and-margin: 48px;
    --header-background-mask-colour: rgb(255, 255, 255, 0.50);
    /* Buttons */
    --btn-blue-default: #a0bdf0;
    --btn-icon-tbl: rgb(232, 232, 232);
    --btn-icon-size: 1.25rem;
    --btn-disabled: #c4c4c4;
    /* https://codepen.io/sosuke/pen/Pjoqqp */
    --btn-blue-default-filter: invert(70%) sepia(65%) saturate(411%) hue-rotate(188deg) brightness(99%) contrast(91%);
    --btn-grey-default-filter: invert(90%) sepia(0%) saturate(0%) hue-rotate(357deg) brightness(99%) contrast(89%);
    /* Menu */
    --menu-height: 50px;
    --menu-item-height: 40px;
    --menu-link-margin-top: 4px;
    --drop-down-background-colour: rgb(250, 250, 250);
    /* Side Panels*/
    --sidepanel-height: 91vh;
    --sidepanel-info-width: 500px; /* Variable is set in C# code. */
    --side-margin: 2%;
    --sidepanel-background-colour: #fafafa;
    /* Image */
    --image-width: 100%;
    --image-height: 100%;
    /* Name Tags */
    --name-tag-opacity: 0; /* Variable is set in html code. */
    --name-tag-text-opacity: 0; /* Variable is set in html code. */
    --name-tag-tail-width: 2;
    --name-tag-pointer-colour: rgb(180, 255, 80);
    --name-tag-background-colour: #555;
    --name-tag-tooltip-zindex: 20;
    /* Table Lists */
    --table-edt-row-height: 26px;
    --table-edt-border-colour: #d3d3d3;
    --table-edt-background-colour: white;
    --table-edt-focus-colour: #68adf6cc;
    --table-edt-label-background-colour: #f2f2f2;
    --table-edt-control-colour: #495057;
    /* Edit Dialogs */
    --edit-label-width: 142px;
    --edit-sub-table-height: 174px; /*145px;*/
    /* Facebook */
    --fb-date-colour: grey;
    --fb-inaccurate-colour: #ffc6d3;
    --fb-chitchat-colour: lightgrey;
    --fb-comment-colour: #f0f2f5;
    --fb-description-colour: RGB(248, 248, 248);
    /* Image */
    --tool-tip-name-tag-position-x: 20px;
}

.is-mobile {
    /* Do nothing when not a mobile device. */
}

.unselectable {
    -moz-user-select: -moz-none;
    /*-khtml-user-select: none;*/
    -webkit-user-select: none;
    /*-o-user-select: none;*/
    user-select: none;
 }

.menu-link {
    font-size: 18px;
    text-align: center;
    color: slategrey;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 8px;
    padding-bottom: 10px;
    text-decoration: none;
/*    margin-left: -3px;
    margin-right: -3px;
*/}

body {
    /*overflow: clip;*/
}

@media only screen and (orientation: landscape)
{
/*    body {
        height: 100vw;
        transform: rotate(90deg);
    }
*/
}

.home {
    width: 50%;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.home.info {
    border: 1px solid darkgrey;
    border-radius: 3px;
    box-shadow: var(--border-shadow-colour) 1px 1px 8px;
    padding: 20px;
    background-color: var(--sidepanel-background-colour);
}

.home.info-links {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.harbury-village {
    display: flex; 
    align-items: center; 
    align-content: center; 
    border-radius: 3px;
}

.harbury-village-sign {
    position: absolute;
    width: 50%;
    height: 10%;
    background-color: #9998946b;
    display: flex;
    align-items: center;
    align-content: center;
    margin: 25%;
    margin-top: 10%;
    border-radius: 6px;
}

img.harbury-village {
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
}

a.menu-link {
    background-color: aliceblue;
    margin-top: var(--menu-link-margin-top);
}

.menu-link:hover {
    text-decoration: none;
    color: #454545;
    margin-top: var(--menu-link-margin-top);
}

a.active-menu-link {
    background-color: #C6D4EB;
    color: black;
    margin-top: var(--menu-link-margin-top);
}

.hhc {
    background-color: #D22E3A;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    height: 170px;
}

.debug {
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    color: red;
}

/*#sidepanel.is-open {
    width: 35%;
}
*/
.singleline {
    white-space: nowrap;
    margin-top: 4px;
    border: 1px solid lightgray;
    border-radius: 4px;
}

.search-container {
    white-space: nowrap;
}

.category-container {
    /*white-space: nowrap;*/
    display: inline-table;
    position: relative;
    /*-webkit-transform: translate(-2px, 0px);*/ /* Safari, Chrome and Edge */
    /*-moz-transform: translate(-2px, 0px);*/ /* Firefox */
    /*-o-transform: translate(-2px, 0px);*/ /* Opera */
    margin-left: var(--side-margin);
    margin-right: var(--side-margin);
}

.search-criteria {
    background-color: white;
}

.search-criteria.success {
    background-color: RGB(198, 255, 211);
}

.search-criteria.error {
    background-color: RGB(255, 198, 211);
}

.category {
    position: relative;
    -webkit-transform: translate(-2px, 0px); /* Safari, Chrome and Edge */
    -moz-transform: translate(-2px, 0px); /* Firefox */
    -o-transform: translate(-2px, 0px); /* Opera */
}

.toast-results {
    color: black;
    padding: 6px;
    border-radius: 3px;
    background-color: #a0bdf0;
    text-align: center;
}

.child {
    display: inline-block;
}

.search {
    /* Desktop size */
    width: 30%;
}

.msgbox-button-container{
    display: flex;
    justify-content: center;
}

.msgbox-reverse-buttons {
    display: flex;
    flex-direction: row-reverse; /* Reverse the elements inside */
}

/* ------------------------------------------------------------------------------- */
/* Facebook */
/* ------------------------------------------------------------------------------- */

ul {
    padding-left: 0px;
}

.fb-person {
    font-size: 0.8125rem;
    font-weight: 600;
}

.fb-date {
    font-size: 0.7rem;
    font-weight: 450;
    color: var(--fb-date-colour);
}

.fb-chitchat {
    background-color: var(--fb-chitchat-colour);
    color: darkgrey;
}

.fb-inaccurate {
    background-color: var(--fb-inaccurate-colour);
    color: grey;
}

.fb-li {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
    background: var(--fb-comment-colour);
    margin: 0px;
    border: 1px solid darkgrey;
    border-radius: 10px;
}

/*.fb-li:nth-child(even) {*/
.fb-desc {
    background: var(--fb-description-colour);
}

.no-spin-buttons {
    /* Chrome, Safari, Edge, Opera */
/*  -webkit-outer-spin-button: -webkit-appearance: none;
    -webkit-outer-spin-button: margin: 0;
    -webkit-inner-spin-button: -webkit-appearance: none;
    -webkit-inner-spin-button: margin: 0;
*/    
    /* Firefox */
    -moz-appearance: textfield;
}

.edit-group-title {
    font-size: 0.8125rem;
    font-weight: 600;
    position: relative;
    top: 5px;
    color:grey;
    background-color: white;
    max-width: fit-content;
    max-height: 1.2rem;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 5px;
    margin-bottom: 0px;
    white-space: nowrap;
    float: left;
    z-index: 1;
}

.edit-group {
    border: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: lightgray;
    padding: 10px;
    margin-top: 15px
}

.edit-label {
    margin-bottom: 0px;
}

/* Based on col-form-label but without padding-bottom. */
.form-edit-label {
    padding-top: calc(0.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.form-control.fb-paste-text {
    background-color: khaki;
    height: 300px;
}

.fb-paste-text {
    background-color: khaki;
    /*height: 300px;*/
}

.form-control:disabled
{
    background-color: lightgray;
}

.textarea {
    width: 100%;
    height: fit-content;
    /*height: stretch;*/
    /*padding: 12px 20px;*/
    box-sizing: border-box;
    /*border: 2px solid #ccc;*/
    /*    border-radius: 4px;
    
*/
    overflow: hidden;
    background-color: white;
    font-size: 16px;
    resize: none;
    border-style: none;
}

/* ------------------------------------------------------------------------------- */

/* [tool-tip] is an attribute to an element */
[tool-tip] {
    position: relative;
}

[tool-tip]:before {
    /* Tooltip arrow */
    opacity: 0;
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
    font-size: 0;
    line-height: 0;
    width: 0;
    height: 0;
}

[tool-tip]:after {
    /* Tooltip when invisible */
    opacity: 0;
    content: attr(tool-tip);
    position: absolute;
    top: -30px;
    left: 0px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: dimgrey;
    color: #fff;
    font-size: 0.75em;
    height: 20px;
    line-height: 18px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    white-space: nowrap;
    word-wrap: normal;
}

[tool-tip]:hover:before,
[tool-tip]:hover:after {
    /* Shows the tooltip */
    opacity: 1;
    transition-property:  opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 250ms;
    transition-delay: 1s;
    z-index: 10;
}

/* ------------------------------------------------------------------------------- */

[tool-tip-name-tag] {
    display: inline-block;
}

[tool-tip-name-tag]:before {
    /* Tooltip arrow */
    opacity: 0;
    content: '';
    position: absolute;
    top: -3px;
    left: calc(var(--tool-tip-name-tag-position-x) + 15px);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--name-tag-pointer-colour);
    font-size: 0;
    line-height: 0;
    width: 0;
    height: 0;
    user-select: none;
}

[tool-tip-name-tag]:after {
    /* Tooltip when invisible */
    opacity: 0;
    content: attr(tool-tip-name-tag);
    position: absolute;
    top: 5px;
    left: var(--tool-tip-name-tag-position-x);
    padding: 5px 8px;
    background-color: dimgrey;
    color: #fff;
    font-size: 0.75em;
    line-height: 18px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    white-space: pre-wrap;
    width: max-content;
}

[tool-tip-name-tag]:hover:before,
[tool-tip-name-tag]:hover:after {
    /* Shows the tooltip */
    opacity: 1;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 250ms;
    transition-delay: 1s;
    z-index: 10;
}

/* ------------------------------------------------------------------------------- */

/*.tbl-tool-tip {
    display: none;
    position: relative;
}
*/
/*.tbl-tool-tip:before {*/
    /* Tooltip arrow */
    /*opacity: 0;
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
    font-size: 0;
    line-height: 0;
    width: 0;
    height: 0;
}*/

/*.tbl-tool-tip {
    display: none;
    position: absolute;
    z-index: 100;
    border: 1px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: red;
    padding: 3px;
    color: red;
    top: 20px;
    left: 20px;*/
    /* Tooltip when invisible */
    /*display: none;
    opacity: 0;*/
    /*content: attr(tool-tip);*/
    /*position: relative;
    top: 0px;
    left: 0px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: dimgrey;
    color: #fff;
    font-size: 0.75em;
    height: 20px;
    line-height: 18px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    white-space: nowrap;
    word-wrap: normal;
    z-index: 10;*/
/*}*/

/*.tbl-tool-tip:hover:before,
.tbl-tool-tip:hover:after {*/
    /* Shows the tooltip */
    /*opacity: 1;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 250ms;
    transition-delay: 1s;
    z-index: 10;
}*/

/*.tooltip {
    display: inline-block;
    position: relative;
    border-bottom: 1px dotted #666;
    text-align: left;
}

    .tooltip .top {
        min-width: 200px;
        top: -20px;
        left: 50%;
        transform: translate(-50%, -100%);
        padding: 10px 20px;
        color: #444444;
        background-color: #EEEEEE;
        font-weight: normal;
        font-size: 13px;
        border-radius: 8px;
        position: absolute;
        z-index: 99999999;
        box-sizing: border-box;
        box-shadow: 0 1px 8px rgba(0,0,0,0.5);
        display: none;
    }

    .tooltip:hover .top {
        display: block;
    }

    .tooltip .top i {
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -12px;
        width: 24px;
        height: 12px;
        overflow: hidden;
    }

        .tooltip .top i::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            left: 50%;
            transform: translate(-50%,-50%) rotate(45deg);
            background-color: #EEEEEE;
            box-shadow: 0 1px 8px rgba(0,0,0,0.5);
        }
*/
/*.hide-name-tag {*/
    /* Hide the tooltip */
    /*opacity: 0;
}*/

@media only screen and (max-width: 640px) {
    /* Normal size */
/*    #sidepanel.is-open {
        width: 25%;
    }
*/
    h1 {
        display: none;
    }

    .search {
        /* Mobile size */
        width: 50%;
    }

    .home {
        width: 95%;
    }

    .category-container {
        /*! top: 100px; */
        /*! position: absolute; */
    }

    img.harbury-village {
        width: calc(100% - (var(--side-margin) * 2));
        margin-left: var(--side-margin);
        margin-right: var(--side-margin);
    }

    .harbury-village-sign {
        width: calc(100% - (var(--side-margin) * 2));
        margin-left: var(--side-margin);
        margin-right: var(--side-margin);
        height: 6%;
        margin-top: 0%;
    }

    .is-mobile {
        display: none;
    }

    #header-buttons-container_id {
        display: none;
    }
}



