html.dark {
    --Blue: #0079ff;
    --Red: #f74646;
    --Gray: #697c9a;
    --Dark-Gray: #4b6a9b;
    --Light-Black: #2b3442;

    --font-clr: #fefefe;
    --Dark-Black: #141d2f;
    --Navy-Blue: #1e2a47;
  }
  html.light {
    --Blue: #0079ff;
    --Red: #f74646;
    --Gray: #fff;
    --Dark-Gray: #fff;
    --font-clr: #2b3442;
    --Dark-Black: #f6f8ff;
    --Navy-Blue: #fff;
  }
  @font-face {
    font-family: SpaceMono;
    src: url(./assets/fonts/SpaceMono-Regular.ttf);
  }
  @font-face {
    font-family: SpaceMonoBold;
    src: url(./assets/fonts/SpaceMono-Bold.ttf);
  }

  * {
    transition: all 0.1s;
  }

  body {
    font-family: SpaceMono, sans-serif;
    background: var(--Dark-Black);
    color: var(--font-clr);
    transition: all 1s;
    padding: 0.5rem;
  }

  .container {
    font-family: SpaceMono, sans-serif;
    background: var(--Light);
    color: var(--font-clr);
    max-width: 900px;
    margin: auto;
  }
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mode-toggler {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .mode-toggler h6 {
    margin: 0;
    font-size: 18px;
  }

  .search-bar {
    background-color: var(--Navy-Blue);
    padding: 0.6rem 0.6rem 0.6rem 1.6rem;
    display: flex;
    align-items: center;
    border-radius: 10px;
    margin: 1.4rem 0;
    box-shadow: 0px 1px 17px #0000004d;
    position: relative;
  }

  .search-bar:has(input:user-invalid){
    margin-bottom: 2rem ;
    border: 2px solid var(--Red);
  }

  .search-bar:has(input:user-invalid):before{
    content: "Please enter a username";
    position: absolute;
    bottom: -25px;
    left: 3rem;
    color: var(--Red);
}

  .search-bar input {
    padding: 1rem;
    width: 100%;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    color: var(--font-clr);
    font-family: inherit;
  }

  input:focus {
    border: none;
    outline: none;
  }

  input::placeholder {
    font-size: 1.2rem;
    color: var(--font-clr);
    font-family: inherit;
  }
  .search-bar button {
    border: none;
    color: white;
    background-color: #0079ff;
    height: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
  }

  .container-body {
    display: flex;
    gap: 3rem;
    background: var(--Navy-Blue);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0px 0px 30px #00000032;
  }

  .body-contents {
    width: 100%;
  }

  .heading {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
  }

  .heading h2 {
    margin-bottom: 2px;
  }

  .heading p {
    margin: 0;
    color: var(--Blue);
  }

  .avatar_img {
    width: 100%;
    border-radius: 50%;
  }
  .bio {
    font-size: 1rem;
    margin: 2rem 0;
  }

  .status {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background-color: var(--Dark-Black);
    border-radius: 15px;
    padding: 1rem;
    box-sizing: border-box;
  }

  .status h5 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
  }

  .status p {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
  }

  .repos,
  .followers,
  .following {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .footer > div {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .deactive {
    opacity: 0.5;
  }

  .custom-toast {
    position: absolute;
    top: 0px;
    left: 40%;
    margin: auto;
    background-color: var(--Red);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease, top 1s ease;
    z-index: 2000;
  }

  @media screen and (max-width: 750px) {
    .container-body {
      flex-direction: column;
      align-items: center;
      gap: 0;
    }
    .footer {
      grid-template-columns: auto;
    }
  }

  @media screen and (max-width: 500px) {
    html {
      font-size: 14px;
    }
    .heading {
      flex-direction: column;
    }
  }