/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Media
- Card
- Button (Customized)
- SegmentedControl, Checklist, RadioButton (Customized)
- Dash leaflet style
- Custom tabs
- Custom class / div
- Custom id
- Custom id (tabs content)
- Custom id (dropdown)
- Custom id (table)
- Custom id (canvas)

Colour Palette
Grey #57555A
Deep blue #202029
Dark pink #BE9B89
Light pink #F0E3DF
Pinkish grey #D6CAC7

Order of div
content-header
div-with-image, div-with-image-left, div-with-image-right
div-with-invisible-button
Industry accordian: mantine-Accordion-control span p
Certifications table: mantine-Tabs-tabLabel mantine-Button-root
Book rating: card
small-image, medium-image
image-dark-bg image-vertical-flip image-horizontal-flip image-dark-blue

custom-container
custom-div-dark, custom-div-white
custom-div-left, custom-div-center, custom-div-inline, custom-div-flex
custom-div-space-above, custom-div-space-below, custom-div-space-left
custom-div-smaller, custom-div-small, custom-div-small-medium, custom-div-half,
custom-div-medium, custom-div-large, custom-div-large-full, custom-div-instruction, custom-div-full
custom-margin-top, custom-margin-left, custom-margin-right

p-short, p-bold
invisible-button
vertical-center
blinker
footer
*/


/* Media
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* For devices or screen size smaller than 800px */
@media (max-width:800px), (max-device-width:800px) {
    h2 {
        font-size: 3rem;
        line-height: 1;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    h3 {
        font-size: 2.5rem;
        line-height: 1;
    }
    h5 {
        font-size: 1.8rem;
        line-height: 1.3 !important;
    }
    p {
        font-size: 1.5rem;
        line-height: 1.5;
    }
    #banner {
        display: inline-block;
    }
    #sidebar {
        display: none;
        width: 85vw;
    }
    #tab-content {
        width: 93vw;
        margin-top: 8vh;
        margin-left: 2vw !important;
    }
    .content-header {
        margin-top: 4vh;
    }
    .custom-tab, .custom-tab-sub, .custom-tab-disabled {
        font-size: 15px;
        line-height: 20px;
    }
    .custom-div-smaller, .custom-div-small, .custom-div-small-medium,
    .custom-div-half, .custom-div-medium, .custom-div-large, .custom-div-large-full,
    .custom-div-instruction, .custom-div-full {
        width: -webkit-fill-available !important;
    }
    .small-image Img {
        height: 15px;
    }
    .div-with-image-left Img, .div-with-small-image-left Img {
        margin-right: 5px
    }
    .div-with-image-right Img, .div-with-small-image-right Img {
        margin-left: 5px;
    }
    .card-group {
        grid-template-columns: repeat(auto-fill, minmax(40vw, 40vw));
    }
    .card-header {
        font-size: 1.3rem;
    }
    .zoom:hover {
        transform: scale(1.1);
    }
    [id^="button-wnrs"], [id^="uploadbutton-"], .button-wnrs {
        padding: 0px 10px;
        margin-right: 5px;
        font-size: 10px;
        letter-spacing: 0 !important;
    }
    .span-short {
        width: 30vw;
        margin-left: 4vw;
        padding-right: 2vw;
    }
    Img[id$="-help"] {
        display: none !important;
    }
    #div-wnrs {
        height: 60vw;
        width: 90vw;
    }
    #wnrs-card {
        border-radius: 50px;
    }
    #wnrs-prompt p, #wnrs-reminder-text p, #wnrs-reminder p {
        font-size: 0.9em;
        letter-spacing: -0.02em;
    }
    #wnrs-deck {
        font-size: 8px;
        line-height: 8px;
    }
    #wnrs-counter {
        font-size: 0.8em;
    }
    .div-with-invisible-button span {
        padding: 10px;
        font-size: 100%;
    }
    #button-wnrs-back, #button-wnrs-next {
        width: 20vw;
    }
}

