@font-face {
    font-family: 'StudentStoriesFont';
    src: url('fonts/Lionel Text Genuine Regular.ttf');
}

* {
    box-sizing: border-box;
}

body {
    font-family: StudentStoriesFont;
    background-color: #dae0e6;
    color: black;
    margin: 0;
    padding: 0;
}

.content-unique {
    margin-top: 70px;
    margin-left: 320px;
    margin-right: 320px;
    padding: 0;
    background-color: #dae0e6;
    overflow: visible;
    min-height: calc(100vh - 60px);
    position: relative;
}

#posts-container {
    margin-top: 10px;
}

.post-unique {
    position: relative;
    background-color: #ffffff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-unique .topic-icon-unique {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    position: relative;
    top: 3px;
}

.post-unique .country-icon-unique {
    width: 16px;
    height: 12px;
    margin-right: 5px;
}

.post-unique .post-type-icon-unique {
    width: 17px;
    height: 17px;
    margin-right: 3px;
    position: relative;
    top: 3px;
}

.post-unique:hover {
    background-color: #f9f9f9;
}



.post-unique h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    overflow-wrap: break-word;
    word-break: break-all;
    display: inline;
    align-items: center;
}

.post-unique h2 .time-posted-unique {
    display: inline-block;
    white-space: nowrap;
}

.post-unique h2 span {
    white-space: pre-wrap;
}

.post-unique p {
    margin-top: 5px;
    color: #000;
    font-size: 18px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.user-info-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: -15px;
    color: black;
    margin-bottom: 15px;
}

.user-info-line p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.post-actions-unique {
    align-self: flex-start;
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.post-actions-unique i {
    margin-right: 10px;
}

.post-unique .edit-btn-unique,
.post-unique button {
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.post-unique .edit-btn-unique:hover,
.post-unique button:hover {
    background-color: #0056b3;
}

.post-unique a {
    color: inherit;
    text-decoration: none;
}

.post-unique a:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* make the container itself 18px, so text nodes inherit correctly */
.post-content-unique {
  font-size: 18px !important;   /* <-- add this */
  max-height: 340px;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  position: relative;
  color: #000 !important;        /* you already had this; keeping for clarity */
}


.post-content-unique img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
}

.fade-out-unique {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
    display: block;
}

.read-more-unique {
    display: none;
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.thumbs-icon-unique,
.link-icon-unique,
.comment-icon-unique,
.award-icon-unique {
    font-size: 1.2em;
    transition: color 0.3s ease;
    cursor: pointer;
    color: #333;
}

.post-actions-unique i + i {
    margin-left: 10px;
}

.thumbs-icon-unique:hover {
    color: #007bff;
}

.link-icon-unique:hover {
    color: #8a2be2;
}

.comment-icon-unique:hover {
    color: darkgrey;
}

.award-icon-unique:hover {
    color: gold;
}

.clicked-unique {
    color: #007bff !important;
}

.thumbs-down-icon-unique {
    color: #333;
    transform: rotateY(180deg);
}

.thumbs-down-icon-unique:hover {
    color: red;
}

.thumbs-down-icon-unique.clicked-unique {
    color: red !important;
}

/* base for both */
.user-pfp-unique{
  width:18px;
  height:18px;
  margin-right:5px;
  border-radius:50%;
  background:#007bff;
  color:#fff;
  display:inline-block;     /* unify baseline */
  text-align:center;        /* center fallback letter */
  line-height:18px;         /* center fallback letter */
  font-size:10px;
  font-weight:bold;
  text-transform:uppercase;
  vertical-align:middle;
  overflow:hidden;
}

/* image variant (you said -2px looks right) */
img.user-pfp-unique{
  line-height:0;            /* no extra baseline space */
  transform:translateY(-2px);
}

/* fallback variant (span/div) — nudge a touch more */
.user-pfp-unique:not(img){
  transform:translateY(-3px);  /* try -2px if you want it a hair lower */
}


.time-posted-unique {
    font-size: 14px;
    color: #666;
    margin-left: 0px;
    white-space: nowrap;
}

.options-button-unique {
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.options-button-unique:hover {
    color: #333;
}

.dropdown-unique {
    position: absolute;
    top: 25px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.dropdown-unique a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    border-radius: 0;
}

.dropdown-unique a:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dropdown-unique a:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.thumbs-icon-unique.clicked {
    color: #007bff !important;
}
.thumbs-down-icon-unique.clicked {
    color: red !important;
}

.dropdown-unique a:hover {
    background-color: #f5f5f5;
}

.thumbs-icon-unique.clicked {
  color: #007bff !important;
}
.thumbs-down-icon-unique.clicked {
  color: red !important;
}


.like-count,
.dislike-count,
.comment-count {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 12.5px;
}
