@font-face {
    font-family: 'LUCKY-TYPEWRITER';
    src: url('lt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #202225;
    color: #e2e3e5;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    background: #292b2f;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
}

h1 {
    color: #b0b3b8;
    margin-bottom: 10px;
    font-family: 'LUCKY-TYPEWRITER', cursive, sans-serif;
    text-align: center;
}

h2 {
    color: #b0b3b8;
    margin-bottom: 10px;
    font-family: 'LUCKY-TYPEWRITER', cursive, sans-serif;
}

.admin-link {
    color: #8ea1b2;
    text-decoration: none;
    margin-right: 18px;
    font-size: 1.1em;
}

.admin-link:hover {
    text-decoration: underline;
    color: #b0b3b8;
}

.post {
    background: #232428;
    border-radius: 7px;
    margin-bottom: 24px;
    padding: 18px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.meta {
    color: #a1a1aa;
    font-size: 0.98em;
    margin-bottom: 8px;
}

.content {
    font-size: 1.15em;
    margin-top: 6px;
    line-height: 1.6;
    word-break: break-word;
}

.admin-table {
    width: 100%;
    background: #292b2f;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 1em;
}
.admin-table th, .admin-table td {
    border-bottom: 1px solid #34353b;
    padding: 12px 6px;
    color: #e2e3e5;
    word-break: break-word;
}
.admin-table th {
    background: #232428;
    color: #8ea1b2;
}

.error {
    color: #ff6060;
    margin-bottom: 12px;
    font-weight: bold;
}

input[type="text"], textarea {
    width: 98%;
    background: #202225;
    color: #e2e3e5;
    border: 1px solid #383b46;
    border-radius: 4px;
    padding: 8px;
    font-size: 1.07em;
    box-sizing: border-box;
}

button {
    background: #393d41;
    color: #e2e3e5;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #5a5d63;
}

.post-image {
    max-width: 30%;
    height: auto;
    display: block;
    margin: 10px 0 18px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.17);
}

/* Optionally, also resize the logo */
.container > img[alt="Logo"] {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto 24px auto;
    /* Fade the corners using a radial gradient mask */
    -webkit-mask-image: radial-gradient(ellipse 110% 110% at 50% 50%, #000 90%, transparent 10%);
    mask-image: radial-gradient(ellipse 110% 110% at 50% 50%, #000 90%, transparent 10%);
}

/* Responsive Design for Smartphones */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 16px 4vw;
        box-shadow: none;
    }

    h1, h2 {
        font-size: 1.55em;
    }

    .post {
        padding: 12px 6px;
        margin-bottom: 16px;
    }

    .admin-table th, .admin-table td {
        padding: 8px 2px;
        font-size: 0.96em;
    }

    .content {
        font-size: 1.03em;
    }

    input[type="text"], textarea {
        font-size: 1em;
        padding: 7px;
    }

    button {
        width: 100%;
        padding: 12px 0;
        font-size: 1.09em;
    }

    .container > img[alt="Logo"] {
        max-width: 90vw;
    }
}

/* Optional: Make tables scroll horizontally on small screens */
@media (max-width: 480px) {
    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        font-size: 0.93em;
    }
}
