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

body {
  font-family: sans-serif;
  background-color: #fff;
  color: #000;
}

/* HEADER */
.site-header {
  background-color: #000;
  color: #fff;
  padding: 1rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-left,
.header-center,
.header-right {
  flex: 1;
  text-align: center;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

.logo {
  width: 200px;
  height: auto;
}

.day-counter,
.monuments-count {
  font-size: 0.95rem;
}

.divider {
  border: none;
  border-top: 1px solid #fff;
  margin-top: 1rem;
}

/* MENU BAR */
.site-nav {
  background-color: #007bff;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: black;
  font-size: 1.5rem;
  padding: .5rem 1rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  padding: 1rem;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  margin-bottom: 0.5rem;
}

.nav-links li a {
  display: block;
  background-color: #000;
  color: gold;
  border: 1px solid gold;
  text-align: center;
  padding: 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.nav-links li a:hover {
  background-color: gold;
  color: black;
}

/* Show menu always on wider screens */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .nav-links li {
    margin: 0 0.5rem;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  text-align: center;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* Desktop and mobile display toggle */
.desktop-hero {
  display: block;
}
.mobile-hero {
  display: none;
}

@media (max-width: 767px) {
  .desktop-hero {
    display: none;
  }
  .mobile-hero {
    display: block;
    max-height: 600px; /* or whatever height fits your text best */
  }
}


.hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  padding: 1rem;
}

.hero-text-overlay h1 {
  font-size: 1.25rem;
}

.hero-text-overlay p {
  font-size: 0.95rem;
}

/* MAIN PLACEHOLDER */
.main-content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.form-section,
.info-section {
  margin: 1rem 0;
}


/* appended 6-6-25 504pm*/
/* FORM + INFO LAYOUT */
.main-content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 2rem;
}

.form-section,
.info-section {
  flex: 1;
}

/* Desktop side-by-side layout */
@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .form-section {
    max-width: 50%;
  }

  .info-section {
    max-width: 50%;
    padding-left: 2rem;
  }
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input,
select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}

.recaptcha-placeholder {
  background: #eee;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.required {
  color: red;
  margin-left: 2px;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* changes to make the mobile stack days and deaths.*/
/* --- HEADER LAYOUT FIX --- */
/* --- HEADER LAYOUT FIX --- */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.header-logo {
  flex: 1;
  text-align: left;
}

.header-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* Remove mobile override — keep desktop layout on all screen sizes */
@media (max-width: 767px) {
  .header-content {
    flex-direction: row;
    align-items: center;
  }

  .header-logo {
    text-align: left;
  }

  .header-stats {
    align-items: flex-end;
    text-align: right;
    margin-top: 0; /* remove spacing that was added for stacking */
  }
}
/* memorial webp image effect*/
/* Fade-in effect for mission image */
.mission-image img {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* When image is visible */
.mission-image img.fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* fancy css for mission statement*/
/* Mission section with Ukrainian gold & blue */
.mission-section {
  background-color: #f8f8f8;
  padding: 2.5rem;
  border-left: 8px solid #0057b7;  /* Ukrainian blue */
  border-right: 8px solid #ffd700; /* Ukrainian gold */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.75;
  font-size: 1.05rem;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mission-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #0057b7;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 0.5rem;
}

.mission-section p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

/* Image styling with fade-in */
.mission-image {
  margin-top: 2rem;
  text-align: center;
}

.mission-image img {
  width: 280px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.mission-image img.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.mission-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
}
/* responsive mods for search form*/
.search-form {
  max-width: 800px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.search-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-form .form-row > * {
  flex: 1 1 220px;
}
/* clickable oblast count*/

.sidebar-link {
  display: block;
  margin-bottom: 0.25rem;
  text-decoration: none;
  color: #003366;
}

.sidebar-link:hover {
  text-decoration: underline;
  color: #0057b7;
}
/*css from 2022.php moved here*/
/* Search page layout */
.search-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: #f4f4f4;
}

.search-page aside {
  width: 240px;
  background: #eaf4ff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #cce4ff;
}
.search-page .sidebar-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.search-page main {
  flex: 1;
}
.search-page form {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.search-page input,
.search-page select,
.search-page button {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
}
.search-page .divider {
  height: 4px;
  background: linear-gradient(to right, gold, #0057b7);
  border: none;
  margin: 2rem 0;
}
/* Layout fix for 2022.php */
.page-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}

.page-layout aside {
  width: 240px;
  background: #eaf4ff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #cce4ff;
}

.page-layout main {
  flex: 1;
}

.search-form {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 2rem;
  max-width: 800px;
}
/* start of chat changes to mobile layout*/
@media (max-width: 767px) {
  .page-layout {
    flex-direction: column;
  }

  .page-layout main {
    order: 1;
    width: 100%;
  }

  .page-layout aside {
    order: 2;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
/* chatgpt mod for search form panels/cards*/
.form-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #003366;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}
/* new chat search panels in color*/
.form-card:nth-of-type(1) .search-form {
  background: linear-gradient(135deg, #0057b7, #ffd700); /* Ukraine colors */
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.form-card:nth-of-type(2) .search-form {
  background: linear-gradient(135deg, #b22222, #0057b7); /* English form: red + blue */
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.search-form input,
.search-form select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  color: #000;
}

.search-form button {
  background-color: white;
  font-weight: bold;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.form-card:nth-of-type(1) .search-form button {
  color: #0057b7; /* Ukraine form button */
}

.form-card:nth-of-type(2) .search-form button {
  color: #b22222; /* English form button */
}

.search-form button:hover {
  background-color: #f0f0f0;
}
.radio-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0.5rem 0 1rem;
}

.radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: normal;
  margin: 0;
}

.tobasco-form form {
  background: #fff9cc; /* soft yellow */
  border: 3px solid #0057b7; /* Ukrainian blue */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  max-width: 720px;
  margin: 2rem auto;
}

.tobasco-form input,
.tobasco-form select,
.tobasco-form textarea {
  padding: 0.75rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.tobasco-form input:focus,
.tobasco-form select:focus,
.tobasco-form textarea:focus {
  border-color: #0057b7;
  box-shadow: 0 0 5px rgba(0, 87, 183, 0.4);
  outline: none;
}

.tobasco-form button[type="submit"] {
  background: linear-gradient(135deg, #0057b7, #003f91); /* blue gradient */
  color: #fff;
  padding: 1rem 2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.tobasco-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #003f91, #002f6c);
  transform: scale(1.02);
}
.tobasco-output {
	  position: relative;

  background: #fff9cc; /* soft yellow */
  border: 3px solid #0057b7; /* Ukrainian blue */
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-family: sans-serif;
}
/* demo output */
.tobasco-output h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #003366;
  font-size: 1.75rem;
}

.output-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.output-image {
  flex: 1 1 250px;
  text-align: center;
}

.output-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 300px;
  object-fit: cover;
}

.output-details {
  flex: 2 1 400px;
  font-size: 1rem;
  line-height: 1.6;
}

.output-details p {
  margin-bottom: 1rem;
}

.output-details strong {
  color: #0057b7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .output-grid {
    flex-direction: column;
  }

  .output-image,
  .output-details {
    width: 100%;
  }
}
.output-image {
  position: relative;
}

.lion-panel-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 120px;
  opacity: 0.8;
  pointer-events: none;
}
