/* ============================================================
   Styles - notepad.fanmart.org
   Place at: /var/www/notepad/public/assets/css/style.css

   Theming: dark is the default (:root). If the OS prefers light
   and the user hasn't toggled manually, the prefers-color-scheme
   block applies light values. The toggle (theme.js) sets an
   explicit data-theme attribute, which overrides both.
   ============================================================ */

:root {
  /* Dark (default) */
  --bg: #11141a;
  --panel: #1a1f28;
  --panel-border: #2a313c;
  --text: #e7ebf0;
  --muted: #8b97a6;
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --bad: #f0708e;
  --bad-soft: rgba(240, 112, 142, 0.12);
  --info: #4dabf7;
  --info-soft: rgba(77, 171, 247, 0.12);
  --good: #69db7c;
  --good-soft: rgba(105, 219, 124, 0.12);
  --warn: #f5a623;
  --warn-soft: rgba(245, 166, 35, 0.14);
  --input-bg: #0d1014;

  --mono: "SF Mono", "JetBrains Mono", "Consolas", monospace;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* System prefers light, and no manual override set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f7f9;
    --panel: #ffffff;
    --panel-border: #d8dee5;
    --text: #1a1f28;
    --muted: #6b7785;
    --accent: #0d9488;
    --accent-soft: rgba(13, 148, 136, 0.10);
    --bad: #d6336c;
    --bad-soft: rgba(214, 51, 108, 0.10);
    --info: #1c7ed6;
    --info-soft: rgba(28, 126, 214, 0.10);
    --good: #2f9e44;
    --good-soft: rgba(47, 158, 68, 0.10);
    --warn: #e8590c;
    --warn-soft: rgba(232, 89, 12, 0.10);
    --input-bg: #ffffff;
  }
}

/* Manual overrides via the toggle (theme.js sets data-theme) */
:root[data-theme="light"] {
  --bg: #f5f7f9;
  --panel: #ffffff;
  --panel-border: #d8dee5;
  --text: #1a1f28;
  --muted: #6b7785;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.10);
  --bad: #d6336c;
  --bad-soft: rgba(214, 51, 108, 0.10);
  --info: #1c7ed6;
  --info-soft: rgba(28, 126, 214, 0.10);
  --good: #2f9e44;
  --good-soft: rgba(47, 158, 68, 0.10);
  --warn: #e8590c;
  --warn-soft: rgba(232, 89, 12, 0.10);
  --input-bg: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #11141a;
  --panel: #1a1f28;
  --panel-border: #2a313c;
  --text: #e7ebf0;
  --muted: #8b97a6;
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --bad: #f0708e;
  --bad-soft: rgba(240, 112, 142, 0.12);
  --info: #4dabf7;
  --info-soft: rgba(77, 171, 247, 0.12);
  --good: #69db7c;
  --good-soft: rgba(105, 219, 124, 0.12);
  --warn: #f5a623;
  --warn-soft: rgba(245, 166, 35, 0.14);
  --input-bg: #0d1014;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.hidden { display: none !important; }

button {
  background: var(--panel-border);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
button:hover { border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary {
  background: var(--accent);
  color: #0d1014;
  border-color: var(--accent);
}

input, select {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-family: var(--sans);
  width: 100%;
}

label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}

.field-label-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}

.error {
  color: var(--bad);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid var(--bad);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
.error-banner svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.error-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* --- Theme toggle --- */

.theme-toggle {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 20;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.lang-select {
  position: fixed;
  top: 0.8rem;
  right: 3.4rem;
  z-index: 20;
  height: 2.2rem;
  width: 7.5rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-family: var(--sans);
  border-radius: 1.1rem;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
}

/* --- Landing --- */

#landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.page-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

/* --muted reads as too gray/faint against a light background at low
   opacity - --accent has enough saturation to read clearly in both
   themes, so the wallpaper uses that instead, with a higher opacity
   in light mode to compensate for the lighter backdrop. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .page-wallpaper { opacity: 0.13; }
}
:root[data-theme="light"] .page-wallpaper { opacity: 0.13; }

.landing-wrap {
  position: relative;
  z-index: 1;
}

.landing-wrap {
  max-width: 420px;
  width: 100%;
}

.landing-wrap h1 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  text-align: center;
}

.tagline {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.landing-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.landing-box h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}

.landing-box label {
  font-size: 0.9rem;
  color: var(--text);
}

.landing-box select,
.landing-box input,
.landing-box button {
  font-size: 1.1rem;
}

.landing-box select,
.landing-box input {
  margin-bottom: 0.8rem;
}

.landing-box button { width: 100%; }

/* --- Link modal --- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
}

.modal-box h2 { margin-top: 0; }

.modal-box input {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0.8rem 0;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
}
.modal-actions button { flex: 1; }

/* --- Workspace layout --- */

#workspace {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}
#sidebar > *:not(.page-wallpaper) {
  position: relative;
  z-index: 1;
}

/* Same motif as the landing/share screens, tiled tighter and toned
   down so it reads as quiet texture behind the note list rather than
   competing with it - the landing page's opacity was tuned for a
   large, mostly-empty page. */
.page-wallpaper-sidebar {
  opacity: 0.05;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .page-wallpaper-sidebar { opacity: 0.08; }
}
:root[data-theme="light"] .page-wallpaper-sidebar { opacity: 0.08; }

#workspace-info {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

#workspace-expiry-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text);
  margin-bottom: 0.3rem;
}

#new-note-btn {
  width: 100%;
  background: transparent;
  border-color: var(--good);
  color: var(--good);
}
#new-note-btn:hover { background: var(--good-soft); }

