* {
  box-sizing: border-box;
}

main {
  max-width:60%;
  min-height: 100vh;
}

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;
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

/* hide menu toggle by default; shown only by responsive.css on small screens */
/* #menuToggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
} */

header *,
.header-red {
  color: white;
  font-size: 24px;
  font-weight: 1;
}

/* header #menuToggle {
  display: none;

  color: white;
  font-size: 1.5rem;
  text-decoration: none;
} */

header .menu * {
  font-size: 15px;
}

header label {
  font-size: 1rem;
}

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

/********** CARD HEADER **********/
.header-red {
  background-color: #990000;
  border: 0;
}

/********** 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: 10000;
}


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

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

.howl {
  margin-bottom: 10px;
}

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

.howl .user .name {
  font-weight: bold;
}

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

.howl .datetime {
  text-align: right;
  
  margin-bottom: 5px;
  font-size: 0.9em;
}

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

/********** PROFILE PICTURE **********/
.pfp {
  border-radius: 100px;
  max-height: 80rem;
  margin-bottom: 10px;
}

.pfp.mini {
  max-height: 2.5rem;
}

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

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

/********** DARK MODE **********/
body.dark {
  background-color: #1f2020;
}

body.dark #howlInput,
body.dark #userDetails :not(img):not(#followButton),
body.dark .howl,
body.dark #followContainer,
body.dark p,
body.dark main h1,
body.dark form {
  filter: invert(1);
}

body.dark .howl img,
body.dark #followContainer img,
body.dark .header-red {
  filter: invert(1);
}

body.dark #howlInput #howlButton {
  filter: invert(1);
  background-color: #990000;
  border: 2px solid #f5f8fa;;
  color: #f5f8fa;;
}

body.dark footer {
  color: white;
  border-top: 2px solid white;
  background-color: #990000;
}
