:root {
  --color-1: #222E39;
  --color-2: #3ECEBF;
  --color-3: #4DB2DF;
  --color-4: #C80000;
  --color-white: #FFFFFF;
  --color-gray: #DBDBDB;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 1.3;
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

h2 {
  color: var(--color-3);
  font-weight: 700;
  margin: 15px 0;
}

@media (min-width: 768px) {
  h2 {
    margin: 20px 0;
  }
}

h3 {
  color: var(--color-2);
  font-weight: 700;
}

.main-container {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--color-1);
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.main-area {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  margin: auto;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 75vh;
}

@media (max-width: 992px) {
  .main-area {
    max-height: none;
  }
}

.main-area .header {
  display: flex;
  padding: 10px;
  border-bottom: solid 1px var(--color-gray);
  gap: 10px;
  height: 61px;
  overflow: auto;
}

.main-area .main-content {
  height: calc(100% - 61px);
}

.main-area .header .btn-help {
  margin-left: auto;
  display: none;
}

.main-area .inner-content {
  display: none;
  height: 100%;
}

.main-area[data-tab="chat"] .inner-content[data-tab="chat"],
.main-area[data-tab="rules"] .inner-content[data-tab="rules"],
.main-area[data-tab="attachment-1"] .inner-content[data-tab="attachment-1"],
.main-area[data-tab="help"] .inner-content[data-tab="help"] {
  display: block;
}

.btn {
  display: inline-block;
  background: var(--color-1);
  border: 0 none;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-white);
  line-height: 1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: solid 2px transparent;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .btn {
    font-size: 16px;
  }
}

.btn:focus {
  outline: none;
  border: solid 2px var(--color-2);
}

.btn:hover,
.main-area[data-tab="chat"] .btn[data-tab="chat"],
.main-area[data-tab="rules"] .btn[data-tab="rules"],
.main-area[data-tab="attachment-1"] .btn[data-tab="attachment-1"],
.main-area[data-tab="help"] .btn[data-tab="help"] {
  background: var(--color-2);
}

.btn-icon {
  padding-left: 38px;
  position: relative;
  height: 40px;
}

.btn-icon.btn-help {
  padding: 0;
  font-size: 0;
  width: 40px;
}

.btn-icon::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.btn-icon.btn-help::before {
  left: 6px;
}

.btn-icon.btn-chat::before {
  background-image: url('../img/chat.svg');
}

.btn-icon.btn-rules::before {
  background-image: url('../img/note.svg');
}

.btn-icon.btn-attachment::before {
  background-image: url('../img/people.svg');
}

.btn-icon.btn-help::before {
  background-image: url('../img/help.svg');
}

@media (max-width: 992px) {
  .btn-icon {
    font-size: 0;
    padding: 10px;
    width: 40px;
    height: 40px;
  }
  
  .btn-icon.btn-help {
    width: 40px;
  }
  
  .btn-icon::before {
    left: 6px;
  }
  
  .main-area[data-tab="chat"] .btn[data-tab="chat"],
  .main-area[data-tab="rules"] .btn[data-tab="rules"],
  .main-area[data-tab="attachment-1"] .btn[data-tab="attachment-1"] {
    font-size: 14px;
    width: auto;
    padding-left: 36px;
  }
}

.chat .messages {
  height: 100%;
  overflow: auto;
  margin: 0 -10px;
  padding: 0 10px;
  position: relative;
}

.chat .messages::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-image: url('../img/loader.svg');
  background-size: contain;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.chat .messages.loaded::before {
  opacity: 0;
}

.chat .message {
  padding: 8px 0;
}

.chat .messages h2 {
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .chat .messages {
    margin: 0 -15px;
    margin-right: -30px;
    padding: 0 15px;
  }
  
  .chat .message {
    padding: 8px 0;
  }
}

.message {
  display: flex;
}

.message .avatar {
  width: 42px;
  min-width: 42px;
  height: 42px;
  background: var(--color-gray);
  border-radius: var(--radius);
}

