#counter-display {
    font-family: Arial, sans-serif;
    font-weight: bold;
    position: fixed; 
    bottom: 10px; 
    left: 50%; 
    color: #888; 
    font-size: 16px;
    transform: translate(-50%, -50%);
}

#imageauto {
    position: fixed; 
    float: left;
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%);
}

#textLabel {
    font-family: Arial, sans-serif;
    font-weight: bold;
    position: absolute;
    max-width: 500px; 
    word-wrap: break-word; 
    white-space: normal;
    color: #FFFFFF;
    font-size: 20px;
    margin: 20px;
    opacity: 0;
    padding: 5px;
    transform: scale(0); 
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease, text-shadow 0.5s ease; 
}

#textLabel.red {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 1), 0 0 20px rgba(255, 77, 77, 1), 0 0 30px rgba(255, 77, 77, 1); 
}

#textLabel.green {
    color: #4dff4d; 
    text-shadow: 0 0 10px rgba(77, 255, 77, 1), 0 0 20px rgba(77, 255, 77, 1), 0 0 30px rgba(77, 255, 77, 1); 
}

#textLabel.fade-in {
    opacity: 1;
    transform: scale(1); 
}

#textLabel.fade-out {
    opacity: 0;
    transform: scale(0); 
}

body {
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: none;
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    text-align: center;
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    animation: slide-up 0.6s ease forwards;
}

@keyframes slide-up {
    from {
        bottom: -100%;
    }
    to {
        bottom: 20%;
    }
}

h2 {
    margin: 0 0 20px;
    color: #e0e0e0;
}

#comments-wall {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-top: 17px;
}

#comments-wall::-webkit-scrollbar {
    width: 8px;
    background-color: #1f1f1f;
}

#comments-wall::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #1f1f1f;
}

#comments-wall::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

#comments-wall::-webkit-scrollbar-track {
    background-color: #2a2a2a;
    border-radius: 8px;
}

#comment-box {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #333;
    color: #f5f5f5;
    resize: none;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #555;
    color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #777;
}

.comment {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #333;
    color: #f5f5f5;
    text-align: left;
}

.comment p {
    margin: 0 0 5px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}

.comment-date {
    float: left;
}

.comment-likes {
    float: right;
    display: flex;
    align-items: center;
}

.like-button {
    color: #888;
    cursor: pointer;
    margin-left: 5px;
    transition: color 0.3s;
}

.like-button:hover {
    color: #bbb;
}

#sort-comments {
    width: 220px;
    background-color: #333;
    color: #f5f5f5;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1em;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    appearance: none; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

#sort-comments:hover {
    background-color: #444;
}

#sort-comments:focus {
    border-color: #4caf50;
}

#sort-comments option {
    background-color: #333;
    color: #f5f5f5;
}


#sort-comments-label {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #f5f5f5;
    margin-bottom: 5px;
    display: block;
}

#progress-bar {
    position: fixed;
    bottom: 50px; 
    left: 50%; 
    width: 200px; 
    transform: translateX(-50%);
    height: 20px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 0 10px #888, 0 0 20px #888, 0 0 30px #888; 
}

#progress-bar::-webkit-progress-bar {
    background-color: #888;
    border-radius: 10px;
}

#progress-bar::-webkit-progress-value {
    background-color: #4dff4d;
    border-radius: 10px;
}

#preloader {
    background: #242323;
    background-size: 20%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  
  .image-load {
    width: 250px;
    height: 150px;
    border-radius: 20px;
  }
  
  
  .loading-bar{
    width: 130px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    background: #cfcfcf;
    margin-top: 22px;
    position: relative;
    overflow: hidden;
  }
  
  .loading-bar::before{
    content: '';
    width: 68px;
    height: 2px;
    background: #444;
    position: absolute;
    left: -34px;
    animation: bluebar 1.5s infinite ease;
  }
  
  @keyframes bluebar{
    50%{
      left: 96px;
    }
  }
  
  @keyframes fadeOutAnimation {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }