/* ====================== General */

body {
  background-color: #e6ecf0;
}

body.error-404 {
  background-color: #1da1f2;
}

.form-control {
  margin-bottom: 20px;
}

.btn {
  border-radius: 50px;
}

.btn:hover {
  cursor: pointer;
}

/* ======================= Nav */

.navbar {
  background-color: #fff;
  height: 46px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  position: relative;
  z-index: 9999;
}

.navbar a {
  color: #66757f;
  font-size: 13px;
  font-weight: bold;
}

.navbar a:hover {
  color: #1c94e0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand > img {
  display: inline-block;
  margin-bottom: 2px;
  margin-right: 5px;
  width: 20px;
  border-radius: 2px;
}

.nav > li > a > img {
  width: 32px;
  border-radius: 32px;
}

ul.nav.navbar-nav {
  align-items: center;
}

ul.nav.navbar-nav li {
  margin: 0 0.5rem;
  display: flex;
}

nav form.navbar-form {
  display: flex;
  position: relative;
}

#search.form-control {
  border-radius: 20px;
  margin-bottom: 0;
  width: 100%;
  font-size: 13px;
  padding-right: 40px; /* Add space for the button inside the field */
  box-sizing: border-box;
  position: relative;
}

#search.form-control + .btn {
  position: absolute;
  right: 10px; /* Position the button inside the field */
  top: 50%; /* Center the button vertically */
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #66757f;
  cursor: pointer;
  z-index: 1;
}

#search.form-control + .btn:hover {
  color: #1c94e0;
}

#search.form-control + .btn:active,
#search.form-control + .btn:focus {
  box-shadow: none;
}

#search:active,
#search:focus {
  box-shadow: none;
  border: 2px solid #007bff;
}

/* on "onboarding" pages (signup & login), the navbar is
   different: no search box, the logo is centered, and it has
   a background color.
 */

.onboarding > .navbar {
  background-image: url("/static/images/nav-bg.png");
  background-size: 100% 100%;
}

.onboarding .navbar-header {
  margin: 0 auto;
}

.onboarding .navbar-brand {
  margin: 0;
}

.onboarding .navbar-brand span {
  display: none;
}

.onboarding .nav.navbar-nav.navbar-right {
  position: absolute;
  right: 16px;
}

.onboarding > .navbar a {
  color: #fff;
}

.onboarding > .navbar form.navbar-form {
  display: none;
}

.onboarding {
  background-color: #fff;
}

@media (max-width: 468px) {
  nav form.navbar-form {
    display: none;
  }
}

nav + .container {
  margin-bottom: 1rem;
}

.modal-content {
  border-radius: 10px;
}

.modal-dialog {
  margin-top: 50px;
}

/* ===================== User profile */

.join-message {
  margin-top: 100px;
}

#profile-image,
#profile-avatar {
  border-radius: 100%;
  display: block;
  margin-left: -15px;
}

#profile-image {
  margin: 0 auto 15px;
  width: 100%;
}

#profile-avatar {
  width: 200px;
  height: 200px;
  border: 5px solid #fff;
  margin-top: -120px;
  z-index: 1;
  position: relative;
  box-shadow: 0 1px 1px rgba(136, 153, 166, 0.15);
}

.timeline-image {
  border-radius: 48px;
  height: 48px;
  width: 48px;
  margin-top: 2px;
}

.message-area,
.timeline-image {
  display: inline-block;
}

.message-area {
  margin-left: 10px;
}

#warbler-hero {
  height: 360px;
  margin-top: -16px;
  opacity: 0.7;
  background-size: cover;
  background-position: top center;
  background-image: url("/static/images/squawk-hero.png");
}

.full-width {
  width: 100vw;
  margin: 0 -50vw;
  position: relative;
  left: 50%;
  right: 50%;
}

.row.full-width {
  background-color: #fff;
  margin-top: -80px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
  height: 60px;
  align-items: center;
}

.user-stats > .ml-auto {
  display: flex;
  align-items: center;
}

.user-stats > .ml-auto .btn {
  min-width: 105px;
  padding: 6px 16px;
}

.stat {
  text-align: center;
  height: 60px;
  box-sizing: border-box;
  padding: 14px 15px 7px;
  line-height: 1;
}

