* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

body{
  overflow-x: hidden;
}

#mainNav {
  display: flex;
  justify-content: space-between;
  padding: 1em 0;
}

#mainNav a {
  font-size: 3em;
  color: black;
  text-decoration: none;
  font-weight: 600;
  margin: 0 .5em;
  transition: transform .75s ease;
}

#mainNav a:first-child {
  transform: translateX(-1.4em);
}

#mainNav a:first-child:hover {
  transform: translateX(0);
}

#mainNav a:first-child::before {
  position: relative;
  font-family: 'Font Awesome 5 Free';
  content:"\f27a";
  font-size: 0.8em;
  padding-right: .5em;
}

#mainNav a:last-child {
  transform: translateX(1.5em);
  position: relative;
}

#mainNav a:last-child:hover {
  transform: translateX(0);
}

#mainNav a:last-child::after {
  position: relative;
  font-family: 'Font Awesome 5 Free';
  content:"\f061";
  padding-left: .5em;
}

#bienvenida {
  margin: 2em 0;
  text-align: center;
}

#footerSeparator {
  width: 100vw;
  height: 3.5em;
  pointer-events: none;
  margin-top: 2em;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 3.5em;

  padding: 1em;
  font-weight: 400;
  color: white;
  background: black;
}

#contenido-autor {
  min-height: 80vh;
  display: grid;
  place-items: center;
}

#grid-autor {
  width: 60%;
  display: grid;
  gap: 1em;
  column-gap: 3em;
  grid-template-columns: auto 1fr;
  grid-template-rows: 10% repeat(4, auto);
}

#foto-autor {
  width: 400px;
  border-radius: 50%;
  grid-row: 1 / 6;
}

#creado {
  align-self: flex-end;
}

#grid-autor h2 {
  font-size: 2.5em;
}

#contenidoPosts {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#todosPosts {
  margin: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 4em;
  align-items: flex-start;
  justify-content: center;
}

.postShow {
  display: flex;
  width: 350px;
  height: 350px;
  background: white;
  flex-direction: column;
  align-items: center;
  border: 2px solid black;
  padding: 1em;
  gap: 1em;
}

.postShow h1 {
  font-size: 2em;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.postShow img {
  width: 200px;
}

.button {
  text-decoration: none;
  color: black;
  background: white;
  padding: .25em;
  border: 1px solid black;
  transition: all .25s ease;
  cursor: pointer;
}

#botonesPost {
  display: flex;
  flex-direction: row;
  gap: .5em;
  width: 100%;
  justify-content: space-between;
}

.botonPost {
  text-align: center;
  width: 100%;
}

.button:hover {
  background: black;
  color: white;
}

#contenidoForm {
  display: grid;
  place-items: center;
  margin-top: 4em;
}

.formPost {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
}

.formPost label {
  font-size: 2em;
  margin-bottom: .25em;
}

input[type=text] {
  border: none;
  font-size: 1.1em;
  border-bottom: 1px solid black;
  outline: none;
}

textarea {
  border: 1px solid black;
  border-radius: 10px;
  padding: .25em;
  resize: none;
  width: 600px;
  height: 200px;
  outline: none;
}

#botonesForm {
  display: flex;
  justify-content: flex-end;
  gap: 2em;
}

.botonForm {
  font-size: 1em;
  text-align: center;
  width: 5em;
}

.postShowView {
  display: none;
}

#todoShow {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  margin: 4em 8em;
}

#todoShow img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 400px;
  margin-right: 2em;
}

#userNumPostShow {
  color: black;
  font-weight: 550;
}

#pagNav {
  margin: 2em auto;
  width: fit-content;
  display: flex;
  gap: .1em;
  justify-content: center;
  align-items: center;
  padding: .1em;
}

#pagNav a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  color: black;
}

.notClickable {
  pointer-events: none;
  cursor: default;
  opacity: .25;
}

#pagNav a.currentPage {
  background: black;
  color: white;
  border-radius: 50%;
}

#alertBodyTitle {
  position: absolute;
  top: 7em;
  left: 50%;
  transform: translateX(-50%);
  padding: 1em;
  display: inline-block;
  background: white;
  border: 1px solid black;
  transition: all 1s ease;
}

.closeAlert {
  position: absolute;
  top: -5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

#loginShow {
  position: absolute;
  top: 7em;
  right: 1.25em;
  display: inline-block;
}

#loginShow a {
  text-decoration: none;
  padding: .5em;
}

#usernameShow {
  color: black;
}

.loginForm {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
}

.loginForm input {
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 2px solid black;
}

.contenidoFormLogin {
  margin-top: 6em;
}

#todoUserShow {
  margin-top: 6em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5em;
}

#contenidoUserShow {
  display: flex;
  flex-flow: column;
  gap: 1em;
}

#contenidoUserShow h1 {
  font-size: 1.5em;
}

#contenidoUserPosts {
  display: flex;
  flex-flow: column;
  gap: 1em;  
}

#contenidoUserPosts h1 {
  font-size: 1.5em;
}

#todoUserIndex {
  margin-top: 6em;
  display: grid;
  place-items: center;
}

#contenidoUserIndex {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 2em;
  max-width: clamp(80vw, 60%, 90vw);
  justify-content: center;
}

#userUsername p {
  margin-bottom: 1em;
}

#userUsername a {
  color: black;
}

.user {
  padding: 1em;
  background: white;
  border: 2px solid black;
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.user #profilePicture {
  height: 100px;
  width: 100px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.user img {
  height: 100%;
  width: auto;
}

.user a {
  text-decoration: none;
}

#todoUserNewEdit {
  margin-top: 6em;
  display: grid;
  place-items: center;
}

#contenidoUserNewEdit {
  display: flex;
  flex-flow: column;
  gap: 1em;
}

#formUsername {
  display: flex;
  flex-direction: column;
  gap: .5em;
}

#formUsernameShow {
  font-size: 1.5em;
}

#formUsername label {
  font-size: 1.2em;
  font-weight: 500;
}

#formUsernameEdit {
  display: flex;
  flex-flow: column;
  gap: .5em;
}

#formPassword {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
  gap: .5em;
}

#formPassword label {
  font-size: 1.2em;
  font-weight: 500;
}

#contenidoUserNewEdit input[type=text],
#contenidoUserNewEdit input[type=password],
#contenidoUserNewEdit input[type=email] {
  border: none;
  border-bottom: 1px solid black;
  outline: none;
  background: transparent;
}

#contenidoUserNewEdit input[type=email] {
  font-size: 1em;
  font-weight: 400;
}

#botonesUserNew {
  display: flex;
  gap: .5em;
}

#botonesUserNew input {
  font-size: 1em;
}

#searchContent {
  /* transform: translateX(-23em); */
  margin-left: 1em;
  transition: all 1.5s ease;
}

#searchIcon:hover {
  cursor: pointer;
}

@media only screen and (max-width: 600px) {

  #mainNav {
    margin-bottom: 2em;
  }

  #grid-autor {
    display: grid;
    width: 80%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    gap: 1.5em;
  }

  #grid-autor > #creado {
    text-align: center;
  }

  #grid-autor p {
    text-align: justify;
  }

  #grid-autor h2 {
    font-size: 2em;
    text-align: center;
  }

  #foto-autor {
    width: 300px;
    grid-row: 1 / 2;
    place-self: center;
  }

  footer {
    margin-top: 2em;
    position: relative;
  }

}