bigfont {
  font-size: 40px;
  font-weight: bold;
}
mediumfont {
  font-size: 32px;
  font-weight: bold;
}
kravafont {
  font-size: 12px;
  color: lightgrey;
}
rip{
  font-size: 28px;
}

html {
  height: -webkit-fill-available;
  background-color: #0f0f0f;
}

/* General page styling */
body {
  background: linear-gradient(to bottom, #0f0f0f, #151b17);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 24px;
  margin: 0;
  /* Extend into safe areas on iOS */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Input + button styling */
input[type="text"] {
  background-color: #1f1f1f;
  color: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 8px;
  font-size: 16px;
  text-align: center;
}
input[type="email"] {
  background-color: #1f1f1f;
  color: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 8px;
  font-size: 16px;
  text-align: center;
  
}
input[type="password"] {
  background-color: #1f1f1f;
  color: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 8px;
  font-size: 16px;
  text-align: center;
}
button {
  background-color: #1f1f1f;
  color: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 8px;
  font-size: 16px;
  text-align: center;
}

/* Add spacing below floating header */
body.has-floating-header {
  padding-top: 90px;
}

/* Floating header bar */
.floating-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  justify-content: center;
  width: auto;
  max-width: 95%;
  padding: 6px;
}

/* Navigation bar container */
.nav-bar {
  display: flex;
  align-items: center;
  background-color: rgba(20, 20, 20, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  gap: 8px;
}

/* Links inside header */
.nav-bar a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.18s ease, transform 0.12s ease;
}
.nav-bar a:hover {
  color: #38a843;
  transform: translateY(-1px);
}

/* Active/current page link highlighting */
.nav-bar a.active-link {
  color: #38a843;
  font-weight: 600;
}

/* Divider lines */
.divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-bar {
    padding: 6px 10px;
    gap: 6px;
    border-radius: 10px;
  }
  .nav-bar a {
    padding: 6px 8px;
    font-size: 14px;
  }
  body.has-floating-header {
    padding-top: 120px;
  }
}
.upload-text {
  font-size: 20px;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.25s ease; 
}
.upload-text:hover {
  color: #38a843;
}

/* Mobile: Make nav bar wider and text fit better */
@media (max-width: 768px) {
  .floating-header {
    max-width: 98%; /* Wider on mobile */
    padding: 4px;
  }
  
  .nav-bar {
    padding: 6px 10px;
    gap: 4px; /* Less gap between items */
  }
  
  .nav-bar a {
    padding: 6px 6px; /* Less padding */
    font-size: 16px; /* Slightly smaller */
    white-space: nowrap; /* Prevent wrapping */
  }
  
  .divider {
    height: 16px; /* Shorter dividers */
  }
  .separator {
    font-size: 14px;
    letter-spacing: -1px; /* Compress them slightly */
  }
  center {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Also add padding to body to be safe */
  body {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Make sure inputs don't overflow */
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    max-width: calc(100% - 40px); /* Account for padding */
  }
}

/* Extra small phones - use even smaller text */
@media (max-width: 480px) {
  .nav-bar a {
    font-size: 14px;
    padding: 5px 4px;
  }
  .separator {
    font-size: 12px;
    letter-spacing: -2px;
  }
}