/* Colors
-------------------- */
@media (prefers-color-scheme: light) {
  :root {
    --text: #070c03;
    --background: #e0e7de;
    --primary: #2c4e1d;
    --secondary: #c3e2b6;
    --accent: #8c314c;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f7fcf3;
    --background: #1a2118;
    --primary: #c0e2b1;
    --secondary: #2a491d;
    --accent: #ce738f;
  }
}

/* Page Container
--------------------- */
.page-container {
  max-width: 750px;
}

/* Navbar
--------------------- */
nav {
  margin-top: 2em;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
}

nav li {
  float: left;
}

nav li a {
  display: block;
  color: var(--text);
  opacity: 30%;
  text-align: center;
  padding: 0px;
  padding-right: 1em;
  text-decoration: none;
}

nav h1 {
  margin-bottom: 0px;
}

nav a:hover {
  opacity: 100%;
  color: var(--accent);
}

nav a.current {
  opacity: 100%;
}

nav a:not(.current) h1 {
  font-size: 2.5rem;
}

nav+hr {
  margin-top: 0.5em;
}

/* Body Alignments
--------------------- */
.main-body p,
.main-body img,
.main-body ul {
  text-align: right;
}

/* About
--------------------- */
.about-section div {
  text-align: right;
}

.about-section img {
  background-color: var(--accent);
}

/* Identities
--------------------- */
.aka-section li,
.aka-section p {
  margin-bottom: 0.5em;
}

.aka-section ul {
  padding-right: 0px;
}

/* Footer
--------------------- */
footer hr {
  margin-bottom: 0.5em;
}

footer {
  text-align: right;
}

/* Resume
--------------------- */
#resume h1 {
  font-size: 3rem;
}

#resume h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

#resume h2+p {
  margin-bottom: 1rem;
}

#resume h3 {
  font-size: 1.5rem;
}

#resume p {
  text-align: left;
}

/* Tag Cloud
--------------------- */
.tag-cloud {
  margin-top: 2em;
  text-align: right;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
}

.tag-cloud li {
  float: right;
}

.tag-cloud li a {
  display: block;
  color: var(--text);
  opacity: 30%;
  text-align: center;
  padding: 0px;
  padding-right: 1em;
  text-decoration: none;
}

.tag-cloud a:hover {
  opacity: 100%;
  color: var(--accent);
}

.tag-cloud a.current {
  opacity: 100%;
}

/* Post List
--------------------- */
.post-summary,
#posts ul {
  text-align: left;
}

#posts li {
  margin-bottom: 0px;
}

.post-link {
  font-size: 1.2em;
}

.post-date {
  text-color: var(--text);
  opacity: 60%;
}

#tags {
  text-align: right;
}

#tags>p {
  text-align: left;
  margin-top: 0.5em;
  margin-bottom: 0px;
  margin-left: 0.5em;
}

/* Post Page
--------------------- */
h3#title {
  color: var(--text);
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.post-content {
  margin: 1em 1em;
  text-align: justify;
}

.post-content p,
.post-content code,
.post-content ol,
.post-content ul {
  text-align: justify;
}

.post-content code {
  margin: 0em 3em;
}

.post-content ul,
.post-content ol {
  padding-right: 1em;
}

.post-content .photo-list {
  text-align: right;
  margin-bottom: 0px;
}

.post-content .photo-list p {
  text-align: right;
  margin-bottom: 0.5em;
}

.post-content .photo-list::before {
  content: "the photos";
  opacity: 70%;
}

/* External Links
--------------------- */
a[target="_blank"]::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
}

/* Image Modals
--------------------- */
.image-modal .close {
  position: fixed;
  top: 10px;
  right: 15px;
  font-size: 2em;
  cursor:pointer;
  color: white;
  text-decoration: none;
  z-index: 2;
}

.image-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
}

.image-modal:not(:target):not([open]) {
  display: none;
}

.image-modal .modal-background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  display: block;
}

.image-modal img {
  position: relative;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  margin-top: 10px;
  max-width: 80%;
  max-height: 80%;
  z-index: 1;
}
