@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500;900&display=swap');

/* ============================================
   CSS Variables (Design System)
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #0552AC;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --accent-color: #0552AC;
  --accent-hover: #133579;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 100px;

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles (Mobile-First)
   ============================================ */

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: url('../media/Background.gif');
  background-repeat: repeat-y;
  background-size: auto;
  background-position: center top;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  margin-top: var(--spacing-sm);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

p {
  margin-bottom: calc(var(--spacing-xl)*2);
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}



/* ============================================
   Layout Components
   ============================================ */

header {
  height: 90px;
  background-color: var(--bg-secondary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  max-width: 100%;
  width:100px;
  height: auto;
  position: absolute;
  padding-top:66px;
}

main {
  padding: 0 16px 29px 16px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

section {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  flex: 1;
  letter-spacing: -0.04em;
}

footer {
  display: none;
  font-size: var(--font-size-sm);
}

/* ============================================
   Form Elements
   ============================================ */

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.2s ease;
  letter-spacing: -0.05em;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--text-primary);
}

input:focus,
textarea:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 2px var(--accent-color);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

div > label + input,
div > label + textarea {
  margin-bottom: var(--spacing-md);
}

form {
  width: 100%;
  height: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

form label {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  padding-bottom:0px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-symbol {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon {
  opacity: 1;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  cursor: pointer;
}

.input-icon svg {
  width: 24px;
  height: 24px;
}

.arrow-group {
  transition: transform 0.2s ease-in-out;
  transform: translateX(0);
}

.input-icon.active .arrow-group {
  transform: translateX(4px);
}

.input-hash {
  font-weight: 900;
  font-size: var(--font-size-lg);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.input-wrapper input {
  padding-left: calc(var(--spacing-md) * 2.5);
}

.form-hint {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0 0 0 0;
  padding-bottom: var(--spacing-sm);
}

.error-message {
  font-size: var(--font-size-sm);
  color: #d32f2f;
  margin: 0 0 0 0;
  padding-top: 0;
}

/* Buttons */
button {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #999999;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 799px) {
  section {
    padding: 25px;
  }
}

@media (min-width: 800px) {


  section {
    max-width: 768px;
  }
}

/* ============================================
   Searching Animation
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.searching {
  animation: fadeIn 1s ease-in-out infinite;
}

/* ============================================
   Images Container (Wall Grid)
   ============================================ */

.images-container {
  display: flex;
  width: 100%;
  gap: 0;
  height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
}

.wall-image {
  flex: 1;
  object-fit: contain;
  object-position: center;
}

.search-again-container {
  margin-top: var(--spacing-lg);
  min-height: 1.5rem;
  text-align: center;
}

.search-again-link {
  display: none;
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.search-again-link:hover {
  color: var(--accent-hover);
}

.search-again-link.visible {
  display: block;
}

#feedback {
  text-align: center;
}

#feedback a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

#feedback a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================
   Custom Component Overrides
   ============================================ */

/* Add custom component styles here */
