@font-face {
    font-family: 'Alice';
    src: url('Alice-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/**
 * main layout + general styling
 */
body {
    font-family: sans-serif;
    color: black;
    background-color: white;
    background-image: url("parchment.webp");
    background-size: cover;
    background-attachment: fixed;
    height: 100%;
}

/* Poor man's Dark Mode */
/*@media (prefers-color-scheme: dark) {
    body {
        filter: invert(100%) hue-rotate(180deg);
        background: #212634;
    }

    .pinlocation {
        filter: hue-rotate(180deg) brightness(80%) invert(100%);
    }

    img.factionmap {
        border-color: white;
    }
}*/

div.main {
    max-width: 1280px;
    min-width: min-content;
    margin: 0 auto;
    padding: 2rem 2.5rem 0.75rem 2rem;
    background-color: white;
    min-height: 100vh;

    background: linear-gradient(90deg, transparent 0%, #708090 5px, #ffffff 6px, #ffffff calc(100% - 21px), #708090 calc(100% - 20px), #ffffff calc(100% - 13px), #708090 calc(100% - 12px), #ffffff calc(100% - 6px), #708090 calc(100% - 5px), transparent 100%);
}

div.rightcontent {
    max-width: 50%;
    float: right;
    clear: right;
}

@media (max-width: 576px) {
    div.rightcontent {
        max-width: 100%;
        width: 100%;
        float: none;
    }
}

img {
    max-width: 99%;
}

.nowrap {
    white-space: nowrap;
}

.btn {
    font-family: 'Alice', serif;
}

.btn.btn-sm {
    font-family: sans-serif;
}

a.btn {
    margin-bottom: 0.75em;
}

footer {
    align-items: end;
    font-size: 0.8em;
}

div.footer a {
    break-inside: avoid;
    white-space: nowrap;
}

.currenthash {
  color:rgba(108, 117, 125);
}

#feedbackbtn {
    position: fixed;
    bottom: 0.5em;
    right: -0.66em;
}

#feedbackbtn:hover {
    right: -0.1em;
    transition: 0.5s ease;
}

@media (max-width: 576px) {
    #feedbackbtn {
        position: static;
    }
}

.alert {
  width: fit-content;
}

blockquote {
  margin:1em auto;
  font-style:italic;
  color: #555555;
  padding: 1em 1.2em 0.2em;
  background:#EDEDED;
}

.hidden {
    display: none;
}

/**
 * headings
 */
h1, h2, h3, h4, h5 {
    font-family: 'Alice', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
}

.headingicon {
    height: 1.1em;
    vertical-align: text-top;
}


/**
 * tables
 */
table {
    margin-bottom: 1rem;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

th, td {
    padding: 0.3em;
    text-align: center;
}

td.left-aligned-cell {
    text-align: left;
}

td.nowrap {
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    white-space: nowrap;

    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}


/**
 * Gravestones
 */
.gravestone {
    font-family: serif;
    font-variant-caps: small-caps;
    font-size: 1.3rem;
    width: 20em;
    text-align: center;
}

a.subtlelink {
    color: black;
}

img.graveicon {
    max-width: 2rem;
    max-height: 2rem;
}

div.gravestones {
    display: block;
    width: fit-content;
}


/**
 * Collapsible Sections
 */
.collapsible {
    user-select: none;
    cursor: pointer;
}

.collapsible::after {
  content: " ▸"; /*" →";*/
}

.collapsible.active::after {
  content: " ▾"; /*" ↓";*/
}

.collapsible + * {
    height: 0px;
    overflow: hidden;
    transition: height 0.8s ease;
}

.collapsible.active + div {
    margin-bottom: 0.75em;
}


/*
 * Search Forms + Feedback Form
 */

form, form button.btn { font-size: 1.25em; }
form label { padding: 0.3rem 0; }

div#s  { display: table; }
div#s > div { display: table-row; }
div#s > div > label { display: table-cell; padding-right: 1rem; }
div#s > div > select { display: table-cell; }

div#feedback > div > label[for=feedback_from] { display: block; }
div#feedback > div > label[for=feedback_message] { display: block; }
div#feedback > div > label[for=feedback_sum] { padding-right: 0.75em; }
div#feedback input#feedback_from { min-width: 50%; }
div#feedback textarea#feedback_message {
    min-width: 50%;
    height: 10em;
}


/*
 * Misc. page specific
 */
a.shopfront {
    font-weight: bold;
}

img.big-icon {
    float: right;
    width: 200pt;
}

.popover {
    max-width: 600px;
    max-height: 100%;
    overflow-y: auto;
}

#alpha-modal div.modal-footer {
    justify-content: center;
}

.sigil-sequence {
    font-size: 2em;
}

.error-text {
    font-size: 1.25em;
    font-weight: bold;
}

.error-poem {
    font-size: 1.25em;
    font-style: italic;
}

.smicon {
    height: 2em;
}

span.broken-link {
    color: red;
    text-decoration: underline;
}

/*
 * Maps
 */
object.map {
    width: 100%;
    aspect-ratio : 1 / 1;
    margin: 0 0.5em 0.5em 0.5em;
    border: 2px solid black;
}

object.mapzoomed {
    max-width: 100%;
    max-height: 100%;
    padding: 0.5em;
}

#mapModal {
    height:auto;
}

#mapModal .modal-body {
    padding: 0;
    overflow: hidden;
}

#mapModal .modal-dialog {
    width: min(100vh, 100vw);
    max-width: none;
    height: 100%;
    margin: auto;
}

#mapModal button {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    border: 2px solid black;
    background-color: white;
    background-size: contain;
    height: 2em;
    width: 2em;
    opacity: 1;
}

div.localmap {
    position: relative;
    top: 0;
    left: 0;
}

#mapzoombtn {
    position: absolute;
    bottom: 0.75em;
    right: 0;
    padding: 0.375rem;
    background-color: rgba(255, 255, 255, 0.65);
}

#mapzoombtn:hover {
    background-color: rgba(108, 117, 125, 0.9);
}

div.pinlocation {
    position: relative;
    top: 0;
    left: 0;
}

.factionmap {
    position: relative;
    top: 0;
    left: 0;
    border: 2px solid black;
}

.mappin {
    position: absolute;
}

/*
 * Share Widget CSS
 */

div.share-widgets {
    text-align: right;
}

/* Source: https://sharingbuttons.io/ */
.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.2em;
  font-size: 18px;
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.15em 0.4em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--mastodon {
  background-color: #1a7576
}

.resp-sharing-button--mastodon:hover {
  background-color: #114c4c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #000;
  border-color: #000;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #222;
  border-color: #222;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--reddit {
  background-color: #FF5700;
  border-color: #FF5700;
}

.resp-sharing-button--reddit:hover,
.resp-sharing-button--reddit:active {
  background-color: #FF4500;
  border-color: #FF4500;
}

.resp-sharing-button--whatsapp {
  background-color: #25D366;
  border-color: #25D366;
}

.resp-sharing-button--whatsapp:hover,
.resp-sharing-button--whatsapp:active {
  background-color: #1DA851;
  border-color: #1DA851;
}

.resp-sharing-button--threads {
  background-color: white;
  border: 1px solid black;
}
  
.resp-sharing-button--threads:hover {
  background-color: lightgray;
}
