/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");
:root {
  --margin6: 6px;
  --margin12: 12px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #fff;
}
body {
  font-family: "Roboto", "Arial", sans-serif;
  width: 100%;
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  background-color: #f8f9fa;
}
/* Layout */
header,
footer {
  background-color: dodgerblue;
  color: #fff;
  position: sticky;
  z-index: 100;
  width: 100%;
}
header {
  top: 0;
}

footer {
  bottom: 0;
}

main {
  flex-grow: 1;
  width: 100%;
  max-width: 768px;
}
header nav, footer nav {
  max-width: 768px;
  margin: auto;
}
/* Navigation */
nav a {
  margin: 2px;
  padding: 6px 10px;
  color: #fff;
  display: inline-block;
}

a {
  text-decoration: none;
}
/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
}

.col {
  display: flex;
  flex-direction: column;
}

/* Base column padding */
[class*="sm"],
[class*="md"],
[class*="lg"] {
  padding: 8px;
}

/* 12-column system (mobile-first) */
.sm1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.sm2  { flex: 0 0 16.666%; max-width: 16.666%; }
.sm3  { flex: 0 0 25%;     max-width: 25%; }
.sm4  { flex: 0 0 33.333%; max-width: 33.333%; }
.sm5  { flex: 0 0 41.666%; max-width: 41.666%; }
.sm6  { flex: 0 0 50%;     max-width: 50%; }
.sm7  { flex: 0 0 58.333%; max-width: 58.333%; }
.sm8  { flex: 0 0 66.666%; max-width: 66.666%; }
.sm9  { flex: 0 0 75%;     max-width: 75%; }
.sm10 { flex: 0 0 83.333%; max-width: 83.333%; }
.sm11 { flex: 0 0 91.666%; max-width: 91.666%; }
.sm12 { flex: 0 0 100%;    max-width: 100%; }

.promo {background-color: dodgerblue;color: white;opacity: 0.9; padding: 10px;text-align: center;box-shadow:
    0 2px 5px rgba(0,0,0,0.16),
    0 2px 10px rgba(0,0,0,0.12);}
/* Medium ≥768px */
@media (min-width: 768px) {
  body {max-width: 100%;}
  .md1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .md2  { flex: 0 0 16.666%; max-width: 16.666%; }
  .md3  { flex: 0 0 25%;     max-width: 25%; }
  .md4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .md5  { flex: 0 0 41.666%; max-width: 41.666%; }
  .md6  { flex: 0 0 50%;     max-width: 50%; }
  .md7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .md8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .md9  { flex: 0 0 75%;     max-width: 75%; }
  .md10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .md11 { flex: 0 0 91.666%; max-width: 91.666%; }
  .md12 { flex: 0 0 100%;    max-width: 100%; }
  .profile {margin: auto;}
  .stats {margin: 5px;max-width: calc(50% - 10px);border-radius: 3px;}
  .promo {padding: 20px;text-align: center;box-shadow:
    0 2px 5px rgba(0,0,0,0.16),
    0 2px 10px rgba(0,0,0,0.12);}
}

/* Large ≥1024px */
@media (min-width: 1024px) {
  body {max-width: 100%;}
  .lg4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .lg6  { flex: 0 0 50%; max-width: 50%; }
  .lg12 { flex: 0 0 100%; max-width: 100%; }
}

/* Utilities */
.center { justify-content: center; }
.align-center { align-items: center; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.bold { font-weight: 500; }

.m-1 { margin: 4px; }
.p-1 { padding: 8px; }

.round { border-radius: 8px; }

/* Components */
.card {
  border: 1px solid lavender;
}

.panel {
  padding: 8px 16px;
}

button,
.button {
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  background: transparent;
}

button:hover {
  opacity: 0.85;
}

label {
  margin-top: 10px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid #ccc;
}

/* Alerts */
.alert {
  padding: 1rem;
}

.err {
  color: crimson;
  font-weight: 500;
}

.info {
  background-color: lightblue;
  color: blue;
}

.msg {
  margin-top: 1rem;
}

/* Animation */
.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { color: yellow; }
  50% { color: red; }
}

/* Media */
.thumbnail {
  display: block;
  width: 100%;
  max-width: 160px;
  margin: auto;
  aspect-ratio: 16 / 9;
}

.advert {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: auto;
  aspect-ratio: 16 / 9;
}

.thumbnail img, .advert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #000;
  padding: 4px;
}

/* Preview */
#preview {
  width: 100%;
  height: 75px;
  border: 1px solid #000;
}


/* Base form layout */
/* Optional: make form look like a card */
form {
  margin: auto;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  background: lavender;
  border-radius: 8px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.1),
    0 2px 6px rgba(0,0,0,0.05);
}

/* Spacing between fields automatically */
form > * + * {
  margin-top: 0.5rem;
}

