* {
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
}

.chat {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.chat__messages {
  height: 400px;
  overflow-y: scroll;
  padding: 10px;
}

.chat__input {
  display: flex;
  padding: 10px;
  background-color: #000;
  /* position: absolute; */
  bottom: 0;
  left: 0;
  width: 100%;
}

.chat__input-field {
  flex: 1;
  border: none;
  padding: 5px;
  font-size: 16px;
  background-color: #000;
  color: #fff;
  outline: none;
}

.chat__send-button {
  border: none;
  background-color: #949494 ;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 5px;
  outline: none;
}

.chat__message {
  margin-bottom: 5px;
  animation: typing 0.5s steps(30, end) 1s forwards;
}

.chat__message-sender {
  font-weight: bold;
  color: #00cd00;
}

.chat__message-status {
  font-weight: bold;
  color: #ff0000;
}

.chat__message-content {
  display: inline-block;
}

.chat__message-mission {
  display: inline-block;
  font-weight: bold;
  color: #ff0000;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .chat {
    margin: 20px;
    border-width: 1px;
  }
}

/* Toto je přidaný styl */
.chat__messages {
  height: 400px;
  overflow-y: scroll;
  padding: 10px;
  overflow-x: hidden;
}