/* For devices larger than 800px */
@media (min-width:800px) and (min-device-width:800px) {
    #banner {
        display: none;
    }
    #sidebar {
        display: inline-block;
        width: 16vw;
    }
    #tab-content {
        width: 80vw;
        margin-top: 0;
        margin-left: 17vw;
    }
    .content-header {
        margin-top: 6vh;
    }
    .custom-tab, .custom-tab-sub, .custom-tab-disabled {
        font-size: 13px;
        line-height: 18px;
    }
    .small-image Img {
        height: 20px;
    }
    .div-with-small-image-left Img {
        margin-right: 5px
    }
    .div-with-small-image-right Img {
        margin-left: 5px;
    }
    .div-with-image-left Img {
        margin-right: 10px
    }
    .div-with-image-right Img {
        margin-left: 10px;
    }
    .card-group {
        grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
    }
    .zoom:hover {
        transform: scale(1.2);
    }
    [id^="button-wnrs"], [id^="uploadbutton-"], .button-wnrs {
        padding: 0px 30px;
        margin-right: 10px;
        font-size: 80%;
    }
    .span-short {
        width: 200px;
        margin-left: 20px;
    }
    .blinker {
        display: inline-block;
    }
    #div-wnrs {
        height: 53vh;
        width: 80vh;
    }
    #wnrs-card {
        border-radius: 100px;
    }
    #wnrs-prompt p, #wnrs-reminder-text p, #wnrs-reminder p {
        font-size: 1.625em;
    }
    #wnrs-deck {
        font-size: 12px;
        line-height: 12px;
    }
    #wnrs-counter {
        font-size: 1em;
    }
    .div-with-invisible-button span {
        padding: 20px;
        font-size: 120%;
    }
    #button-wnrs-back, #button-wnrs-next {
        width: 10vw;
    }
}

