/* TODO */

/* From Day4 ScratchPad Activity */

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

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  background-color: white;
  /* border: 1px solid black; */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.05);
}

/********** HEADER **********/
header {
  background-color: #990000;
  color: white;
  font-size: 25px;
  text-align: center;
  padding: 10px;
  position: sticky;
  top:0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

h1 {
  font-weight: bold;
  flex-grow: 1;
  align-items: center;
}

h1 a {
  color: white;
  text-decoration: none;
}

h1 a:hover {
  color: white;
  text-decoration: none;
}

#user {
  align-items: flex-end;
  justify-content: center;
  font-size: 16px;
}

.left-space {
  width: 170px;
}

/********** MAIN **********/
main {
  background-color: f5f8fa;
  /* display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 
    "sidebar input"
    "sidebar list"; */
  gap: 15px;
  margin: 15px auto;
  width: 700px;
  flex: 1; 
}

/********** BACK TO TOP **********/
#backToTop {
  position:fixed;
  bottom: 75px;
  right: 15px;
  background-color: #990000;
  color: white;
  padding: 10px;
  border-radius: 5px;

}

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

/********** NAVIGATION **********/
nav {
  background-color: white;
  grid-area: sidebar;
  width: 200px;
  height: fit-content;
  list-style-type: none;

  ul {
    list-style-type: none;
    padding-left: 0;
  }

  li {
    border-bottom: 1px solid black;
    padding: 5px;
  }

  li:last-child {
    border-bottom: none;
  }
}

/********** INPUT **********/
#howl-input {
  background-color: white;
  grid-area: input;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;

  margin-bottom: 20px;
  

  textarea {
    width: 100%;
    padding: 10px;
  } 
  button {
    color: #990000;
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #990000;
    width: 75px;
  }

  button:hover {
    background-color: #f4d9d9;
  }

  button:focus {
    background-color: #f4d9d9;
  }

  button:active {
    background-color: #e7c2c2;
  }
}


/********** HOWLS **********/
#howl-list {
  background-color: #f5f8fa;
  grid-area: list;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

a {
  color: rgb(73, 73, 73);
  text-decoration: none;
}

a:hover {
  color: rgb(73, 73, 73);
  text-decoration: none;
}

.howl {
  background-color: white;
  /* border: 1px solid black; */
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.actions {
  align-self: flex-end;
  display: flex;
  gap: 15px;
  font-size: 14px;
}

.howlHeader {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

#userHeader{
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  color: white;
}

#userHeader a{
  font-size: 16px;
  color: white;
  text-decoration: none;
}

.usernameHeader {
  font-weight: bold;
}

.howlUserInfo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}


.userImg {
  width: 50px;
}

.userFirst {
  font-weight: bold;
  font-size: 18px;
}
.userLast {
  font-weight: bold;
  font-size: 18px;
}

.username {
  /* font-weight: bold; */
  color: gray;
  /* align-self: flex-start; */
}

.usernameTop {
  /* font-weight: bold; */
  color: white;
  font-size: 16px;
  /* align-self: flex-start; */
}

.timestamp {
  align-self: flex-start;
}



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

/********** FORM **********/
form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: centers;
  font-size:18px;
}