.red-color {
    color: darkred;
}

.gold-color {
    color: #e3da45;
}

a {
    color: white;
}

.hidden {
    display: none !important;
}

/* Safari na iPhonu přiblíží stránku při ťuknutí do pole s písmem pod 16 px.
   Na dotyku proto mají všechna pole aspoň 16 px; na počítači zůstává menší.
   !important kvůli polím s přesnějším selektorem a vlastní velikostí.
   Pole s větším písmem se vyjímají, jinak by je pravidlo zmenšilo: velké
   číslo v souboji (.fs-val), čísla odpočinku/Ověření (.ov-field), nadpis
   příběhu v administraci (.story-title). Psací plochy jsou CKEditor
   (contenteditable), ne textarea - platí pro ně totéž. */
@media (pointer: coarse) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not(.fs-val input):not(.ov-field input):not(.story-title),
    select, textarea,
    [contenteditable]:not([contenteditable="false"]), .ck.ck-editor__editable {
        font-size: 16px !important;
    }
}


.ck.ck-balloon-panel {
    z-index: 10000 !important;
}


.flash {
    background: #790000;
    width: 100%;
    opacity: 0;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 20000;
    -webkit-animation: flash linear 1s ;
    animation: flash linear 1s ;
}

#alerts {
    position: fixed;
    top: 10px;
    z-index: 100000;
    left: 3%;
    width: 94%;
}

.alert-message .fa-envelope,
.alert-message .fa-bell {
    font-size: 1.4em;
}

.alert-message .message-top {
    display: flex;
    align-items: center;
}

.alert-message .message-top span {
    padding-right: 10px;
}

.alert {
    box-shadow: 3px 9px 24px 0 rgb(0, 0, 0, .8);
    border-radius: 0;
}

.alert.inside {
    box-shadow: none;
    text-align: center;
}

.alert-dark {
    background: rgb(210 210 210);
    color: black;
}

.message-hide,
.message-show {
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}

.message-hide:hover,
.message-show:hover {
    font-weight: bolder;
    text-decoration: none;
}

.message-text {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, .3);
    padding-top: 5px;
    padding-left: 25px;
    margin-top: 10px;
}

.alert-dismissible {
    padding-right: 16px;
}

.no-padding-left {
    padding-left: 0;
}

.no-padding-right {
    padding-right: 0;
}

.alert .btn-close:active,
.alert .btn-close:focus {
    border: none;
    box-shadow: none;
}

.message-top .fa-bell,
.message-top .fa-envelope {
    animation: tilt-shaking-notification 0.5s linear infinite;
}

.icon-static {
    position: absolute;
}

.icon-active {
    position: relative;
    cursor: pointer;
    width: 54px;
    left: -7px;
    top: -7px;
    opacity: 0;
}

.icon-static {
    cursor: pointer;
    width: 40px;
    z-index: 1;
}

.icon-static:hover {
    opacity: 0;
}

/* Kdo u sezeni byl. Ctvercove portrety s linkou, jako maji hraci u vehlasu -
   kolecko by z radku delalo jiny seznam nez zbytek webu. Popisek rika, co ta
   rada znamena; driv to byly jen obrazky prilepene vpravo. */
.session-heroes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 14px;
    margin-bottom: 22px;
    border: 1px solid var(--quest-card-edge, #d3ccbc);
    background: var(--quest-card-bg, #f2efe7);
}

/* V karte s nahravkou je to posledni pruh karty, ne samostatny ram */
.session-card .session-heroes {
    margin-bottom: 0;
    border: none;
    border-top: 1px solid var(--quest-card-edge, #d3ccbc);
    background: none;
}

.session-heroes-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--quest-card-ink-dim, #837e93);
}

.session-heroes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.session-heroes img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    outline: 1px solid var(--quest-card-edge, #d3ccbc);
    transition: outline-color 150ms ease;
}

.session-heroes img:hover {
    outline-color: var(--quest-card-gold, #7d6224);
}



@keyframes flash {
    0% { opacity: 0; }
    25% { opacity: .5; }
    50% { opacity: 1; }
    75% { opacity: .5; }
    100% { opacity: 0; }
}


@keyframes tilt-shaking-notification {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}
/* Logo „Powered by CKEditor“ v hráčské části - open-source licence ho
   odstranit nedovoluje, stojí uvnitř pole vpravo dole (ckeditor.js) a má
   barvy pergamenu. Sklo si barvy přemapuje v campaign-glass.css. */
body.pagehead {
    --ck-powered-by-background: #f2efe7;
    --ck-powered-by-text-color: #6f6a80;
    --ck-powered-by-border-color: #d3ccbc;
    --ck-powered-by-border-radius: 0;
}

body.pagehead .ck.ck-balloon-panel.ck-powered-by-balloon { box-shadow: inset 0 0 0 1px #d3ccbc; }
