:root {
  --color-whitey: #FED7E2;
  --color-pinkey: #FBB6CE;
  --color-darkey: #691347;
  --color-ourpl: #d98bf1;
  --color-bluey: #A9D6F5;
  --color-yellowy: #FCEFA1;
  --border-w: 2px;
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

body {
  background: var(--color-pinkey);
  color: var(--color-darkey);
  font-family: monospace;
}

#wrapper {
  display: flex;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

#left {
  width: 650px;
  flex-shrink: 0;
  flex-grow: 0;
  border: var(--border-w) solid var(--color-ourpl);
  background-color: #FED7E2;
}

#banner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--color-ourpl);
  background-color: #FED7E2;
}

#banner img {
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 362px;
  height: 203px;
  image-rendering: pixelated;
  mask-image: linear-gradient(to left, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 90%, transparent 100%);
}

.marquee-container {
  background-color: var(--color-ourpl);
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-content {
  padding: 2px;
  color: var(--color-whitey);
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {transform: translateX(0);}
  100% {transform: translateX(-100%);}
}

#leftcontent {
  padding: 2px 16px;
}

#right {
  position: sticky;
  top: 10px;
}

#rightcontent {
  width: 250px;
}

.sidebar-window {
  border: var(--border-w) solid var(--color-darkey);
  background: var(--color-ourpl);
}

.sidebar-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--color-darkey);
  color: var(--color-whitey);
  text-shadow: 1px 1px 0px var(--color-ourpl);
  padding: 3px 6px;
  border-bottom: var(--border-w) solid var(--color-darkey);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.sidebar-titlebar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}

.sidebar-titlebar-buttons {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--color-whitey);
  color: var(--color-darkey);
  border: 1px solid var(--color-ourpl);
  font-size: 10px;
  line-height: 1;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.sidebar-box {
  padding: 10px 12px;
  color: var(--color-darkey);
}

.sidebar-box + .sidebar-box {
  border-top: var(--border-w) solid var(--color-darkey);
}

.sidebar-box.box-nav a {
  color: var(--color-darkey);
}

.sidebar-box.box-blue {
  background: var(--color-bluey);
  color: var(--color-darkey);
}

.sidebar-box.box-yellow {
  background: var(--color-yellowy);
  color: var(--color-darkey);
}

.menu-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.burger-btn {
  display: none;
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 20;
  background: var(--color-darkey);
  color: var(--color-whitey);
  border: var(--border-w) solid var(--color-ourpl);
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.overlay {
  display: none;
}

@media (max-width: 700px) {
  #wrapper {
    flex-direction: column;
    max-width: 100%;
    padding: 0 8px;
  }

  #left {
    width: 100%;
  }

  .burger-btn {
    display: block;
  }

  #right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 80vw;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
    transition: right 0.25s ease;
  }

  #rightcontent {
    width: 100%;
    height: 100%;
    border-top: none;
    border-bottom: none;
    font-size: large;
  }
  
  .tb-btn {
    pointer-events: auto;
    cursor: pointer;
  
    width: 30px;
    height: 30px;
  
    font-size: 20px;
    line-height: 1;
    padding: 6px 10px;
  }
  
  .sidebar-titlebar-buttons {
    gap: 6px;
  }

  .menu-toggle:checked ~ #wrapper #right {
    right: 0;
  }

  .menu-toggle:checked ~ #wrapper .overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25; /* above page content, below #right's z-index: 30 */
    cursor: default;
  }
}