html,body{font-family:"Segoe UI",Arial,Helvetica,sans-serif;}body{background-color:#f3f4f6;}a{text-decoration:none;color:#2563eb;font-weight:600;}input[type=submit]{background:#1e3a8a;color:#fff;padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-size:.95rem;font-weight:600;transition:background .3s ease;}input[type=submit]:hover{background:#1d2f6f;}.main{display:flex;flex-direction:column;height:100vh;min-height:100vh;}.navbar{background-color:#252830;width:100%;height:70px;display:flex;position:fixed;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.15);top:0;left:0;z-index:1000;}.navbar ul{list-style:none;margin:0;padding:0;display:flex;gap:30px;}.navbar a{display:flex;align-items:center;justify-content:center;height:100%;padding:0 18px;color:#f9fafb;text-decoration:none;font-weight:600;font-size:1rem;letter-spacing:.5px;transition:all .3s ease;text-align:center;box-sizing:border-box;}.navbar a:hover{background-color:#1d4ed8;color:#facc15;border-radius:0;transform:none;box-shadow:inset 0 -4px 0 rgba(0,0,0,.2);}.sidebar{width:260px;position:fixed;top:70px;left:0;height:calc(100vh - 70px);background:#fff;padding:20px;box-shadow:0 4px 12px rgba(0,0,0,.08);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#000 transparent;}.sidebar::-webkit-scrollbar{width:6px;height:6px;}.sidebar::-webkit-scrollbar-track{background:transparent;}.sidebar::-webkit-scrollbar-thumb{background:#000;border-radius:10px;}.sidebar::-webkit-scrollbar-button{width:0;height:0;display:none;}.side-nav ul{list-style:none;margin:0;padding:0;}.side-nav ul li a{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;margin-bottom:12px;background:#fff;color:#1e293b;text-decoration:none;font-weight:500;border-radius:8px;transition:all .3s ease;}.side-nav ul li a:hover{background:#e2e8f0;color:#111827;transform:translateX(4px);box-shadow:0 4px 12px rgba(0,0,0,.12);}.sidebar-login{display:flex;flex-direction:column;align-items:stretch;padding:10px;margin:0;background:transparent;box-shadow:none;max-width:220px;}.sidebar-login form{width:100%;text-align:left;}.sidebar-login input[type=text],.sidebar-login input[type=username],.sidebar-login input[type=password]{width:100%;padding:6px 8px;margin:6px 0;border:1px solid #ccc;border-radius:6px;font-size:.9rem;background-color:#fff;transition:border-color .3s ease,box-shadow .3s ease;}.sidebar-login input[type=text]:focus,.sidebar-login input[type=username]:focus,.sidebar-login input[type=password]:focus{border-color:#2563eb;outline:none;box-shadow:0 0 4px rgba(37,99,235,.3);}.sidebar-login input[type=submit]{background:#3B82F6;color:#fff;padding:6px 12px;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .3s ease;margin-top:8px;}.sidebar-login input[type=submit]:hover{background:#1d4ed8;}.content{flex:1;padding:15px;margin-top:120px;margin-left:260px;box-sizing:border-box;}.card{width:100%;max-width:600px;border-radius:4px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.08);font-family:Arial,sans-serif;margin:20px auto;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease;}.card:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,.15);}.card-content{display:flex;justify-content:space-between;align-items:center;padding:20px;}.card-text{flex:1;min-height:200px;padding-right:10px;display:block;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;font-size:1.1rem;font-weight:500;}.vote-buttons{display:flex;flex-direction:column;align-items:center;gap:10px;flex-shrink:0;background:none;border:none;}.vote-buttons button{background:none;border:none;padding:0;margin:0;font-size:30px;line-height:1;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;}.vote-buttons button:focus{outline:none;}.vote-buttons form{display:flex;flex-direction:column;align-items:center;gap:6px;}.vote-buttons .upvote,.vote-buttons .downvote{font-size:30px;padding:2px;width:40px;height:40px;border-radius:8px;border:none;box-shadow:0 2px 6px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;background-color:#fff;}.vote-buttons .upvote{color:#22c55e;}.vote-buttons .downvote{color:#ef4444;}.vote-buttons button:hover{opacity:.9;transform:scale(1.08);box-shadow:0 4px 10px rgba(0,0,0,.15);background-color:#f9fafb;}.score{font-size:1.2rem;font-weight:700;color:#111827;}.card-footer{background:#fff;padding:10px 14px;font-size:.9rem;color:#111827;border-top:none;border-radius:0 0 4px 4px;width:100%;box-sizing:border-box;align-self:stretch;margin-bottom:25px;text-align:center;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;}.card-footer a{color:#2563eb;text-decoration:none;}.card-footer a:hover{text-decoration:underline;}.memeLinks{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:20px;align-items:flex-start;background:#f9f9f9;padding:20px 25px;margin:10px auto 20px auto;width:80%;max-width:1100px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.08);box-sizing:border-box;}.memeLinks .title{display:block;width:100%;text-align:center;font-size:1.5rem;font-weight:600;color:#333;margin-bottom:25px;}.memeLinks .card{flex:0 0 auto;width:180px;display:flex;flex-direction:column;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s;}.memeLinks .card:hover{transform:translateY(-5px);box-shadow:0 8px 20px rgba(0,0,0,.12);}.memeLinks .meme-item{padding:10px;}.memeLinks .meme-img{width:100%;height:auto;display:block;object-fit:cover;border-radius:8px;}.meme-img{width:500px;height:500px;object-fit:contain;border-radius:12px;display:block;margin:0 auto;box-shadow:0 4px 12px rgba(0,0,0,.05);}.memes .card{display:block;max-width:600px;margin:20px auto;}.memes .meme-item{display:block;margin-bottom:10px;text-align:center;}.memes .card-footer{display:block;text-align:center;margin-top:10px;font-size:.9rem;color:#555;}.pagination{text-align:center;}.profile{max-width:800px;margin:40px auto;padding:20px;background:#f9fafb;font-family:"Segoe UI",Arial,sans-serif;}.profile-info{text-align:center;margin-bottom:20px;padding:20px;background:#fff;color:#111827;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.1);font-family:Arial,sans-serif;}.profile-info p{margin:8px 0;font-size:1.1em;font-weight:500;}.profile-title{font-size:1.6em;margin-bottom:15px;color:#111827;border-bottom:2px solid #e5e7eb;padding-bottom:8px;}.profile-details{list-style:none;padding:0;margin:0;}.profile-details li{margin:10px 0;font-size:1.1em;color:#6b7280;}.profile-details .label{font-weight:700;color:#111827;margin-right:5px;}.no-user{color:#ef4444;font-weight:700;}.messages{max-width:600px;margin:40px auto;padding:10px;display:flex;flex-direction:column;gap:20px;}.leaderboard{background:#fff;width:600px;padding:20px 25px;border-radius:18px;position:relative;box-shadow:0 6px 18px rgba(0,0,0,.12);font-family:Arial,sans-serif;display:flex;flex-direction:column;align-items:center;text-align:center;margin:10px auto 20px auto;border:1px solid rgba(0,0,0,.05);}.leaderboard h2{margin:0 0 18px 0;font-size:1.9em;font-weight:800;letter-spacing:.5px;color:#111;text-transform:uppercase;}.leaderboard-table{width:100%;border-collapse:collapse;text-align:center;margin:0 auto;font-size:1.05em;}.leaderboard-table thead tr{background:#3b82f6;color:#fff;font-weight:700;font-size:1.1em;}.leaderboard-table th,.leaderboard-table td{padding:12px 10px;}.leaderboard-table tbody tr{transition:background .2s ease,transform .15s ease;}.leaderboard-table tbody tr:nth-child(odd){background:#f7f9fc;}.leaderboard-table tbody tr:nth-child(even){background:#eef2f7;}.leaderboard-table tbody tr:hover{background:#dbeafe;transform:scale(1.01);}.leaderboard-table td a{color:#3b82f6;font-weight:700;text-decoration:none;}.leaderboard-table td a:hover{text-decoration:underline;}.nextPage{text-decoration:none;font-size:1.2em;}.title{display:flex;justify-content:center;align-items:center;margin-top:20px;text-align:center;font-family:'Oswald','Arial Narrow',Arial,sans-serif;font-size:2rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;background:linear-gradient(90deg,#1d201e,#131413);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}.title h2{font-size:2rem;margin:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;font-weight:600;letter-spacing:1px;color:#333;text-transform:capitalize;}.comment-container-inline{max-width:600px;margin:20px auto;background:#fff;border:1px solid #ddd;border-radius:8px;padding:20px;box-shadow:0 2px 6px rgba(0,0,0,.1);text-align:center;}.form{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-top:40px;background:#fff;padding:30px;max-width:600px;margin-left:auto;margin-right:auto;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);}.form form{width:500px;text-align:center;}.form textarea{width:500px;min-height:250px;padding:12px;font-size:1rem;border:2px solid #ccc;border-radius:8px;resize:vertical;box-shadow:inset 0 2px 4px rgba(0,0,0,.1);}.form select{width:500px;padding:10px;font-size:1rem;border:2px solid #0077cc;border-radius:8px;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);color:#333;margin-bottom:15px;transition:all .3s ease;}.form select:hover{border-color:#005fa3;background:linear-gradient(135deg,#e0f2fe,#cce7ff);}.form input[type=text],.form input[type=username],.form input[type=password]{width:100%;padding:10px 12px;margin:8px 0;border:2px solid #ccc;border-radius:8px;box-sizing:border-box;font-size:1rem;transition:border-color .3s ease,box-shadow .3s ease,background-color .2s ease;background-color:#fff;}.form input[type=text]:hover,.form input[type=username]:hover,.form input[type=password]:hover{background-color:#f8f9fb;}.form input[type=text]:focus,.form input[type=username]:focus,.form input[type=password]:focus{border-color:#0077cc;outline:none;box-shadow:0 0 6px rgba(0,119,204,.3);}.form input[type=submit]{background:#1d0c66;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-top: 15px;
}
.form input[type="submit"]:hover {
    background: #03121d;
}
.search-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-form input[type="text"] {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-form input[type="text"]:focus {
    border-color: #0077cc;
    outline: none;
    box-shadow: 0 0 5px rgba(0,119,204,0.4);
}
.search-form input[type="submit"] {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #0077cc;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-form input[type="submit"]:hover {
    background: #3c4449;
}
.welcome-box {
    max-width: 400px;
    margin: 40px auto;          /* centers the box */
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
}

.sidecomments a {
    font-size: 0.8rem;   /* smaller text */
    font-weight: 500;    /* keep readable */
}
/* Username link inside sidecomments */
.sidecomments li a:first-child {
    color: #2563eb;      /* blue */
    font-weight: 700;    /* bold */
    text-decoration: none;
    padding: 0;          /* removes sidebar button styling */
    background: none;    /* removes white box */
    box-shadow: none;    /* removes hover shadow */
    border-radius: 0;
    display: inline;     /* prevents button-like layout */
}
.sidebar h4 {
    text-align: center;
}


.comment-section h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.comment-textarea {
    display: block;
    margin: 15px auto;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 1em;
}

.comment-section input[type="submit"] {
    margin-top: 15px;
    background-color: #3B82F6;;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
}

.comment-section input[type="submit"]:hover {
    background-color: #1d0c66;
}

.comments {
    margin-top: 20px;
    text-align: left;
}

.comment-bubble {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}
.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
        .mode-buttons {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            gap: 10px;
        }

        .mode-buttons a {
            padding: 10px 22px;
            border-radius: 999px;
            background: #3B82F6;
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

        .mode-buttons a.active {
            background: black;
        }

        .error-message {
            color: red;
            margin: 10px;
            text-align: left;
            font-weight: bold;
        }

        .vote-buttons button {
            cursor: pointer;
        }
/* Main container */
.messages-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 30px auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Section title */
.messages-box h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Conversation bubble */
.conversations {
  position: relative;
  background: #f9fbff;                  /* softer background */
  border: 1px solid #d0d0d0;
  border-radius: 16px;
  padding: 14px 20px;
  width: 100%;
  max-width: 500px;
  min-height: 60px;
  text-align: left;
  box-sizing: border-box;
  margin: 12px auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conversations:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background: #eef6ff;                  /* subtle hover highlight */
}

/* Username link */
.conversations a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Preview text */
.conversations .preview {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;                  /* keep previews tidy */
}

/* Bubble tail */
.conversations::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 40px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #f9fbff transparent transparent transparent;
}

.conversations::before {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 40px;
  border-width: 13px 13px 0;
  border-style: solid;
  border-color: #d0d0d0 transparent transparent transparent;
}
.layout {
    display: flex;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2; /* optional: move sidebar below content */
    }

    .content {
        width: 100%;
        order: 1;
    }
}
.vote-buttons button {
    background: #e0e0e0;
    border: none;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* triangle colors (always on) */
.vote-buttons .upvote {
    color: #2ecc71;
}

.vote-buttons .downvote {
    color: #e74c3c;
}

/* background only */
.vote-buttons .upvote.active {
    background-color: #c8f2d4;
}

.vote-buttons .downvote.active {
    background-color: #f7c6c3;
}




