* {
  box-sizing: border-box;
}

body {
  background-color: #f5f8fa;
  margin: 0;
  padding-top: 80px;
  padding-bottom: 25px;
}

.navbar {
  background-color: #990000;
}

.main-content {
    width: 50%;
}

@media screen and (max-width: 600px) {
    .main-content {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
  #backToTop {
    display: none;
  }
  
}

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

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

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

/********** NAVIGATION **********/

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1;
}

.container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#profile-link.nav-link {
  padding-top: 0;
  padding-bottom: 0;
}

#user {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#user-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  background-color: white;
}

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

#howl-input {
  width: 100%;
  grid-area: input;
}

#howlForm {
  display: flex;
  flex-direction: column;
}

#howlForm textarea, #howlForm input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: none;
}

#howlForm button {
  align-self: flex-end;
  background-color: #f5f8fa;
  border: 2px solid #990000;
  color: #990000;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
}


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

#howl-list {
  grid-area: howls;
  width: 100%;
  margin-bottom: 40px;
}

.howl {
  margin-bottom: 15px;
}

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

.howl-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.follow-content {
  display: flex;
  flex-direction: column;
  align-items: space-between;
  justify-content: center;
  padding: 0px 10px 0px 10px;
}

.howl-header, .follow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#expand-follows {
  width: 20px;
  cursor: pointer;
}

#follows-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.howl-profile-info, .follow-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.howl-profile-img, .follow-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
}

.howl-profile-name, .howl-profile-username, .follow-profile-name, .follow-profile-username, .follow-header h1 {
  margin: 0;
  padding: 0;
}

.howl-profile-name, .follow-profile-name {
  color: black;
}

.howl-profile-username, .follow-profile-username {
  color: gray;
}

.howl-datetime {
  font-weight: normal;
}

.howl-profile-link, .follow-profile-link {
  text-decoration: none;

  &:hover {
    text-decoration: none;
  }
}

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

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