/* ------------------------------------------------------------------------- */
/* Sections */
/* ------------------------------------------------------------------------- */
.section-container {
    border: 8px solid;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    /*font-family: Arial;*/
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    width: 100%;
    margin-bottom: 8px;
    page-break-inside: avoid;
}

.section-content {
    padding: 8px;
    padding-bottom: 0;
    border-radius: 8px;
    margin-top: 0;
    background-color: white;
    border-color: inherit;
    font-size: inherit;
}

.section-title {
    height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    font-family: Lora, 'Calisto MT', 'Bookman Old Style', Bookman, 'Goudy Old Style', Garamond, 'Hoefler Text', 'Bitstream Charter', Georgia, serif;
    font-variant: small-caps;
    font-weight: bold;
    background-color: inherit;
    color: white;
    font-size: 16pt;
}

.float-right {
    float: right;
}

.section-subtitle,
#modal-reference {
    display: block;
    margin-bottom: 8px;
    font-size: inherit;
    font-style: italic;
}

#modal-reference {
    margin-top: 1em;
}

.section-row {
    font-size: inherit;
}

.section-row:before,
.section-row:after {
    display: table;
    content: " ";
    clear: both;
}

.section-row+.section-subtitle {
    margin-top: 1em;
}

/* ------------------------------------------------------------------------- */
/* Items */
/* ------------------------------------------------------------------------- */

.item {
    margin-bottom: 8px;
    float: left;
    display: flex;
    font-size: inherit;
    vertical-align: top;
    box-sizing: border-box;
    cursor: pointer;
}

.item-icon {
    float: left;
    flex: 0 0 auto;
    background-repeat: no-repeat;
    background-size: contain;
    box-sizing: border-box;
    border-radius: 4px;
    margin-right: 4px;
}

.item-title {
    font-weight: bold;
    font-size: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-desc {
    font-style: italic;
    font-size: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-text-container {
    flex: 1;
    padding-right: 4px;
    font-size: inherit;
    height: 100%;
}


/* ------------------------------------------------------------------------- */
/* Colors */
/* ------------------------------------------------------------------------- */
#section-movement,
#section-movement .item-icon {
    background-color: maroon;
    border-color: maroon;
}

#section-movement .text {
    color: maroon;
}

#section-action,
#section-action .item-icon {
    background-color: black;
    border-color: black;
}

#section-action .text {
    color: black;
}

#section-bonus-action,
#section-bonus-action .item-icon {
    background-color: indigo;
    border-color: indigo;
}

#section-bonus-action .text {
    color: indigo;
}

#section-reaction,
#section-reaction .item-icon {
    background-color: green;
    border-color: green;
}

#section-reaction .text {
    color: green;
}

#section-condition,
#section-condition .item-icon {
    background-color: darkgoldenrod;
    border-color: darkgoldenrod;
}

#section-condition .text {
    color: darkgoldenrod;
}

#section-environment,
#section-environment .item-icon {
    background-color: teal;
    border-color: teal;
}

#section-environment .text {
    color: teal;
}

#section-settings,
#section-section-settings .item-icon {
    background-color: darkblue;
    border-color: darkblue;
}

#section-settings .text {
    color: darkblue;
}

/* ------------------------------------------------------------------------- */
/* Page container */
/* ------------------------------------------------------------------------- */

body {
    display: flex;
    justify-content: center;
    align-content: center;
}

/* ------------------------------------------------------------------------- */
/* Misc */
/* ------------------------------------------------------------------------- */

.hidden {
    display: none;
}

ul {
    padding-left: 20px;
}

p,
hr {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

hr {
    border: 0px;
    border-top: 1px solid gray;
}

p:first-child {
    margin-top: 1em;
}

/* ------------------------------------------------------------------------- */
/* Modal */
/* ------------------------------------------------------------------------- */
.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    overflow: hidden;
    outline: 0;
    display: none;
}

.modal-visible {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 8px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: #888;
    opacity: .75;
    overflow: hidden;
}

.modal-container {
    background-clip: padding-box;
    outline: 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}


/* ------------------------------------------------------------------------- */
/* Viewport sizes */
/* ------------------------------------------------------------------------- */

/* Smart phone, portrait */
@media (min-width: 0px) and (max-width: 479px) {
    .fontsize {
        font-size: 12pt;
    }

    .iconsize {
        width: 44px;
        height: 44px;
    }

    .itemsize {
        height: 44px;
        width: 100%;
    }

    .modalsize {}
}

/* Smart phone, landscape */
@media (min-width: 480px) and (max-width: 767px) {
    .fontsize {
        font-size: 11pt;
    }

    .iconsize {
        width: 40px;
        height: 40px;
    }

    .itemsize {
        height: 40px;
        width: 50%;
    }

    .modalsize {}
}

