﻿/* Custom CSS animations and Duolingo-style UI aesthetics */

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #020617 75%);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 16px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.recording-active {
  animation: pulse-ring 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
  background-color: #e11d48 !important;
}

canvas {
  image-rendering: auto;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
