/* ========================================
   RESET STYLES
   ======================================== */

button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, 
blockquote, body, canvas, caption, center, cite, code, dd, del, 
details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, 
footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, 
iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, 
ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, 
strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, 
tr, tt, u, ul, var, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, 
hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:after, 
blockquote:before, 
q:after, 
q:before {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ========================================
   ROOT VARIABLES
   ======================================== */

:root {
  /* Base Sizing */
  --base-font-size: 20px;
  --margin: 16px;
  --max-content-width-unitless: 600;
  --max-content-width: 600px;
  --min-content-width: 375px;
  --max-desktop-content-width: 1366px;
  
  /* Z-Index Layers */
  --above-above-canvas-z-index: 2147483632;
  --overlay-z-index: 2147483637;
  --above-overlay-z-index: 2147483642;
  --max-z-index: 2147483647;
  
  /* Fonts */
  --sans-serif-font: "NationalPark-Variable", "Inter", Arial, sans-serif;
  --monospace-font: "Roboto Mono", monospace;
  --code-font: "Fira Code", monospace;
}


/* ========================================
   HTML & BODY BASE STYLES
   ======================================== */

html {
  --page-reference-width: var(--max-content-width-unitless);
  --page-reference-width-px: var(--max-content-width-px);
  --canvas-width: var(--override-canvas-width, 100vw);
  --body-canvas-width: calc(
    var(--canvas-width) - 
    var(--left-fixture-width-px, 0px) - 
    var(--right-fixture-width-px, 0px)
  );
  
  font-size: min(calc(var(--body-canvas-width) / var(--page-reference-width)), 1px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--sans-serif-font);
  height: 100%;
  overflow-y: overlay;
  scroll-behavior: smooth;
  background-color: rgba(240, 198, 212, 1);
}

body {
  font-size: var(--base-font-size);
  height: -moz-fit-content;
  height: fit-content;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background 0.1s ease-in-out;
  font-family: var(--sans-serif-font);
  background-color: rgba(240, 198, 212, 1);
}

button {
  font-family: var(--sans-serif-font);
}

h1.hidden {
  display: none;
}


/* ========================================
   ACCESSIBILITY
   ======================================== */

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .block-content.with-animation.spin,
  .mw_preview-box.with-animation.spin {
    animation: spin 15s linear infinite;
  }
  
  .block-content.with-animation.medallion,
  .mw_preview-box.with-animation.medallion {
    animation: medallion 10s linear infinite;
  }
  
  .block-content.with-animation.tada,
  .mw_preview-box.with-animation.tada {
    animation: tada 2.5s linear infinite;
  }
  
  .block-content.with-animation.wobble-alt,
  .mw_preview-box.with-animation.wobble-alt {
    animation: wobble-alt 2s linear infinite;
    --wobble-alt-dampening: 0.3;
  }
  
  .block-content.with-animation.bounce,
  .mw_preview-box.with-animation.bounce {
    animation: bounce 2s linear infinite;
  }
  
  .block-content.with-animation.flash,
  .mw_preview-box.with-animation.flash {
    animation: flash 2s linear infinite;
  }
  
  .block-content.with-animation.pulse,
  .mw_preview-box.with-animation.pulse {
    animation: pulse 2s linear infinite;
  }
  
  .block-content.with-animation.shake,
  .mw_preview-box.with-animation.shake {
    animation: shake 2s linear infinite;
  }
  
  .block-content.with-animation.bungee,
  .mw_preview-box.with-animation.bungee {
    animation: bungee 2s linear infinite;
    --bungee-dampening: 1;
  }
}


/* ========================================
   LAYOUT STRUCTURE
   ======================================== */

#next {
  width: 100%;
  height: 100%;
}

.site-view {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}

.site-view .main-container {
  width: 100%;
}

.page-view {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
}

.page-view.autoresponsive {
  --rpx: 1rem;
}

.page-view:not(.autoresponsive) {
  --rpx: 1px;
}


/* ========================================
   SECTIONS & CONTENT
   ======================================== */

