/* --- BODY & BACKGROUND --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* --- CONFETTI OVERLAY --- */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('confetti.gif') no-repeat center top;
    background-size: cover;
    pointer-events: none;
    z-index: 999;
}

/* --- TITLES & CARDS --- */
.title {
    margin-top: 20px;
    font-size: 32px;
    font-weight: bold;
}

.card {
    background: rgba(28, 30, 67, 0.9);
    width: 70%;
    max-width: 700px;
    margin: 25px auto;
    padding: 25px;
    border-radius: 14px;
    box-sizing: border-box;
}

/* SLIDER */
.slider {
    width: 170px;
    height: auto;
    margin: 25px auto 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

#slide-img {
    width: 100%;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* QUESTIONS */
.question-number {
    color: #8ca0ff;
    margin-bottom: 10px;
}

.btn-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

button.option {
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #4894ff, #2b57ff);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

button.option:hover {
    opacity: 0.8;
}

/* COMMENTS */
.comments-card {
    background: rgba(28, 30, 67, 0.9);
    width: 70%;
    max-width: 700px;
    margin: 25px auto 50px auto;
    padding: 20px;
    border-radius: 14px;
    box-sizing: border-box;
    overflow: hidden;  /* ensures nothing escapes */
}

/* Title */
.comments-title {
    text-align: left;
    margin-bottom: 20px;
    color: #8ca0ff;
}

/* Individual comment */
.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

/* Avatar */
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #444;
}

/* Content wrapper */
.c-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;          /* allows content to fill remaining space */
    min-width: 0;     /* prevents overflow on long text */
    margin-top: -3px;
}

/* Name */
.c-name {
    margin: 0;
    font-weight: bold;
}

/* Comment text */
.c-text {
    margin: 4px 0 6px 0;
    color: #d6d6d6;
    word-wrap: break-word; /* wrap long words */
}

/* Timestamp */
.c-time {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #9299c7;
}

/* Actions */
.comment-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* wrap buttons if needed */
}

.comment-actions button {
    background: none;
    border: none;
    color: #8ca0ff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.comment-actions button:hover {
    text-decoration: underline;
}

.comment-actions button.liked {
    color: #4caf50;
}

#comment-form-card input,
#comment-form-card textarea {
    width: 90%;
    margin: 10px auto;
    display: block;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #1c1e43;
    color: white;
}

#comment-form-card textarea {
    height: 80px;
    resize: vertical;
}

#comment-form-card button {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #4894ff, #2b57ff);
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#comment-form-card button:hover {
    opacity: 0.85;
}
