/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 4 version
*/

@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body, html {
    height: 100%;
    scroll-behavior: smooth;
    -ms-scroll-snap-type: y mandatory;
        scroll-snap-type: y mandatory;
	  font: 400 18px 'PT Sans Caption', sans-serif;
    margin: 0;
    background-color: #B2D59B;
    /* background-color: white; */
    color: white;
}

html::-webkit-scrollbar {
    display: none;
    overflow: hidden;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

* {
    scrollbar-width: none;
}

@media screen and (max-width: 680px) {
  .desc {
    display: none;
  }
}

br.mob {
  display: none;
}

@media screen and (max-width: 680px) {
  br.mob {
    display: block;
  }
}

section {
    scroll-snap-align: start;
    height: 100%;
    display: -ms-grid;
    display: grid;
    justify-items: center;
}

@media screen and (max-width: 680px) {
  section {
    scroll-snap-align: none;
  }

  section#main {
    height: auto;
  }

  section#chat {
    height: 100%;
    -ms-grid-rows: 0 90% 10%;
    grid-template-rows: 0 90% 10%;
  }
}

#h1 {
    display: -ms-grid;
    display: grid;
    -ms-flex-line-pack: start;
        align-content: start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    max-width: 1200px;
    width: 65%;
    height: 5em;
    background-color: #97cc75;
    margin-top: 4%;
    border-radius: 4vw;
    font-size: 64px;
    -webkit-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.25);
            box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 1600px) {
  #h1{
    margin-top: 2%;
  }

  #h2 {
    margin: 0;
  }
}

@media screen and (max-width: 1445px) {
  #h1 {
    font-size: 48px;
  }
}

@media screen and (max-width: 1100px) {
  #h1 {
    font-size: 36px;
  }
}

@media screen and (max-width: 680px) {
    #h1 {
      width: 100%;
      border-radius: 0;
      margin-top: 0;
      font-size: 1.4em;
      height: 6em;
      -webkit-box-shadow: inset 0px 0px 8px 4px rgba(0, 0, 0, 0.25);
              box-shadow: inset 0px 0px 8px 4px rgba(0, 0, 0, 0.25);
    }
}

@media screen and (min-width: 2000px) {
  #h1 {
    font-size: calc(4vw - 4px);
  }
}

h1 {
    margin: 2vw 0;
    color: #3F9606;
    display: block;
    text-align: left;
    min-block-size: 100%;
}

@media screen and (max-width: 680px) {
    h1 {
      padding: 0.5em 0;
    }
}

#h2 {
    text-align: center;
    font-size: calc(1.2vw + 2px);
}

@media screen and (max-width: 680px) {
  #h2 {
    font-size: calc(2vw + 2px);
    -ms-flex-line-pack: start;
        align-content: start;
  }
}

h2 {
    margin-top: 2rem;
}

@media screen and (max-width: 680px) {
  h2 {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 680px) {
  h2 span {
    padding-top: 10px;
  }
}

#cta {
    text-align: center;
    color: #3F9606;
    font-weight: bold;
    font-size: calc(1vw + 6px);
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
}

@media screen and (max-width: 680px) {
  #cta {
    font-size: calc(2vw + 12px);
  }
}

#cta .action {
    font-size: calc(2vw + 12px);
}

@media screen and (max-width: 680px) {
  #cta .action {
    font-size: calc(2vw + 36px)
  }
}

#pointer {
    width: 8vw;
    height: auto;
    fill: white;
}

@media screen and (max-width: 680px) {
  #pointer {
    display: none;
  }
}

#chat .messages-box {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 75px auto;
    grid-template-rows: 75px auto;
    z-index: 5;
    max-width: 1200px;
    width: 65%;
    height: 60vh;
    background-color: #97cc75;
    /* border-radius: 30px; */
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 680px) {
  #chat .messages-box {
    width: 100%;
    border-radius: 0;
    height: auto;
  }
}

.messages-box .headline {
    display: -ms-grid;
    display: grid;
    position: relative;
    z-index: 5;
    -ms-grid-columns:85px auto;
    grid-template-columns:85px auto;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    background-color: #6bbc36;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    height: 75px;
    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);

}

@media screen and (max-width: 680px) {
  .messages-box .headline {
    border-radius: 0;
  }
}

