/*---------------------------------------------------------*/

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.87);
  font-size: 16px;
  display: flex;
  flex-direction: column;
}

/*---------------------------------------------------------*/
/*---------------------- Grig layout ----------------------*/
/*---------------------------------------------------------*/

.mainAreaStyle {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "topArea"
    "middleArea"
    "bottomArea";
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.topAreaStyle {
  grid-area: topArea;
}

.middleAreaStyle {
  grid-area: middleArea;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2fr 1fr;
  grid-template-areas:
    "terminalArea"
    "chatArea";
}

.bottomAreaStyle {
  grid-area: bottomArea;
}

.terminalAreaStyle {
  grid-area: terminalArea;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "terminalContainerArea"
    "terminalFormArea";
}

.chatAreaStyle {
  grid-area: chatArea;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "chatContainerArea"
    "chatFormArea";
}

.terminalContainerWrapper {
  grid-area: terminalContainerArea;
  position: relative;
}

.terminalFormAreaStyle {
  grid-area: terminalFormArea;
  align-items: center;
}

.chatContainerWrapper {
  grid-area: chatContainerArea;
  position: relative;
}

.chatFormAreaStyle {
  grid-area: chatFormArea;
  align-items: center;
}

/*---------------------------------------------------------*/

#toolbar .name {
  flex-grow: 1;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0.25rem;
  user-select: none;
}

#toolbar {
  align-items: center;
  overflow: hidden;
}

#toolbar .buttons {
  flex-shrink: 0;
}

form,
#toolbar {
  background: #187fc399;
  padding: 0.25rem;
  display: flex;
  height: 2.25rem;
  box-sizing: border-box;
}

button {
  background: #333;
  border: none;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0.25rem;
  border-radius: 10px;
  outline: none;
  color: #fff;
  height: 29px;
}

button:disabled {
  color: grey;
}

button:hover:not(:disabled) {
  background: #555;
  cursor: pointer;
}

input {
  border: none;
  flex-grow: 1;
  border-radius: 2rem;
  margin: 0.25rem;
  padding: 0 0.5rem;
}

#myName input {
  width: 50%;
}

*:focus {
  outline: none;
}

input::placeholder {
  color: rgba(0, 0, 0, 0.54);
}

#myName {
  color: rgba(0, 0, 0, 0.54);
}

@media only screen and (max-width: 768px) {

  /* For mobile phones: */
  #toolbar .name,
  #myName,
  #myName input::placeholder {
    font-size: 60%;
  }
}

/*---------------------------------------------------------*/

.container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  overflow: auto;
}

.container {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.container>li {
  margin-left: 1em;
  white-space: pre-wrap;
  font-size: 12px;
  font-family: Fixed, monospace;
  overflow-wrap: break-word;
}

.container>.out {
  color: #366ff4;
  /* display: flex; */
  /* justify-content: right; */
  font-weight: bold;
  background-color: #187fc33b !important
}

.container>.in {
  color: #000000;
}

.container>li:nth-child(odd) {
  background: #efefef;
}

/*---------------------------------------------------------*/
/*
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  color: #111;
  font-family: 'Roboto', sans-serif;
}
body {
  display: flex;
  flex-direction: column;
}
*/
.main-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.iframe-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
}

.iframe-wrap div {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 0.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo-link:hover {
  color: #333;
}

.logo-link img {
  width: 350px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
  color: #000;
}

.nav a.active {
  font-weight: 600;
  color: #1a1a1a;
}

.lang {
  margin-left: auto;
}

.lang a {
  margin-left: 0.5rem;
}