/* Styling for app-specific classes */

/* To display a dcc.Checklist in two, three or four columns */
.nstrava-two-column {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
}
.nstrava-three-column {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
}
.nstrava-four-column {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
}

/* A collapsible content with a border that's hidden by default */
.nstrava-collapsible-section {
    border: 2px var(--nathan-yellow) solid;
    border-radius: 4px;
    display: none;
    margin: 10px 10px 0px 10px;
    padding-top: 10px;
}

/* Position the flag thumbnail 200px down from the center of the div that holds the location sunburst chart */
.nstrava-flag-thumbnail-fancybox {
    display: block;
    height: 0px;
    position: relative;
    text-align: center;
    top: 200px;
    z-index: 2;
}

/* The "find" button is positioned just above the flag thumbnail */
.nstrava-find-button {
    display: block;
    margin: 0 auto;
    color: white !important;
    position: relative;
    top: 150px;
    z-index: 2;
}

/* A light gray 1px border with curved corners to go around an element */
.nstrava-image-border {
    border: 1px solid var(--light-border);
    border-radius: 0.5rem;
}

/* If there's only one location chart, we have to move the above elements to the side */
.nstrava-offset-left {
    right: var(--single-sunburst-offset);
}

/* Move the cycle find button up and to the left for space amongst the cycle charts */
.nstrava-cycle-button {
    right: var(--triple-sunburst-offset-right);
    top: var(--triple-sunburst-offset-top);
}


/* For slightly rounded tab borders */
.nstrava-right {
    border-radius: 0 4px 4px 0;
}

.nstrava-left {
    border-radius: 4px 0 0 4px;
}

/* Round the corners of anything, link an image */
.nstrava-rounded {
    border-radius: 4px;
}

/* Draw a light gray box around an element */
.nstrava-light-box {
    border-radius: 5px;
    border: 1px var(--disabled-gray) solid;
    padding: 5px;
}

/* A drag-n-drop target/upload link box */
.nstrava-upload-box {
    width: 50%;
    height: 60px;
    line-height: 60px;
    border-width: 1px;
    border-style: dashed;
    border-radius: 5px;
    text-align: center;
    margin: 10px;
}

/* Expand them a little bit on hover */
.nstrava-upload-box:hover {
    transform: scale(1.01);
}

/* A textarea to display many lines of output with a scrollbar */
.nstrava-text-area, .nstrava-text-area-full {
    width: 51%;
    height: 400px;
    background-color: var(--dark-background);
    color: var(--ui-blue);
    margin-top: 5px;
    font-family: monospace;
}

/* A version that takes all the width, used with display: flex */
.nstrava-text-area-full {
    width: 100%
}

.nstrava-date-picker {
    margin-left: 10px;
}

/* For times when we generate a clickable element that isn't obvious to the browser */
.nstrava-cursor-pointer {
    cursor: pointer;
}

/* Expand size a little to emphasize clickability */
.nstrava-hover-expand:hover {
    transform: scale(1.1);
}

/* Expand the size of a large object a tiny bit */
.nstrava-hover-expand-large:hover {
    transform: scale(1.01);
}

/* Hide the AG Grid header when needed. E.g. Admin->Inspect->Code Analysis */
.nstrava-hide-ag-header .ag-header {
    display: none;
}

/* For adding a header and horizontal line to HTML tooltips */
.nstrava-large-bold-header {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
}
