.home-header {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 100rem;
}

.home-header .welcome-wrapper {
  align-items: flex-start;
  display: flex;
  padding-top: 1rem;
}

.home-header .welcome-wrapper .profile-link {
  align-items: center;
  border-radius: 2.5rem;
  cursor: pointer;
  display: flex;
  margin-right: 1rem;
  padding-right: 1rem;
  text-decoration: none;
  transition: 150ms ease-in-out;
}

.home-header .welcome-wrapper .profile-link:hover,
.home-header .welcome-wrapper .profile-link:focus {
  background-color: #F5EEE840;
}

.home-header .welcome-wrapper .msg-wrapper {
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: .5rem 1rem;
}

.home-header .welcome-wrapper button {
  margin: .5rem 0;
  min-width: 10rem;
  width: auto;
}



.home-wrapper {
  background-color: #fdfeff50;
  border-radius: .6rem;
  display: flex;
  flex-direction: row;
  font-size: 1.4rem;
  height: 40rem;
  margin: 4rem auto;
  max-width: 60rem;
  padding: 2rem;
  position: relative;
}

.home-wrapper.nomax-height {
  height: auto;
}

.home-wrapper .ongoing-wrapper {
  border-right: .1rem solid #43444D;
  min-height: 100%;
  padding-right: 2rem;
  width: 35%;
}

.home-wrapper .ongoing-wrapper .ongoing-games {
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  height: calc(100% - 9rem);
  margin: 2rem 0 1rem;
  overflow: auto;
  width: 100%;
}

.home-wrapper .ongoing-wrapper .ongoing-games button {
  margin: .5rem calc(10% / 6) 0;
  width: 30%;
}

button.game_easy { background-color: #5AC85E; }
button.game_easy:hover, button.game_easy:focus { background-color: #5AC85Eaa; }
button.game_medium { background-color: #5C41FE; }
button.game_medium:hover, button.game_medium:focus { background-color: #5C41FEaa; }
button.game_hard { background-color: #D97344; }
button.game_hard:hover, button.game_hard:focus { background-color: #D97344aa; }
button.bnewgame { border: .4rem solid #41454D90; }

.home-wrapper .ongoing-wrapper button {
  margin: .5rem 0 0;
}

.home-wrapper .mainchat-wrapper {
  flex: 1;
  padding-left: 2rem;
}

.home-wrapper .mainchat-wrapper .chatbig {
  width: 100%;
}

.home-wrapper .mainchat-wrapper .chatbig .flag {
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.home-wrapper .mainchat-wrapper .chatbig .chat-messages {
  height: calc(100% - 10rem); /* with flags */
  height: calc(100% - 8.5rem); /* without flags */
  margin-top: 1rem;
  overflow-y: auto;
  padding: 0 !important;
}

.home-wrapper .mainchat-wrapper .chatbig textarea {
  background-color: #ffffff;
  border-radius: .6rem;
  color: #31333E;
  font-size: 1.2rem;
  line-height: 2rem;
  margin: 1rem 0 0;
  padding: .5rem 1rem;
  width: 100%;
}
