:root {
  --primarybg: #f3f8ff;
  --primaryfont: Montserrat, sans-serif;
  --secondarybg: #49108b;
  --secondarytextcolor: white;
  --secondaryaccent: #7e30e1;
  --primaryaccent: #e26ee5;
  --primarytextcolor: #000;
  --secondaryfont: "Open Sans", sans-serif;
}

.w-layout-grid {
  grid-row-gap: 16px;
  grid-column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

body {
  color: #333;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.body {
  background-color: var(--primarybg);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.topblock {
  z-index: 100;
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  background-color: var(--secondarybg);
  font-family: var(--primaryfont);
  border-radius: .75rem;
  flex-flow: column;
  align-items: center;
  width: 95%;
  height: 7.5rem;
  margin-top: .5rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  display: flex;
  position: fixed;
  top: .5rem;
}

.topnav {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  height: 3rem;
  display: flex;
}

.searchbar {
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  background-color: var(--primarybg);
  border-radius: .5rem;
  flex-flow: row;
  align-items: center;
  width: 95%;
  height: 3rem;
  padding-left: .5rem;
  padding-right: .5rem;
  display: flex;
}

.logo, .image {
  border-radius: .25rem;
  width: 2.5rem;
  height: 2.5rem;
}

.logotitle {
  font-family: var(--primaryfont);
  color: var(--secondarytextcolor);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.35rem;
}

.chatwindow {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  font-family: var(--primaryfont);
  flex-flow: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: auto;
  max-height: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  position: relative;
  top: 0;
  bottom: auto;
  overflow: auto;
}

.iconnav {
  border-radius: .5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.searchtext {
  background-color: var(--primarybg);
  width: 100%;
  margin-bottom: 0;
}

.searchinputfield {
  background-color: var(--primarybg);
  border: 0 #000;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
}

.searchform, .success-message, .error-message {
  background-color: var(--primarybg);
}

.bottomnav {
  z-index: 100;
  background-color: var(--secondarybg);
  font-family: var(--primaryfont);
  border-radius: .75rem;
  justify-content: space-around;
  align-items: center;
  width: 95%;
  height: 3rem;
  display: flex;
  position: fixed;
  bottom: .5rem;
}

.logobar {
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  align-items: center;
  display: flex;
}

.div-block {
  justify-content: space-around;
  align-items: center;
  width: 50%;
  height: 2.5rem;
  display: flex;
}

.chatinput {
  z-index: 100;
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  background-color: var(--primarybg);
  font-family: var(--primaryfont);
  border: 1px solid #000;
  border-radius: .5rem;
  justify-content: space-around;
  align-items: center;
  width: 95%;
  height: 3rem;
  padding-left: .25rem;
  padding-right: .25rem;
  display: flex;
  position: fixed;
  bottom: 3.75rem;
}

.chattext {
  background-color: var(--primarybg);
  width: 90%;
  margin-bottom: 0;
}

.chatform {
  background-color: var(--primarybg);
}

.chatinputfield {
  background-color: var(--primarybg);
  border: 0 #000;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
}

.usermessage {
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  display: flex;
}

.usermsgbubble {
  background-color: var(--secondaryaccent);
  border-radius: .5rem;
  width: 65%;
  min-height: 3rem;
  padding: .5rem;
}

.usermsgtext {
  color: var(--secondarytextcolor);
  text-align: left;
  margin-bottom: 0;
  font-weight: 600;
}

.aimessage {
  align-items: center;
  display: flex;
}

.aimsgbubble {
  background-color: var(--primaryaccent);
  border-radius: .5rem;
  width: 65%;
  min-height: 3rem;
  padding: .5rem .5rem .5rem .5em;
}

.aimsgtext {
  color: var(--primarytextcolor);
  text-align: left;
  margin-bottom: 0;
  font-weight: 600;
}

.middleblockchat {
  flex-flow: column;
  width: 95%;
  height: 60%;
  display: flex;
  position: fixed;
  top: 9rem;
}

.middleblockfeed {
  background-color: var(--primarybg);
  flex-flow: column;
  width: 95%;
  height: 75%;
  padding-bottom: 3rem;
  display: flex;
  position: fixed;
  top: 9rem;
}

.postgrid {
  font-family: var(--primaryfont);
  grid-template-rows: minmax(auto, 1fr) auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: row dense;
  width: 100%;
  position: relative;
  overflow: auto;
}

.postcard {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  border-radius: 1rem;
  flex-flow: column;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  align-items: center;
  width: 100%;
  display: flex;
}

.styleimage {
  border-radius: 1rem;
  width: 100%;
}

.postinteractions {
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  align-items: center;
  width: 100%;
  height: 3rem;
  display: flex;
}

.posterdp, .image-2 {
  border-radius: .2rem;
  width: 2rem;
  height: 2rem;
}

@media screen and (max-width: 767px) {
  .postgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 479px) {
  .body {
    font-family: var(--primaryfont);
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    display: flex;
  }

  .iconnav {
    height: 1.5rem;
  }

  .bottomnav {
    position: fixed;
  }

  .chatinput {
    z-index: 100;
    grid-column-gap: .5rem;
    grid-row-gap: .5rem;
    justify-content: space-around;
    position: fixed;
  }

  .chattext {
    width: 75%;
  }

  .chatform {
    margin-left: .5rem;
  }

  .chatinputfield {
    width: 100%;
  }
}


