/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  
  .split-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
  }
  
  .panel {
    flex: 1;
    transition: background-color 10s ease-in-out;
  }
  
  /* Initial colors, feel free to adjust these hues */
  .left {
    background-color: #1e3a5f; /* a deep blue */
  }
  
  .right {
    background-color: #5a3d2b; /* a warm earthy tone */
  }
  
  /* Optional: animate the color change with keyframes */
  @keyframes colorCycleLeft {
    0%, 100% { background-color: #1e3a5f; }
    50% { background-color: #2e5a8a; }
  }
  
  @keyframes colorCycleRight {
    0%, 100% { background-color: #5a3d2b; }
    50% { background-color: #8c6e59; }
  }
  
  .left {
    animation: colorCycleLeft 20s infinite;
  }
  
  .right {
    animation: colorCycleRight 20s infinite;
  }
  
  .surname {
    position: relative;
    z-index: 1;
    font-size: 20rem;
    text-align: center;
    mix-blend-mode: overlay;
    color: #ffffff;
    overflow: hidden;
  }
  
  /* Left-to-right wipe */
.surname::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #ffffff20; /* semi-transparent white for a subtle wipe */
    transform: translateX(-100%);
    animation: wipeRight 8s ease-in-out infinite;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  }

  /* Right-to-left wipe */
.surname::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #ffffff20;
    transform: translateX(100%);
    animation: wipeLeft 8s ease-in-out infinite;
    animation-delay: 4s; /* delay to alternate with ::before */
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  }
  
  @keyframes wipeRight {
    0% { transform: translateX(-100%); }
    5% { transform: translateX(0); }
    10% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
  }
  
  @keyframes wipeLeft {
    0% { transform: translateX(100%); }
    5% { transform: translateX(0); }
    10% { transform: translateX(-100%); }
    100% { transform: translateX(-100%); }
  }
  
  /* For better responsiveness, adjust font-size on smaller devices */
  @media (max-width: 768px) {
    .surname {
      font-size: 5rem;
    }
  }  
