
body {
  font-family: 'Lora', Arial, sans-serif;
  font-size: 18px;
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(11, 116, 191, 0.13) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(11, 116, 191, 0.13) 2px, transparent 2px);
  background-size: 100px 100px;
  margin: 0;
  color: #333333;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
  transition: opacity 0.2s ease-in-out;
}

html.dark-mode body {
  background-color: #1e1e1e;
  color: #d3d3d3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Original Surfer', 'Arial', sans-serif;
  color: #0b5285;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #bada55 !important;
}

p {
  font-size: 18px;
  margin: 0;
  color: #555555;
  overflow-x: hidden;
  text-align: left;
  margin-bottom: 10px;
}

html.dark-mode p {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  color: #052136;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(72, 108, 169, 0.613);
}

html.dark-mode a {
  color: #bada55 !important;
}

a:hover {
  text-decoration: underline;
  color: #ebfc2b;
  cursor: pointer;
}

html.dark-mode a:hover {
  color: #c5fa32 !important;
}

a.url {
  display: inline-flex;
}

/* === HEADER === */
/* Header styles */
header#header {
  background-color: #0b74bf;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 4px solid #bada55;
  width: 100%;
}

html.dark-mode header#header {
  background-color: #1f3b57 !important;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b74bf;
  position: relative;
  z-index: 1002;
}

html.dark-mode .header-row {
  background: #1f3b57 !important;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  margin-right: 10px;
}

.header-wordmark {
  height: 50px;
  width: auto;
  display: inline-block;
}

.hamburger {
  background: none !important;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: none !important;
  z-index: 1201;
}

html.dark-mode .hamburger {
  background: #1f3b57 !important;
}

.hamburger span {
  width: 38px;
  height: 6px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 9px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -9px);
}

.hamburger span {
  transition: all 0.28s cubic-bezier(.4, 2.4, .6, 1);
}

@media (max-width: 900px) {
  .header-wordmark {
    height: 32px;
  }

  .hamburger span {
    width: 30px;
    height: 5px;
  }
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 72px;
  left: 25%;
  right: 25%;
  background: #0b74bf;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 1200;
  padding: 16px 0 18px 0;
  border-bottom: 4px solid #bada55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  max-height: 0;
  opacity: 0;
  overflow-y: hidden;
  pointer-events: none;
  transition:
    max-height 1s cubic-bezier(.4, 2.4, .6, 1),
    opacity 0.8s cubic-bezier(.4, 2.4, .6, 1);
}

html.dark-mode .main-nav {
  background: linear-gradient(230deg,
      rgba(31,59,87,0.92) 0%,
      rgba(40,76,118,0.92) 60%,
      rgba(16,31,51,0.92) 100%);
}

@media (min-width: 901px) {
  .main-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    max-width: 400px;
    width: 100%;
    border-radius: 18px;
  }

  .nav-link {
    font-size: 1.08em;
    width: 90%;
    margin: 10px auto;
    padding: 10px 0;
  }
}

@media (max-width: 900px) {
  .main-nav {
    left: 0;
    right: 0;
    top: 72px;
  }
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav.mobile-open {
  max-height: 75vh;
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
}

.nav-link {
  font-size: 1.11em;
  color: #052136;
  text-shadow: -2px -1px 2px rgba(255, 254, 255, 0.93);
  background: #bada55;
  border-radius: 8px;
  margin: 6px 0;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: bold;
  width: 50%;
  max-width: 340px;
  text-align: center;
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
  background: #0b5285;
  color: #fff;
  text-shadow: 0 0 #000;
}

html.dark-mode .nav-link {
  color: #0b5285 !important;
}

/* Toggle Knob */
.dark-mode-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Hide the native checkbox */
.dark-mode-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
}

/* The slider */
.toggle-label {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 26px;
  top: 0;
  left: 0;
  width: 50px;
  height: 26px;
  transition: background 0.3s;
}

.toggle-label::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Checked State */
.dark-mode-toggle input:checked+.toggle-label {
  background-color: #4c8cbf !important;
}

.dark-mode-toggle input:checked+.toggle-label::before {
  transform: translateX(25px);
}

