.userava {
  background-repeat: no-repeat;
  margin-right: 10px;
  background-size: 110%;
  background-position: top;
  width: 200px;
  height: 200px;
  margin-bottom: 12px;
}

@media (max-width: 1220px) {
  .userava {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .userava {
    width: 120px;
    height: 140px;
  }
}

.smallava {
  background-repeat: no-repeat;
  margin-right: 10px;
  float: left;
  background-size: 130%;
  background-position: top;
  width: 130px;
  height: 132.7px;
  border-radius: 50%;
}

@media (max-width: 1220px) {
  .smallava {
    width: 80px;
    height: 81.6px;
    background-size: 130%;
    background-position: top;
  }
}

@media (max-width: 480px) {
  .smallava {
    width: 60px;
    height: 61.2px;
    background-size: 130%;
    background-position: top;
  }

  .desc {
    font-size: 14px;
  }

  h1 {
    font-size: 1em;
  }
}

.infoside {
    float: none;  
    width: 200px; 
    position: fixed; 
    height: 100%; 
    margin-top: 10px;
}

div#blogSide {
    margin-left: 220px; 
    flex-direction: column;
    align-items: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-top: 10px;

}

/* Add responsive handling for images and gifs */
div#blogSide img,
div#blogSide gif {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1220px) {
    .infoside {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        overflow-y: auto;
    }

    div#blogSide {
        margin-left: 0;
        width: 100%;
    }
}


#content {
  min-height: 200px;
  margin-left: 30px;
  margin-right: 30px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #e34772;
  border-radius: 10px;
}

@media (max-width: 1220px) {
  #content {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
}

.desc {
  white-space: pre-wrap;
}


#bodydiv {
  min-width: 320px; /* Changed from 800px for mobile */
}

@media (max-width: 1220px) {
  #bodydiv {
    min-width: 320px;
  }
}

h1 {
  margin: 0px;
}

iframe {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


.desc {
  color: #656565;
  font-size: 17px;
}

@media (max-width: 480px) {
  .desc {
    font-size: 14px;
  }

  .buybtn {
    zoom: 0.8;
  }
}

.date {
  color: #929292a8;
  font-size: 14px;
  margin-left: 15px;
}

.bloghistory {
  background-color: #dae1ff;
  color: #546ac5;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 12px;
  padding-left: 3px;
  max-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}

#blogpoints, #blogpoints form, #blogpoints form input {
  display: inline-block;
}

#like {
  background-color: #26dc26;
  font-weight: bold;
 border: 0;
 box-shadow: none;
 color: white;
 width: 25px;
 height: 25px;
 margin-right: 5px;
}
#dislike {
  background-color: red;
  font-weight: bold;
 border: 0;
 box-shadow: none;
 color: white;
 width: 25px;
 height: 25px;
 margin-right: 10px;
}

#liked {
  background-color: grey;
  font-weight: bold;
 border: 0;
 box-shadow: none;
 color: white;
 width: 25px;
 height: 25px;
 margin-right: 5px;
}

#disliked {
  background-color: grey;
  font-weight: bold;
 border: 0;
 box-shadow: none;
 color: white;
 width: 25px;
 height: 25px;
 margin-right: 10px;
}

#blogpoints {
  margin-top: 50px;
  margin-bottom: 50px;
}

div#blogContent {
    display: flex;
    justify-content: center;
    display: block;
    margin-bottom: 19px;
    min-height: 380px;
    overflow: hidden;
    border-radius: 6px;
    background: white;
    padding: 8px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out;
    will-change: opacity, transform;
    transition: all 0.3s ease;
    width: 90%;
    margin-top: 30px;
    box-shadow: 0 2.5px 1px 4px rgba(0, 0, 0, 0.77);
}

div#commentsec {
    margin-left: 10%;
    margin-right: 10%;
    max-width: 80%;
}

#commentsec h2 {
  border-bottom: 2px dotted #e0ccff;
}

.comm {
  background-color: #f5f5f5;
  padding: 8px 8px;
  margin-bottom: 5px;
  min-height: 120.5px;
  box-shadow: 0 4px 0px 0 rgb(0 0 0 / 29%);
  border-radius: 6px;
  margin-bottom: 20px;
  animation: slideIn 0.5s ease-out;
  will-change: opacity, transform;
}

@media (max-width: 1220px) {
  .comm {
    min-height: 80px;
    padding: 4px 5px;
  }
}

.details {
  text-align: right;
  margin-bottom: 1px;
}

@media (max-width: 1220px) {
  .details {
    text-align: left;
    margin-top: 10px;
  }
}

.userdetails {
  font-size: 14px;
  display: inline;
}

.timedetails {
  font-size: 12px;
  display: inline;
  color: #b5b5b5;
}

.conty {
  margin-left: 120px;
  white-space: pre-wrap;
  overflow-y: auto;
  margin-right: 50px;
  min-height: 120.5px;
}

@media (max-width: 1220px) {
  .conty {
    margin-left: 70px;
    margin-right: 10px;
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .conty {
    margin-left: 50px;
    margin-right: 5px;
    min-height: 40px;
  }
}

/* Responsive iframe for videos */
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1220px) {
  iframe {
    width: 100% !important;
    height: 200px !important;
  }
}

/* Form responsiveness */
textarea.comment {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1220px) {
  textarea.comment {
    width: 100%;
    cols: 40;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.2;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0.4;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    
  }
}

/* Blog Poll Styles */
.blog-poll {
    transform: scale(0.75);
    transform-origin: left top;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1);
    width: 80%;
}

.poll-result-item:nth-child(1) .poll-result-fill {
    background: linear-gradient(90deg, #FF6B6B 0%, #ee5253 100%);
}

.poll-result-item:nth-child(2) .poll-result-fill {
    background: linear-gradient(90deg, #4ECDC4 0%, #45B7AF 100%);
}

.poll-result-item:nth-child(3) .poll-result-fill {
    background: linear-gradient(90deg, #FFD93D 0%, #F6C90E 100%);
}

.poll-result-item:nth-child(4) .poll-result-fill {
    background: linear-gradient(90deg, #A8E6CF 0%, #7ED56F 100%);
}

.poll-result-item:nth-child(5) .poll-result-fill {
    background: linear-gradient(90deg, #FF9A9E 0%, #FAD0C4 100%);
}

.poll-result-item:nth-child(6) .poll-result-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 1220px) {
    .blog-poll {
        transform: none;
        width: 100%;
    }
}