#note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

#note-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

#note-list li:hover { background: var(--panel-border); }
#note-list li.active { background: var(--accent-soft); color: var(--accent); }
#note-list li.empty { color: var(--muted); cursor: default; }
#note-list li.empty:hover { background: none; }

.note-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.note-action {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.3rem 0.4rem;
  line-height: 1;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-action svg { display: block; }
.note-action:hover { color: var(--text); background: var(--panel-border); border: none; }
.note-action.danger:hover { color: var(--bad); background: var(--bad-soft); }
.note-action.shared { color: var(--accent); }
.note-action.shared:hover { background: var(--accent-soft); }
.note-action.rename:hover { color: var(--info); background: var(--info-soft); }

/* --- Sidebar share-status popover --- */

.share-status-popover {
  position: fixed;
  z-index: 20;
  width: 260px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
}

.share-status-title {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--text);
}

.share-status-info {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.share-status-error {
  margin: -0.4rem 0 0.8rem;
  font-size: 0.8rem;
}

.share-status-actions {
  display: flex;
  gap: 0.5rem;
}
.share-status-actions button { flex: 1; font-size: 0.82rem; padding: 0.4rem 0.5rem; }

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  min-width: 0;
}

#header-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.note-title,
.workspace-topic {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-title:focus,
.workspace-topic:focus {
  outline: none;
  border-bottom: 1px solid var(--accent);
  overflow: visible;
  text-overflow: initial;
}

.workspace-topic {
  color: var(--muted);
  text-align: right;
  /* Leave room for the fixed theme toggle AND language selector
     (top-right corner) so a long topic's right edge doesn't run
     underneath either of them. The select now has a fixed width
     (see .lang-select), so this no longer depends on which language
     is selected - just toggle width (2.2rem) + gap + select's right
     offset (3.4rem) + select's width (7.5rem), plus a bit of buffer. */
  padding-right: 11.5rem;
}
.workspace-topic:focus { color: var(--text); }

@media (max-width: 720px) {
  #header-bar { flex-direction: column; gap: 0.2rem; }
  .workspace-topic { text-align: left; padding-right: 11.5rem; }
}

#editor-container {
  flex: 1;
  min-height: 0;
}

#editor-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  flex-wrap: wrap;
}

#save-status {
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
#save-status.success { color: var(--good); }
#save-status.error { color: var(--bad); }
.save-status-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* --- Expiry controls --- */

.expiry-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.expiry-control select { width: auto; flex: 1; font-size: 1.05rem; }

#workspace-info .expiry-control {
  flex-direction: column;
  align-items: stretch;
}
#workspace-info .expiry-control select,
#workspace-info .expiry-control button {
  width: 100%;
  font-size: 1.05rem;
}

.inline-label {
  margin: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text);
}

button.danger {
  background: transparent;
  color: var(--bad);
  border-color: var(--panel-border);
}
button.danger:hover { border-color: var(--bad); }

/* --- Quill theme overrides --- */

.ql-toolbar.ql-snow {
  background: var(--panel);
  border: 1px solid var(--panel-border) !important;
  border-radius: 8px 8px 0 0;
}
.ql-container.ql-snow {
  border: 1px solid var(--panel-border) !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.1rem;
  height: calc(100% - 43px);
}
.ql-editor { min-height: 200px; }
.ql-editor.ql-blank::before { color: var(--muted); }

/* --- Grid embed (lightweight "ideas grid", see editor.js) --- */

.ql-grid-embed {
  margin: 0.8rem 0;
  cursor: default;
}

.ql-grid-controls {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.ql-grid-control-btn {
  background: var(--panel-border);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
}
.ql-grid-control-btn:hover { border-color: var(--accent); }

.ql-grid-table {
  border-collapse: collapse;
}

.ql-grid-table td {
  border: 1px solid var(--panel-border);
  padding: 0.4rem 0.6rem;
  min-width: 80px;
  font-size: 0.95rem;
  vertical-align: top;
}
.ql-grid-table td[contenteditable="true"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.ql-snow .ql-stroke { stroke: var(--text); }
.ql-snow .ql-fill { fill: var(--text); }
.ql-snow .ql-picker { color: var(--text); }
.ql-snow .ql-picker-options { background: var(--panel); }
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
  color: var(--accent);
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--accent);
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: var(--accent);
}

