@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

ul {
  list-style: none; }

a {
  text-decoration: none; }

body {
  background-color: #fafafa;
  font-family: "Montserrat", sans-serif; }

.container {
  max-width: 550px; }

.card-login {
  height: 60vh;
  background-color: #fff;
  box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.1);
  border: 0;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 500px;
  margin-top: 2rem; }

.main-text {
  padding-top: 1rem;
  font-weight: bold; }

.logo {
  height: 100px;
  width: 100px;
  margin-top: 1rem; }

.google-btn {
  margin-top: 4rem;
  cursor: pointer;
  width: 184px;
  height: 42px;
  background-color: #4285f4;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(133, 133, 133, 0.25); }
  .google-btn .google-icon-wrapper {
    position: absolute;
    margin-top: 1px;
    margin-left: 1px;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background-color: #fff; }
  .google-btn .google-icon {
    position: absolute;
    margin-top: 11px;
    margin-left: 11px;
    width: 18px;
    height: 18px; }
  .google-btn .btn-text {
    float: right;
    margin: 11px 11px 0 0;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.2px;
    font-family: "Roboto"; }
  .google-btn:hover {
    box-shadow: 0 0 6px #4285f4; }
  .google-btn:active {
    background: #1669f2; }

.card-profile {
  background-color: #fff;
  box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.1);
  border: 0;
  margin: 0 auto;
  margin-top: 3rem;
  height: 100vh;
  flex-direction: column;
  padding: 2rem;
  position: relative; }

h2 {
  font-weight: bold;
  padding-top: 1rem;
  color: #0984e3; }

#img {
  padding-top: 1rem;
  display: block; }

.loader {
  display: none;
  margin: auto;
  position: absolute;
  top: 45%;
  left: 47%;
  z-index: 1; }
  .loader img {
    height: 80px;
    width: 80px; }

.user-text {
  padding-top: 2rem;
  color: #0984e3;
  font-weight: bold; }

.display-name-text {
  padding-top: 1rem;
  color: #0984e3;
  font-weight: bold; }

input[type="text"] {
  width: 80%; }

.btn-primary {
  display: block;
  margin-left: 0;
  background-color: #0984e3; }

.sign-out button {
  display: block;
  margin: 0 auto;
  margin-top: 1rem; }

.container {
  max-width: 800px;
  margin: 0 auto; }

#navbar {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 3px 3px 10px 1px rgba(207, 205, 205, 0.1); }
  #navbar ul {
    display: flex;
    align-self: center;
    justify-content: flex-end; }
    #navbar ul li {
      padding-top: 1rem;
      padding-left: 1rem;
      padding-right: 1rem;
      align-items: center; }
      #navbar ul li a {
        color: grey; }
        #navbar ul li a .current {
          color: #0984e3; }

.no-posts {
  display: none;
  padding-top: 3rem; }
  .no-posts img {
    display: block;
    margin: 0 auto;
    width: 400px;
    height: 400px; }
  .no-posts h2 {
    text-align: center; }

.home-loader {
  height: 50px;
  width: 50px; }

#bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  z-index: 1;
  background-color: #fff;
  width: 100%; }
  #bottom-nav ul {
    display: flex;
    align-self: center;
    justify-content: space-evenly; }
    #bottom-nav ul li {
      padding-top: 1rem;
      padding-right: 1rem;
      align-items: center; }
      #bottom-nav ul li a {
        color: grey; }
        #bottom-nav ul li a .current {
          color: #0984e3; }

.card-upload {
  background-color: #fff;
  box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.1);
  border: 0;
  height: 85vh;
  display: block;
  flex-direction: column;
  margin: 0 auto;
  padding: 2rem; }
  .card-upload input {
    width: 75%; }

form > img {
  display: block;
  width: 550px;
  height: 250px;
  margin: auto; }

.alert-danger,
.alert-success {
  display: none; }

form #img-placeholder {
  padding-top: 1rem;
  display: block;
  margin: 0 auto; }

form .caption-field {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; }
  form .caption-field img {
    width: 60px;
    height: 60px;
    border-radius: 50%; }
  form .caption-field #caption {
    margin-left: 1rem; }

form .location-field {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; }
  form .location-field i {
    color: #0984e3;
    text-align: center;
    margin-left: 1rem; }
  form .location-field #location {
    margin-left: 2.4rem; }

form .btn-center button {
  display: block;
  margin-left: 4rem;
  margin-top: 1.3rem;
  width: 30%; }

