@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
    margin: 20px;
    padding: 20px;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 50px;
    overflow: hidden; 
    /*background-color: #ededed;*/
    background-color: #1d2d2d;
}

header {
    margin: 0px;
    position: fixed;
    display: flex;
    padding: 50px 100px;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    background: transparent;
  }
  
  header.sticky {
    padding: 40px 100px;
    background: #f8f8f8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  
  header ul {
    position: relative;
    display: flex;
    list-style: none;
  }
  
  header ul li a {
    position: relative;
    display: inline-block;
    margin: 0 15px;
    text-decoration: none;
    color: #28764f;
  }

.control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
}

#startBtn {
  position: absolute;
  right:74.5%;
}

#stopBtn {
  position: absolute;
  right:61.5%;
}

button {
    font-family: "DM Sans", sans-serif;
    border-radius: 5px;
    background-color: var(--green);
    color: white;
    border: none;
    padding: 10px;
    margin-left: 30px;
    margin: 10px 5px;
    width: 150px;
    height: 60px;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, background 0.3s;
}

button:disabled {
    background: #a8a8a8;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: #216844;
  transform: scale(1.05);
}

button:hover::after {
  z-index: 1;
  transform: scale(1.2);
}

button::after, button::after {
  transition: transform 1s;
}


header .logo {
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  color: #28764f;
  position: sticky;
  z-index: 1000;
}
  
::selection {
  background: #28764f;
  color: #ffffff;
}

video {
    background-color: #a8a8a8 !important;
    width: 80vh;
    height: 45vh;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

.container {
    margin-left: 50px;
    margin-top: 20vh; /*PLS CHANGE*/
    display: flex;
    flex-direction: column;
}

.status-container {
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 40px;
    width: 45%;
    margin: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


header.menu-active {
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header.menu-active .logo {
  color: #28764f;
}

header.menu-active ul li a {
  color: #28764f;
}

header:hover,
header ul li a:hover,
.logo:hover,
.toggle:hover {
  color: #1d623f;
}

@media (max-width: 991px) {
  header,
  header.sticky {
    padding: 20px 50px;
    z-index: 1000;
  }

  header img {
    display: none;
  }

  header .logo {
    margin-left: 20px;
  }

  .menu {
    display: block;
    position: fixed;
    top: -100%; 
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 50px 50px;
    text-align: center;
    background: #fff;
    transition: top 0.5s ease-in-out;
    z-index: 999;
  }

  .menu.active {
    top: 75px; 
  }

  header ul li a {
    margin: 10px;
    font-size: 20px;
    color: #28764f;
  }
}

:root {
  --grey: #cccccc;
  --green: #28764f;

}

::-webkit-scrollbar {
  visibility: hidden;
}

.chat-window {
  margin-right:90px;
  box-shadow: none;
  border-radius: 20px;
  position: absolute;
  margin-top: 15vh;
  right: 20px;
  height: 360px;
  width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 10px;
  background-color: #293f36;

  * {
      font-family: "DM Sans", sans-serif;
      /*margin-top: 150px;*/
  }


  .chat {
      flex: 1;
      padding: 0 8px;
      overflow-y: scroll;
      margin-left: 5px;

      p {
          border-radius: 20px;
          width: 80%;
          padding: 8px 0;
          margin: 1px 0;
          font-size: 16px;
          line-height: 1.2;
      }

      div.model {
          margin-bottom: 10px;
          p {
              background-color: var(--grey);
              padding: 16px;
          }
      }

      div.user {
          margin-bottom: 10px;
          display: flex;
          justify-content: flex-end;
          word-wrap: break-word;
          p {
              background-color: var(--green);
              color: white;
              padding: 16px;
              }
          }
  }

  .input-area {
      height: 70px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 8px;
      border-top: 1px solid #3d574c;
      background-color: #3d574c;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;

      input {
          height: 40px;
          flex: 1;
          border: none;
          background-color: var(--grey);
          border-radius: 20px;
          padding-left: 20px;
          font-size: 16px;
      }

      input:focus {
          outline: none;
      }

      button {
          height: 40px;
          width: 40px;
          border-radius: 100%;
          border: none;
          margin-left: 12px;
          background-color: var(--green);
          color: white;
          display: flex;
          justify-content: center;
          align-items: center;
      }

      button:hover:not(:disabled) {
        background: #216844;
    }
  }
}