.toggle-label:active:before {
  box-shadow: 0 0 8px #bada55, 0 2px 5px rgba(0, 0, 0, 0.09);
}



.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.page-container {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  position: relative;
  margin: 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

}

.content-container {
  padding: 25px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 80%;
  margin-bottom: 25px;
  background: #ffffff;
  border-radius: 35px;
  border: 2.5px solid #0b74bf;
  box-shadow: 8px 8px 0 #0b74bf;
}

html.dark-mode .content-container {
  background: linear-gradient(225deg,
      #1f3b57 0%,
      #284c76 60%,
      #181f29 100%);
  border: 2.5px solid #375fd6 !important;
  box-shadow: 8px 8px 0 #0b74bf !important;
  color: #eaff6b;
}

@media (max-width: 900px) {
  .content-container {
    width: 85%;
  }
}

@media (max-width: 600px) {
  .content-container {
    width: 80%;
  }
}

/* ---- Homepage Fun Grid ---- */
.fun-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 50px;
}

.fun-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  padding: 20px 10px;
  margin: 10px;
  background: #bada55;
  border-radius: 20px;
  border: 2px solid #0b74bf;
  text-decoration: none;
  box-shadow: 8px 8px 0 #0b74bf;
  font-weight: bold;
  font-size: 1.15em;
  transition: transform 0.15s, box-shadow 0.15s;
  color: #0b5285;
}

.fun-card:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 2px 2px 0 #0b74bf;
  background: #ccec5c;
  color: #0b5285;
  text-decoration: none;
}

.fun-card:active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.19),
    0 1px 0 #8ba735,
    inset 0 1px 6px #eaffb0,
    inset 0 -2px 6px #a4c944;
  background: #b1de59;
  color: #0b5285;
}

.fun-card .emoji {
  font-size: 2.3em;
}

.fun-card .fun-label {
  margin-top: 8px;
}

.fun-card .fun-desc {
  font-size: 0.75em;
  color: #0b5285;
  margin-top: 3px;
}

.fun-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.fun-img img {
  width: 100px;
  height: 100px;
  transition: transform 0.15s cubic-bezier(.46, 1.48, .63, .99);
}

.fun-card:hover .fun-img img {
  transform: scale(1.09) rotate(-5deg);
}

@media (max-width: 600px) {
  .fun-grid {
    flex-direction: column;
    gap: 14px;
  }

  .fun-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Big homepage fart buttons */
html.dark-mode .fun-card .fun-desc {
  color: #f0f0f0;
  margin-top: 3px;
}

/* Homepage Icon */
.fartdump-icon-home {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  box-shadow: 0 2px 10px #bada55;
  margin: 0 auto;
  display: block;
}

html.dark-mode .fun-card {
  background: linear-gradient(230deg,
      #1f3b57 0%,
      #284c76 60%,
      #101f33 100%);
  color: #eaff6b !important;
  box-shadow: 0 2px 14px 0 #0b74bf, 0 0 0 3px #375fd6 inset;
  border: 2px solid #375fd6;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
}

html.dark-mode .fun-card:hover {
  background: linear-gradient(220deg,
      #284c76 0%,
      #375fd6 90%);
  box-shadow: 0 4px 24px 0 #0fffc1, 0 0 0 3px #0b74bf inset;
  color: #bada55 !important;
  border: 2px solid #0fffc1;
}

html.dark-mode .fun-card,
html.dark-mode .fun-card .fun-label {
  text-shadow: 0 1px 6px #000, 0 0px 2px #375fd6;
}

html.dark-mode .fun-card .fun-desc {
  color: #eaff6b;
  text-shadow: 0 1px 6px #1f3b57;
}

html.dark-mode .fartdump-icon-home {
  box-shadow: 0 2px 16px #284c76;
}

.qr-code {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(11, 82, 133, 0.13);
  margin: 0 auto;
  border: 2px solid #bada55;
}

html.dark-mode .qr-code {
  background: #222;
  border-color: #375fd6;
  box-shadow: 0 2px 16px #1f3b57;
}


#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  font-size: 12px;
  color: white;
  background: #0077b5;
  border: 2px solid #bada55 !important;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: Arial, sans-serif;
}

html.dark-mode .toTop {
  background: #0b5285 !important;
}

/* Chevron container */
#backToTop .chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Create the chevrons */
#backToTop .chevrons::before,
#backToTop .chevrons::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(-45deg);
}

code,
pre {
  font-family: 'Courier New', Courier, monospace;
}

ul.fart-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  width: 85%;
}