#user-profile .header {
  display: flex;
  align-items: center;
  padding-top: 1rem; }
  #user-profile .header img {
    width: 130px;
    height: 130px;
    border-radius: 50%; }
  #user-profile .header .user-info {
    padding-left: 4rem;
    display: flex;
    flex-direction: column; }
    #user-profile .header .user-info #display-name {
      font-size: 1.5rem; }
    #user-profile .header .user-info #username {
      padding-top: 2px;
      font-size: 1.2rem;
      color: grey; }
    #user-profile .header .user-info button {
      margin-top: 10px;
      border-radius: 2rem;
      border: 1px solid #ccc;
      max-width: 150px; }

#user-profile .header-counts {
  padding-top: 3rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem; }
  #user-profile .header-counts #followers-count,
  #user-profile .header-counts #following-count {
    cursor: pointer; }

#user-profile .counts-text {
  padding-top: 2px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: grey; }
  #user-profile .counts-text #post {
    padding-left: 1.5rem; }

#user-profile .grid-icons {
  cursor: pointer;
  padding-top: 3rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center; }
  #user-profile .grid-icons .current {
    color: #0984e3; }

#user-profile .user-posts {
  padding-top: 2rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(3, 240px);
  grid-gap: 0.5rem; }
  #user-profile .user-posts img {
    cursor: pointer;
    width: 100%;
    height: 220px;
    border-radius: 0.55rem; }

#user-profile .loader-2 {
  display: none;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 49%;
  z-index: 1; }
  #user-profile .loader-2 img {
    height: 50px;
    width: 50px; }

#user-profile .no-posts {
  display: none;
  padding-top: 1.1rem;
  padding-bottom: 2rem;
  position: relative; }
  #user-profile .no-posts img {
    width: 100%;
    height: 200px; }
  #user-profile .no-posts h2 {
    text-align: center; }

#user-posts-list > img {
  display: none; }

#search-user input {
  width: 35%;
  margin: 0 auto; }

.card-search {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: -3px -3px 10px 1px rgba(204, 204, 204, 0.1);
  border: 0; }

#result #user-result {
  position: relative;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  padding-right: 10px;
  border-bottom: solid 1px rgba(204, 204, 204, 0.342); }
  #result #user-result .search-user-info {
    padding-left: 2rem;
    display: flex;
    flex-direction: column; }
    #result #user-result .search-user-info #display-name {
      font-size: 1.1rem; }
    #result #user-result .search-user-info #user-name {
      padding-top: 1px;
      color: grey; }
  #result #user-result img {
    border-radius: 0.55rem;
    margin-left: 0.55rem;
    width: 70px;
    height: 70px; }
  #result #user-result button {
    position: absolute;
    right: 10%; }

.chat-loader {
  display: none; }
  .chat-loader img {
    display: block;
    margin: 0 auto;
    height: 50px;
    width: 50px; }

.screen-loader {
  display: none; }
  .screen-loader img {
    display: block;
    margin: 0 auto;
    height: 50px;
    width: 50px; }

#no-chat img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 500px; }

#no-chat h2 {
  text-align: center; }

#chats .chat-tiles {
  cursor: pointer;
  display: flex;
  padding-top: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eee; }
  #chats .chat-tiles img {
    height: 60px;
    width: 60px;
    border-radius: 50%; }
  #chats .chat-tiles .user-info {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: center; }
    #chats .chat-tiles .user-info #user-name {
      font-weight: 600;
      padding-bottom: 1px; }
    #chats .chat-tiles .user-info #message-count {
      font-size: 0.75rem;
      color: #0984e3; }