section[data-type="section"] {
  position: relative;
  display: flex;
  height: -moz-fit-content;
  height: fit-content;
  overflow: hidden;
}

section[data-type="section"] div[data-type="content"] {
  margin: 0 auto;
  position: relative;
  height: 100%;
  width: 100%;
  height: calc(var(--height) * var(--rpx));
  max-width: calc(var(--max-width) * var(--parent-rpx));
  box-sizing: border-box;
}

div[data-type="group"] {
  position: relative;
  width: calc(var(--width) * var(--rpx));
  height: calc(var(--height) * var(--rpx));
  z-index: var(--z);
}


/* ========================================
   FIXTURES (SIDEBARS)
   ======================================== */

.fixture {
  position: relative;
  flex-shrink: 0;
}

#left-fixture .fixture-content,
#right-fixture .fixture-content {
  position: fixed;
  min-height: 100vh;
}

#left-fixture .fixture-content .page-view,
#right-fixture .fixture-content .page-view {
  min-height: 100vh;
}


/* ========================================
   BLOCKS (GENERAL)
   ======================================== */

.block {
  display: block;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: opacity 0.1s, box-shadow 0.1s;
  outline: none;
  touch-action: manipulation;
  text-size-adjust: none;
  box-sizing: border-box;
  left: calc(var(--x) * var(--rpx));
  top: calc(var(--y) * var(--rpx));
  z-index: var(--z);
  width: calc(var(--width) * var(--rpx));
  height: calc(var(--height) * var(--rpx));
  
  /* Transform Variables */
  --scale-x: 1;
  --scale-y: 1;
  --rotation: 0;
  --block-on-hover-transform: scale(1);
  
  transform: translateZ(0) 
    translate(-50%, -50%) 
    rotate(calc(var(--rotation) * 1deg)) 
    scaleX(var(--scale-x)) 
    scaleY(var(--scale-y)) 
    var(--block-on-hover-transform);
}

.block.manually-position {
  width: calc(var(--width) * var(--rpx));
  height: calc(var(--height) * var(--rpx));
  left: auto;
  top: auto;
  position: relative;
  transform: scaleX(var(--scale-x)) scaleY(var(--scale-y));
}

.block.pinned {
  position: fixed;
}

.block.hidden {
  display: none;
}

.block.no-pointer-events {
  pointer-events: none;
}

.block:not(.overflow-visible) > div {
  overflow: hidden;
}


/* Block Content */
.block-content {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  outline: none;
  z-index: 0;
  transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
  transform: translateZ(0) var(--block-on-hover-transform);
  box-sizing: border-box;
}

.block:not(.disable-effects) .block-content.ambient-spin {
  animation-name: spin;
  animation-duration: 30s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}


/* Hyperlinked Blocks */
.block.hyperlinked .link-overlay {
  height: 100%;
  width: 100%;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  display: block;
}


/* ========================================
   BLOCK HOVER EFFECTS
   ======================================== */

@media not all and (hover: none) {
  .block:not(.disable-effects) .block-content.grow-on-hover:hover {
    --block-on-hover-transform: scale(1.03);
  }
  
  .block:not(.disable-effects) .block-content.underline-on-hover:hover span {
    text-decoration: underline;
  }
  
  .block:not(.disable-effects) .block-content.opacity-on-hover:hover {
    opacity: 0.5;
  }
}


/* ========================================
   SPECIFIC BLOCK TYPES
   ======================================== */

/* Images & GIFs */
.block[data-type="gif"] img,
.block[data-type="image"] img {
  width: 100%;
  height: 100%;
  color: transparent;
  vertical-align: top;
}

.block img:-moz-loading {
  visibility: hidden;
}


/* Drawing Blocks */
.block[data-type="drawing"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.block[data-type="drawing"],
.block[data-type="drawing"] .block-content,
.block[data-type="drawing"] svg {
  overflow: visible !important;
}

.block[data-type="drawing"] svg {
  width: 100%;
  height: 100%;
}


/* Shape Blocks */
.block[data-type="shape"] svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}


