@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

body {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}
::-webkit-scrollbar { 
  display: none; 
  width: 0; 
  height: 0; 
}

:root {
  cursor: default;
}

::selection {
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #343232;
    --text-color: #e3dfdf;
  }

  a {
    color: #e3dfdf;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  a:hover {
    /* border-bottom-color: #e3dfdf; */
    /* font-weight: bold; */
    color: #9CAF88;
  }

  hr {
    width: 18vw;
    margin: 2em 0;
    border: 1px solid #e3dfdf;
  }

  .main-content a:hover {
    border-bottom-color: transparent;
    color: #2176d1;
  }

  .main-content p a {
    border-bottom: 2px solid #e3dfdf;
  }

  .main-content p a:hover {
    border-bottom: 2px solid #2176d1;
    color: #2176d1;
  }

  .main-content :not(img):not(video)::selection {
    background: transparent;
    color: #9CAF88;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: white;
    --text-color: black;
  }

  a {
    color: black;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  a:hover {
    /* border-bottom-color: black; */
    /* font-weight: bold; */
    color: green;
  }

  hr {
    width: 18vw;
    margin: 2em 0;
    border: 1px solid #121212;
  }

  .main-content p a {
    border-bottom: 2px solid black;
  }

  .main-content p a:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
  }

  .main-content :not(img):not(video)::selection {
    background: transparent;
    color: green;
  }

  .img-desc::selection {
    background: transparent;
    color: green;
  }
}

:root[data-theme="dark"] {
  --bg-color: #343232;
  --text-color: #e3dfdf;

  a {
    color: #e3dfdf;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  a:hover {
    /* border-bottom-color: #e3dfdf; */
    /* font-weight: bold; */
    color: #9CAF88;
  }

  hr {
    width: 18vw;
    margin: 2em 0;
    border: 1px solid #e3dfdf;
  }

  .main-content a:hover {
    border-bottom-color: transparent;
    color: #2176d1;
  }

  .main-content p a {
    border-bottom: 2px solid #e3dfdf;
  }

  .main-content p a:hover {
    border-bottom: 2px solid #2176d1;
    color: #2176d1;
  }

  .main-content :not(img):not(video)::selection {
    background: transparent;
    color: #9CAF88;
  }
}

:root[data-theme="light"] {  
  --bg-color: white;
  --text-color: black;

  a {
    color: black;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  a:hover {
    /* border-bottom-color: black; */
    /* font-weight: bold; */
    color: green;
  }

  hr {
    width: 18vw;
    margin: 2em 0;
    border: 1px solid #121212;
  }

  .main-content p a {
    border-bottom: 2px solid black;
  }

  .main-content p a:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
  }

  .main-content :not(img):not(video)::selection {
    background: transparent;
    color: green;
  }
}

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .main-content {
    margin-top: 3%;
    padding-bottom: 15em;
    margin: 0 0;
  }

  video {
    display: block;
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 769px) {
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .main-content {
    padding-bottom: 15em;
    margin-top: 3%;
    margin-left: 23%;
    margin-right: 23%;
  }

  video {
    display: block;
    max-width: 100%;
    max-height: 95vh;
  }
}

.idx-box {
  position: absolute;
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  max-width: 20%;
  height: auto;
  /* border-top: 1px solid black;
  border-bottom: 1px solid black; */
  padding: 2em;
}

.idx-page-box {
  position: absolute;
  left: 20%;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  max-width: 15%;
  height: auto;
  /* border-top: 1px solid black;
  border-bottom: 1px solid black; */
  padding: 2em;
}

.idx-hamburger-box {
  /* position: absolute;
  top: 20%;
  left: 20%; */
  
}

.no-select {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.idx-box-content {
  margin: 0.5em 0;
  padding-left: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.idx-box-content-detail {
  list-style: none;
}

.main-container {
  height: 100vh;
  margin: 10% 2.5%;
}

.main-content:has(video) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-content a:hover {
  border-bottom-color: transparent;
  color: #007bff;
}

.main-content p {
  display: block;
  margin-block-start: 1.5em;
  margin-block-end: 1.5em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.main-content img {
  max-height: 97vh;
}

.post-date {
  text-align: right;
}

.image-view-selector {
  display: flex;
  gap: 0.3em;
}

#image-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0;  
  align-items: flex-start;
}

#image-container > .image-row {
  margin-bottom: 1em;
}

#image-container > p:first-of-type {
  margin-top: 0.3em;
}

#image-container > p {
  margin-bottom: 0;
}

.image-row {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Libre Franklin", "Arial", "Verdana", sans-serif;
  margin: 0;
}

p {
  display: block;
  margin-block-start: 0.6em;
  margin-block-end: 0.6em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

a:hover {
  cursor: default;
}

thead {
  display: none;
}

h2 {
  margin-top: 3.5em;
  font-weight: normal;
}

h3 {
  margin-top: 2.5em;
  font-weight: normal;
}

h4 {
  margin-top: 1.5em;
  font-weight: bold;
}

h5 {
  margin-top: 1em;
  font-weight: bold;
}