:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-color: #E7E7E7;
  --text: #1D1E2C;
}

:root.dark-mode {
  --bg-color: #242325;
  --text: #EBEBD3;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

main {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

main .center-content {
  width: auto;
  min-width: 30%;
}

main .center-content .header{
  padding-bottom: 50px;
}

main .center-content #timeline {
  flex: 1 1 0;
  max-height: 90vh;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

main .center-content #timeline::-webkit-scrollbar {
    display: none;
  }

.sidebar-l {
  width: auto;
  max-width: 40%;
}

.sidebar-r {
  position: relative;
  flex: 1 1 0;
  height: 100vh;
  width: auto;
  min-width: 20%;
}

.logo {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.bubble {
  position: absolute;
  bottom: -80px;
  text-decoration: none;

  animation-name: rise;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.bubble-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  animation-name: sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.bubble:hover,
.bubble:hover .bubble-inner {
  animation-play-state: paused;
}

.bubble span {
  position: absolute;
  bottom: -30px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.bubble:hover span {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

@keyframes sway {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-8px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

.entry{
  display: flex;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  gap: 3rem;
  margin: 0 1.2rem;
}

.entry time {
  font-weight: bold;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.entry a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.entry span {
  color: var(--text);
  font-size: 0.875rem;
  align-self: center;
  margin-left: auto;
}

.entry:has(.external-link) a:hover {
  border-color: var(--text);
}