/* Button Blocks */
.block[data-type="button"] .button {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6.4rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-size: calc(var(--font-size) * var(--rpx));
}

.block[data-type="button"] .button.light-bg {
  color: #000;
}

.block[data-type="button"] .button.dark-bg {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.24);
  color: #fff;
}

.block[data-type="button"] .button.square span {
  display: none;
}

.block[data-type="button"] .button span {
  line-height: calc(var(--font-size) * var(--rpx) * 1.5);
  margin-left: calc(var(--font-size) * var(--rpx) + 27.6rem);
  outline: none;
  max-width: 80%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.block[data-type="button"] .button.instagram-bg {
  background: linear-gradient(
    45deg,
    #fda948 13%,
    #f66748 21%,
    #ec3653 64%,
    #c13a9c 84%
  );
}

.block[data-type="button"] .button .icon-wrapper {
  left: 27.6rem;
  position: absolute;
  width: calc(var(--font-size) * var(--rpx));
  height: calc(var(--font-size) * var(--rpx));
}

.block[data-type="button"] .button.dark-bg .icon-wrapper {
  --drop-shadow: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.24));
  filter: var(--drop-shadow);
  -webkit-filter: var(--drop-shadow);
  -moz-filter: var(--drop-shadow);
  -o-filter: var(--drop-shadow);
  -ms-filter: var(--drop-shadow);
}

.block[data-type="button"] .button .icon {
  width: 100%;
  height: 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center center;
  -webkit-mask-position: center center;
}

.block[data-type="button"] .button.light-bg .icon {
  background-color: #000;
}

.block[data-type="button"] .button.dark-bg .icon {
  background-color: #fff;
}


/* Rich Button Blocks */
.block[data-type="rich-button"] .button {
  --dampening: max(min(0.7, calc(var(--padding) / 24)), 0.8);
  --smart-padding: calc(var(--dampening) * var(--padding) * var(--rpx));
  
  width: 100%;
  height: 100%;
  display: block;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 var(--smart-padding);
  gap: var(--smart-padding);
}

.block[data-type="rich-button"] .button.icon-right {
  flex-direction: row-reverse;
}

.block[data-type="rich-button"] .button.icon-left {
  flex-direction: row;
}

.block[data-type="rich-button"] .button.dark-background .label {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.24);
}

.block[data-type="rich-button"] .button .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: table-cell;
  vertical-align: middle;
  line-height: calc(var(--height) * var(--rpx));
}

.block[data-type="rich-button"] .button .label.right {
  text-align: right;
}

.block[data-type="rich-button"] .button .label.center {
  text-align: center;
}

.block[data-type="rich-button"] .button .label.left {
  text-align: left;
}

.block[data-type="rich-button"] .button.icon-none .icon {
  display: none;
}


/* Code Embed Blocks */
.block[data-type="code-embed"] .safe-mode-warning {
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid hsla(0, 0%, 100%, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.block[data-type="code-embed"] .safe-mode-warning span {
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  color: hsla(0, 0%, 100%, 0.64);
  display: block;
  height: 44px;
  width: 90px;
}


/* Embed Blocks (YouTube/Vimeo) */
.block[data-type="embed"] div.size-normalizer > div,
div[data-embed="vimeo"] .vimeo-player {
  width: 100% !important;
  height: 100% !important;
}

div[data-embed="vimeo"].write-mode .vimeo-player {
  pointer-events: none;
}

div[data-embed="vimeo"] .vimeo-play-button {
  width: 68px;
}

div[data-embed="vimeo"] .vimeo-play-button .ytp-large-play-button-bg {
  transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1),
    fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  fill: #212121;
  fill-opacity: 0.8;
}

@media not all and (hover: none) {
  div[data-embed="vimeo"]:hover:not(.write-mode) .youtube-play-button .ytp-large-play-button-bg {
    transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1),
      fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
    fill: red;
    fill-opacity: 1;
  }
}

