/* Removed conflicting body styles - see unified body styles below */

.container {
    background-color: #FFFBE6;  /* light yellow */
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #ffffff;  /* purple */
    text-align: center;
    margin-bottom: 30px;
}

.setup {
    font-size: 1.3em;
    margin-bottom: 1em;
    display: block;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

.punchline {
    font-weight: bold;
    font-style: italic;
    font-size: 1.2em;
    margin-bottom: 1em;
    display: block;
    color: #fff; 
    text-align: center;
    line-height: 1.4;
}

/* Mobile text sizing */
@media (max-width: 768px) {
    .setup {
        font-size: 1.4em;
        margin-bottom: 1.2em;
    }
    
    .punchline {
        font-size: 1.3em;
        margin-bottom: 1.2em;
    }
}

@media (max-width: 480px) {
    .setup {
        font-size: 1.2em;
        margin-bottom: 1em;
    }
    
    .punchline {
        font-size: 1.1em;
        margin-bottom: 1em;
    }
}

.metadata {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #DDD;
    color: #789db9;
    font-size: 0.9em;
}

*, *:after, *:before {
    box-sizing: border-box;
    transform-style: preserve-3d;
    margin: 0;
    padding: 0;
  }
  
  html {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  :root {
    --bg: hsl(0 0% 0%);
    --gradient: conic-gradient(from 180deg at 50% 50%, hsl(240 100% 70%), hsl(260 100% 70%), hsl(280 100% 70%), hsl(300 100% 70%), hsl(320 100% 70%), hsl(340 100% 70%), hsl(360 100% 70%), hsl(20 100% 70%), hsl(40 100% 70%), hsl(60 100% 70%), hsl(80 100% 70%), hsl(100 100% 70%), hsl(120 100% 70%), hsl(140 100% 70%), hsl(160 100% 70%), hsl(180 100% 70%), hsl(200 100% 70%), hsl(220 100% 70%), hsl(240 100% 70%));
    --border-width: 2;
    --border-radius: 8;
  }
  
  body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: hsl(0 0% 14%);
    margin: 0;
    padding: 10px;
    font-family: Arial, sans-serif;
  }
  
  article {
    color: hsl(199, 76%, 43%);
    background:
      linear-gradient(#277097, var(--bg)) padding-box,
      var(--gradient) border-box;
    border: calc(var(--border-width, 2) * 1px) solid transparent;
    padding: 2rem;
    border-radius: calc(var(--border-radius, 8) * 1px);
    width: 100%;
    max-width: 600px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    position: relative;
    transform: translate3d(0, 0, 0);
  }
  
  /* Mobile optimization - Full edge-to-edge */
  @media (max-width: 768px) {
    body {
      padding: 0;
      margin: 0;
      height: 100vh;
      display: block;
    }
    
    article {
      width: 100vw;
      height: 100vh;
      padding: 1.5rem;
      font-size: 1.2rem;
      max-width: none;
      border-radius: 0;
      margin: 0;
    }
  }
  
  /* Small mobile screens - Even more aggressive */
  @media (max-width: 480px) {
    body {
      padding: 0;
      margin: 0;
      height: 100vh;
      display: block;
    }
    
    article {
      width: 100vw;
      height: 100vh;
      padding: 1rem;
      font-size: 1.1rem;
      max-width: none;
      border-radius: 0;
      margin: 0;
    }
  }
  article:not(.faux) { z-index: 2; }
  
  p {
    margin: 0;
  }
  
  /* Explosion */
  
  [data-exploded] section {
    transition: transform 1s;
  }
  
  .faux {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--gradient) border-box;
  }
  
  [data-exploded] section {
    transform: rotateX(60deg) rotate(25deg);
  }
  
  [data-imploding] article:not(.faux),
  [data-exploded] article:not(.faux) {
    background: var(--bg) padding-box;
  }
  
  [data-exploded] article:not(.faux) p {
    transform: translate3d(0, 0, 200px);
  }
  
  [data-exploded] .faux {
    transform: translate3d(0, 0, -200px);
  }
  [data-exploded] .faux,
  [data-exploded] article:not(.faux) p {
    transition: transform 1s 1.5s;
  }
  
  [data-exploded] label {
    opacity: 1;
    transition: 1s 1.5s;
  }
  
  label {
    transition: 1s 0s;
  }
  
  section {
    transition: transform 1s 1.5s;
  }
  
  article:not(.faux) p, .faux {
    transition: transform 1s 0s;
  }
  
  label {
    position: absolute;
    top: 50%;
    left: calc(100% + 2rem);
    white-space: nowrap;
    color: hsl(0 0% 70%);
    font-size: 1.5rem;
    translate: 0 -50%;
    opacity: 0;
    transform: translate3d(0, 0, calc(var(--z, 0) * 1px));
  }
  
  label:nth-of-type(1) {
    --z: 200;
  }
  label:nth-of-type(3) {
    --z: -200;
  }

  
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px 0;
    width: 100%;
}

.button-3d {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: #5486a8;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px #277097;
    transition: all 0.1s ease;
    text-decoration: none;
    min-width: 120px;
    padding: 12px 20px;
}

/* Mobile button styling */
@media (max-width: 768px) {
    .button-container {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .button-3d {
        font-size: 1.1em;
        padding: 15px 25px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .button-3d {
        font-size: 1em;
        padding: 12px 20px;
        min-width: 80px;
    }
}

.button-3d:hover {
    background-color: #277097;
}

.button-3d:active {
    background-color: #5486a8;
    box-shadow: 0 2px #789db9;
    transform: translateY(3px);
}

.button-3d.previous {
    background-color: #789db9;
    box-shadow: 0 5px #9ab5ca;
}

.button-3d.previous:hover {
    background-color: #277097;
}

.button-3d.previous:active {
    box-shadow: 0 2px #45a049;
}
.portrait {
    border-radius: 50%;
    width: 75%;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #277097;
    color:#fff
  }

  .share-button:hover {
    background: #277097;
  }

  .share-icon {
    width: 20px;
    height: 20px;
  }

  .icon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
  }

  .home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #277097;
    color:#fff
  }

  .home-button:hover {
    background: #277097;
  }