@font-face {
    font-family: 'Mona Sans';
    src: url('/fonts/Mona-Sans.woff2') format('woff2'),
         url('/fonts/Mona-Sans.woff') format('woff');
    font-weight: 400; /* Adjust weights as needed */
    font-style: normal;
}


/* ===== RESET-ish ===== */
body {
    font-family: 'Mona Sans', Helvetica, Arial, sans-serif;
  line-height: 1.8; 
    background: #fff;
    color: #1a1a1a;
    margin: 0;
    padding: 20px;
    font-sze: 8px;
}

.home-container {
    max-width: 700px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.home-actions a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.primary-btn {
    background: #4CAF50;
    color: white;
}

.secondary-btn {
    background: #f0f4f8;
    color: #333;
}

/* ===== HEADER ===== */
h2 {
    display: flex;
    align-items: center;
    font-weight: 200;
    gap: 10px;
    margin-bottom: 15px;
}

/* ===== BUTTONS ===== */
button, .btn {
    background: #f0f4f8;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

button:hover {
    background: #f0f4f8;
}

.small {
    font-size: 11px;
    color: #aaa;
}

/* ===== TAGS ===== */
.label-block {

    display: inline-block;
    padding: 4px;
    margin-left: 3px;
    background: #f0f4f8;
    color: lightblue;
    width: 98%;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;

}

.tag {
    display: inline-block;
    padding: 2px 4px;
    margin: 2px;
    background: lightblue;
    color: black;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
}

.tag:hover{
    border: blue 1px solid;
}
.tag-suggestions {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 200px;
    position: absolute;
    z-index: 10;
}

.tag-suggestions div.active {
    background: #e0e7ff;
}

.tag-suggestions div {
    padding: 5px 8px;
    cursor: pointer;
}

.tag-suggestions div:hover {
    background: #f0f4f8;
}

.tag .remove {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.6;
}

.tag .remove:hover {
    opacity: 1;
    color: #c62828;
}

.tag-list {
    max-width: 700px;
}

.tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tag-row a {
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.tag-row a:hover {
    color: #4CAF50;
}

.tag-count {
    font-size: 12px;
    color: #888;
}

.tag-view-btn {
    font-size: 12px;
    text-decoration: none;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    background: #f5f5f5;
}

.tag-view-btn:hover {
    background: #eaeaea;
}

/* default */


/* types */
.tag-archetype {
    background: #ede7f6;
    color: #5e35b1;
}


.tag-emotion {
    background: #fdecea;
    color: #c62828;
}

.tag-character {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-theme {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-object {
    background: #fff8e1;
    color: #ef6c00;
}

.tag-none {
    background: #f1f1f1;
    color: #666;
}

.tag {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== FORM BOX ===== */
.form-box {
    background: #f7f9fb;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 15px;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* ===== TIMBER BOX ===== */
.timber-box {
    background: #f7f9fb;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

.timber[data-tagged="false"] {
    border-left: 3px green   solid;
}
.timber[data-tagged="true"] {
    border-left: 3px #2596be solid;
}

.timber {
    transition: all 0.15s ease;
}

.timber:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* ===== TIMBER GRID ===== */
.timber-grid {
    column-count: 2;
    column-gap: 20px;
}

.timber {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
    border: 1px solid lightgray;
}

.leaf-container {
    padding-left: 20px;
}

.timber-leaf {
    width: 92% !important;
    margin-left: 30px !important;
}

.leaf {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #d0d7de;
    padding-bottom: 20px;
    paddng-top: -10px;
}

.leaf::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background: lightgray;
    margin-left: -33px;
}

/* ===== TEXTAREA ===== */
textarea {
    width: 95%;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}

/* ===== INPUT ===== */
input[type="text"],
input[type="number"] {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    outline: none;
}
input[placeholder="add tags..."] {
    background: #fafafa;
}

input {
    width: 60;
}

input:focus {
    border-color: #4CAF50;
}


/* ===== LABELS ===== */
label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

/* ===== SPACING ===== */
.field {
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    margin-right: 10px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-credit {
    opacity: 0.8;
}

.footer-credit strong {
    color: #4CAF50;
}

.tagline {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}

/* ===== HEADER NAV ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e1e4e8;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 90px;
}

.nav-right a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.nav-right a:hover {
    color: #4CAF50;
}

.pagination {
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    background: #2596be;
    color: white;
}

.pagination a {
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
}

.pagination a:hover {
    background: #f0f4f8;
}