body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

#header {
    background-color: hsl(20, 89%, 63%);
    color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#header h1 {
    margin: 0;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#categorieSelector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#categorieSelector button {
    background-color: #fff;
    border: 2px solid hsl(20, 89%, 63%);
    color: hsl(20, 89%, 63%);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#categorieSelector button:hover {
    background-color: hsl(20, 89%, 63%);
    color: white;
}

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

#header {
    background-color: hsl(20, 89%, 63%);
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

#categorieSelector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#categorieSelector button {
    background-color: #fff;
    border: 2px solid hsl(20, 89%, 63%);
    color: hsl(20, 89%, 63%);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Story item styles */
div[data-story] {
    max-height: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-y: auto;
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

div[data-story] a {
    display: block;
    margin: 5px 0;
    color: #333;
    text-decoration: none;
}

div[data-story] a:first-child {
    font-weight: bold;
    color: hsl(20, 89%, 63%);
    font-size: 1.1em;
}

/* Existing styles remain the same */

/* Add this to your existing CSS to style comments */
.commentDiv {
    max-height: 500px;
}

.comment {
    background-color: #f9f9f9;
    border-left: 3px solid hsl(20, 89%, 63%);
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.9em;
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-author {
    color: #666;
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-text {
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-time {
    color: #888;
    font-size: 0.8em;
    text-align: right;
    display: block;
}

.counter-button {
    display: none;  /* Hidden by default */
}

.counter-button[data-value]:not([data-value="0"]) {
    display: block;  /* Shown when value is not 0 */
}