:root {
  --base-text-light: #333333;
  --base-text-dark: #eeeeee;
  --base-background-light: #f0f0f0;
  --base-background-dark: #121212;
  --base-accent-light: #3cb310;
  --base-accent-dark: #ade398;
}

:root {
  --base-background: var(--base-background-light);
  --base-text: var(--base-text-light);
  --base-text-inverse: var(--base-text-dark);
  --base-accent: var(--base-accent-light);
}

@media (prefers-color-scheme: dark) {
  :root {
    --base-background: var(--base-background-dark);
    --base-text: var(--base-text-dark);
    --base-text-inverse: var(--base-text-light);
    --base-accent: var(--base-accent-dark);
  }
}

*{
  box-sizing: border-box
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  font-family: monospace;
  min-height: 100%;
  color: var(--base-text);
  background: var(--base-background);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.sh-page {
  margin: 0 auto;
  width: 100%;
  max-width: 800px !important;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 1em;
}

.sh-page .breadcrumbs {
  font-family: monospace;
  text-transform: uppercase;
  font-size: small;
}

.page-header{
  margin: 0 auto;
  width: 100%;
  max-width: 800px !important;
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 1em;
}

.page-title{
  font-weight: 800;
  font-size: 2.25em;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

p {
  line-height: 22px;
}

a {
  width: fit-content;
  color: var(--base-accent);
  /* border-bottom: 1px dotted var(--base-accent); */
  text-decoration: none;
}

h2{
  margin-top: 1em !important;
}

hr {
  border-style: solid;
  border-bottom: 1px;
  margin-top: 1em;
  margin-bottom: 1em;
}

blockquote {
  border-left: 0.5em solid var(--base-text-inverse);
  padding: 0 1em;
}

blockquote p {
  font-style: italic;
}

img {
  max-width: 100%;
  border-radius: 0.25em;
}

table {
  margin-top: 0.25em;
  border-collapse: collapse;
  width: 100%;
}
thead {
  text-align: left;
  font-weight: bold;
}
thead tr {
  border-bottom: 2px solid var(--base-text);
}
tr {
  border-bottom: 2px dashed var(--base-text);
}
td,
th {
  padding: 4px;
}

/* ----------------------------- */

* :not(code) {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

a:hover {
  color: var(--base-text);
  text-decoration: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#footer {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  width: 100% !important;
  padding-bottom: 10px;
  text-decoration: none;
  color: var(--base-text) !important;
}

.highlight {
  max-width: 100%;
  overflow-x: auto;
}

pre {
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
  border-radius: 0.25em;
  background: var(--base-text-light) !important;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 3rem;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

input[type="text"]{
  border-radius: 0.75rem;
  padding: 0.5rem;
  color: var(--base-background) !important;
  background-color:  var(--base-text);
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

.post-date {
  font-size: 1rem;
  margin-bottom: 1.2em;
}

.full-width{
  display: flex;
  justify-content: center;
  width:100vw;
  margin: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.smart-table{
  min-width: 600px;
}

.sh-button-group{
  display: flex;
  flex-direction: row;
  justify-items: center;
  flex-wrap: wrap;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  gap: 0.5rem;
}

.sh-button {
  color: var(--base-background) !important;
  background-color:  var(--base-text);
  border: 1px solid var(--base-background);
  border-radius: 0.75rem;
  padding: 0.5rem;
  text-decoration: none !important;
}

.sort:focus {
  outline:none;
}
.sort:after {
  display:inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid transparent;
  content:"";
  position: relative;
  top:-10px;
  right:-5px;
}
.sort.asc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--base-background);
  content:"";
  position: relative;
  top:4px;
  right:-5px;
}
.sort.desc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--base-background);
  content:"";
  position: relative;
  top:-4px;
  right:-5px;
}

.list-property{
  color: var(--base-background);
  background-color: var(--base-text);
}

/* Document Viewer */
.pdf-embed{
  height: 90vh;
}

/* Photos */

.gallery {
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.gallery figure{
  cursor: pointer;
  border-radius: 5px;
  /*box-shadow: 0px 3px 15px rgba(0,0,0,0.2); */
  padding: 5px;
  width: 20%;
  min-width: 250px;
  max-width: 250px;
  height: auto;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.gallery figcaption{
  text-align: center;
  color: var(--base-text);
}

.gallery figure:hover{
  background-color: var(--base-text);
  color: var(--base-background);
}

.gallery figure:hover figcaption {
  color: var(--base-background);
  font-weight: bolder;
}

.gallery figure a{
  max-height: 100%;
  max-width: 100%;
}

.gallery-slide-caption {
  background: var(--base-background);
  color: var(--base-text);
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

div .img{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  max-width: 95%;
}

div.img img{
  margin-bottom: 10px;
  height: auto;
  width: auto;
  max-width: 100%;
}

pre {
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
 }