:root {
  --darkBg: #9dbf9e;
  --font-size-med: 20px;
  --font-size-small: 16px;
  --font-size-large: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Press Start 2P", "Rampart One";
}

::before,
::after {
  box-sizing: inherit;
}

body {
  font-size: var(--font-size-med);
  button {
    cursor: pointer;
  }
}
@font-face {
  font-family: "Rampart One";
  src:
    url("./fonts/RampartOne-Regular.woff2") format("woff2"),
    url("./fonts/RampartOne-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src:
    url("./fonts/PressStart2P-Regular.woff2") format("woff2"),
    url("./fonts/PressStart2P-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem;
  height: 100dvh;
}
/* ---------- header(partial)------------------- */

.appName {
  text-decoration: none;
  color: inherit;
}

.profileStatus {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: var(--font-size-small);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--darkBg);
  .loginAnchor {
    color: purple;
  }
}

.statusBox {
  border: 1px solid black;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  position: relative;
  cursor: pointer;

  span {
    padding: 0.5rem;
  }
  span:hover {
    background-color: grey;
    color: white;
  }
}

.invisibleBox {
  position: absolute;
  top: 110%;
  padding: 0.5rem;
  text-align: center;
  display: none;
  opacity: 0;
  left: 50%;
  background-color: grey;
  color: white;
  width: max-content;
  transform: translateX(-50%);
  font-size: var(--font-size-med);
  line-height: 20px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  &:hover {
    color: black;
  }
}

.showDropDown {
  display: block;
  opacity: 1;
}

/* -------------------- messeges(partials) ----------------- */
.messageContainer {
  display: flex;
  width: 100%;
  flex-direction: column;
  box-sizing: border-box;
  gap: 2rem;
  border: 2px solid skyblue;
  padding: 1rem;
  flex: 0.8;
  overflow: auto;

  h3 {
    align-self: center;
  }

  .authorInfo {
    font-size: var(--font-size-small);
  }
  .msg {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 2px solid green;
    padding: 1rem;
  }

  .messageBox {
    line-height: 2rem;
  }

  .deleteMsgBtn {
    padding: 5px;
    font-size: 10px;
  }
}

.guestLogInBox {
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: var(--font-size-small);
}
/* ---------------- addNewMessage -------------------- */

.sendMsgForm {
  width: 100%;
}
.messageBoxContainer {
  margin-top: 3px;
  border: 1px solid darkgreen;
  width: 100%;
  display: flex;
  height: 4rem;
  .messageInput {
    width: 100%;
    padding-left: 10px;
  }
  #sendButton {
    width: 30%;
    cursor: pointer;
  }
}

@media screen and (max-width: 725px) {
  * {
    font-size: 18px;
  }
  main {
    padding: 1rem;
  }
  .header {
    justify-content: space-between;
    .profileStatus {
      display: flex;
      gap: 4px;
      flex-direction: column;
      .logoutAnchor {
        font-family: monospace;
      }
      .headerUsername {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 677px) {
  .guestLogInBox {
    p {
      display: none;
    }
  }
}
