/* Import the custom font */
@font-face {
    font-family: 'RationalText';
    src: url('https://cdn.glitch.global/9915c435-d215-427e-b3fe-9c18a39a653b/RationalTextDEMO-Light.otf?v=1737134757027') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles */
:root {
    --font-default: 'RationalText', sans-serif;
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-gray: #757575;
    --spacing: 16px;
    --border: 1px solid var(--color-text);
}

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

body {
    font-family: var(--font-default);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    font-size: 12px;
    overflow: hidden;
}

/* Typography */
h1, h2, p, a, span, button, input, label {
    font-family: var(--font-default);
}

/* Button Reset */
button {
    all: unset; /* Resets all browser-specific styles */
    font-family: var(--font-default);
    font-size: 12px;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px;
    position: relative;
}


/* Specific Button Styles (for consistency) */
.btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-default);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.btn::before {
    content: "-";
    margin-right: 4px;
    opacity: 0.5;
}

.btn:hover::before {
    content: "*";
    opacity: 1;
}


/* Continue with the rest of your CSS... */

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1;
  font-size: 12px;
  overflow: hidden;
}

/* Typography */
h1,
h2 {
  font-weight: bold;
  font-size: 12px;

}

.section-title {
  margin-bottom: var(--spacing);
  opacity: 0.5;
}

.title-right {
  font-weight: italic;
}
/* Layout Elements */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
  background: var(--color-bg);
  z-index: 100;
}

.side-controls {
  position: fixed;
  left: var(--spacing);
  top: 40%;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--color-bg);
  padding: var(--spacing);
  border: var(--border);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border);
  background: var(--color-bg);
  z-index: 100;
}

/* Control Sections */
.control-section {
  margin-bottom: calc(var(--spacing) * 2);
}

.control-group {
  margin-bottom: var(--spacing);
}

.control-label {
  display: block;
  margin-bottom: calc(var(--spacing) / 2);
}

.view-controls {
  display: flex;
  gap: var(--spacing);
}

/* Buttons */
.btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 12px;
  cursor: crosshair;
  padding: 4px;
  position: relative;
}

.btn::before {
  content: "-";
  margin-right: 4px;
  opacity: 0.5;
}

.btn:hover::before {
  content: "*";
  opacity: 1;
}

/* Navigation */
.navigation {
  display: flex;
  gap: var(--spacing);
}

/* Canvas */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Inputs */
/* Color Picker Fix */
input[type="color"] {
  -webkit-appearance: none;
  width: 100%;
  height: 32px;
  border: none; /* Removed the border */
  background: none;
  cursor: crosshair;
  padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none; /* Removed the border from the swatch */
}

input[type="range"] {
  width: 100%;
  margin: calc(var(--spacing) / 2) 0;
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 1px;
  border: var(--border);
  background: var(--color-bg);
  cursor: crosshair;
  margin-top: -5px;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  background: var(--color-text);
}

/* Tattoo Carousel */
#tattoo-carousel {
  display: flex;
  gap: var(--spacing);
  overflow-x: auto;
  padding: calc(var(--spacing) / 2) 0;
  scrollbar-width: none;
}

#tattoo-carousel::-webkit-scrollbar {
  display: none;
}

.tattoo-item {
  width: 60px;
  height: 60px;
  border: var(--border);
  cursor: grab;
  position: relative;
}

.tattoo-item:active {
  cursor: grabbing;
}

.tattoo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tattoo-item::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.tattoo-item:hover::before {
  content: "[";
  opacity: 1;
}

/* Overlay */
/* Overlay Fix */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.overlay-content {
  max-width: 600px;
  margin: var(--spacing);
  padding: calc(var(--spacing) * 2);
  position: relative;
}

.overlay-content h2 {
  margin-bottom: var(--spacing);
  font-size: 12px;
  font-weight: normal;
}

.overlay-content p {
  margin-bottom: var(--spacing);
  line-height: 1.4;
}

#close-overlay {
  position: absolute;
  top: var(--spacing);
  right: var(--spacing);
}

/* Drag and Drop */
.dragging {
  opacity: 0.5;
  position: fixed;
  pointer-events: painted;
  z-index: 1000;
}

/* Tattoo Counter */
.tattoo-counter {
  font-size: 12px;
  opacity: 0.5;
}

/* Loading State */
.loading::after {
  content: "...";
  animation: loading 1s infinite;
}

@keyframes loading {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* Links */
a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  opacity: 0.5;
}

/* Mobile Warning */
.mobile-warning {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white; /* Changed from white to transparent */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: var(--spacing);
  text-align: center;
  font-family: var(--font-default);
}

/* Mobile warning text */
.mobile-warning-text {
  position: relative;
top: 200px; left: 0px;
  z-index: 2006; /* Higher than the mobile warning container */
  font-size: .8em;
  letter-spacing: 0.1em;
  color: black; /* Ensure text is visible */
 
  background-color: rgba(255, 255, 255,0.01); /* Semi-transparent background */
  border-radius: 8px;
}

/* Audio Controls */
.audio-controls {
  position: fixed;
  top: var(--spacing);
  right: var(--spacing);
  z-index: 100;
}

/* Media Queries */
@media (min-width: 768px) {
  .mobile-warning {
    display: none;
  }
}

@media (max-width: 767px) {
  .app > *:not(.mobile-warning) {
    display: none;
  }
  .mobile-warning {
    display: flex;
  }
}