/* Labels */
label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Inputs, selects, textarea */
input,
select,
textarea {
  width: 100%;
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

/* Focus state (Bootstrap-like blue glow) */
input:focus,
select:focus,
textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

/* Disabled */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

/* Placeholder */
::placeholder {
  color: #999;
  font-size: 0.9rem;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Button hover */
button:hover,
input[type="submit"]:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Secondary button */
button.secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

button.secondary:hover {
  background-color: #5c636a;
}

/* Success / danger */
button.success { background: #198754; border-color: #198754; }
button.danger  { background: #dc3545; border-color: #dc3545; }

/* Checkboxes & radios */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.4rem;
}

/* Inline group (no wrapper needed) */
.inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Validation states */
input.error,
select.error,
textarea.error {
  border-color: #dc3545;
}

input.error:focus {
  box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

input.success,
select.success,
textarea.success {
  border-color: #198754;
}

input.success:focus {
  box-shadow: 0 0 0 2px rgba(25,135,84,0.25);
}

/* Help text */
small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Small tweak for larger screens */
@media (min-width: 500px) {
  body {
    max-width: 100%;
  }
}
/*.bar {background: linear-gradient(to right, royalblue, seagreen); color: white;opacity: 0.9;}*/
.bar {background-color: dodgerblue; color: white;opacity: 0.9; padding: 5px 1px;}
/* Small (default / mobile-first) */
.sm-offset-1  { margin-left: 8.333%; }
.sm-offset-2  { margin-left: 16.666%; }
.sm-offset-3  { margin-left: 25%; }
.sm-offset-4  { margin-left: 33.333%; }
.sm-offset-5  { margin-left: 41.666%; }
.sm-offset-6  { margin-left: 50%; }
.sm-offset-7  { margin-left: 58.333%; }
.sm-offset-8  { margin-left: 66.666%; }
.sm-offset-9  { margin-left: 75%; }
.sm-offset-10 { margin-left: 83.333%; }
.sm-offset-11 { margin-left: 91.666%; }

/* Medium ≥768px */
@media (min-width: 768px) {
  .md-offset-1  { margin-left: 8.333%; }
  .md-offset-2  { margin-left: 16.666%; }
  .md-offset-3  { margin-left: 25%; }
  .md-offset-4  { margin-left: 33.333%; }
  .md-offset-5  { margin-left: 41.666%; }
  .md-offset-6  { margin-left: 50%; }
  .md-offset-7  { margin-left: 58.333%; }
  .md-offset-8  { margin-left: 66.666%; }
  .md-offset-9  { margin-left: 75%; }
  .md-offset-10 { margin-left: 83.333%; }
  .md-offset-11 { margin-left: 91.666%; }
}

/* Large ≥1024px */
@media (min-width: 1024px) {
  .lg-offset-1  { margin-left: 8.333%; }
  .lg-offset-2  { margin-left: 16.666%; }
  .lg-offset-3  { margin-left: 25%; }
  .lg-offset-4  { margin-left: 33.333%; }
  .lg-offset-5  { margin-left: 41.666%; }
  .lg-offset-6  { margin-left: 50%; }
  .lg-offset-7  { margin-left: 58.333%; }
  .lg-offset-8  { margin-left: 66.666%; }
  .lg-offset-9  { margin-left: 75%; }
  .lg-offset-10 { margin-left: 83.333%; }
  .lg-offset-11 { margin-left: 91.666%; }
}
.history {
  margin: 5px auto;
}
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
.accordion:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

textarea {
  resize: none;
}

/* ANIMATIONS */
/* Enable smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improve animation performance */
.animate {
  opacity: 0;
  transform: translateY(40px); /* initial state */
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);   /* final state */
}

/* Optional: different variants */
.left { transform: translateX(-60px); }
.right { transform: translateX(60px); }
.zoom { transform: scale(0.85); }

.animate.show.left,
.animate.show.right,
.animate.show.zoom {
  transform: translateX(0) scale(1);
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.slide-up {
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.slide-down {
  animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}
.slide-left {
  animation: slideLeft 1s ease forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-right {
  animation: slideRight 1s ease forwards;
}

@keyframes slideRight {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.animate.fade {
  transform: translateY(40px);
}

.animate.left {
  transform: translateX(-60px);
}

.animate.right {
  transform: translateX(60px);
}

.animate.zoom {
  transform: scale(0.85);
}
.transition {
  transition: all 0.3s ease;
}
.btn {
  background: dodgerblue;
  color: #fff;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #555;
  transform: translateY(-3px);
}
.img-hover {
  overflow: hidden;
}

.img-hover img {
  transition: transform 0.5s ease;
}

.img-hover:hover img {
  transform: scale(1.1);
}
.scale:hover {
  transform: scale(1.05);
}
.rotate:hover {
  transform: rotate(5deg);
}
.skew:hover {
  transform: skew(-5deg);
}
.move:hover {
  transform: translateY(-10px);
}
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.gradient-bg {
  background: linear-gradient(270deg, #ff6b6b, #4ecdc4, #1a73e8);
  background-size: 600% 600%;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* FULL FLEX CENTER */
.flex-center {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}

/* FLEX COLUMN CENTER (useful for stacked elements like h1 + p + button) */
.flex-center-column {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical in column layout */
  align-items: center;     /* horizontal in column layout */
  gap: 1rem;               /* spacing between elements */
}

/* FULL SCREEN CENTER (optional: ensures section fills viewport) */
.fullscreen-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}
.text96 {
  font-size: 96px;
}
.text84 {
  font-size: 84px;
}
.text72 {
  font-size: 72px;
}
.text60 {
  font-size: 60px;
}
.text48 {
  font-size: 48px;
}
.text36 {
  font-size: 36px;
}

#marquee-container {
    max-width: 100%;          /* Visible area */
    overflow: hidden;      /* Hide overflow */
    white-space: nowrap;
  }

  #marquee-content {
    display: inline-block;
    white-space: nowrap;
  }

  #marquee-content img {
    height: 100px;         /* Set image height */
    margin-right: 1px;    /* Spacing between images */
    vertical-align: middle;
    object-fit: cover;
  }
.margin6 { margin: var(--margin6); }
.margin12 { margin: var(--margin12); }