/* Button (Customized)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button-dark {
    background-color: #202029;
    color: white;
}

.button-dark:hover {
    color: white;
}

[id$="-ok"] {
    background-color: #F0E3DF;
    box-shadow: 1px 1px 2px #BE9B89;
    margin-bottom: 10px;
}

[id^="button-wnrs-"], [id^="uploadbutton-"], .button-wnrs {
    background-color: #F0E3DF;
    box-shadow: 1px 1px 2px #BE9B89;
    margin-bottom: 5px;
    margin-top: 5px;
}

/* SegmentedControl, Checklist, RadioButton (Customized)
.mantine-Button-root {
    margin: 0px 10px 10px 0px;
    padding: 0 10px;
    border-radius: 32px;
    height: 20px;
}

.mantine-Button-root span {
    font-size: 11px;
    letter-spacing: 0.25px;
    line-height: 18px;
}
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.mantine-SegmentedControl-label {
    font-family: Source Sans Pro !important;
    margin: 0 !important;
}

.mantine-SegmentedControl-labelActive  {
    background-color: #BE9B89;
}

[class^="daq-colorpicker"] label {
    margin: 0 !important;
}

/* Dash leaflet style
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.leaflet-container {
    cursor: crosshair !important;
}

/* Custom tabs
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.custom-tabs-parent {
    width: 100%;
}

.custom-tabs {
    margin-left: 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    width: 90%;
}

.custom-tab, .custom-tab-sub, .custom-tab-disabled {
    color: #BE9B89 !important;
    font-weight: normal;
    border-radius: 5px;
    padding: 8px !important;
    text-align: left !important;
}

.custom-tab-disabled {
    cursor: auto !important;
    font-weight: bold;
    text-decoration: underline;
}

.custom-tab {
    margin-left: 0px;
}

.custom-tab-sub {
    width: calc(100% - 20px) !important;
    margin-left: 20px;
}

.custom-tab:hover, .custom-tab-sub:hover {
    background-color: #31313A !important;
    color: #AFAFB9 !important;
}

.custom-tab-selected {
    background-color: #F0E3DF !important;
    color: #202029 !important;
}

/* Custom class / div
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.content-header {
    display: flex;
}

svg {
    vertical-align: middle;
    margin-right: 5px;
}

.div-with-image Img {
    display: inline-block;
    vertical-align: middle;
}

.div-with-image span {
    vertical-align: middle;
    margin-bottom: 0;
}

.div-with-invisible-button {
    position: relative;
}

.div-with-invisible-button button {
    position: absolute;
    margin: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: rgba(190, 0, 28, 0.8);
    border: 8px dashed rgba(0, 0, 0, 0.2);
    white-space: normal;
}

.div-with-invisible-button button p {
    display: inline-block;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.625em;
    text-shadow: 0px 0px 10px #FFF;
    text-transform: none;
    margin-bottom: 0;
}

.div-with-invisible-button button[id$="-back"] {
    left: 0%;
    transform: scaleX(-1);
}

.div-with-invisible-button button[id$="-back"] p, .div-with-invisible-button button[id$="-back"] svg {
    transform: scaleX(-1);
}

.div-with-invisible-button button[id$="-next"] {
    left: 50%;
}

/* Industry accordian
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.mantine-Accordion-control {
    height: -webkit-fit-content;
    margin: 0;
    text-transform: none;
}

span.mantine-Accordion-label h6 {
    font-size: 15px;
}

.mantine-Accordion-item {
    border-start-start-radius: var(--accordion-radius);
    border-start-end-radius: var(--accordion-radius);
    border-end-start-radius: var(--accordion-radius);
    border-end-end-radius: var(--accordion-radius);
}

span p {
    margin-bottom: 0
}

/* Certifications table
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.mantine-Tabs-tabLabel {
    font-family: Source Sans Pro;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
}

.mantine-Button-root {
    margin: 0px;
}

/* Book rating
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.dmc-root {
  &:hover {
    .dmc-controls {
      opacity: 1;
    }
  }
}
.dmc-controls {
    transition: opacity 150ms ease;
    opacity: 0;
}
.dmc-control {
    & svg {
        margin: 0;
    }
}
.dmc-indicator {
    background-color: #444;
    &[data-active] {
        background-color: #777;
    }
}

.container-book {
    --container-size: calc(100rem * var(--mantine-scale))
}

.card-book-children {
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
}

.card-book {
    width: 150;
    margin: 0 auto;
    height: -webkit-fill-available
}

.span-book {
    display: inline-flex;
    line-height: 100%;
    font-size: 0.8em;
}

.medium-image Img {
    height: 30px;
}

.rainbow {
  font-family: sans-serif;
  font-size: 3rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  text-shadow: -2px 2px #ef3550,
               -4px 4px #f48fb1,
               -6px 6px #7e57c2,
               -8px 8px #2196f3,
               -10px 10px #26c6da,
               -12px 12px #43a047,
               -14px 14px #eeff41,
               -16px 16px #f9a825,
               -18px 18px #ff5722;
}

.rainbow2 {
    background-image: linear-gradient(to left, violet, indigo, blue, green, #d2d20f, #eb9c0b, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.image-dark-bg Img {
    filter: invert();
}

.image-vertical-flip Img {
    transform: scale(1, -1);
}

.image-horizontal-flip Img {
    transform: scale(-1, 1);
}

.image-dark-blue {
    /** filter: invert(10%) sepia(2%) saturate(5866%) hue-rotate(202deg) brightness(96%) contrast(91%); **/
}

.custom-container {
    width: -webkit-fill-available;
}

.custom-div-dark {
    border-radius: 10px;
    background-color: #202029;
    color: white;
    margin: 0% 1%;
    padding: 20px;
}

.custom-div-white {
    padding: 0% 2%;
}

.custom-div-left {
    display: inline-block;
    text-align: left;
    vertical-align: top;
}

.custom-div-center {
    display: inline-block;
    text-align: center;
    vertical-align: top;
}

.custom-div-inline {
    display: inline-block;
}