ul.fart-list li {
  position: relative;
  background: #eaf6fc;
  margin-bottom: 14px;
  padding: 14px 18px 14px 44px;
  border: 2px solid #0b74bf;
  border-radius: 16px;
  font-size: 1.13em;
  color: #212820;
  box-shadow: 0 2px 10px rgba(186, 218, 85, 0.08);
  transition: box-shadow 0.15s, background 0.15s;
}

html.dark-mode ul.fart-list li {
  background: linear-gradient(180deg, #284c76 0%, #101f33 100%);
  box-shadow: 0 2px 14px 0 #0b74bf, 0 0 0 3px #375fd6 inset;
  color: #ffffff;
}

html.dark-mode ul.fart-list li::before {
  background: #0b74bf;
  border: 2px solid #bada55;
}

ul.fart-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bada55;
  border: 2px solid #0b74bf;
  box-shadow: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.social-share {
  margin: 20px 0;
  text-align: center;
}

.social-share h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.share-button {
  display: inline-block;
  margin: 5px 10px;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.share-button:hover {
  opacity: 0.8;
  color: #ffff00;
}

.secrets-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.secret {
  background-color: #bada55;
  border: 2px solid #0b74bf;
  color: #0b74bf;
  padding: 15px;
  margin: 10px;
  width: 85%;
  border-radius: 12px;
  word-break: break-word;
  box-shadow: 4px 4px 0 #0b74bf;
}

html.dark-mode .secret {
  background: linear-gradient(120deg, #232a34 0%, #2f2f2f 100%) !important;
  border: 1.5px solid #4c8cbf !important;
  box-shadow: 0 0 0 2px #1a2b40, 0 2px 8px 0 #13345c66;
  color: #e5e9f7 !important;
  border-radius: 16px !important;
}
.secret a {
    font-size: 16px;
}
.secret a:hover {
    text-decoration: none;
}
html.dark-mode .secret a {
  color: #daedfc !important;
  text-decoration: none  !important;
  transition: color 0.2s  !important;
}
html.dark-mode .secret a:hover {
  color: #ddf75c  !important;
}

.secret p {
  font-size: 1.2rem;
  margin: 0;
  word-break: break-word;
}

.secret small {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #555;
}

html.dark-mode .secret small {
  color: #888888 !important;
}

/* === Support Message ===*/
.support-message {
  background-color: #bada5555;
  border-left: 7px solid #0b74bf;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 25px 15px;
  margin: 15px 0;
  font-size: 0.8em;
  color: #333;
  box-shadow: 2px 2px #0b74bf;
  position: relative;
}

html.dark-mode .support-message {
  background: linear-gradient(120deg, rgb(0, 29, 56) 0%, rgb(20, 47, 45) 100%) !important;
  border-radius: 10px;
  color: #e9e8e8;
  box-shadow: none;
  border: 1.5px solid #4c8cbf !important;
}

.support-hide {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 1.8em;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
  font-weight: bold;
  transition: color 0.2s;
  user-select: none;
}

html.dark-mode .support-hide {
    color: #fff;
}
.support-hide:hover {
  color: #f05454;
}

/* === Comments === */
.comment-response-message {
    color: red;
    margin-top: 5px;
    font-size: 0.95em;
    transition: opacity 0.4s ease;
}


/* === Secret Voting === */
.vote-arrow {
  color: #052136;
  cursor: pointer;
  transition: color 0.2s;
}

html.dark-mode .vote-arrow {
  color: #bada55;
}

.vote-arrow:hover {
  color: #3dd8f3;
}

.votes {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5px;
}

.upvote-count,
.downvote-count {
  font-size: 14px;
  margin: 0 5px;
}

html.dark-mode .votes {
  color: #cccccc !important;
}

button,
input[type="submit"] {
  background-color: #0b74bf;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  margin: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

html.dark-mode button,
html.dark-mode input[type="submit"] {
  background-color: #4c8cbf !important;
  color: #f1f1f1 !important;
}

button:hover,
input[type="submit"]:hover {
  background-color: #bada55;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

html.dark-mode button:hover,
html.dark-mode input[type="submit"]:hover {
  background-color: #1f3b57 !important;
}

/* --- Fancy Button Style --- */
.fancy-fart-btn {
  display: inline-block;
  background: linear-gradient(90deg,#bada55 70%,#eaff6b 100%);
  color: #0b5285;
  font-family: 'Original Surfer', cursive, sans-serif;
  font-size: 1.09em;
  font-weight: 600;
  padding: 15px 24px 15px 24px;
  border: 2.5px solid #0b5285;
  border-radius: 1.8em;
  margin: 0 0 2px 0;
  box-shadow: 2px 2px 0 #0b5285;
  text-decoration: none;
  transition: background 0.2s, color 0.18s, transform 0.13s;
  position: relative;
}
.fancy-fart-btn:hover {
  background: linear-gradient(90deg,#eaff6b 60%,#bada55 100%);
  color: #1555f0;
  text-decoration: none;
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 3px 3px 0 #375fd6;
}
html.dark-mode .fancy-fart-btn {
  background: linear-gradient(95deg,#375fd6 60%,#284c76 100%);
  color: #eaff6b !important;
  border: 2.5px solid #bada55 !important;
  box-shadow: 2px 2px 0 #bada55;
}
html.dark-mode .fancy-fart-btn:hover {
  background: linear-gradient(92deg,#bada55 70%,#6ee56f 100%);
  color: #284c76 !important;
  border-color: #bada55 !important;
  box-shadow: 4px 4px 0 #375fd6;
}

.comment-list {
  width: 90%;
  max-width: 600px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  align-items: center;
}

form {
  width: 90%;
  max-width: 600px;
  padding: 20px;
  background-color: #eaf6fc;
  border: 2px solid #0b74bf;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html.dark-mode .form,
html.dark-mode form {
  background-color: #2f2f2f !important;
  color: #d3d3d3 !important;
  border: 2px solid #4c8cbf !important;
}

form textarea {
  width: 90%;
  padding: 10px;
  border: 1px solid #0b74bf;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

form textarea:focus {
  border-color: #0b74bf;
}

.form-input,
.form-textarea {
  width: 90%;
  padding: 12px;
  font-size: 18px;
  margin-bottom: 20px;
  border: 2px solid #0b74bf;
  border-radius: 12px;
  transition: border-color 0.2s;
}

html.dark-mode .form-input,
html.dark-mode .form-textarea,
html.dark-mode input[type="text"],
html.dark-mode input[type="email"],
html.dark-mode input[type="password"],
html.dark-mode textarea {
  background-color: #3a3a3a !important;
  color: #d3d3d3 !important;
  border: 2px solid #4c8cbf !important;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #4caf50;
}

html.dark-mode .form-input:focus,
html.dark-mode .form-textarea:focus,
html.dark-mode input[type="text"]:focus,
html.dark-mode input[type="email"]:focus,
html.dark-mode input[type="password"]:focus,
html.dark-mode textarea:focus {
  border-color: #6ee56f !important;
}

/* Custom file input */
#fartForm input[type="file"] {
  display: none !important;
}

.fart-file-label {
  display: inline-block;
  padding: 0.8em 1.7em;
  border-radius: 1.7em;
  background: linear-gradient(95deg, #bada55 80%, #8be1fc 100%);
  color: #1f3b57;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 18px;
  border: 2px solid #0b74bf;
  font-size: 1.03em;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px 0 #bada5560;
}

.fart-file-label:hover {
  background: #0b5285;
  color: #fff;
}

html.dark-mode .fart-file-label {
  background: linear-gradient(95deg, #375fd6 60%, #bada55 100%);
  color: #fff;
  border: 2px solid #bada55;
}

#fartForm .file-chosen {
  margin-left: 10px;
  color: #0b5285;
  font-size: 0.97em;
}

html.dark-mode #fartForm .file-chosen {
  color: #eaff6b;
}
/* -- Breadcrumb links --- */
.fart-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 0px;
  font-family: 'Original Surfer', cursive;
}

.nav-btn {
  padding: 10px 20px;
  background-color: #bada55;
  color: #0b5285;
  text-decoration: none;
  text-shadow: none;
  border: 2px solid #0b74bf;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-btn:hover {
  background-color: #0b5285;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

html.dark-mode .nav-btn {
  background-color: #0b5285 !important;
  color: #ffffff !important;
  border: 2px solid #bada55;
}

html.dark-mode .nav-btn:hover {
  background-color: #bada55 !important;
  color: #0b5285 !important;
  transform: translateY(-2px);
}

.nav-left {
  margin-right: auto;
}

.nav-right {
  margin-left: auto;
}

.quote {
  margin: 22px 0;
  width: 75%;
  padding: 10px 16px;
  background: #bada5544;
  border-left: 5px solid #97ef60;
}

html.dark-mode .quote {
  background: #1f3b57 !important;
  border-left: 5px solid #00c3ff
}

blockquote {
  margin: 22px 0;
  width: 75%;
  padding: 10px 16px;
  background: #bada5544;
  border-left: 5px solid #97ef60;
}

html.dark-mode blockquote {
  background: #1f3b57 !important;
  border-left: 5px solid #00c3ff;
}

footer#footer {
  background-color: #0b74bf;
  padding: 10px;
  color: #ffffff;
  text-align: center;
  border-top: 4px solid #bada55;
}

html.dark-mode footer#footer {
  background-color: #1f3b57 !important;
  color: #d1eaff !important;
}

footer#footer .footer-links a {
  color: #ffffff;
  padding: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer#footer .footer-links a:hover {
  color: #bada55;
}

@media (max-width: 768px) {
  footer#footer .footer-links a {
    padding: 5px 10px;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0b74bf;
}

.centered-image {
  width: 200px;
  height: auto;
}

#image {
  animation: fadeOut 2.5s ease-in-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#recaptcha-placeholder {
  height: 78px;
  width: 304px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

.baby-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  display: flex;
  justify-content: space-between;
  background:
    url('/img/cloud1.svg') left 40px top 20px no-repeat,
    url('/img/cloud2.svg') right 60px top 80px no-repeat,
    url('/img/cloud3.svg') left 50% top 180px no-repeat,
    #ffffff;
  position: relative;
  min-height: 350px;
  overflow: hidden;
  padding: 2.5em 5em 1.2em 5em;
  border-bottom: 4px solid #0b5285;
  gap: 2.5em;
}

html.dark-mode .hero-section {
  background:
    url('/img/cloud1.svg') left 40px top 20px no-repeat,
    url('/img/cloud2.svg') right 60px top 80px no-repeat,
    url('/img/cloud3.svg') left 50% top 180px no-repeat,
    linear-gradient(180deg,
      #1f3b57 0%,
      #263a51 10%,
      #171e26 100%);
  border-bottom: 4px solid #bada55;
}

.hero-content {
  flex: 1 1 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}

.hero-headline {
  font-family: 'Original Surfer', cursive, sans-serif;
  color: #0b5285;
  font-size: 2.8em;
  margin-bottom: 0.25em;
  margin-top: 5px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

html.dark-mode .hero-headline {
  text-shadow: 2px 2px 4px #000;

}

.hero-tagline {
  font-family: 'Lora', serif;
  color: #2e2e2e;
  font-size: 1.18em;
  margin-bottom: 0.2em;
}

html.dark-mode .hero-tagline {
  color: #fcf8ef;
}

.home-h3 {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.hero-form {
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 0;
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

html.dark-mode .hero-form {
  background-color: transparent !important;
  border: 0 !important;
}

.hero-textarea {
  width: 95%;
  min-height: 125px;
  max-width: 100%;
  font-size: 1.15em;
  font-family: 'Lora', serif;
  padding: 1.1em 1.5em;
  border: 2.5px solid #bada55;
  border-radius: 2.4em 2.1em 2.8em 2.4em / 2.2em 2.8em 2.2em 2.7em;
  background: #fff url(/img/textarea-smile.webp) no-repeat right 18px bottom 14px;
  background-size: 100px auto;
  resize: vertical;
  box-shadow: 0 8px 28px 0 rgba(11, 82, 133, 0.09);
  outline: none;
  transition: box-shadow 0.18s;
}

html.dark-mode .hero-textarea {
  border: 2.5px solid #bada55 !important;
}

.floating-label {
  position: relative;
}

.floating-label label {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 15px;
  transition: 0.18s;
  margin-top: 10px;
  background: #ffffff;
  padding: 0 3px;
  pointer-events: none;
}

html.dark-mode .floating-label label {
  background: transparent;
  color: #ffffff !important;
}

html.dark-mode .floating-label textarea:focus+label,
html.dark-mode .floating-label textarea:not(:placeholder-shown)+label {
  background: #575656;
  color: #fff !important;
}

.hero-textarea:focus {
  outline: none;
  border-color: #3fa0ff;
  box-shadow: 0 0 0 2px #d6ecff;
}

.hero-textarea.valid {
  border-color: #38c273;
}

.hero-textarea.invalid {
  border-color: #e74c3c;
  animation: shake 0.34s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.floating-label textarea:focus+label,
.floating-label textarea:not(:placeholder-shown)+label {
  top: -18px;
  font-size: 12px;
  color: #3fa0ff;
  font-weight: bold;
}

#responseLabel {
  transition: opacity 0.35s;
  opacity: 1;
}

#responseLabel.fading {
  opacity: 0;
}

.g-recaptcha {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 8px;
}

.char-count {
  font-weight: 500;
}

.char-progress {
  width: 140px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
}

.char-progress-bar {
  height: 100%;
  background: #38c273;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}

.char-progress-bar.low {
  background: #e74c3c;
}

.char-progress-bar.good {
  background: #38c273;
}

.char-progress-bar.warning {
  background: #ffbf26;
}

.char-progress-bar.full {
  background: #e74c3c;
}

.hero-privacy-msg {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 0.25em;
  margin-left: 0.15em;
  opacity: 0.82;
}

html.dark-mode .hero-privacy-msg {
  color: #fcf8ef;
}

.hero-submit-button {
  background: #0b5285;
  color: #fff;
  font-family: 'Original Surfer', cursive, sans-serif;
  font-size: 1.15em;
  border: none;
  border-radius: 1.3em;
  padding: 0.75em 2.2em;
  margin-top: 0.1em;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(11, 82, 133, 0.14);
  transition: all 0.23s;
  display: flex;
  justify-content: space-around;
}

.hero-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(74, 144, 226, 0.23);
}

.hero-submit-button:disabled {
  opacity: 0.63;
  cursor: not-allowed;
}

.hero-submit-button.loading {
  background: linear-gradient(135deg, #bdc3c7, #7f8c8d);
}

.response-message {
  min-height: 20px;
  margin: 17px 0 7px 0;
  transition: all 0.23s;
}

.message {
  padding: 12px 15px;
  border-radius: 10px;
  margin: 10px 0;
  font-weight: 500;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  box-shadow: 0 2px 7px rgba(39, 174, 96, 0.13);
}

.message.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.message.loading {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.hero-submit-button:hover,
.hero-submit-button:focus {
  background: #6ee56f !important;
  color: #0b5285 !important;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1.04) rotate(-1deg);
}

html.dark-mode .button-link {
  background: #4c8cbf !important;
  color: #fff !important;
  font-weight: 400 !important;
}

html.dark-mode .button-link:hover {
  background: #6ee56f !important;
  color: #0b5285 !important;
  font-weight: 400 !important;
}

.hero-cartoon {
  flex: 0 0 280px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-cartoon img {
  height: 90%;
}

.hero-divider {
  text-align: center;
  font-family: 'Original Surfer', cursive, sans-serif;
  font-size: 2em;
  color: #0b5285;
  background: #ffffff;
  border-bottom: 2px solid #0b5285;
  border-top: 2px solid #0b5285;
  padding: 0.4em 0 0.2em 0;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
}

.small-divider {
  background: #eaf6fc;
  display: flex;
  flex-direction: column;
  width: 50%;
  max-width: 300px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
  box-shadow: 6px 6px 0 #0b74bf;
  border-radius: 1.5em 0.4em 1.5em 0.4em;
  border: 3px solid #0b74bf;
  transition: background 0.2s;
}

.small-divider h3 {
  font-size: 1.6rem;
  color: #0b5285 !important;
}

html.dark-mode .small-divider h3 {
  color: #eaff6b !important;
  text-shadow: 0 2px 10px #1f3b57, 0 0 6px #bada55bb;
}

html.dark-mode .hero-divider {
  color: #eaff6b;
  background: linear-gradient(110deg,
      #1f3b57 60%,
      #375fd6 100%);
  border-bottom: 3.5px solid #bada55;
  border-top: 3.5px solid #bada55;
  text-shadow: 0 2px 10px #1f3b57, 0 0 6px #bada5566;
  box-shadow: 0 4px 16px #0b74bf33;
  letter-spacing: 0.04em;
}

html.dark-mode .small-divider {
  background: linear-gradient(115deg,
      #284c76 60%,
      #101f33 100%);
  border: 3px solid #bada55;
  box-shadow: 0 4px 14px #0b74bf44;
  border-radius: 2em 0.7em 2em 0.7em;
  color: #fcf8ef;
  transition: background 0.2s;
}

@media (max-width: 1100px) {
  .hero-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
    padding: 2em 1em 1em 1em;
  }

  .hero-textarea {
    width: 85%;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cartoon {
    display: none !important;
  }

  .hero-cartoon img {
    width: 160px;
    margin-bottom: -6px;
  }

  .hero-divider {
    font-size: 1.3em;
  }
}

/* ==== Counter ==== */
.flipping-counter {
  display: inline-block;
  font-size: 2em;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.15em;
  min-width: 100px;
  text-align: center;
}

@media (max-width: 425px) {
  .flipping-counter {
    font-size: 1.2em;
  }
}
.flipping-digit {
  display: inline-block;
  background: #0b5285;
  color: #fff;
  border: 1.5px solid #fff;
  width: 1.1em;
  min-width: 24px;
  padding: 4px 0 2px 0;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s cubic-bezier(.23, 2, .41, .86);
  transform: rotateX(0deg);
}

html.dark-mode .flipping-digit {
  background: #1f3b57 !important;
}

.flipping-digit.flip {
  transform: rotateX(360deg);
}

.flipping-label {
  font-family: 'Original Surfer', cursive, sans-serif;
  font-size: 1.18em;
  color: #0b5274;
  letter-spacing: 0.04em;
}

html.dark-mode .flipping-label {
  color: #fff !important;
}

/* ========== GAMES ========== */
#game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #0b74bf;
  color: #ffffff;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  width: 300px;
}

.modal-btn,
.modal-close {
  display: inline-block;
  margin: 1em 0.5em 0;
  padding: 10px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.modal-btn {
  background: #4caf50;
  color: white;
}

.modal-close {
  background: #999;
  color: white;
}

#modal-title {
  color: #ffffff;
}

#modal-message {
  color: #ffffff;
}

.baby-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.dashing {
  margin-top: 20px;
  padding: 20px;
  border: 2px dashed #888;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
}

html.dark-mode .dashing {
  background: rgba(0, 0, 0, 0.45);
}

/*---- Sound Board -----*/

.soundboard {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}


/* Fart-Age Calculator Styles */
#fart-age-calculator {
  background-color: #ffffff;
  border: 2px solid #0b74bf;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 300px;
  margin: 0 auto 30px;
  box-shadow: 4px 4px 0 #0b74bf;
}

#fart-age-calculator h2 {
  margin: 0 0 12px;
  color: #0b5285;
}

#fart-age-calculator h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #0b5285;
}

#fart-age-calculator label {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 1rem;
  color: #333333;
  margin-bottom: 12px;
}

#fart-age-calculator select {
  appearance: none;
  padding: 8px 12px;
  margin: 0 4px;
  border: 2px solid #0b74bf;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  color: #333333;
  cursor: pointer;
  transition: border-color 0.2s;
}

#fart-age-calculator select:focus {
  border-color: #4caf50;
}

#fart-age-calculator button {
  width: 100%;
  background-color: #0b74bf;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#fart-age-calculator button:hover {
  background-color: #bada55;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#fart-age-calculator #fart-result {
  margin-top: 16px;
  font-weight: bold;
  color: #0b5285;
}

/* Dark Mode Overrides */
html.dark-mode #fart-age-calculator {
  background: linear-gradient(225deg,
      #1f3b57 0%,
      #2d4170 60%,
      #151f2d 100%);
  border: 2.5px solid #6ee56f;
  box-shadow: 0 6px 24px #0b74bf77, 0 0 8px #375fd6cc inset;
}

html.dark-mode #fart-age-calculator h3 {
  color: #bada55;
  text-shadow: 0 2px 8px #151f2d88;
}

html.dark-mode #fart-age-calculator label,
html.dark-mode #fart-age-calculator select,
html.dark-mode #fart-age-calculator #fart-result {
  color: #eaff6b;
}

html.dark-mode #fart-age-calculator select {
  background-color: #233050;
  border-color: #375fd6;
}

html.dark-mode #fart-age-calculator button {
  background-color: #bada55;
  color: #1f3b57;
  box-shadow: 0 0 16px 2px #bada5577;
  font-weight: bold;
}

html.dark-mode #fart-age-calculator button:hover {
  background-color: #0fffc1;
  color: #1f3b57;
  box-shadow: 0 0 20px 2px #0fffc177;
  border: 2px solid #375fd6;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

#fart-age-calculator .fart-source {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #555555;
}