.stat > .small {
  color: #657786;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.stat > .small + h4 {
  font-size: 18px;
  font-weight: bold;
  padding-top: 3px;
}

#messages {
  position: relative;
}

#messages .message-link {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#messages .list-group-item a:not(.message-link) {
  position: relative;
  z-index: 2;
}

#messages .list-group-item {
  display: flex;
  align-items: flex-start;
  padding: 7px 20px 12px;
}

#messages:not(.no-hover) .list-group-item:hover {
  background-color: #e6ecf0;
}

#sidebar-username {
  margin-top: 30px;
  font-size: 21px;
  font-weight: bold;
  line-height: 28px;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .full-width .user-stats .stat {
    display: none;
  }
}

.user-location {
  color: #657786;
}

/* ==================== User cards on follower/following pages */

.user-card {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  position: relative;
  background: white;
  margin-top: 20px;
}

.user-card > div {
  position: absolute;
  background: white;
}

.user-card form {
  margin-top: 5px;
  margin-right: 5px;
}

.user-card form .btn {
  min-width: 89px;
  padding: 4px 12px;
  font-size: 12px;
}

.card-hero {
  width: 100%;
  position: absolute;
  top: -50px;
  right: 0;
  bottom: 0;
  left: 0;
}

.card-image {
  border: 3px solid #fff;
  border-radius: 70px;
  height: 70px;
  width: 70px;
  margin-top: -35px;
  position: relative;
  z-index: 1;
}

.card-link {
  display: inline-block;
  margin-left: 10px;
}

.card-link > p {
  position: absolute;
}

.user-cards {
  margin-bottom: 20px;
}

.card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.image-wrapper {
  width: 100%;
  padding-bottom: 36%;
  position: relative;
  overflow: hidden;
}

.card-contents {
  display: flex;
  justify-content: space-between;
}

p.card-bio {
  margin: 2em 10px 0;
}

/* ============================ Signed out home */

.home-hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100vw;
  left: 0;
  z-index: -1;
  background-image: url("/static/images/squawk_logo2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 0 8px #66757f;
}

/* Optional: Adjust for smaller screens */
@media (max-width: 768px) {
  .home-hero {
    background-size: contain; /* Adjusts the image to fit within the container */
    height: auto; /* Allows the height to adjust dynamically */
  }
}

.home-hero .btn {
  text-shadow: none;
  position: relative;
  z-index: 1;
  width: 150px;
}

.home-hero h1 {
  margin-bottom: 4rem;
}

.home-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
}

/* ============================== Signed in Home */

#home-aside > .user-card {
  margin-top: 0;
  overflow: hidden;
}

#home-aside > .user-card .card-link {
  display: flex;
}

#home-aside > .user-card .card-link > p {
  margin-left: 0.5rem;
  margin-top: 0.25rem;
}

#home-aside > .user-card .stat {
  padding: 14px 0 7px;
}

#home-aside > .user-card .user-stats {
  display: flex;
  justify-content: space-around;
}

#home-aside > .user-card > div {
  width: 100%;
}

#home-aside .card-link > p {
  position: relative;
}

#home-aside .stat h4 {
  text-align: left;
}

/* ========================== Signup/Login */

#user_form input.form-control {
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
}

/* =========================== Edit Page */

.edit-btn-area {
  display: flex;
  justify-content: space-between;
}

.edit-btn-area > .btn {
  width: 48%;
}

/* =========================== Message Show page */

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #62676c;
  z-index: 0;
}

#messages.no-hover .message-area {
  width: 100%;
}

#messages.no-hover .message-heading {
  display: flex;
  justify-content: space-between;
  height: 47px;
  margin-top: 3px;
}

#messages.no-hover .message-heading .btn {
  min-width: 105px;
}

#messages-form {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}

