* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  display: flex;
  height: 100vh;
  background: #000;
}

/* Left Panel - Heart Animation */
.left-panel {
  width: 50%;
  height: 100vh;
  position: relative;
  background: #000;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right Panel - Messages */
.right-panel {
  width: 50%;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1a0a1f 0%, #2d1b3d 50%, #1a0a1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.right-panel::-webkit-scrollbar {
  width: 8px;
}

.right-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.right-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 105, 180, 0.5);
  border-radius: 4px;
}

/* Message Container */
.message-container {
  width: 100%;
  max-width: 600px;
  color: white;
  font-family: 'Segoe UI', 'Courier New', monospace;
}

/* Bear GIF */
.bear-gif-container {
  text-align: center;
  margin-bottom: 40px;
  animation: floatIn 2s ease-out;
}

.bear-gif {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.6);
  animation: gentleBounce 3s ease-in-out infinite;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Typewriter Elements */
.typewriter {
  opacity: 0;
  border-right: 3px solid rgba(255, 105, 180, 0.8);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.typewriter.typing {
  opacity: 1;
  animation: blink-caret 0.75s step-end infinite;
}

.typewriter.done {
  opacity: 1;
  border-right: none;
  white-space: normal;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: rgba(255, 105, 180, 0.8);
  }
}

/* Text Styling */
.greeting {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.8),
    0 0 40px rgba(255, 105, 180, 0.6);
  letter-spacing: 2px;
  color: #ff69b4;
}

.main-message {
  font-size: 1.4em;
  margin-bottom: 30px;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  color: #ffccee;
}

.romantic-messages {
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.sweet-messages {
  margin-bottom: 30px;
  background: rgba(255, 105, 180, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 105, 180, 0.3);
}

.message-line {
  font-size: 1.1em;
  line-height: 1.8;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  color: #fff;
}

.message-line.sweet {
  font-style: italic;
  color: #ffb3d9;
  font-size: 1em;
}

.signature {
  font-size: 1.3em;
  font-style: italic;
  color: #ffccee;
  margin-top: 30px;
  text-align: center;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {

  .left-panel,
  .right-panel {
    width: 100%;
    height: 50vh;
  }

  body {
    flex-direction: column;
  }

  .right-panel {
    padding: 15px;
  }

  .bear-gif {
    width: 100px;
    height: 100px;
  }

  .bear-gif-container {
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .right-panel {
    padding: 12px;
  }

  .greeting {
    font-size: 1.6em;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .main-message {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .message-line {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 8px 0;
  }

  .message-line.sweet {
    font-size: 0.85em;
  }

  .signature {
    font-size: 1em;
    margin-top: 20px;
  }

  .bear-gif {
    width: 90px;
    height: 90px;
  }

  .bear-gif-container {
    margin-bottom: 20px;
  }

  .romantic-messages,
  .sweet-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 10px;
  }

  .greeting {
    font-size: 1.4em;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  .main-message {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .message-line {
    font-size: 0.85em;
    line-height: 1.5;
    margin: 6px 0;
  }

  .message-line.sweet {
    font-size: 0.8em;
  }

  .romantic-messages,
  .sweet-messages {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
  }

  .bear-gif {
    width: 70px;
    height: 70px;
  }

  .bear-gif-container {
    margin-bottom: 15px;
  }

  .signature {
    font-size: 0.95em;
    margin-top: 15px;
  }
}