div[data-embed="youtube"] .youtube-player {
  width: 100% !important;
  height: 100% !important;
}

div[data-embed="youtube"].write-mode .youtube-player {
  pointer-events: none;
}

div[data-embed="youtube"] .youtube-play-button {
  width: 68px;
}

div[data-embed="youtube"] .youtube-play-button .ytp-large-play-button-bg {
  transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1),
    fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  fill: #212121;
  fill-opacity: 0.8;
}

@media not all and (hover: none) {
  div[data-embed="youtube"]:hover:not(.write-mode) .youtube-play-button .ytp-large-play-button-bg {
    transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1),
      fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
    fill: red;
    fill-opacity: 1;
  }
}


/* Sticky Note Blocks */
.block[data-type="sticky-note"] .inline-rich-text {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  word-break: auto;
  white-space: pre-line;
}

.block[data-type="sticky-note"] .note-content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.25;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 4rem;
  overflow: hidden;
  --rpx: 1px;
}

.block[data-type="sticky-note"] .note-content:before {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  content: " ";
  height: 100%;
  border-radius: 3rem;
  box-sizing: border-box;
  border-color: hsla(0, 0%, 100%, 0.32) hsla(0, 0%, 100%, 0.2)
    hsla(0, 0%, 100%, 0.12) hsla(0, 0%, 100%, 0.28);
  border-style: solid;
  border-width: 1px;
}

.block[data-type="sticky-note"] .note-content h3 {
  line-height: 1.2;
  font-size: 24px;
  margin-bottom: 12rem;
  font-weight: 600;
}

.block[data-type="sticky-note"] .note-content .meta {
  border-top: 1px solid rgba(0, 0, 0, 0.24);
  font-size: 11px;
  margin-top: 12rem;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8rem;
  left: 0;
  box-sizing: border-box;
}

.block[data-type="sticky-note"] .note-content .meta-pill {
  background: rgba(0, 0, 0, 0.16);
  height: 24rem;
  border-radius: 80rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: max-content;
  padding: 0 10rem;
}

.block[data-type="sticky-note"] .note-content .img-wrapper {
  aspect-ratio: 1.7777777778;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 12rem;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 3rem;
}

.block[data-type="sticky-note"] .note-content img {
  width: 100%;
}


/* Channel Blocks */
.block[data-type="channel"] .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 12px;
}

.post {
  background: #fff;
  padding: 12px;
  font-size: 14px;
  border-radius: 0;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.87);
  border: 1px solid rgba(0, 0, 0, 0.48);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
  aspect-ratio: 4/3 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post .footer {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}


/* ========================================
   TEXT CONTENT
   ======================================== */

.inline-rich-text {
  display: inline-block;
  font-size: calc(var(--font-size) * var(--rpx));
}

.inline-rich-text.left {
  transform-origin: left;
}

.inline-rich-text.center {
  transform-origin: center;
}

.inline-rich-text.right {
  transform-origin: right;
}