html.dark-mode #fart-age-calculator #fart-result {
  color: #fff84f;
  text-shadow: 0 2px 6px #151f2d;
}

#fart-age-calculator .fart-source a {
  color: #0b5285;
  text-decoration: underline;
}

html.dark-mode #fart-age-calculator .fart-source {
  color: #b0b0b0;
}

html.dark-mode #fart-age-calculator .fart-source a {
  color: #7abaff;
}

#fart-age-calculator form {
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
  padding: 0;
  margin: 0;
}

html.dark-mode #fart-age-calculator form {
  background: transparent !important;
}

/*===== AD FUN =====*/
.affiliate-row {
display: flex;
align-items: flex-start;
gap: 15px;
}

@media (max-width: 599px) {
    .affiliate-row {
        flex-direction: column;
        align-items: center;
    }
}

.affiliate-img {
    height: 120px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.affiliate-img:hover {
    transform: scale(1.1);
}

.affiliate-note {
    font-size:0.8em;
    display:block;
    margin-top:8px;
}

.affiliate-desc {
    flex:1;
}

/* === Search bar === */
.fd-search {
  display: flex;
  width: 85%;
  max-width: 640px;
  margin: 5px auto 5px;
  padding: 5px;
  border: 2px solid #0b74bf;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.fd-search:focus-within {
  border-color: #0b5285;
  box-shadow: 0 0 0 3px rgba(11, 82, 133, .18);
}

.fd-search__input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font-size: 1rem;
  background: transparent;
  color: #1f2b38;
  outline: none;
  min-width: 0;
}
html.dark-mode .fd-search__input {
    border: 0 !important;
}
.fd-search__input::placeholder { color: #8a99a8; }

.fd-search__btn {
  display: grid;
  place-items: center;
  width: 56px;
  border: 0;
  margin: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .06s ease, opacity .15s ease, background-color .15s ease;
}

.fd-search__btn:hover   { opacity: .95; }
.fd-search__btn:active  { transform: translateY(1px) scale(.98); }

.fd-search__icon {
  width: 22px;
  height: 22px;
  fill: #0b5285;
}
html.dark-mode .fd-search__icon {
    fill: #bada55 !important;
}
/* compact on tiny screens */
@media (max-width: 420px) {
  .fd-search { border-radius: 12px; }
  .fd-search__btn { width: 50px; }
}

/* Dark mode */
html.dark-mode .fd-search {
  background: #1e1f22;
  color: #e6e6e6;
  border-color: #4c8cbf;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
html.dark-mode .fd-search:focus-within {
  border-color: #4c8cbf;
  box-shadow: 0 0 0 3px rgba(76,140,191,.28);
}
html.dark-mode .fd-search__btn {
  background: transparent !important;
}
