@import url("https://fonts.googleapis.com/css2?family=Bungee");

* {
  font-family: "Roboto", sans-serif;
}

:root {
  --fg: #666361;
  --bg: #f7f5f7;
  --html: #fff;
  --border: #dfdfdf;
  --fg_dark: #a9a297;
  --bg_dark: #1d2021;
  --html_dark: #181a1b;
  --border_dark: #393e40;
  --accent: #0066cc;
  --accent_dark: #0ebeff;
}
html {
  height: 100%;
  background-color: var(--html);
  -webkit-tap-highlight-color: transparent;
}

html.dark {
  background-color: var(--html_dark);
}

body {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 18px;
  min-height: 93%;
  position: relative;
  background-color: var(--bg);
  color: var(--fg);
  padding: 25px 25px;
  margin-bottom: 0;
  transition: 0.2s;
}

img {
  max-width: 50%;
  height: auto;
  padding: 15px;
  margin: auto;
  display: block;
}

.dark body {
  background-color: var(--bg_dark);
  color: var(--fg_dark);
}

a {
  color: var(--fg);
}

.dark a {
  color: var(--fg_dark);
}

a:hover {
  text-decoration: wavy underline;
}
a:link {
  outline: none;
  border: none;
  text-decoration: none;
}

a:active {
  border: none;
  outline: none;
}

a:focus {
  border: none;
}

p a {
  color: var(--accent);
  text-decoration: underline !important;
}

.dark p a {
  color: var(--accent_dark);
  text-decoration: underline !important;
}

h1 {
  font-weight: bold;
  font-size: 32px;
  padding: 25px;
  text-align: center;
  margin: auto;
  border-bottom: 1px solid var(--border);
}

label {
  padding-right: 40px;
  padding: 5px;
}

input {
  border: none;
  background-color: var(--border);
  line-height: 1.5;
  padding: 5px;
  font-weight: bold;
}

.email_form {
  padding-bottom: 50px;
}

.email_form h2 {
  font-weight: normal;
  font-size: 24px;
  text-align: left;
}

#submit_form {
  text-align: center;
  margin: auto 10px;
  font-weight: bold;
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 5px;
}

h1 a:hover {
  text-decoration: underline;
}

.dark h1 {
  border-bottom: 1px solid var(--border_dark);
}

h2 {
  text-align: center;
}

footer {
  position: absolute;
  bottom: 8px;
  left: 0;
  text-align: center;
  width: 100%;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}

.dark footer {
  border-top: 1px solid (--border);
}
.container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 50px;
  min-height: 70vh;
  max-height: 80vh;
}

.left {
  padding: 15px;
  flex: 1 1 50%;
  max-height: 500px;
  overflow-y: auto;
}

.left h2 {
  font-weight: normal;
  font-size: 24px;
  text-align: left;
}

.right {
  border-left: 1px solid var(--border);
  padding: 15px;
  flex: 1 1 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.dark .right {
  border-left: 1px solid var(--border_dark);
}

.right img {
  max-width: 100%;
  width: 100%;
  min-height: 55vh;
  height: auto;
  margin: auto;
  text-align: center;
  object-fit: cover;
  border-radius: 30px;
  /* filter: blur(2px); */
  filter: none;
  transition: ease-out 1s;
  cursor: pointer;
}

.right #day_cnt {
  font-family: "Bungee", cursive;
  position: absolute;
  left: 0;
  top: calc(50% - calc(40 / 2) px);
  width: 100%;
  text-align: center;
  font-size: 40px;
  color: white;
  font-weight: bold;
  display: none;
  text-shadow: #fc0 1px 0 10px;
  word-break: keep-all;
  cursor: pointer;
}

#day_cnt::selection {
  background-color: none;
}

ul {
  list-style: inside square;
  padding-left: 0;
  height: 100%;
}
ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.dark ul li {
  border-bottom: 1px solid var(--border_dark);
}

ul li a {
  color: var(--fg);
  text-decoration: none;
}
.dark ul li a {
  color: var(--fg_dark);
}

ul li a:hover {
  text-decoration: wavy underline;
}

p {
  padding: 20px 35px;
  text-align: justify;
}

header {
  margin-bottom: 50px;
}
/* Pandoc stuff */

