* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  transition: .2s ease-in-out;
}
*:focus {
  outline: none;
}
* {
    max-width: 100%;
}
.container {
  height: 100vh;
  width: 100vw;
  display: flex;
}
.history {
  width: 25%;
  padding: 1em;
  display: flex;
  flex-direction: column;
}
.history nav {
  height: 3em;
  display: flex;
  align-items: center;
}
.history nav ul {
  display: flex;
  list-style: none;
  gap: 1em;
}
.history nav button[data-active="true"] {
  text-decoration: underline;
  color: #333;
}
.history nav button {
  color: #666;
  font-weight: bold;
  background: transparent;
  border: none;
  display: flex;
  gap: .5em;
}
.filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search {
  height: 2.7em;
  width: 19vw;
  border: 1px solid #999;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  padding: 0 1em;
}
.search input {
  height: 100%;
  width: 100%;
  border: none;
}
#reFetch {
  background: transparent;
  color: #999;
  border: none;
  font-size: 1.2em;
}

.messages {
  flex: 1;
  margin: 2em 0;
  overflow: scroll;
}
.messages::-webkit-scrollbar {
  display: none;
}
.message-item {
  border: 1px solid #f0f0f0;
  border-radius: .8em;
  padding: 1em;
  max-height: 10em;
  margin-bottom: 1em;
  cursor: pointer;
}
.message-item:hover {
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1);
  background: #f0f0f0;
}
.message-item .details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .7em;
}
.message-item .details h2 {
  width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.2em;
  color: #666;
}
.message-item .details p {
  color: #999;
  font-size: .8em;
}
span.text * {
    font-size: 1em;
    color: #999;
}
span.text.unformatted {
    max-height: 6em;
    overflow: hidden;
    display: block;
}
.message-item .text p {
  color: #999;
  font-size: .9em;
}
main {
    flex: 1;
    padding: 1em;
    display: flex
;
    flex-direction: column;
    max-width: 75%;
}
.options {
  align-self: end;
  display: flex;
  gap: 1em;
}
.options img {
  height: 3em;
  width: 3em;
  border-radius: 50%;
}
.compose {
  height: 3.3em;
  width: 10em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border: none;
  background: #444;
  color: #fff;
  border-radius: 9999px;
}
main .content {
  flex: 1;
  border-left: 1px solid #999;
   border-top: 1px solid #999;
   margin-top: 1em;
   border-radius: 1em 0 0 0;
   padding: 1em;
   display: flex;
   flex-direction: column;
   max-height: 85vh;
}
.active-message {
  flex: 1;
}
.compose-box {
    height: 20em;
    width: 70%;
    border-radius: 1em;
    border: 1px solid #999;
    position: fixed;
    bottom: 2em;
    background: #fff;
}

.message-content {
  height:13em;
}
footer {
    height: 4em;
    display: flex
;
    padding: 0 2em;
    align-items: center;
    justify-content: right;
    gap: 1em;
}
footer button {
    height: 2.8em;
    border: none;
    padding: 0 2em;
    /* align-self: end; */
    border-radius: 9999px;
    display: flex
;
    justify-content: center;
    align-items: center;
    justify-self: end;
}
.sendbtn {
  color: #fff;
  background: #444;
}
.draftbtn {
  background: #f0f0f0;
  color: #f20;
  font-weight: bold;
}

#deleteMail {
  background: #f0f0f0;
  border: none;
  height: 3em;
  width: 3em;
  border-radius: 50%;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.date-of-email {
  color: #999;
  font-size: .9em;
}

#emailInput {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #999;
    border-radius: 5px;
    max-width: 10em;
    height: 2.5em;
}
#emailList::-webkit-scrollbar {
  display: none;
}
#emailList {
    margin-top: 0.5em;
    font-size: .8em;
    color: #777;
    flex: 1;
    overflow: scroll;
    max-width: 70%;
    white-space: nowrap;
}

#emailList div {
    display: inline-flex
;
    justify-content: space-between;
    padding: 0.3em 0;
    border: 1px solid #f0f0f0;
    padding: 0 .5em;
    border-radius: 9999px;
    margin-right: .5em;
}

#emailList span {
  color: red;
  margin-left: 0.5em;
  cursor: pointer;
}
.compose-box .emails {
    border-bottom: 1px solid #999;
    height: 3em;
    display: flex
;
align-items: center;
    flex-direction: row-reverse;
    padding: 0 1em;
}
textarea#messageContent {
    height: 100%;
    width: 100%;
    padding: 1em;
    border: none;
    resize: none;
}
font, font * {
    color: #f20 !important;
}
.active-message {
    flex: 1;
    overflow: scroll;
    max-height: 90%;
}
.active-message::-webkit-scrollbar {
  display: none;
}