html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 5px;
    background-color: #cddfea;
}

.subcontainer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px;
    background-color: #edeae6;
    flex-grow: 1;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-right: 20px;
}

.left-group {
    display: flex;
    align-items: baseline;
    gap: 20px;
    /* space between logo and nav links */
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo span {
    font-weight: bold;
    font-size: 1.2rem;
    /* optional knightly flourish */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* optional polish */
}

.logo img {
    height: 30px;
    position: relative;
    top: 6px;
    /* or whatever doesn't make it look like pixel vomit */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 0.9rem;
}

.loginContainer {
    margin-left: 10px;
}

.forgot-password {
    margin-top: 20px;
}

.pipe {
    color: black;
    padding: 0 5px;
    font-size: 0.9rem;
}

.tag-input-container {
    margin-top: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background-color: #e9ecef;
    border-radius: 16px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    color: #6c757d;
}

.tag .remove-tag:hover {
    color: #dc3545;
}

#tag-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

#tag-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.reviews-grid {
    column-count: 2;
    column-gap: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .reviews-grid {
        column-count: 1;
    }
}

.review-card {
    background: white;
    margin: 0 0 15px 0;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    break-inside: avoid;
}

.review-card h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.review-card a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.review-card a:hover {
    text-decoration: underline;
}

.tags {
    margin: 8px 0;
}

.tag {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8em;
    color: #666;
    margin-right: 5px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.upvote-btn {
    background: #f6f6ef;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.upvote-btn:hover {
    background: #e6e6df;
}

.structured-review {
    margin: 10px 0;
}

.review-section {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-align: justify;
}

.review-section:last-child {
    border-bottom: none;
}

.review-section strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 0.9em;
}

.review-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.review-collapsible.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.show-more-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: #f6f6ef;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    color: #666;
    font-family: inherit;
}

.show-more-btn:hover {
    background: #e6e6df;
    border-color: #ccc;
}

textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.nav-hidden {
    display: none !important;
}