code {
  white-space: pre-wrap;
}
span.smallcaps {
  font-variant: small-caps;
}
div.columns {
  display: flex;
  gap: min(4vw, 1.5em);
}
div.column {
  flex: auto;
  overflow-x: auto;
}
div.hanging-indent {
  margin-left: 1.5em;
  text-indent: -1.5em;
}
ul.task-list {
  list-style: none;
}
ul.task-list li input[type="checkbox"] {
  width: 0.8em;
  margin: 0 0.8em 0.2em -1.6em;
  vertical-align: middle;
}
.display.math {
  display: block;
  text-align: center;
  margin: 0.5rem auto;
}

#dark_toggle {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 30px;
  right: 0;
  width: 94px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backlink {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 30px;
  left: 0;
  width: 94px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backlink::before {
  content: "";
  width: 70%;
  height: 70%;
  position: absolute;
  border-radius: 20px;
  transition: 0.1s;
}

#backlink:hover::before {
  background-color: var(--accent);
  box-shadow: 2px 2px 3px var(--fg_dark);
}

.dark #backlink:hover::before {
  background-color: var(--accent_dark);
  box-shadow: 4px 4px #000;
}

#backlink:hover img {
  filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(19deg)
    brightness(103%) contrast(101%);
}

.dark #backlink:hover img {
  filter: invert(0%) sepia(93%) saturate(29%) hue-rotate(50deg) brightness(106%)
    contrast(106%);
}

#dark_toggle::before {
  content: "";
  width: 70%;
  height: 70%;
  position: absolute;
  border-radius: 20px;
  transition: 0.1s;
}

#dark_toggle:hover::before {
  background-color: var(--accent);
  box-shadow: 2px 2px 3px var(--fg_dark);
}

.dark #dark_toggle:hover::before {
  background-color: var(--accent_dark);
  box-shadow: 4px 4px #000;
}

#dark_toggle:hover img {
  filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(19deg)
    brightness(103%) contrast(101%);
}

.dark #dark_toggle:hover img {
  filter: invert(0%) sepia(93%) saturate(29%) hue-rotate(50deg) brightness(106%)
    contrast(106%);
}

#dark_toggle img {
  filter: invert(41%) sepia(1%) saturate(2249%) hue-rotate(353deg)
    brightness(91%) contrast(84%);
}
.dark #dark_toggle img {
  filter: invert(60%) sepia(1%) saturate(2860%) hue-rotate(1deg)
    brightness(105%) contrast(105%);
}
#backlink img {
  filter: invert(41%) sepia(1%) saturate(2249%) hue-rotate(353deg)
    brightness(91%) contrast(84%);
}
.dark #backlink img {
  filter: invert(60%) sepia(1%) saturate(2860%) hue-rotate(1deg)
    brightness(105%) contrast(105%);
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: 24px;
    max-width: 60%;
  }
  img {
    max-width: 100%;
    padding: 10px 0;
  }
  body {
    padding-left: 5px;
    padding-right: 5px;
  }

  .container {
    /* flex-wrap: wrap; */
    flex-direction: column-reverse;
    max-height: unset;
    height: auto;
    max-width: 90%;
    margin: auto;
  }

  .left {
    flex: 1 1 50%;
    width: 100%;
    padding: 0;
  }

  .right {
    border-left: none !important;
    flex: 1 1 50%;
    width: 100%;
    min-height: 40% !important;
    height: 50% !important;
    padding: 0;
  }

  p {
    padding: 15px 20px;
  }

  .right img {
    /* max-height: 300px; */
    min-height: 400px;
    object-fit: cover;
    min-height: 40vh !important;
  }

  .left {
    max-height: unset !important;
    overflow: visible;
  }

  .email_form {
    padding: 50px 5px;
  }

  #backlink {
    top: 41px;
    left: 0;
    width: 62px;
    height: 62px;
  }

  #backlink::before {
    width: 75%;
    height: 75%;
  }
  #dark_toggle {
    top: 41px;
    right: 0;
    width: 62px;
    height: 62px;
  }

  #dark_toggle::before {
    width: 75%;
    height: 75%;
  }

  footer {
    position: static;
  }
}
@media screen and (max-width: 380px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    max-width: 98%;
  }

  .container ul {
    max-width: 90%;
    margin: auto;
  }
  .right img {
    border-radius: 20px;
  }

  #dark_toggle {
    top: 55px;
  }
  #backlink {
    top: 55px;
  }
}
