/* ... existing code ... */
/* moved from original index.html <style> block */
/* removed inline CSS from index.html - tombstone: // removed inline styles {} */

:root{
  --base-font: Arial, Helvetica, sans-serif;
}

html,body{
  height:100%;
  margin:0;
  font-family: var(--base-font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body {
    background-image: url('FT_15.12.23_5factsXmas4_promo-jpg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    font-size: 18px;
    color: #222;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 51, 51, 0.8);
    z-index: -1;
}

.app-root {
  width:100%;
  max-width:1100px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

h1 {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 3rem;
    margin:0;
}

.subtitle{
  color: white;
  font-family: 'Courier New', Courier, monospace;
  text-align:center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-top: -10px;
  font-size: 1.2em;
  font-weight: normal;
}

.fridge {
    background-image: url('Refrigerator-door-handles.jpg');
    background-size: cover;
    background-position: center;
    width: 80%;
    max-width: 800px;
    height: 1200px;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.emergency-photo {
    width: 90%;
    height: 300px;
    background-image: url('Emergency-Management-And-Alerting-In-Hospitals (1).jpg');
    background-size: cover;
    background-position: center;
    border: 15px solid white;
    border-radius: 5px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.post-it-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.post-it {
    background: #feff9c;
    width: 96%;
    padding: 36px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
    font-family: 'Comic Sans MS', cursive;
    position: relative;
    backdrop-filter: blur(2px);
    font-size: 1.05rem;
    line-height: 1.4;
}

.post-it:nth-child(2) {
    background: #ff7eb9;
    transform: rotate(1deg);
    width: 96%;
    padding: 30px;
    font-size: 1.05rem;
}

.post-it:hover {
    transform: scale(1.02) rotate(0deg);
    z-index: 2;
}

.post-it h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.6rem;
}

.post-it ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.post-it li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #444;
}

.note {
    font-style: italic;
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
    border-top: 1px dashed #999;
    padding-top: 10px;
}

.post-it::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: rgba(0,0,0,0.1);
    clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}

/* Flip card styles for image back-sentences */
.flip-card {
  width: 100%;
  max-width: 320px;
  perspective: 1000px;
  cursor: pointer;
  display: inline-block;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  padding-top: 70%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* front image styling */
.flip-card-front {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.front-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

/* back side styling */
.flip-card-back {
  background: linear-gradient(180deg, #fffef0, #fff1c4);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-family: 'Arial', sans-serif;
  font-size: 0.96rem;
  color: #222;
  text-align: center;
  line-height: 1.3;
  border: 5px solid white;
}

/* flipped state */
.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* keep existing gallery grid but ensure cards align */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 92%;
    margin-bottom: 30px;
    justify-items: center;
    align-items: start;
}

/* replace prior .gallery img rules by targeting .front-img instead */
.gallery img,
.front-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 5px solid white;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* remove extra rotate variants for the new card layout while keeping subtle tilt */
.flip-card .front-img { transform: rotate(-1deg); }
.flip-card:hover .front-img { transform: scale(1.04) rotate(0deg); }

/* ensure accessibility focus visible */
.flip-card:focus {
  outline: 3px solid rgba(244, 81, 30, 0.8);
  outline-offset: 4px;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.star {
    animation: twinkle 1s infinite;
}

.post-it:nth-child(1) {
    background: #feff9c;
    transform: rotate(-1deg);
    width: 98%;
    padding: 36px;
    animation: float 4s ease-in-out infinite;
}

.post-it:nth-child(2) {
    background: #ff7eb9;
    transform: rotate(1deg);
    width: 96%;
    padding: 30px;
    font-size: 1.05rem;
    animation: float 4s ease-in-out infinite reverse;
}

.post-it:nth-child(3) {
    background: #7afcff;
    transform: rotate(-2deg);
    width: 96%;
    padding: 30px;
    font-size: 0.95rem;
    animation: float 4.5s ease-in-out infinite;
}

.post-it:nth-child(4) {
    background: #ffb347;
    transform: rotate(2deg);
    width: 96%;
    padding: 30px;
    font-size: 0.95rem;
    animation: float 5s ease-in-out infinite reverse;
}

.post-it:nth-child(5) {
    background: #c8e6c9;
    transform: rotate(-1.5deg);
    width: 97%;
    padding: 36px;
    font-size: 0.98rem;
    animation: float 4.8s ease-in-out infinite;
}

.debate-team {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
}

.debate-team h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.15rem;
}

.debate-team ul {
    margin: 10px 0;
}

.debate-team li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.example {
    background: rgba(255, 255, 200, 0.5);
    padding: 12px;
    border-left: 3px solid #f39c12;
    margin: 10px 0;
    font-style: italic;
    border-radius: 4px;
    font-size: 1.02rem;
}