html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Reduce default Pico vertical spacing */
body > header,
body > main,
body > footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

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

.logo-and-quote {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
}

.site-quote {
    margin: 0;
    padding-left: 3rem;
    border-left: none !important;
    font-style: italic;
    font-family: "Georgia", serif;
    font-size: 0.9rem;
    color: #ccc;
}

.site-quote footer {
    font-style: normal;
    color: #aaa;
}

blockquote.quote {
    border-left: 2px solid #ccc;
    margin: .5em 0;
    padding-left: 1em;
    color: #333;
    font-family: "Palatino Linotype", serif;
    font-size: .9em;
    line-height: 1;
}

blockquote.quote footer {
    font-style: normal;
    color: #777;
    margin-top: 0.5em;
}

blockquote.quote + * {
  margin-top: 0.25em !important;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .25rem 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tags {
    font-size: 0.67rem;
    color: var(--primary);
    font-family: 'Trebuchet MS', monospace, sans-serif;
}

.tags .tag {
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.5rem;
    background-color: var(--primary-background);
    color: var(--primary);
    border: 1px solid white;     
    border-radius: 4px;
    font-size: 0.67rem;
    font-family: 'Trebuchet MS', monospace, sans-serif;
    letter-spacing: 0.05em;
}

.fake-popup {
    position: fixed;
    padding: 1rem;
    color: white;
    z-index: 1000;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 220px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: popIn 0.7s ease-in, shake 0.3s infinite;
    border: 4px double #fff;
    outline: 2px dashed red;
    border-radius: 10px;
    box-shadow: 0 0 10px yellow, 0 0 20px magenta;
    background-color: #333;
}

.fake-popup button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    float: right;
    cursor: pointer;
}

.fake-cookie {
    border: 1px solid white;
    border-radius: 4px;
    letter-spacing: 0.05em;
    animation: popIn 1s ease-in;
}

.banner-ad {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fef7e0;
    border: 1px solid #f3d19c;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-ad .ad-label {
    font-size: 0.75rem;
    color: #b12704;
    font-weight: bold;
    text-transform: uppercase;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  10%  { transform: translate(-2px, 1px) rotate(-0.5deg); }
  20%  { transform: translate(1px, -2px) rotate(0.8deg); }
  30%  { transform: translate(-2px, 2px) rotate(-0.6deg); }
  40%  { transform: translate(1px, -1px) rotate(0.4deg); }
  50%  { transform: translate(-1px, 2px) rotate(-0.3deg); }
  60%  { transform: translate(1px, -2px) rotate(0.5deg); }
  70%  { transform: translate(-1px, 1px) rotate(-0.4deg); }
  80%  { transform: translate(1px, -1px) rotate(0.3deg); }
  90%  { transform: translate(-1px, 1px) rotate(-0.2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
