/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* CATPPUCCIN MOCHA */
:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;

    --surface0: #313244;
    --surface1: #45475a;
    --surface2: #585b70;

    --text: #cdd6f4;
    --subtext: #a6adc8;

    --mauve: #cba6f7;
    --lavender: #b4befe;
    --pink: #f38ba8;
    --rosewater: #f5e0dc;

    --border: #6c7086;
}

/* BASE */
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(160deg, var(--mantle), var(--base));
    color: var(--text);
    line-height: 1.6;
}

/* NAV */
nav {
    display: flex;
    justify-content: center;
    gap: 14px;

    padding: 14px;

    background: rgba(24, 24, 37, 0.8);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--surface0);
}

nav a {
    text-decoration: none;
    color: var(--subtext);
    font-size: 14px;
    font-weight: 500;

    padding: 6px 12px;
    border-radius: 10px;

    transition: all 0.2s ease;
}

nav a:hover {
    background: var(--surface0);
    color: var(--pink);
}

/* MAIN */
main {
    max-width: 680px;
    margin: 60px auto;
    padding: 30px;

    background: var(--mantle);
    border-radius: 18px;

    border: 1px solid var(--surface0);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(203, 166, 247, 0.08);
}

/* TITLE */
h1 {
    margin-top: 0;
    font-size: 30px;
    color: var(--mauve);
}

/* TEXT */
p {
    color: var(--subtext);
}

ol {
    padding-left: 20px;
}

.small {
    font-size: 12px;
    color: var(--pink);
}

/* LINKS */
a {
    color: var(--lavender);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

a:hover {
    color: var(--pink);
    border-color: var(--pink);
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form p {
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--rosewater);
}

/* INPUTS */
input[type="url"],
textarea {
    width: 100%;
    padding: 12px;

    border-radius: 10px;
    border: 1px solid var(--surface1);

    background: var(--crust);
    color: var(--text);

    font-size: 14px;

    transition: all 0.2s ease;
}

textarea {
    min-height: 120px;
}

/* FOCUS */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--mauve);
    box-shadow: 0 0 0 2px rgba(203, 166, 247, 0.3);
}

/* RADIO */
input[type="radio"] {
    accent-color: var(--pink);
}

label {
    margin-right: 14px;
    color: var(--subtext);
}

/* CODE BLOCK */
code {
    display: block;
    margin: 16px 0;
    padding: 14px;

    background: var(--crust);
    border: 1px solid var(--surface0);
    border-radius: 12px;

    font-family: monospace;
    font-size: 13px;

    color: var(--rosewater);

    overflow-x: auto;
}

/* EXAMPLE PANEL */
.example {
    display: flex;
    gap: 10px;
    align-items: center;

    margin: 14px 0;
    padding: 10px 14px;

    background: var(--surface0);
    border-radius: 12px;
    border: 1px solid var(--surface1);
}

.example a {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--mantle);
    transition: 0.2s;
}

.example a:hover {
    background: var(--pink);
    color: var(--base);
}

/* IFRAME */
iframe {
    border-radius: 10px;
    background: var(--crust);
    border: 1px solid var(--surface1);
}

/* SCROLLBAR (bonus) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--base);
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mauve);
}

/* CLEANUP */
.invisible {
    display: none;
}

.buttoncont button {
    border-radius: 10px;
    padding: 6px;
    border: none;
    width: 100%;
    color: white;
    font-weight: bolder;
    margin: 2px;
    cursor: pointer;
}
.discord { background-color: #5865F2; }
.email { background-color: #58f274; }
.youtube { background-color: #f25858; }
.signal { background-color: #588bf2; }

.carrier-pidgeon { background-color: #f2ef58; }
.smoke { background-color: #6e6e6e; }
.telepathy { background-color: #a855f7; }
.ouija { background-color: #111827; }
.fax { background-color: #9ca3af; }

/* new ones */
.time-travel { background-color: #f59e0b; }
.dream { background-color: #6366f1; }
.carrier-worm { background-color: #84cc16; }
.telegraph { background-color: #eab308; }
.echo { background-color: #64748b; }
.summon { background-color: #7c3aed; }
.drums { background-color: #d97706; }
.tin-can { background-color: #94a3b8; }
.ai { background-color: #10b981; }
.ghost { background-color: #475569; }
.pigeon-pro { background-color: #fbbf24; }
.\34 04 { background-color: #ef4444; }

button i {
  margin-right: 6px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}