.custom-div-flex {
    display: flex;
    vertical-align: middle;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.custom-div-flex p {
    margin: 0px 5px 0px 0px;
    padding: 0;
}

.custom-div-flex span {
    flex: none;
}

.custom-div-space-above {
    margin-top: 30px;
}

.custom-div-space-below {
    margin-bottom: 50px;
}

.custom-div-small-space-below {
    margin-bottom: 5px;
}

.custom-div-space-left {
    padding-left: 20px;
}

.custom-div-smaller {
    width: 30%;
}

.custom-div-small {
    width: 32%;
}

.custom-div-small-medium {
    width: 42%;
}

.custom-div-half {
    width: 50%;
}

.custom-div-medium {
    width: 52%;
}

.custom-div-large {
    width: 60%;
}

.custom-div-large-full {
    width: 80%;
}

.custom-div-instruction {
    width: 80%;
    padding-right: 2%
}

.custom-div-full {
    width: 100%;
}

.custom-margin-top {
    margin-top: 10px !important;
}

.custom-margin-bottom {
    margin-bottom: 10px;
}

.custom-margin-left {
    margin-left: 10px;
}

.custom-margin-right {
    margin-right: 10px;
}

.p-short {
    display: contents;
    padding: 0;
    margin: 0;
}

.p-bold {
    font-weight: bold;
}

.p-summary {
    padding-bottom: 10px;
}

.p-indent {
    padding-left: 20px;
    margin-bottom: 0px;
}

.invisible-button {
    background-color: rgba(0,0,0,0);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 5px;
}

.vertical-center {
    display: inline-flex;
    justify-content: center
}

.blinker {
    margin-left: 2px;
    color: red;
    font-weight: bold;
    text-transform: uppercase;
    animation: blinking 2s linear infinite;
}

@keyframes blinking {
    50% {
        opacity: 50%;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 0 5px 0 0;
    border: 0;
    margin: 0;
    background-color: #202029;
    color: #BE9B89;
    text-align: right;
    z-index: 9999;
    white-space: pre;
}

.footer a {
    color: #BE9B89;
}

.footer h6 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Custom id
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#banner {
    top: 0;
    left: 0;
    position: fixed;
    width: 100vw;
    height: 8vh;
    background-color: #202029;
    z-index: 1;
}

#banner div {
    display: inline-table
}

.banner-center {
    height: 8vh;
    width: fit-content;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

#banner h1 {
    display: table-cell;
    font-size: 5vh;
    vertical-align: middle;
    text-align: center;
}

#banner a, #sidebar a {
    color: #BE9B89;
    text-decoration: none;
}

#banner button, #banner button:hover, #banner button:focus {
    height: 8vh;
    width: 20vw;
    text-align: center;
    font-size: 5vh;
    color: #BE9B89;
    vertical-align: top;
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
}

#sidebar {
    top: 0;
    left: 0;
    position: fixed;
    height: -webkit-fill-available;
    background-color: #202029;
    z-index: 1;
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    -webkit-overflow-scrolling: touch; /* iPhone */
}

#sidebar::-webkit-scrollbar { /* WebKit */
    background: transparent; /* Chrome/Safari/Webkit */
    display: none;
    width: 0;
    height: 0;
}

#sidebar h1 {
    margin-top: 8vh;
    margin-left: 20px;
}

#tab-content {
    display: inline-block;
    padding-left: 1vw;
    padding-right: 1.5vw;
    padding-bottom: 50px;
}

#violin-plot .js-plotly-plot .plotly .cursor-pointer,
#graph-mbti .js-plotly-plot .plotly .cursor-pointer {
    cursor: auto;
}

#violin-plot {
    margin-top: 10vh;
    height: 60vh;
}