.buttons .btn-row {
  display: flex;
  justify-content: center;
  align-items: center; }
  .buttons .btn-row .btn-msg {
    display: none;
    border: 1px solid #ddd;
    background-color: #0984e3;
    border-radius: 50%;
    padding: 0.75rem;
    margin-left: 0.4rem;
    margin-top: 0.45rem;
    color: #fff; }

.buttons button {
  border: 0;
  padding: 0.5rem 2rem;
  display: none; }

#user-post {
  margin: 0 auto;
  max-width: 600px;
  position: relative;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border: 1px solid rgba(221, 221, 221, 0.5);
  border-radius: 0.55rem; }
  #user-post .post-loader img {
    display: none;
    height: 50px;
    width: 50px;
    position: absolute;
    top: 40%;
    left: 45%; }
  #user-post .user-post-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-bottom: 0.55rem;
    padding-left: 0.55rem;
    padding-top: 0.55rem; }
    #user-post .user-post-header img {
      cursor: pointer;
      margin-left: 5px;
      width: 50px;
      height: 50px;
      border-radius: 50%; }
    #user-post .user-post-header .data-info {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding-left: 1rem; }
      #user-post .user-post-header .data-info #user-name {
        cursor: pointer;
        font-weight: 600; }
      #user-post .user-post-header .data-info #location {
        font-size: 0.75rem;
        color: grey; }
  #user-post .post-image {
    padding-bottom: 0.55rem;
    position: relative; }
    #user-post .post-image img {
      display: block;
      margin: 0 auto;
      width: 100%;
      border-radius: 5px; }
    #user-post .post-image .heart {
      display: none;
      position: absolute;
      top: 20%;
      left: 30%;
      width: 200px;
      height: 200px;
      opacity: 0.9; }
  #user-post .user-post-footer {
    padding-left: 0.55rem; }
    #user-post .user-post-footer .icons i:first-child {
      color: crimson;
      padding-right: 10px;
      cursor: pointer; }
    #user-post .user-post-footer .icons i:last-child {
      color: #0984e3;
      cursor: pointer; }
    #user-post .user-post-footer .counts span {
      font-weight: 600; }
    #user-post .user-post-footer .desc #user-name-desc {
      font-weight: 600; }
    #user-post .user-post-footer .desc #timestamp-desc {
      display: block;
      color: #333;
      font-size: 0.75rem; }

#comment-section {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; }
  #comment-section #comments {
    padding-top: 1.5rem;
    height: 82vh; }
    #comment-section #comments .header {
      border-bottom: 1px solid rgba(180, 180, 180, 0.2);
      padding-top: 0.75rem;
      padding-bottom: 0.55rem; }
      #comment-section #comments .header .user-info {
        display: flex;
        align-items: center; }
        #comment-section #comments .header .user-info img {
          height: 60px;
          width: 60px;
          border-radius: 50%;
          margin-left: 1rem; }
        #comment-section #comments .header .user-info .text {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          padding-left: 2rem; }
          #comment-section #comments .header .user-info .text #comment-text {
            font-weight: 600; }
          #comment-section #comments .header .user-info .text #user-name {
            font-size: 0.8rem; }
          #comment-section #comments .header .user-info .text #timestamp {
            font-size: 0.75rem;
            color: grey; }
    #comment-section #comments .loader-2 {
      position: absolute;
      top: 45%;
      left: 45%;
      display: none; }
      #comment-section #comments .loader-2 img {
        height: 60px;
        width: 60px; }
  #comment-section #addcomment {
    padding-left: 10rem; }

#activity-posts .activity {
  width: 100%;
  margin-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid #eee;
  border-width: 50%; }
  #activity-posts .activity .profile-img {
    cursor: pointer;
    margin-left: 1rem;
    height: 60px;
    width: 60px;
    border-radius: 50%; }
  #activity-posts .activity .info {
    width: 100%;
    display: flex;
    justify-content: space-between; }
    #activity-posts .activity .info .user-info {
      cursor: pointer;
      margin-left: 2rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; }
      #activity-posts .activity .info .user-info #username {
        font-weight: 600; }
      #activity-posts .activity .info .user-info #detail {
        font-size: 0.9rem;
        color: #333; }
      #activity-posts .activity .info .user-info #timestamp {
        font-size: 0.75rem;
        color: #aaa; }
    #activity-posts .activity .info .info-image {
      cursor: pointer; }
      #activity-posts .activity .info .info-image img {
        height: 60px;
        width: 60px;
        border-radius: 0.5rem; }

#activity-posts .activity-loader img {
  display: none;
  height: 50px;
  width: 50px;
  position: absolute;
  top: 50%;
  left: 45%; }

.no-activity {
  display: none;
  padding-top: 3rem; }
  .no-activity img {
    display: block;
    margin: 0 auto;
    width: 400px;
    height: 400px; }
  .no-activity h2 {
    text-align: center; }