/* Tablet, portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .fontsize {
        font-size: 11pt;
    }

    .iconsize {
        width: 40px;
        height: 40px;
    }

    .itemsize {
        height: 40px;
        width: 33%;
    }

    .modalsize {
        width: 600px;
        margin: 30px auto;
    }
}

/* Tablet, landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .fontsize {
        font-size: 12pt;
    }

    .iconsize {
        width: 44px;
        height: 44px;
    }

    .itemsize {
        height: 44px;
        width: 33%;
    }

    .modalsize {
        width: 600px;
        margin: 30px auto;
    }
}

/* Small desktop screen */
@media (min-width: 1200px) and (max-width: 1599px) {
    .fontsize {
        font-size: 12pt;
    }

    .iconsize {
        width: 44px;
        height: 44px;
    }

    .itemsize {
        height: 44px;
        width: 25%;
    }

    .modalsize {
        width: 600px;
        margin: 30px auto;
    }
}

/* Large desktop screen */
@media (min-width: 1600px) {
    .fontsize {
        font-size: 12pt;
    }

    .iconsize {
        width: 44px;
        height: 44px;
    }

    .itemsize {
        height: 44px;
        width: 20%;
    }

    .modalsize {
        width: 600px;
        margin: 30px auto;
    }
}

/* Print */
@media print {
    .fontsize {
        font-size: 10pt;
    }

    .iconsize {
        width: 36px;
        height: 36px;
    }

    .itemsize {
        height: 36px;
        width: 33%;
    }

    .modalsize {}
}


/* ------------------------------------------------------------------------- */
/* Switches */
/* ------------------------------------------------------------------------- */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: darkblue;
}

input:focus+.slider {
    box-shadow: 0 0 1px darkblue;
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Settings on bottom of page */
.settings {
    font-weight: bold;
    font-size: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------------- */
/* Dark Mode */
/* ------------------------------------------------------------------------- */
.dark-mode-active {
    background-color: #222;
    color: #fff;
}

.dark-mode-active .section-container {
    border-color: #444;
}

.dark-mode-active .section-content {
    background-color: #333;
    color: #fff;
}

.dark-mode-active .section-row,
.dark-mode-active .section-subtitle,
.dark-mode-active #modal-reference {
    color: #fff;
}

.dark-mode-active .item {
    background-color: #333;
}

.dark-mode-active .item-title,
.dark-mode-active .item-desc,
.dark-mode-active .item-text-container {
    color: #fff;
}

.dark-mode-active hr {
    border-top-color: #666;
}

.dark-mode-active .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
}

.dark-mode-active .modal-container {
    box-shadow: 0 3px 9px rgba(255, 255, 255, 0.5);
}

.dark-mode-active .modal-footer {
    border-top-color: #555;
}

.dark-mode-active #section-movement,
.dark-mode-active #section-movement .item-icon {
    background-color: #8f3838;
    border-color: #8f3838;
}

.dark-mode-active #section-movement .text {
    color: #fff;
}

.dark-mode-active #section-action .text {
    color: #fff;
}

.dark-mode-active #section-action,
.dark-mode-active #section-action .item-icon {
    background-color: #09151A;
    border-color: #09151A;
}

.dark-mode-active #section-bonus-action .text {
    color: #fff;
}

.dark-mode-active #section-bonus-action,
.dark-mode-active #section-bonus-action .item-icon {
    background-color: #311942;
    border-color: #311942;
}

.dark-mode-active #section-reaction .text {
    color: #fff;
}

.dark-mode-active #section-reaction,
.dark-mode-active #section-reaction .item-icon {
    background-color: DarkOliveGreen;
    border-color: DarkOliveGreen;
}

.dark-mode-active #section-condition .text {
    color: #fff;
}

.dark-mode-active #section-condition,
.dark-mode-active #section-condition .item-icon {
    background-color: #7a4b2a;
    border-color: #7a4b2a;
}

.dark-mode-active #section-environment .text {
    color: #fff;
}

.dark-mode-active #section-environment,
.dark-mode-active #section-environment .item-icon {
    background-color: #2f4f4f;
    border-color: #2f4f4f;
}

.dark-mode-active #section-settings .text {
    color: #fff;
}

.dark-mode-active #section-settings,
.dark-mode-active #section-section-settings .item-icon {
    background-color: DarkSlateBlue;
    border-color: DarkSlateBlue;
}

.dark-mode-active input:checked+.slider {
    background-color: DarkSlateBlue;
}

.dark-mode-active input:focus+.slider {
    box-shadow: 0 0 1px DarkSlateBlue;
}

.dark-mode-active .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75); /* Dark mode backdrop color */
}

.dark-mode-active .modal-container {
    box-shadow: 0 3px 9px rgba(255, 255, 255, 0.5); /* Dark mode modal container shadow */
}

.dark-mode-active .modal-footer {
    border-top-color: #555; /* Dark mode modal footer border color */
}
/* Cookies Notice */
.cookie-notice {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    color: white;
    padding: 1em;
    text-align: center;
    z-index: 9999;
    display: none;
}

.cookie-notice p {
    margin: 0 0 1em 0;
}

.cookie-notice button {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: green;
    border: none;
    color: white;
    padding: 0.5em 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}