.messages-box .headline img {
  width: 60px;
  margin-left: 15px;
  margin-top: 2px;
}

.messages-box .headline .name {
  font-weight: bold;
}

.messages-box .headline .sound {
  
}

.messages-box .messages {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  align-content: flex-start;
  overflow: scroll;
  position: relative;
  z-index: 4;
  scrollbar-width: thin;
  overflow-x: hidden;
  scrollbar-color: #58B61B #B2D59B;
}

.messages-box .messages::-webkit-scrollbar {
  width: 10px;
  background-color: #B2D59B;
}

.messages-box .messages::-webkit-scrollbar-thumb {
  background-color: #58B61B;
}

.messages-box .messages::-webkit-scrollbar:horizontal {
  display: none;
}


.messages-box .messages span {
  background-color: #58B61B;
  padding: 10px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 40vw;
  margin-top: 20px;
  border-radius: 10px;
  position: relative;
  height: -webkit-min-content;
  height: -moz-min-content;
  height: min-content;
  font: 16px 'Roboto';
  overflow-wrap: break-word;

}

@media screen and (max-width: 680px) {
  .messages-box .messages span {
    max-width: 60vw;
  }
}

.timestamp {
  text-align: right;
  margin: 5px 0 0 0;
  font-size: small;
  color:rgba(255, 255, 255, 0.50);
}

@media screen and (max-width: 680px) {
  .messages-box .messages span {
    font-size: 12px;
  }
}

.messages-box .messages span.sent {
  margin-left: 20px;
  border-bottom-left-radius: 0;
}

.messages-box .messages span.sent:before {
  content: ' ';
	position: absolute;
	width: 0;
	height: 0;
	left: 0;
  bottom: 0;
  top: 100%;
  border: 8px solid;
	border-color: #58B61B transparent transparent #58B61B;
}

.messages-box .messages span.received {
  background-color: #ff9900;
  -ms-grid-column-align: end;
      justify-self: end;
  margin-right: 20px;
  border-bottom-right-radius: 0;
}

.messages-box .messages span.received:before {
  content: ' ';
  position: absolute;
  width: 0;
  height: 0;
  right: 0;
  top: 100%;
  border: 8px solid;
  border-color: #ff9900 #ff9900 transparent transparent;
}

#chat .message-input-box {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 90% 10%;
  grid-template-columns: 90% 10%;
  max-width: 1200px;
  width: 65%;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
  background-color: #97cc75;
  border-radius: 30px;
  margin-top: -4%;
}



@media screen and (max-width: 680px) {
  #chat .message-input-box {
    width: 100%;
    border-radius: 0;
    height: auto;
    margin-top: 0;
  }
}

.message-input-box textarea {
  border-radius: 30px 0 0 30px;
  border: 0;
  height: auto;
  outline: none;
  resize: vertical;
  padding: 2%;
  background-color: inherit;
  margin: 0;
  -webkit-box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.25);
          box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.message-input-box button {
  /* justify-self: flex-end; */
  border-radius: 0 30px 30px 0;
  border: 0;
  background-color: inherit;
  /* box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); */
  width: 100%;
}

@media screen and (max-width: 680px) {
  #chat .message-input-box,
  .message-input-box textarea,
  .message-input-box button {
    border-radius: 0;
  }
}

@media screen and (max-width: 680px) {
  #chat .message-input-box {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 90% 10%;
    grid-template-columns: 90% 10%;
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

@media screen and (max-width: 680px) {
  .message-input-box textarea {
    width: 96%;
    -webkit-box-shadow: inset 0 0 2px 1px rgba(0, 0, 0, 0.25);
            box-shadow: inset 0 0 2px 1px rgba(0, 0, 0, 0.25);
  }
}

@media screen and (max-width: 680px) {
  .message-input-box button {
    margin: 0;
    padding: 0;
  }
}

.message-input-box button svg {
  width: 70%;
}

@media screen and (max-width: 680px) {

}

.writing-status {
  opacity: 60%;
  font-size: small;
}

.hidden {
  display: none;
}

a.tg {
  font-weight: 600;
  color: #2AABEE;
}

a.tg:visited {
  color: #2AABEE;
}

@media screen and (max-width:680px) {
  #h2 p {
    font-size: 14px;
  }
}
