body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
    overflow-x: auto;
    min-width: 375px;
}

.container {
    max-width: 900px;
    margin: 10px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    text-align: center;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .container {
        margin: 2rem auto;
    }
}

code {
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    color: #d6336c;
}

p, ul, li {
    margin-top: 0.5em;
    text-align: left;
}

p.afterword {
    white-space: pre-line;
}

a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

embed {
    margin-top: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1 / 1.414; 
}

a.button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: #1a73e8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

a.button:hover {
    background-color: #1664c1;
}

.banner {
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 1rem;
    line-height: 1.4;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.error {
    background-color: #ffe0e0;
    border-color: #e0a6a6;
}

.close {
    float: right;
    cursor: pointer;
    font-weight: bold;
    padding: 0 0.5rem;
}

.section {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 6px;
}


.success {
    background-color: #f6fff6;
    border-color: #bfe0bf;
}

.info {
    background-color: #e8f0ff;
    border-color: #a6b8e0;
}

.last {
    background-color: #f8faff;
    border-color: #cfdaf0;
}

.next-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e2ffe2;
    border: 1px solid #a6d8a8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.next-btn:hover {
    background-color: #d1ffd1;
}

.messages {
    overflow-y: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}

.input-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.input-row textarea {
    flex: 1;
    min-height: 2.8rem;
    max-height: 10rem;
    resize: vertical;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.input-row button {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    background-color: #1a73e8;
    color: white;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}

.input-row button:hover {
    background-color: #1664c1;
}

.attached-file {
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    margin-left: 3rem;
    word-break: break-all;
}

@media (max-width: 375px) {
    .input-row {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: stretch;
    }

    .input-row button {
        flex: 0 0 auto;
        width: calc(50% - 0.4rem);
        height: 2.5rem;
    }
    
    .input-row textarea {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 0.3rem;
    }

    .attached-file {
        margin-left: 0;
    }
}

.attachment a {
    font-weight: normal
}

.m-all {
    width: 100%;
    display: inline-block;
}

.m-you {
    text-align: right;
}

.m-admin {
    text-align: left;
}

.message {
    border-radius: 6px;
    display: inline-block;
    max-width: 70%;
    width: fit-content;
    text-align: left;
    margin: 0.5rem;
    padding: 0.5rem;
}

.m-you .message {
    background-color: #e3f2fd;
}

.m-admin .message {
    background-color: #f5f5f5;
}

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

.meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0.5rem;
}

.more-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e0e8ff;
    border: 1px solid #a6b8e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.more-btn:hover {
    background-color: #d1daff;
}

.navbar {
    width: 100%;
    min-width: 375px;
}

.nav-links {
    display: flex;
    flex-direction: row;
}

.nav-link, .nav-link div {
    padding: 1rem 0;
    color: #000;
    background-color: #D3D3D3;
    text-decoration: none;
    text-align: center;
    text-decoration: none;
}
 .nav-link, .nav-links div {
    flex: 1;
    height: 100%;
    width: 100%;
    display: block
 }

.nav-link:hover {
    background-color: #c0c0c0;
    text-decoration: none;
}

.l-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.l-desc, .l-inp {
    flex: 1;
}

.l-desc {
    margin-top: 0.5rem;
}

.l-inp {
    height: 2.8rem;
    width: 20rem;
    resize: vertical;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.l-other {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.tiny-a {
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: none;
}
