body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/static/api_looter.png') no-repeat center center;
    background-size: cover;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
:root {
    --main-bg: #23272a;
    --panel-bg: #2d333b;
    --accent-green: #1abc9c;
    --accent-green-dark: #145c4a;
    --text-main: #f5f6fa;
    --text-muted: #b2bec3;
    --border: #3a3f47;
}

body {
    background: var(--main-bg);
    color: var(--text-main);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}


header.header-with-logos {
    background: #ffffff; /* Mint green */
    color: var(--text-main);
    padding: 0.8em 0 0.6em 0;
    text-align: center;
    letter-spacing: 2px;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    margin: 0 18px;
    background: transparent;
}

.header-logo-left {
    margin-right: 18px;
}
.header-logo-right {
    margin-left: 18px;
}

header.header-with-logos h1 {
    flex: 0 1 auto;
    margin: 0 10px;
    color: #145c4a;
    background: transparent;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.api-list-item {
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
}

.api-list-item a {
    display: block;
    width: 100%;
    background: var(--panel-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-dark);
    border-radius: 8px;
    padding: 1em 1.2em;
    font-size: 1.08em;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(20, 92, 74, 0.05);
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    text-align: left;
    letter-spacing: 0.5px;
}

.api-list-item a:hover,
.api-list-item a:focus {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(26, 188, 156, 0.10);
}

.api-detail-center, .container {
    background: rgba(20, 24, 28, 0.98); /* Darker, nearly opaque */
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(20, 92, 74, 0.18);
    border: 1.5px solid rgba(26, 188, 156, 0.22);
    margin: 2em auto;
    padding: 2em 1em;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.api-detail-center h2, .container h1 {
    color: var(--accent-green);
    margin-bottom: 0.5em;
}

.api-detail-center p, .container p {
    color: var(--text-muted);
}

fieldset {
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    background: #263238;
    margin-bottom: 1em;
}

legend {
    color: var(--accent-green);
    font-weight: bold;
}

label {
    color: var(--text-main);
}

input, select {
    background: #23272a;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.5em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    font-size: 1em;
}

input:focus, select:focus {
    border-color: var(--accent-green);
    outline: none;
}

button, .back-btn {
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.6em 1.7em;
    font-size: 1em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 1em;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .back-btn:hover {
    background: var(--accent-green-dark);
    color: #fff;
}

.joke-result, pre, .api-detail-center .joke-result, .api-detail-center pre {
    background: #23272a;
    color: var(--text-main);
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid var(--accent-green-dark);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.footer {
    background: #000 !important;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-top: 2px solid var(--accent-green);
}

.footer-logo {
  width: 45px;
  height: 45px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.footer-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-width: 0;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.d-none {
  display: none !important;
}
@media (min-width: 576px) {
  .d-sm-inline {
    display: inline !important;
  }
}

@media (max-width: 600px) {
    .api-detail-center, .container {
        max-width: 98vw;
        padding: 1em 0.3em;
    }
    input, select, .joke-result, pre {
        max-width: 98vw;
    }
}