[id^="upload-"] {
    background-color: transparent;
    border-width: 1px;
    border-radius: 5px;
    border-style: dashed;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

[id^="uploadbutton-"] {
    border-radius: 15px;
    color: #202029;
    display: inline-block;
    line-height: 28px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .1rem;
}

[id^="uploadwnrs-"] {
    padding: 0;
}

[class^="tooltip"] {

}

.tooltip {
    background-color: #57555A;
    color: white;
    margin-left: 10px;
    padding: 10px;
    border-radius: 15px;
    white-space: pre;
    z-index: 9999;
}

/* Custom id (tabs content)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#input-mbti, #input-rng {
    width: 100%;
    height: 100px;
    resize: vertical;
}

#graph-trade .js-plotly-plot .plotly .cursor-ew-resize {
    cursor: crosshair;
}

.wnrs-level {
    display: inline-block
}

#wnrs-card {
    height: 100%;
    box-shadow:
        0px 2px 1px -1px rgb(0 0 0 / 20%),
        0px 1px 1px 0px rgb(0 0 0 / 14%),
        0px 1px 3px 0px rgb(0 0 0 / 12%);
    background-color: #BE001C;
    color: #FAFAEE;
}

#wnrs-prompt p, #wnrs-reminder-text p, #wnrs-reminder p {
    font-family: sans-serif;
    font-weight: bold;
    margin: 0;
}

#wnrs-prompt {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 8%;
    line-height: 1.4;
}

#wnrs-reminder-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 65%;
    transform: translateY(-50%);
    text-align: right;
}

#wnrs-reminder {
    position: absolute;
    top: 50%;
    left: 40%;
    right: 0;
    transform: translateY(-50%);
    padding-right: 8%;
    line-height: 1.4;
    text-align: left;
}

#wnrs-deck {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: sans-serif;
    font-weight: bold;
    text-shadow: 0 0 black;
}

#wnrs-counter {
    font-family: sans-serif;
    font-size: 70%;
    color: #BE9B89;
    text-shadow: 0 0 #BE9B89;
    margin-bottom: 0;
}

.mantine-ColorPicker-swatch {
  width: 20px !important;
  height: 20px !important;
  padding: 0;
}

.mantine-ColorSwatch-root {
  flex: 0 0 auto !important;
}

/* Custom id (dropdown)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
#dropdown-change-worksheet .VirtualizedSelectFocusedOption,
#dropdown-change-x .VirtualizedSelectFocusedOption,
#dropdown-change-y .VirtualizedSelectFocusedOption,
#dropdown-changes-worksheet .VirtualizedSelectFocusedOption,
#dropdown-changes-identifier .VirtualizedSelectFocusedOption {
    background-color: #F0E3DF;
}
*/
[id^="dropdown-"] .VirtualizedSelectFocusedOption {
    background-color: #F0E3DF;
}

/* Custom id (table)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#table-changes .Select-value-label {
    color: white !important;
    margin-left: 20px;
}

#table-changes .Select-clear, .Select-arrow {
    --accent: white !important;
}

#table-changes .Select-menu-outer, .is-focused {
    --accent: white !important;
    background-color: black !important;
}

#table-changes .has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label {
    background-color: black;
}

.dash-input-cell-value-container {
    padding-bottom: 5px !important;
}

.dash-input-cell-value-container > input {
    padding-bottom: 2px !important;
}

/* Custom id (canvas)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#div-image-output > div > div {
  background-color: #FFFFFF !important;
}

#div-image-output > div > div,
#div-image-output > div > div > div,
#div-image-output > div > div > div > canvas:nth-child(1) {
    width: 100% !important;
    height: 420px !important;
}

#div-image-output button {
    color: #202029 !important;
    height: 38px !important;
    margin: 10px 5px !important;
}

#div-image-output > div > button:nth-child(2) > svg:nth-child(1),
#div-image-output > div > button:nth-child(4) > svg:nth-child(1),
#div-image-output > div > button:nth-child(5) > svg:nth-child(1) {
    transform: translateY(6px)
}

#div-image-output > div> button:nth-child(3) > svg:nth-child(1) {
    transform: scale(0.5) translateX(-3px) translateY(-12px);
}