#chat {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1.5rem; }
  #chat #chat-msg-list {
    grid-area: chat-msg-list;
    display: flex;
    flex-direction: column;
    padding: 0 1.2rem; }
    #chat #chat-msg-list .msg-row {
      margin-bottom: 1.2rem;
      display: grid;
      grid-template-columns: 70%;
      margin-bottom: 1.2rem; }
      #chat #chat-msg-list .msg-row .msg-text {
        padding: 9px 14px;
        font-size: 1rem;
        margin-bottom: 5px; }
      #chat #chat-msg-list .msg-row .unread {
        color: #ccc; }
      #chat #chat-msg-list .msg-row .read {
        color: #00b894; }
    #chat #chat-msg-list .you-msg {
      justify-content: end;
      justify-items: end; }
      #chat #chat-msg-list .you-msg .msg-text {
        background: #0984e3;
        color: #eee;
        border: 1px solid #0984e3;
        border-radius: 0.75rem 0.75rem 0 0.75rem; }
    #chat #chat-msg-list .other-msg {
      justify-items: start; }
      #chat #chat-msg-list .other-msg .msg-text {
        background: #eee;
        color: #111;
        border: 1px solid #ddd;
        border-radius: 0.75rem 0.75rem 0.75rem 0; }
  #chat .chat-input {
    max-width: 700px;
    position: fixed;
    bottom: 0;
    z-index: 1; }
    #chat .chat-input input[type="text"] {
      padding-bottom: 0;
      margin-bottom: 0; }

.chat-screen-loader {
  display: none;
  margin-top: 5rem; }
  .chat-screen-loader img {
    height: 50px;
    width: 50px;
    display: block;
    margin: 0 auto; }

.alert {
  display: none; }

#count-list {
  padding-top: 2rem;
  padding-left: 2rem; }
  #count-list .user-card {
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
    padding-left: 0.55rem;
    border-bottom: 1px solid #eee; }
    #count-list .user-card img {
      height: 60px;
      width: 60px;
      border-radius: 0.55rem; }
    #count-list .user-card .user-info {
      cursor: pointer;
      display: flex;
      align-items: center; }
    #count-list .user-card .user-details {
      padding-left: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; }
      #count-list .user-card .user-details .display-name {
        font-size: 1.2rem;
        font-weight: 600; }
      #count-list .user-card .user-details .username {
        font-size: 0.8rem;
        color: grey; }

#count-list > img {
  display: none;
  height: 60px;
  width: 60px;
  position: absolute;
  left: 45%; }

#edit-profile,
#toggle {
  padding-top: 2rem;
  padding-left: 2rem; }

#toggle input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden; }

#toggle label {
  cursor: pointer;
  text-indent: -9999px;
  width: 52px;
  height: 27px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative; }

#toggle label:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 18px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s; }

#toggle input:checked + label {
  background: #0984e3; }

#toggle input:checked + label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%); }

#toggle label:active:after {
  width: 45px; }

@media (max-width: 500px) {
  #navbar {
    justify-content: flex-start; }
    #navbar h2 {
      padding-left: 1rem;
      font-size: 1.5rem; }
    #navbar ul {
      display: none; }
  #bottom-nav {
    width: 100%;
    background-color: #fff;
    display: block;
    overflow-x: auto; }
  #search-user input {
    width: 80%; }
  #upload form > img {
    width: 100%;
    height: 200px; }
  #upload .caption-field {
    justify-content: flex-start;
    padding: 0; }
    #upload .caption-field img {
      width: 50px;
      height: 50px; }
    #upload .caption-field #caption {
      margin-left: 1.4rem; }
  #upload .location-field {
    justify-content: flex-start;
    padding: 0;
    padding-top: 1rem; }
    #upload .location-field i {
      margin-left: 0.55rem; }
  #upload button {
    margin: 0;
    margin-top: 2rem; }
  #user-profile .header img {
    height: 100px;
    width: 100px; }
  #user-profile .header .user-info {
    padding-left: 3rem;
    padding-top: 2px; }
    #user-profile .header .user-info #display-name {
      font-size: 1.3rem; }
    #user-profile .header .user-info #username {
      font-size: 1rem; }
    #user-profile .header .user-info button {
      margin-left: 0; }
  #user-profile .user-posts {
    grid-template-columns: repeat(3, 100px);
    grid-gap: 0.5rem; }
    #user-profile .user-posts img {
      width: 100px;
      height: 100px;
      border-radius: 0.55rem; }
  #chat .chat-input {
    max-width: 350px; }
  #result #user-result .search-user-info #display-name {
    font-size: 1rem; }
  #result #user-result .search-user-info #user-name {
    font-size: 0.9rem; }
  #result #user-result .search-user-info button {
    font-size: 0.8rem; }
  #result #user-result:last-child {
    padding-bottom: 5rem; }
  .no-posts img {
    width: 100%;
    height: 350px; }
  .no-activity img {
    width: 100%;
    height: 350px; }
  #no-chat img {
    height: 350px; }
  #count-list {
    padding-left: 0rem;
    padding-top: 0rem; }
    #count-list .display-name {
      font-size: 1rem; } }
