body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
}

.nav-link.btn-primary {
  color: white !important;
}

.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title a {
  text-decoration: none;
  color: #343a40;
}

.card-title a:hover {
  color: #007bff;
}

.form-control:focus {
  box-shadow: none;
  border-color: #007bff;
}

.btn-primary {
  background-color: #007bff;
  border: none;
}

.btn-primary:hover {
  background-color: #0056b3;
}

footer {
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.navlist ul {
  display: flex;
  padding: 0;
}

.navlist li {
  list-style: none;
  text-decoration: none;
  padding: 8px 16px;
  margin-inline: 16px;
  font-size: 16px;
  border-bottom: 1px solid var(--c-two);
}

.navlist li:hover {
  background-color: var(--c-two);
  transition: background-color 200ms ease-in-out;
}

.navlist li a {
  text-decoration: none;
  color: var(--c-four);
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3b3b3b;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--c-four);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f123;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content button {
  background-color: inherit;
  border: none;
  font-size: medium;
  color: var(--c-four);
}

.navlist li button,
button i {
  border: 0;
  background-color: transparent;
  color: var(--c-three);
}

/* nav toggle button start */
.toggle-button {
  position: absolute;
  display: none;
  z-index: 10;
  top: 4px;
  right: 1rem;
  padding: 1rem;
  width: fit-content;
  height: fit-content;
}

/* nav toggle button end */

section {
  background-color: var(--c-zero);
  padding: 1rem;
}

.main {
  margin-inline: 10%;
}
.img_container {
  margin-block: 1rem;
  color: var(--c-four);
}

.img_container img {
  max-width: 80%;
  border-radius: 1rem;
  margin-bottom: 1rem;
  float: calc(50%-1rem);
  margin-left: calc(12.5% - 1rem);
}

.likes_created_at {
  display: flex;
  justify-content: space-between;
  font-family: monospace !important;
  font-style: italic !important;
  font-size: 15px !important;
}

.heading {
  position: relative;
  margin: 1rem 0;
  border-radius: 8px;
  background-color: var(--c-three);
  padding: 12px 18px;
}

.heading h1 {
  color: var(--c-four);
  text-transform: uppercase;
}

.main form p {
  color: var(--c-four);
}

.chekbox {
  float: right;
}

.main form p label {
  font-size: 32px;
  margin-block: 12px;
  color: var(--c-two);
  font-weight: bold;
}

.chk,
.change-banner {
  color: var(--c-four);
  font-size: 18px;
  font-weight: bold;
}

.chk > a {
  color: var(--c-three);
  font-weight: 100;
}

.main form p input,
textarea,
.change-banner input {
  font-size: 18px;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 4px;
  padding: 6px 10px;
  background: transparent;
  background-color: #ffffff1f;
  border: 0;
  border-bottom: 2px solid var(--c-three);
  caret-color: var(--c-three);
  color: var(--c-four);
}

.main form p input,
textarea:focus {
  border: 0;
  border-bottom: 1px solid var(--c-three);
  outline: none;
}

.main form button {
  font-family: Verdana;
  font-size: 16px;
  padding: 0.7rem 2.7rem;
  border-radius: 0.4em;
  overflow: hidden;
  line-height: 1em;
  border: none;
}

/* == Blog Pages == */
.blog_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.blog_card {
  display: flex;
  margin-top: 2rem;
  border-radius: 8px;
}

.blog_card > div:nth-child(2) {
  overflow: auto;
  padding: 8px;
}

.blog_card > div > img {
  height: 100%;
  width: 480px;
}

.blog_card > div > h2 {
  display: block;
  color: var(--c-four);
  font-size: 24px;
  text-decoration: none;
}

.blog_card > div > p {
  color: #fff8ffc2;
  font-size: 20px;
}

.btn-sec {
  margin-top: auto;
  align-self: last baseline;
  color: var(--c-two);
  display: inline-flex;
  text-decoration: underline;
}

.blog_content {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.blog_content p {
  color: var(--c-four);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 20px;
  line-height: 1.4;
}

.user_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user_info > .author {
  color: var(--c-three) !important;
}

.user_info > .edit_delete {
  display: inline-block;
  border: 1px solid var(--c-three);
  border-radius: 4px;
}

.user_info > .edit_delete > a {
  display: inline-block;
  padding: 4px 12px;
  border-collapse: collapse;
}

/* bottom links */

.access-link a button {
  background-color: var(--c-three);
  border: 1px solid var(--c-four);
  color: var(--c-four);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 16px;
  margin-bottom: 16px;
}

.access-link a button:hover {
  background-color: var(--c-three);
  transition: background-color 200ms ease;
}

/* mesaaage section settings */
/* .alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  margin: 1rem auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  background-color: var(--c-three);
  color: var(--c-four);
  border-radius: 8px;
  font-size: 16px;
}

.alert > button {
  background-color: var(--c-three);
  color: red;
} */

/* == Registration Pages (login, register, password change/reset) == */

@media screen and (max-width: 786px) {
  .navbar {
    display: block;
    z-index: 20;
  }

  .navlist {
    display: block;
    height: 0;
    overflow-y: hidden;
    transition: all 0.2s ease-in-out;
  }

  .navlist ul {
    display: block;
  }

  .toggle-button {
    display: block;
  }

  .active {
    margin-top: 16px;
    height: 12rem;
  }

  section {
    background-color: var(--c-zero);
    padding: 0.4rem;
  }

  .blog_card {
    display: block;
    height: auto;
    width: 100%;
  }

  .blog_card > div > img {
    width: 100%;
  }

  .blog_content p {
    font-size: 14px;
  }

  .img_container img {
    max-width: 100%;
    float: none;
  }

  .heading {
    font-size: 12px;
  }
}
