* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f8fa;
  margin: 0;
  padding: 0;
}

a {
  color: #1f5d81;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  grid-area: header;
  background-color: #990000;
  color: white;
  height: 20%;
  width: 100%;
  padding: 10px 20px;
  align-items: center;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;

  h1 {
    font-size: xxx-large;
  }
}

main {
  display: flex;
  flex-direction: column;
  width: 70%;
  justify-self: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

img {
  border-radius: 50%;
  border: 2px solid rgb(31, 30, 30);
  background-color: rgb(119, 206, 216);

  height: 50px;
  width: 50px;
}

.header_profile {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;

  p {
    align-self: center;
    margin: 0;
  }
}

.header_profile:hover {
  cursor: pointer;
}

#homeButton {
  position: fixed;
  top: 20px;
  left: 20px;
  border-radius: 15%;
  border: 2px solid rgb(31, 30, 30);
  background-color: rgb(0, 0, 0);
}

#homeButton:hover {
  cursor: pointer;
}

#usersLink {
  position: fixed;
  top: 30px;
  left: 100px;
  font: large;
  text-decoration: underline;
}

#usersLink:hover {
  color: rgb(193, 193, 193);
  cursor: pointer;
}


/********** BACK TO TOP **********/

#top {
  position: absolute;
  top: 0;
  visibility: hidden;
}

#backToTop {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background-color: #990000;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
}

/********** INPUT **********/

#howlInput {
  width: 100%;
  grid-area: input;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 2px 2px rgb(227, 227, 227);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 50px;
}

#howlInput textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #484646;
  border-radius: 5px;
  resize: none;
}

#howlInput button {
  align-self: flex-end;
  background-color: #990000;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  font-size: large;
  border-radius: 35px;
  border: none;
  box-shadow: 0 0 2px 2px rgb(227, 227, 227);
}


/********** HOWLS **********/

#howlList {
  grid-area: howls;
  width: 100%;
}

.howl {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 2px 2px rgb(227, 227, 227);
  padding: 20px;
  border-radius: 10px;
}

.howl:hover {
  cursor: pointer;
}

.howl:last-child {
  margin-bottom: 0;
}

.howl .user {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  p {
    margin: 0;
  }
}

.howl .user .details {
  display: flex;
  gap: 20px;
  align-items: center;
}

.howl .content {
  margin-bottom: 10px;
}

.howl .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85em;
}


/********** FOOTER **********/

footer {
  border-top: 2px solid #990000;
  background-color: white;
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  bottom: 0;
}