@charset "utf-8";
@import url('https://fonts.googleapis.com/css2??family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Serif+KR&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Damion&display=swap');
@import url('style_mobile.css');

::selection {
  background: rgba(0, 0, 0, 0);
}

body {
  /* background: #e5e5e5; */
  font-family: 'Noto Sans KR', sans-serif;
  color: rgba(0, 0, 0, .87);
  margin: 0;
}

a {
  text-decoration: none;
  display: inline-block;
  color: #000;
  transition: .25s;
  padding: .5em .75em;
  margin: -0.75em -.75em;
}

a:hover {
  /* box-shadow: 2px 0px 5px rgba(0, 0, 0, .25);
  background: #fff;
  z-index: 10;
  position: relative; */
}

header, footer {
  line-height: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 2em;
  font-family: 'Damion', cursive;
  padding: 3em 0;
  background: rgba(255, 255, 255, .75);
  z-index: 2;
}

footer {
  bottom: 0;
}

section {
  width: 100%;
  height: fit-content;
  min-height: 200px;
  position: fixed;
  left: 0;
  top: 50%;
}

.control {
  position: fixed;
  cursor: default;
  bottom: 1em;
  right: 1em;
}

.control .sort {
  cursor: pointer;
  width: 24px;
  height: 24px;
  opacity: .3;
  transition: .25s;
}

.control .sort:hover {
  opacity: .5;
}

.item {
  width: 200px;
  height: 200px;
  left: calc(50% - 100px);
  /* transition: transform .5s; */
  transition: transform .5s, bottom .25s;
  position: absolute;
  /* transform-origin: 50% 700%; */
}

.item .since {
  position: absolute;
  top: 8px;
  right: 12px;
  opacity: .75;
  font-size: .75em;
}

.card {
  width: 316px;
  height: 200px;
  display: block;
  padding: 0;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: calc(50% - 29px) calc(50% + 29px);
  border-radius: 10px;
  position: relative;
  background: #444;
  box-shadow: -2px 0px 5px rgba(0, 0, 0, .25);
  cursor: pointer;
  color: #fff;
  transition: box-shadow .25s, margin .25s;
}

.item.on .card,
.card:hover {
  margin-block-start: -12px;
  box-shadow: -5px 0px 11px rgba(0, 0, 0, .25);
}

/*
.card:hover {
  margin-top: -50px;
  box-shadow: 7px 0px 10px rgba(0, 0, 0, .25);
} */
.card .title {
  left: 32px;
  position: absolute;
  top: calc(50% + 0em);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
  width: 250px;
  text-align: left;
}

.card .icon {
  /* background: gold; */
  /* border:1px solid white; */
  width: 32px;
  height: 32px;
  left: 34px;
  position: absolute;
  top: calc(50% - 32px);
}

.card.light .title, .card.light .date, .card.light .url, .card.light .arrow {
  color: #212121;
}

.card .date {
  position: absolute;
  width: 100px;
  left: 200px;
  text-align: left;
  font-size: .75em;
  top: calc(50% + 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .url {
  position: absolute;
  width: 160px;
  left: 32px;
  text-align: left;
  font-size: .75em;
  top: calc(50% + 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .tag {
  right: 6px;
  position: absolute;
  top: 6px;
  opacity: .5;
}

.card .tag img {
  width: 24px;
  height: 24px;
  margin-left: 6px;
}

.info {
  color: #777;
  position: absolute;
  left: 0;
  opacity: .02;
  transition: .25s;
  width: 400px;
  left: calc(100% + 16px);
  top: 64px;
  pointer-events: none;
}

.item.on .info,
.card:hover .info {
  opacity: 1;
}

.info .ititle {
  font-weight: bold;
  top: 16px;
  left: 0;
}

.info .idate {
  font-weight: lighter;
  color: #aaa;
  top: 48px;
  left: 0;
}

.info .idescription {
  font-weight: lighter;
  color: #aaa;
  white-space: nowrap;
}

#title {
  text-align: center;
  font-size: 10em;
}

h2 {
  font-size: 12px;
  font-weight: normal;
  color: rgba(0, 0, 0, .55);
  margin: 1em 0;
}

img.margin0 {
  border-radius: .5em;
  width: calc(128px - 24px);
  height: calc(128px - 24px);
}

.spoiler, .SPOILER {
  color: transparent !important;
  background: #000;
  cursor: not-allowed;
}

.spoiler::selection, .SPOILER::selection {
  color: transparent !important;
  background: #000;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------- */
/* ***** splash ***** */
/* ------------------------------------------------------------------- */
div#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #fff;
  text-align: center;
  z-index: 99;
  opacity: 1;
}

div#splash.off {
  z-index: -1;
  opacity: 0;
  transition: 1s;
}

div#splash img {
  top: calc(50% - 64px);
  position: relative;
  width: 64px;
  height: 64px;
}

div#splash .splash_title {
  top: calc(50% - 32px);
  position: relative;
  font-size: 1.25em;
  font-weight: bold;
  color: #aaa;
}

/* ------------------------------------------------------------------- */
/* ***** dark mode ***** */
/* ------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background: rgb(53, 54, 58);
    color: rgba(232, 234, 237, 1);
  }

  div#splash {
    background: rgb(53, 54, 58);
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2em;
    font-family: 'Damion', cursive;
    padding: 3em 0;
    background: rgb(53, 54, 58, .75);
    z-index: 2;
  }

  .info {
    color: #ccc;
  }

  .control img {
    filter: invert(100%);
  }
}
