body {
    background: #0a0a0c;
    color: #888892;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-transform: lowercase;
}

.container {
    width: 80%;
    max-width: 1200px;
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-nav {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #888892;
    text-decoration: none;
    font-size: 0.8em;
    opacity: 0.4;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: #d6d6db;
}

h1 {
    font-weight: normal;
    letter-spacing: -1px;
    color: #b0b0b8;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.8em;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.6;
}

.categories {
    margin-bottom: 30px;
    line-height: 1.6;
    border-bottom: 1px solid #1a1a20;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cat-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    border: 1px solid #1a1a20;
    padding: 8px;
    border-radius: 4px;
}

.categories button {
    background: none;
    border: none;
    color: #888892;
    font-family: inherit;
    font-size: 0.75em;
    cursor: pointer;
    padding: 2px 5px;
    opacity: 0.4;
    transition: all 0.3s ease;
    margin: 0;
}

.categories button:hover {
    opacity: 1;
    color: #d6d6db;
    border: none;
    text-decoration: underline;
}

.categories button.active {
    opacity: 1;
    color: #d6d6db;
    text-shadow: 0 0 8px rgba(214, 214, 219, 0.3);
    text-decoration: underline;
}

#poem-box {
    margin: 40px auto;
    text-align: left;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

#warning-gate {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    color: #a58888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

#warning-gate button {
    font-size: 0.7em;
    padding: 5px 15px;
}

#poem-text {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1em;
    color: #d6d6db;
}

#poem-info {
    margin-top: 20px;
    font-size: 0.7em;
    opacity: 0.4;
    text-align: right;
}

.actions {
    margin-top: 30px;
}

button {
    background: none;
    border: 1px solid #333;
    color: #888;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

button:hover {
    color: #d6d6db;
    border-color: #666;
}

.hidden {
    display: none;
}

#submit-section {
    margin: 40px auto;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.submit-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.submit-controls select, 
.submit-controls button {
    flex: 1;
    min-width: 150px;
}

.divider {
    font-size: 0.7em;
    opacity: 0.3;
    margin: 60px 0 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a1a20;
    margin: 0 10px;
}

textarea {
    width: 100%;
    height: 120px;
    background: #15151a;
    border: 1px solid #333;
    color: #d6d6db;
    padding: 15px;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: none;
    border-radius: 4px;
}

select {
    background: #15151a;
    border: 1px solid #333;
    color: #888;
    padding: 8px;
    font-family: inherit;
}

.warning-note {
    font-size: 0.7em;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.content-section {
    padding: 0;
    text-align: left;
    width: 100%;
    margin: 0 auto;
}

.page-content {
    width: 100%;
}

.page-content h2 {
    color: #b0b0b8;
    font-weight: normal;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a20;
    padding-bottom: 10px;
}

.page-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.help-list {
    list-style: none;
    padding: 0;
}

.help-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.help-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #b0b0b8;
}

.help-list a {
    color: #888892;
    text-decoration: underline;
    opacity: 0.8;
}

.help-list a:hover {
    opacity: 1;
}

input[type="password"] {
    background: #15151a;
    border: 1px solid #333;
    color: #d6d6db;
    padding: 10px;
    font-family: inherit;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Admin specific styles */
.pending-item {
    background: #0f0f12;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #1a1a20;
}

.pending-text {
    white-space: pre-wrap;
    margin-bottom: 15px;
    color: #b0b0b8;
}

.pending-meta {
    font-size: 0.7em;
    opacity: 0.5;
    margin-bottom: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-actions button {
    padding: 5px 15px;
    font-size: 0.8em;
}

.btn-approve {
    border-color: #2d4a3e;
    color: #4ade80;
}

.btn-approve:hover {
    background: #1a2e25;
}

.btn-delete {
    border-color: #4a2d2d;
    color: #f87171;
}

.btn-delete:hover {
    background: #2e1a1a;
}

/* media queries */
@media (max-width: 600px) {
    .container {
        padding: 40px 15px 100px 15px; /* Increased bottom padding for thumb scrolling */
    }
    
    h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.9em;
    }
    
    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.9em;
    }
    
    #poem-text {
        font-size: 1.1em;
        line-height: 1.6;
    }

    .categories {
        flex-direction: column;
        align-items: stretch;
    }

    .cat-group {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .categories button {
        font-size: 0.85em;
        padding: 5px 8px;
    }

    textarea {
        font-size: 1em;
        height: 150px;
    }

    .submit-controls select, 
    .submit-controls button {
        font-size: 1em;
        padding: 12px;
    }
}

.index-card {
    background: #121216;
    border: 1px solid #1a1a20;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.index-card:hover {
    border-color: #2a2a35;
}

.index-card pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 1em;
    color: #d6d6db;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.index-info {
    font-size: 0.7em;
    font-style: italic;
    opacity: 0.5;
}

.index-card.heavy {
    border-left: 3px solid #f8717155;
}

.index-warning-gate {
    text-align: center;
    padding: 10px;
}

.index-warning-gate button {
    background: #1a1a20;
    border: 1px solid #333;
    color: #888892;
    padding: 5px 15px;
    font-size: 0.7em;
    cursor: pointer;
    border-radius: 4px;
    text-transform: lowercase;
}

.index-warning-gate button:hover {
    background: #2a2a35;
    color: #d6d6db;
}

.heavy-tag {
    font-size: 0.6em;
    color: #f87171;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.legal-footer {
    margin-top: auto;
    padding: 60px 0 60px 0;
    font-size: 0.7em;
}

.warning {
    color: #a58888;
    margin-bottom: 20px;
    border: 1px solid #4a2d2d;
    padding: 15px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
}

.legal {
    opacity: 0.3;
}