.inline-rich-text div[contenteditable] {
  outline: none;
  white-space: -moz-pre-space;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.text-content,
.text-content * {
  font-size: calc(var(--font-size) * var(--scaler-multiplier) * 1px);
}

.text-content .fixed-font-size,
.text-content.fixed-font-size {
  transform: none !important;
  width: auto !important;
  height: auto !important;
}

.text-content {
  --scaler-multiplier: 1;
  --width-percent: 100%;
  min-width: 100%;
  width: calc(var(--width-percent) / var(--scaler)) !important;
  height: calc(var(--width-percent) / var(--scaler)) !important;
  transform: scale(calc(var(--scaler) / var(--scaler-multiplier))) !important;
  transform-origin: 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Safari/WebKit specific */
@supports (background: -webkit-named-image(i)) {
  .text-content {
    --scaler-multiplier: 10;
    --width-percent: calc(var(--scaler-multiplier) * 100%);
  }
  
  .text-content:not(.legacy) {
    font-size: calc(1em * var(--scaler-multiplier));
  }
}

/* Text Content Formatting */
.text-content li {
  padding-left: 0.4em;
}

.text-content li p {
  margin-bottom: 0;
}

.text-content ol,
.text-content ul {
  padding-left: 1.5em;
}

.text-content ul li {
  list-style: disc;
}

.text-content ol li {
  display: list-item;
  list-style-type: decimal;
}

.text-content strong {
  font-weight: 700;
}

.text-content em {
  font-style: italic;
}

.text-content p:empty:after {
  content: " ";
}

.text-content u span {
  text-decoration: underline;
}

.text-content a {
  text-decoration: none;
}

.text-content a:hover,
.text-content a:hover span {
  text-decoration: underline;
}


/* ========================================
   UTILITY COMPONENTS
   ======================================== */

/* Renderable Icon */
.renderable-icon {
  flex-shrink: 0;
  height: calc(var(--height) * var(--rpx));
  width: calc(var(--width) * var(--rpx));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  display: flex;
}

/* Timestamp */
.mw_timestamp {
  --timestamp-border-radius: 13px;
  align-items: center;
  background: #000;
  border-radius: var(--timestamp-border-radius);
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  padding: 0 8px;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.mw_timestamp:not(.always-visible) {
  visibility: hidden;
}

.mw_timestamp:before {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  content: " ";
  height: 100%;
  border-radius: var(--timestamp-border-radius);
  box-sizing: border-box;
  border-color: hsla(0, 0%, 100%, 0.32) hsla(0, 0%, 100%, 0.2)
    hsla(0, 0%, 100%, 0.12) hsla(0, 0%, 100%, 0.28);
  border-style: solid;
  border-width: 1px;
}

.block:hover .mw_timestamp.on-hover {
  visibility: visible;
}

/* Gradients */
.mw_gradient.series-music {
  background-color: #fec84e;
  background-image: linear-gradient(315deg, #fec84e, #ffdea8 74%);
}


/* ========================================
   POWERED BY ATTRIBUTION
   ======================================== */

.hide-powered-by-attribution #powered-by-attribution {
  display: none !important;
}

#powered-by-attribution {
  text-transform: lowercase;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: var(--max-z-index);
}

#powered-by-attribution a {
  text-indent: -9999px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--above-above-canvas-z-index);
}

#powered-by-attribution span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 148px;
  left: 0;
  font-weight: 700;
  transition: all 0.15s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

#powered-by-attribution:hover span {
  opacity: 1;
  transform: translateY(-50%) translateX(68px);
}

#icon-logo {
  --first-phase: 0.25s;
  --delay: 0.1s;
  --second-phase: 0.25s;
  --third-phase: 0.25s;
  
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border-color: transparent;
  opacity: 1 !important;
  transition: 0.15s ease-in-out;
  
  --attribution-border-color: hsla(0, 0%, 100%, 0.24);
  filter: drop-shadow(1px 1px 0 var(--attribution-border-color))
    drop-shadow(-1px 1px 0 var(--attribution-border-color))
    drop-shadow(1px -1px 0 var(--attribution-border-color))
    drop-shadow(-1px -1px 0 var(--attribution-border-color));
  -webkit-filter: drop-shadow(1px 1px 0 var(--attribution-border-color))
    drop-shadow(-1px 1px 0 var(--attribution-border-color))
    drop-shadow(1px -1px 0 var(--attribution-border-color))
    drop-shadow(-1px -1px 0 var(--attribution-border-color));
}

#icon-logo:hover svg {
  transform: scale(1.2);
}


/* ========================================
   THIRD PARTY INTEGRATIONS
   ======================================== */

.twitter-thing .twitter-tweet {
  margin: 0 auto !important;
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}

@keyframes medallion {
  0% {
    transform: rotateY(0deg) rotate(0deg);
  }
  50% {
    transform: rotateY(180deg) rotate(5deg);
  }
  to {
    transform: rotateY(1turn) rotate(0deg);
  }
}

