* {
  --dark: #2b2d42;
  --grey: #8d99ae;
  --white: #edf2f4;
  --lightRed: #ef233c;
  --darkRed: #d90429;
  margin: 0;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}


body {
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  background-color: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

nav {
  display: flex;
  position: relative;
  top: 0;
  background-color: black;
  justify-content: space-between;
  height: 50px;
  align-items: center;
  box-shadow: 2px 2px 2px white;
}

.left {
  margin-left: 60px;
}

.right {
  margin-right: 60px;
}

.left,
.right {
  display: flex;
  height: 100%;
}

a {
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

a:visited:hover {}

a:hover {
  background-color: var(--lightRed);
}

.content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--grey);
  color: black;
  flex: 1;
}

.content .non-center {}

a {
  color: var(--white);
  text-decoration: none;
}

a:visited {
  color: var(--white);
}

li {
  list-style: none;
}

ul {
  padding: 0;
}

.message-container {
  display: grid;
  background-color: var(--white);
  border: 1px solid black;
  box-shadow: 2px 2px 10px black;
  width: 90%;
  padding: 1rem;
  gap: 20px;
  border-radius: 1rem;
  height: 75vh;
  overflow: scroll;
}

.message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--white);
  height: 80px;
  border-radius: 1rem;
  gap: 3px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.message-text {
  font-size: 1.2rem;
  margin-left: 3%;
}

.written-by {
  margin-right: 20px;
}

.message-form {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.message-form input {
  width: 90%;
  height: 6vh;
  border: 2px solid black;
}

.message-form button {
  background-color: var(--dark);
  color: white;
}

.message-form button:hover {
  cursor: pointer;
  background-color: var(--grey);
  color: black;
  transition: all .3s;
}

.sign-up {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 425px;
  background-color: #FFF;
  border-radius: 10px;
  padding: .75rem;
  gap: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.input {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  padding-top: 1.5rem;

  &+.input {
    margin-top: 1.5rem;
  }
}

.input-label {
  color: #8597a3;
  position: absolute;
  top: 1.5rem;
  transition: .25s ease;
}

.input-field {
  border: 0;
  z-index: 1;
  background-color: transparent;
  border-bottom: 2px solid #eee;
  font: inherit;
  font-size: 1.125rem;
  padding: .25rem 0;

  &:focus,
  &:valid {
    outline: 0;
    border-bottom-color: black;

    &+.input-label {
      color: black;
      transform: translateY(-1.5rem);
    }
  }
}

.action {
  margin-top: 2rem;
}

.action-button {
  font: inherit;
  font-size: 1.25rem;
  padding: 1em;
  width: 100%;
  font-weight: 500;
  background-color: var(--dark);
  border-radius: 6px;
  color: #FFF;
  border: 0;

  &:focus {
    outline: 0;
  }
}

.action-button:hover {
  cursor: pointer;
  background-color: white;
  color: black;
  outline: black 1px solid;
  box-shadow: 2px 2px 2px black;
  transition: background-color .3s;

}

.card-form {
  gap: 10px;
}

input {
  appearance: none;
  border-radius: 0;
}

.join-container {
  display: flex;
  align-items: center;
  gap: 3px;
}

.join,
.join:visited {
  padding: 6px;
  background-color: var(--grey);
  color: var(--darkRed);
}

.join:hover,
.join:visited:hover {
  color: var(--white);
  background-color: var(--lightRed);
  transition: all .2s;
}

.content-2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-pass, .password, .title {
  text-align: center;
}

.content-2 input {
  text-align: center;
  padding: .2rem .7rem .2rem .7rem;
}

.delete-message {
  border: 2px solid black;
  color: black;
}

.delete-message:visited {
  color: black;
}

.delete-message:hover {
  color: white;
}