/* Catchanda Botya - Main Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --color-ice-light: #b8e4f0;
  --color-ice: #7dd3e8;
  --color-ice-dark: #4ab8d1;
  --color-ice-deep: #2a8fa8;
  --color-water: #1e6e85;
  --color-snow: #f0f8ff;
  --color-frost: rgba(255, 255, 255, 0.7);
  --color-shadow: rgba(30, 90, 120, 0.4);
  --color-text: #ffffff;
  --color-text-shadow: #1a5568;
  --color-gold: #ffd700;
  --color-gold-dark: #cc9900;
  
  --font-primary: 'Fredoka', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background: #1a4a5a;
  color: var(--color-text);
  user-select: none;
  -webkit-user-select: none;
}

/* App Container */
#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

/* Background */
.background {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100%;
  background-image: url('../assets/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Screen Base */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  overflow-y: auto;
  overflow-x: hidden;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

/* Typography */
.title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 
    3px 3px 0 var(--color-text-shadow),
    -1px -1px 0 var(--color-text-shadow),
    1px -1px 0 var(--color-text-shadow),
    -1px 1px 0 var(--color-text-shadow);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 
    2px 2px 0 var(--color-text-shadow),
    -1px -1px 0 var(--color-text-shadow);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: 10px;
}

.gap-md {
  gap: 20px;
}

.gap-lg {
  gap: 30px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes swim {
  0% { transform: translateX(-100%) scaleX(1); }
  49% { transform: translateX(100vw) scaleX(1); }
  50% { transform: translateX(100vw) scaleX(-1); }
  99% { transform: translateX(-100%) scaleX(-1); }
  100% { transform: translateX(-100%) scaleX(1); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