.single-message {
  font-size: 27px;
  line-height: 32px;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* =========================== Message Cards as Speech Balloons */

.message-card {
  position: relative;
  background-color: #f8f9fa; /* Light gray background */
  border: 1px solid #ddd; /* Light border */
  border-radius: 15px; /* Rounded corners */
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.message-card:hover {
  background-color: #e9ecef; /* Slightly darker background on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More prominent shadow */
}

.message-card::after {
  content: "";
  position: absolute;
  bottom: -10px; /* Position the tail below the card */
  left: 20px; /* Adjust the horizontal position of the tail */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 10px; /* Triangle shape */
  border-color: #f8f9fa transparent transparent transparent; /* Match the card background */
}

.timeline-image {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Circular profile image */
  margin-right: 10px;
  float: left; /* Align the image to the left */
}

.message-area {
  margin-left: 50px; /* Space for the profile image */
}

.single-message {
  font-size: 14px;
  color: #333; /* Dark text color */
  margin: 10px 0;
}

.message-heading a {
  font-weight: bold;
  color: #007bff; /* Bootstrap primary color */
  text-decoration: none;
}

.message-heading a:hover {
  text-decoration: underline;
}

.text-muted {
  font-size: 12px;
  color: #6c757d; /* Bootstrap muted text color */
}

/* ================================ 404 page */

.message-404 {
  color: white;
  margin-top: 2em;
  text-align: center;
}

.message-404 a {
  color: white;
}

.message-404 > h4.display-4 {
  font-size: 2.5em;
}

.message-404 .form-inline input {
  flex: 1;
}

.social-links a {
  pointer-events: auto;
  z-index: 1;
  position: relative;
  text-decoration: none; /* Optional: Remove underline */
}

.social-links a:hover {
  text-decoration: underline; /* Optional: Add underline on hover */
}

.text-muted {
  color: #6c757d;
  text-decoration: none;
}

.text-muted:hover {
  text-decoration: underline;
}

.alert {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.alert-info {
  background-color: #e9f7fd;
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-dismissible .btn-close {
  color: #0c5460;
}

.card {
  background-color: #f8f9fa; /* Light gray background */
  border: none;
  border-radius: 8px;
}

.card-body {
  padding: 2rem;
}

.fa-lock {
  font-size: 3rem;
}

.text-muted {
  color: #6c757d;
  text-decoration: none;
}

.text-muted:hover {
  text-decoration: underline;
}

/* Style for the submit button */
.btn-primary {
  background-color: #007bff; /* Bootstrap primary color */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #0056b3; /* Darker shade on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.btn-primary:active {
  background-color: #004085; /* Even darker shade on click */
  transform: translateY(0); /* Reset lift effect */
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); /* Focus outline */
}

.replies {
  margin-top: 2rem;
}

.replies .card {
  background-color: #f8f9fa;
  border: none;
  border-radius: 8px;
}

.replies .card-body {
  padding: 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.pagination .page-link {
  color: #007bff;
}

.pagination .page-link:hover {
  background-color: #0056b3;
  color: #fff;
}

.reply-form textarea {
  resize: none;
}

.reply-form {
  position: relative;
  z-index: 1;
}

/* Like Button */
.messages-like .btn {
  display: flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px; /* Rounded corners */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.messages-like .btn-primary {
  background-color: #007bff; /* Bootstrap primary color */
  color: #fff;
}

.messages-like .btn-outline-primary {
  border: 1px solid #007bff;
  color: #007bff;
}

.messages-like .btn:hover {
  transform: translateY(-2px); /* Slight lift effect */
}

/* Unfollow Button */
.btn-danger {
  background-color: #dc3545; /* Bootstrap danger color */
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-danger:hover {
  background-color: #c82333; /* Darker shade on hover */
  transform: translateY(-2px);
}

/* Follow Button */
.btn-outline-success {
  border: 1px solid #28a745;
  color: #28a745;
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #fff;
  transform: translateY(-2px);
}

/* Add spacing between buttons */
.messages-like .btn,
.btn-danger,
.btn-outline-success {
  margin-left: 10px; /* Add space to the right of each button */
}

.btn-warning {
  background-color: #ffc107; /* Bootstrap warning color */
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-warning:hover {
  background-color: #e0a800; /* Darker shade on hover */
  transform: translateY(-2px);
}

.table {
  margin-top: 2rem;
  border: 1px solid #ddd;
}

.table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.table td {
  vertical-align: middle;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}

.btn-danger:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .navbar-nav .nav-link.signup,
  .navbar-nav .nav-link.login {
    color: white !important;
    background-color: transparent !important;
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px 10px;
  }

  .navbar-nav .nav-link.signup:hover,
  .navbar-nav .nav-link.login:hover {
    background-color: white !important;
    color: black !important;
  }
}


