/* Fortune Cookie - App-Specific Styles */

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

body {
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 9999;
  pointer-events: none;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  font-size: clamp(18px, 4vw, 28px);
  color: #fd243d;
  font-family: Georgia, serif;
  white-space: nowrap;
}

/* Hide p5.js default loading text */
body > p {
  display: none !important;
}

.bottom-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 20vh, 180px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fd243d;
  font-family: Arial, sans-serif;
  background: #fafafa;
  padding: clamp(10px, 2vh, 20px);
  box-sizing: border-box;
}

.fortune-button,
.share-button {
  background: transparent;
  color: #fd243d;
  border: 2px solid rgba(253, 36, 61, 0.6);
  padding: clamp(8px, 2vh, 12px) clamp(16px, 4vw, 32px);
  border-radius: 30px;
  font-size: clamp(13px, 3vw, 20px);
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Georgia, serif;
  transform-origin: center;
  text-shadow: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 95vw;
  text-align: center;
}

.fortune-button {
  margin-bottom: 15px;
}

.share-button {
  display: none;
}

.share-button.show {
  display: inline-block;
}

.fortune-button:hover,
.share-button:hover {
  background: rgba(253, 36, 61, 0.1);
  border-color: rgba(253, 36, 61, 0.8);
  transform: scale(1.05);
}

.fortune-button:active,
.share-button:active {
  background: rgba(253, 36, 61, 0.2);
  transform: scale(0.95);
}

/* Daily limit message styling - looks like text, not a button */
.fortune-button.limit-message {
  border: none;
  background: transparent;
  cursor: default;
  padding: clamp(8px, 2vh, 12px) clamp(8px, 2vw, 16px);
  font-size: clamp(13px, 3vw, 20px);
  opacity: 0.85;
}

.fortune-button.limit-message:hover {
  background: transparent;
  border: none;
  transform: none;
  opacity: 0.85;
}

.fortune-button.limit-message:active {
  background: transparent;
  transform: none;
}

/* Responsive design handled by clamp() values above */
