/********** GENERAL STYLES **********/

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

header {
  background-color: #990000;
  color: white;
  font-size: 30px;
  text-align: center;
  padding: 15px;

  position: sticky;
  top: 0;
}

.container {
  background-color: white;
  border-radius: 20px;
  padding: 15px;
}




/********** BACK TO TOP **********/
#backToTop {
  background-color: #990000;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  padding: 15px;

  position: fixed;
  bottom: 50px;
  right: 15px;
}

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

/********** MAIN **********/
main {
  display: grid; 
  grid-template-columns: auto 1fr; 
  grid-template-rows: auto 1.5fr; 
  gap: 20px 20px; 
  grid-template-areas: 
    "nav input"
    "nav howls"; 

  max-width: 800px;
  margin: 20px auto;
}

/********** NAVIGATION **********/
nav {
  grid-area: nav;
  height: 20%;
  box-shadow: 0 0 20px rgb(203, 203, 203);

  ul {
    list-style: none;
    text-align: left;padding-left: 0;
    width: 200px;
  }
  li {
    border-bottom: 1px solid black;
    padding: 10px;
  }
}


/********** INPUT **********/
#howl-input {
  grid-area: input;
  text-align: right;
  box-shadow: 0 0 20px rgb(203, 203, 203);

  textarea {
    display:block;
    width: 100%;
    height:100px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-color: #c9c8c8;
  }
}

button {
  color: #990000;
  border-radius: 7px;
  border: solid #990000;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
}


/********** HOWLS **********/
.user {
  font-weight: bold;
  padding: 5px;
  font-size: 20px;
}

.content{
  padding: 5px;
  font-size: 20px;
}

.actions {
  text-align: right;
  font-size: 20px;
  word-spacing: 20px;
}

#howl-list {
  grid-area: howls;
  display: flex;
  gap: 20px;

  flex-direction: column;
}


/********** FOOTER **********/
footer {
  background-color: rgb(255, 255, 255);
  text-align: center;
  border-top: 3px solid #990000;

  padding: 10px;
  margin-top: 10px;
}

input {
  width: 100%;
  padding: 5px;
  margin: 10px;
  border-radius: 5px;
}

#profileArea {
  grid-area: input;
}

#avatar {
  border-radius: 50%;
}
