/* Ressetings */

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

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* General CSS */

body {
  font-family:
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg);
  color: var(--text);

  /* Variables */
  --bg: #0f0f0f;
  --bg-lighter: #2a2929;
  --text: #fff;
  --primary: #ffc805;
}

html {
  font-size: 1.2rem;
}

.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding-inline: 8rem;
}

.header,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}
.header {
  border-bottom: 2px solid var(--bg-lighter);
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  border-bottom: 0.2rem solid var(--primary);
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
}

.header .buttons {
  display: flex;
  gap: 0.5rem;
}

a {
  text-decoration: none;
}

.button {
  font-weight: 600;

  border: 0.125rem solid var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transition:
    ease 0.4s background-color,
    ease 0.4s color;
  background-color: transparent;
  color: var(--primary);
  cursor: pointer;
}

.button:hover {
  background-color: var(--primary);
  color: var(--bg);
}

.footer {
  border-top: 2px solid var(--bg-lighter);
}

.footer a {
  display: flex;
  gap: 0.5ch;
  color: var(--primary);
  margin: auto;
  align-items: center;
}

.footer svg {
  max-width: 1.2rem;
  transition: 0.25s transform;
}

.footer a:hover svg {
  transform: scale(1.15);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.login-notification,
.get-member-notification {
  background-color: var(--primary);
  color: var(--bg);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid var(--bg-lighter);
  width: 32rem;
  border-radius: 0.75rem;
}

.login-notification a,
.get-member-notification .membership {
  color: var(--bg-lighter);
  text-decoration: underline;
  cursor: pointer;
}

.get-member-notification {
  margin-top: 1rem;
}

.empty {
  margin: auto;
}

.form {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 24rem;
  border: 0.125rem solid var(--primary);
  padding: 1.5rem;
  line-height: 1.2;
  border-radius: 0.5rem;
  justify-items: center;
}

.form h1 {
  text-align: center;
  font-size: 1.4rem;
}

.form p input:not([type="checkbox"]),
.form p textarea {
  display: block;
  width: 100%;
  background-color: transparent;
  border: 1.5px solid var(--bg-lighter);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  color: var(--text);
  padding: 0.25rem 0.5rem;
  resize: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.form p textarea::-webkit-scrollbar {
  display: none;
}
.form p:has(input:not([type="checkbox"])) label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form p:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0 0.125rem;
  line-height: 1;
}

.form p input[type="checkbox"] {
  width: 0.85rem;
  aspect-ratio: 1;
}

.sign-in-error {
  display: flex;
  gap: 0.5ch;
}

.sign-in-error svg {
  flex: none;
}

.menu {
  position: relative;
}

.expand {
  display: flex;
  background-color: transparent;
  border: none;
  color: var(--primary);
  font-weight: 500;
  gap: 0.25ch;
  cursor: pointer;
}

.options {
  display: flex;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  position: absolute;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 100%;
  list-style: none;
  background-color: var(--bg-lighter);
  border-radius: 0.25rem;
  padding: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  will-change: transform, opacity;
  transition:
    0.25s transform,
    0.25s opacity;
}

.options a {
  display: block;
  text-align: center;
  color: var(--primary);
  min-width: 100%;
  border-radius: 0.25rem;
  padding: 0.125rem 0.25rem;
  transition: 0.25s background-color;
  text-wrap: nowrap;
}

.options #logout {
  color: rgb(255, 26, 26);
}

.options a:hover {
  background-color: var(--bg);
}
.menu[aria-expanded="true"] .options {
  transform: scaleY(1);
  opacity: 1;
}

.menu svg {
  will-change: transform;
  transition: 0.25s transform;
}

.menu[aria-expanded="true"] svg {
  transform: rotate(0.5turn);
}

.posts {
  margin-top: 1rem;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.post {
  width: 32rem;
  border: 0.125rem solid var(--bg-lighter);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  line-height: 1.2;
  position: relative;
}

.post .fullname {
  font-weight: 600;
  color: var(--primary);
}

.post .info {
  font-size: 0.9rem;
  color: var(--text);
}

.post .title {
  margin-block: 0.5rem;
  font-size: 1.2rem;
}

.post .desc {
  line-height: 1.5;
  font-size: 0.9rem;
}

.post .deletePost {
  width: 2rem;
  aspect-ratio: 1;
  position: absolute;
  cursor: pointer;
  right: 0;
  bottom: 0;
  background-color: transparent;
  border: none;
  color: var(--primary);
  padding: 0.25rem;
  margin: 0.25rem;
  border-radius: 0.25rem;
  will-change: background-color;
  transition: 0.25s background-color;
}

.post .deletePost:hover {
  background-color: var(--bg-lighter);
}