/* Bigger toolbar icons and heading picker */
.ql-toolbar.ql-snow .ql-formats button {
  width: 30px;
  height: 30px;
}
.ql-toolbar.ql-snow .ql-formats button svg {
  width: 20px;
  height: 20px;
}
.ql-snow .ql-picker {
  font-size: 1.05rem;
}
.ql-snow .ql-picker.ql-header {
  width: 115px;
}
.ql-snow .ql-picker-label {
  height: 30px;
  line-height: 28px;
}

/* --- Mobile --- */

@media (max-width: 720px) {
  #workspace { flex-direction: column; height: auto; min-height: 100vh; }
  #sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    /* On mobile the sidebar becomes the first, full-width block at
       the top of the page, which would otherwise sit directly under
       the fixed theme toggle and language selector. */
    padding-top: 3.6rem;
  }
  #note-list { max-height: 30vh; }
  #main { padding: 1rem; }
}

/* --- Loading overlay --- */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--panel-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Generic dialog --- */

#dialog-message {
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

#dialog-input {
  margin-bottom: 0.8rem;
}

/* --- Switch workspace (Create new / Change) --- */

#workspace-switch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#sidebar-create-workspace-btn {
  background: transparent;
  border-color: var(--good);
  color: var(--good);
}
#sidebar-create-workspace-btn:hover { background: var(--good-soft); }

#change-workspace-btn {
  background: transparent;
  border-color: var(--warn);
  color: var(--warn);
}
#change-workspace-btn:hover { background: var(--warn-soft); }

.recent-workspace-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.recent-workspace-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.recent-workspace-list li:hover { background: var(--panel-border); }
.recent-workspace-list li.empty { color: var(--muted); cursor: default; font-size: 0.85rem; }
.recent-workspace-list li.empty:hover { background: none; }

.recent-workspace-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.recent-workspace-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.recent-workspace-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--info);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.2rem 0;
  text-decoration: underline;
  align-self: flex-start;
}
.link-btn:hover { border-color: transparent; color: var(--bad); }

/* --- Leave workspace --- */

#leave-workspace-btn {
  background: transparent;
  border-color: var(--info);
  color: var(--info);
}
#leave-workspace-btn:hover {
  background: var(--info-soft);
}

#delete-workspace-btn {
  background: transparent;
  border-color: var(--bad);
  color: var(--bad);
}
#delete-workspace-btn:hover {
  background: var(--bad-soft);
}

/* --- Sharing --- */

#share-note-btn.active {
  background: var(--info-soft);
  border-color: var(--info);
  color: var(--info);
}

.modal-hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: -0.4rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  font-weight: normal;
  margin: 0.5rem 0;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

#share-timed-options {
  margin: 0.6rem 0 1rem;
  padding: 0.8rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
#share-timed-options select { margin-bottom: 0.8rem; }
#share-timed-options select:last-child { margin-bottom: 0; }

#share-create button,
#share-manage button { width: 100%; }

#share-manage-info {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
#share-manage-info.warning {
  color: var(--bad);
  font-weight: 600;
}

#share-link-display {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0.5rem 0 0.8rem;
  word-break: break-all;
}

/* --- Share viewer screen (#share-<id>:<secret> links) --- */

#share-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.share-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
}

#share-error {
  /* .error-banner's icon+text row is left-aligned internally (reads
     naturally as a sentence), which looks fine inside the landing
     page's narrower 420px box but visibly lopsided stretched across
     this screen's wider 720px .share-wrap, especially with nothing
     else on the page once the title/label are hidden for an error.
     Constraining and centering it here makes it read as a compact,
     centered card instead. */
  max-width: 480px;
  margin: 0 auto;
}

.share-label {
  margin: 0 0 0.3rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
  word-break: break-word;
}
.share-title:empty::before {
  content: "Untitled";
  color: var(--muted);
}

#share-reveal {
  text-align: center;
}
#share-reveal p {
  margin: 0 0 1rem;
  line-height: 1.5;
}
#share-reveal button { width: 100%; }

#share-editor {
  background: var(--input-bg);
}
#share-editor .ql-container.ql-snow {
  height: auto;
  border-radius: 8px;
  min-height: 200px;
}
#share-editor .ql-editor {
  min-height: 200px;
}

.share-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  text-align: center;
}

.share-refresh-btn {
  display: block;
  margin: 0.6rem auto 0;
}

.share-expired-banner {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid var(--bad);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}