.message .avatar.avatar-pierrick {
  background-image: url('../img/avatar-m-1.svg');
  background-position: top 5px center;
  background-size: 34px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-jenny {
  background-image: url('../img/avatar-f-1.svg');
  background-position: top 5px center;
  background-size: 34px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-martin {
  background-image: url('../img/avatar-m-2.svg');
  background-position: top 5px center;
  background-size: 34px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-leo {
  background-image: url('../img/avatar-m-3.svg');
  background-position: top 5px center;
  background-size: 34px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-laura {
  background-image: url('../img/avatar-f-2.svg');
  background-position: top 6px center;
  background-size: 38px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-aicrypt {
  background-image: url('../img/pi.svg');
  background-position: center center;
  background-size: 26px auto;
  background-repeat: no-repeat;
}

.message .avatar.avatar-detective {
  background-image: url('../img/detective.svg');
  background-position: top 8px center;
  background-size: 34px auto;
  background-repeat: no-repeat;
}

.message .content {
  width: 100%;
  padding-left: 10px;
}

.message .content .infos {
  display: flex;
  align-items: flex-end;
  margin-bottom: 4px;
}

.message .user {
  font-weight: 700;
  margin-right: 10px;
}

.message .time {
  color: var(--color-gray);
  font-size: 14px;
}

code {
  color: var(--color-4);
  font-size: 14px;
  padding: 0 3px;
  margin: 0 2px;
  border: solid 1px;
  border-radius: 4px;
  line-height: 1;
  position: relative;
  top: -1px;
  white-space: nowrap;
}

.message .text > code:first-child {
  margin-left: 0;
}

.message a {
  color: var(--color-3);
  text-decoration: none;
  border-bottom: solid 1px;
}

.message .images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.message .image {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: solid 1px var(--color-white);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.message .image [data-fslightbox] {
  border: 0 none;
}

[data-fslightbox] {
  cursor: zoom-in;
}

.message .image .download {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0 none;
  background: var(--color-white);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s;
}

.message .image .download::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-mask-image: url('../img/download.svg');
  mask-image: url('../img/download.svg');
  -webkit-mask-size: 18px auto;
  mask-size: 18px auto;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: var(--color-1);
  transition: opacity 0.15s;
}

@media (min-width: 992px) {
  .message .image .download {
    opacity: 0;
    pointer-events: none;
  }

  .message .image:hover .download {
    opacity: 1;
    pointer-events: all;
  }
  
  .message .image .download::before {
    opacity: 0.6;
  }
  
  .message .image .download:hover::before {
    opacity: 1;
  }
}

.message .image img {
  width: auto;
  height: auto;
  max-height: 160px;
  max-width: 100%;
  display: block;
}

.inner-content.chat,
.inner-content.rules,
.inner-content.attachment,
.inner-content.help {
  padding: 0 10px;
  overflow: auto;
}

.inner-content.chat .messages {
  padding-bottom: 15px;
}

@media (min-width: 992px) {
  .inner-content.chat,
  .inner-content.rules,
  .inner-content.attachment,
  .inner-content.help {
    padding: 0 30px;
  }
}

.highlight {
  font-size: 18px;
  background: rgb(77, 178, 223, 0.1);
  line-height: 1.4;
  border-radius: 0;
  margin: 0 -10px;
  padding: 15px 10px;
}

@media (min-width: 992px) {
  .highlight {
    margin: 0 -30px;
    padding: 20px 30px;
  }
}

.highlight h2:first-child,
.highlight h3:first-child {
  margin-top: 0;
}

.highlight p:first-child {
  margin-top: 0;
}

.highlight p:last-child {
  margin-bottom: 0;
}

.table {
  overflow: auto;
}

.table table {
  min-width: 100%;
}

table {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  border: solid 1px #ededed;
  border-radius: 10px;
  border-collapse: separate;
}

table td,
table th {
  padding: 6px 12px;
}

@media (min-width: 992px) {
  table td,
  table th {
    padding: 8px 16px;
  }
}

table th {
  background: rgb(77, 178, 223, 0.1);
  color: var(--color-3);
  font-weight: 700;
  text-align: left;
}

table th:first-child {
  border-radius: 10px 0 0 0;
}

table th:last-child {
  border-radius: 0 10px 0 0;
}

table tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

table tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

table tbody tr:nth-of-type(odd) {
  background: #EFEFEF;
}

table tbody tr:nth-of-type(even) {
  background: #F7F7F7;
}

.attachment-1 .yellow_heart,
.attachment-1 .star,
.attachment-1 .sunny,
.attachment-1 .zap {
  width: 20px;
  height: 20px;
  display: inline-block;
  font-size: 0;
  vertical-align: middle;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.attachment-1 .yellow_heart {
  background-image: url('../img/heart.svg');
}

.attachment-1 .star {
  background-image: url('../img/stars.svg');
}

.attachment-1 .sunny {
  background-image: url('../img/sun.svg');
}

.attachment-1 .zap {
  background-image: url('../img/zap.svg');
}

#pseudoSection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px;
}

#pseudoSection .wrapper {
  background: #fff;
  padding: 20px 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  justify-content: center;
  align-items: center;
}

#pseudoSection label {
  font-weight: 700;
  margin-bottom: 10px;
}

#pseudoSection input {
  padding: 8px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  border: solid 1px #dbdbdb;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#pseudoSection input:focus {
  outline: none;
}

#pseudoSection p {
  color: gray;
  text-align: center;
  margin-bottom: 0;
  font-size: 14px;
  padding: 0 30px;
}