@keyframes tada {
  0% {
    transform: scaleX(1);
  }
  10%,
  5% {
    transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
  }
  15%,
  25%,
  35%,
  45% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
  }
  20%,
  30%,
  40% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
  }
  50%,
  to {
    transform: scaleX(1);
  }
}

@keyframes wobble-alt {
  0% {
    transform: none;
  }
  7.5% {
    transform: translate3d(
        calc(-25% * var(--wobble-alt-dampening)),
        0,
        0
      )
      rotate(-5deg);
  }
  15% {
    transform: translate3d(calc(20% * var(--wobble-alt-dampening)), 0, 0)
      rotate(3deg);
  }
  22.5% {
    transform: translate3d(
        calc(-15% * var(--wobble-alt-dampening)),
        0,
        0
      )
      rotate(-3deg);
  }
  30% {
    transform: translate3d(calc(10% * var(--wobble-alt-dampening)), 0, 0)
      rotate(2deg);
  }
  37.5% {
    transform: translate3d(calc(-5% * var(--wobble-alt-dampening)), 0, 0)
      rotate(-1deg);
  }
  50%,
  to {
    transform: none;
  }
}

@keyframes bounce {
  0%,
  10%,
  26.5%,
  40%,
  to {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateZ(0);
  }
  20%,
  21.5% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -20%, 0);
  }
  35% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -10%, 0);
  }
  45% {
    transform: translate3d(0, -2.6%, 0);
  }
  50%,
  to {
    transform: translateZ(0);
  }
}

@keyframes flash {
  0%,
  50%,
  to {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes bungee {
  0% {
    transform: scale3d(
      calc(1 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  15% {
    transform: scale3d(
      calc(1.25 * var(--bungee-dampening)),
      calc(0.75 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  20% {
    transform: scale3d(
      calc(0.75 * var(--bungee-dampening)),
      calc(1.25 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  25% {
    transform: scale3d(
      calc(1.15 * var(--bungee-dampening)),
      calc(0.85 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  32% {
    transform: scale3d(
      calc(0.95 * var(--bungee-dampening)),
      calc(1.05 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  37% {
    transform: scale3d(
      calc(1.05 * var(--bungee-dampening)),
      calc(0.95 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
  50% {
    transform: scale3d(
      calc(1 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening)),
      calc(1 * var(--bungee-dampening))
    );
  }
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile (â‰¤ 600px) */
@media screen and (max-width: 600px) {
  :root {
    --margin: 16px;
  }
  
  html {
    --canvas-width: var(--override-canvas-width, 100vw);
  }
  
  .hide-on-mobile {
    display: none !important;
  }
  
  .block.hide-on-mobile {
    display: none;
  }
  
  #powered-by-attribution {
    bottom: 16px;
    left: 16px;
  }
  
  .builder-app #powered-by-attribution {
    display: none;
  }
  
  /* Responsive Text Scaling Fix */
  .text-content,
  .text-content * {
    font-size: calc(var(--font-size) * var(--scaler-multiplier) * 1rem) !important;
  }
  
  .inline-rich-text {
    font-size: calc(var(--font-size) * 1rem);
  }
}

/* Extra Small Mobile (â‰¤ 400px) */
@media screen and (max-width: 400px) {
  .text-content,
  .text-content * {
    font-size: calc(var(--font-size) * var(--scaler-multiplier) * 0.85rem) !important;
  }
  
  .inline-rich-text {
    font-size: calc(var(--font-size) * 0.85rem);
  }
}

/* Tablet (â‰¤ 800px) */
@media screen and (max-width: 800px) {
  #left-fixture,
  #right-fixture {
    display: none;
  }
  
  :root {
    --left-fixture-width-px: 0px !important;
    --right-fixture-width-px: 0px !important;
  }
  
  .post {
    padding: 12px;
    font-size: 13px;
  }
}

/* Desktop (â‰¥ 601px) */
@media screen and (min-width: 601px) {
  .hide-on-desktop {
    display: none !important;
  }
  
  .block.hide-on-desktop {
    display: none;
  }
}