* {
  box-sizing: border-box;
}

:root {
  --bs-danger: #990000 !important;
}

a {
    text-decoration: none;
}

.btn-danger {
  --bs-btn-bg: #990000 !important;
  --bs-btn-border-color: #990000 !important;
  --bs-btn-hover-bg: #7e0000 !important;
  --bs-btn-hover-border-color: #7e0000 !important;
  --bs-btn-active-bg: #660000 !important;
  --bs-btn-active-border-color: #660000 !important;
}

.nav-link:hover {
    background-color: #7e0000;
}
.nav-item {
    background-color: none;
}

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

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



header {
  grid-area: header;
  background-color: #990000;
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 24px;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header label {
  font-size: 1rem;
}

main {
  /*display: grid;
  grid-template-areas: "nav input"
                       "nav howls";
  grid-template-columns: auto minmax(0, 1fr);*/
  gap: 20px;
  max-width: 850px;
  margin: 20px auto;
}

/********** 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 **********/

nav.container {
  grid-area: nav;
  width: 200px;
  flex-grow: 0;
  padding: 10px;
  max-height: 250px;

  /* Bonus */
  position: sticky;
  top: 68px;
  /* End Bonus */
}

.bg-danger {
    background-color: #990000 !important;
}

.navbar .dropdown-toggle {
    background-color:  #f5f8fa;
}

.navbar #navUsername {
    color: black;
}
.navbar .dropdown-toggle::after {
    /*Carrat is a border triangle apparently*/
    border-top-color: black !important;
    border-bottom-color: black !important;
}

.follow-btn {
    background-color: #990000;
    color: white;
    border: 2px solid #990000;
    transition: 0.2s ease;
}

.follow-btn:hover {
    background-color: #7e0000;
    color: white;
}

.follow-btn:active {
    background-color: #990000;
    color: black;
}

.follow-btn.following {
    background-color: white;
    color: #990000;
    border: 2px solid #990000;
}

#followContainer button {
    background-color: #990000 !important;
    color: white !important;
    border: 2px solid #990000 !important;
    transition: 0.2s ease;
}

#followContainer button:hover {
    background-color: #7e0000 !important;
    color: white !important;
}

#followContainer button:active {
    background-color: #990000 !important;
    color: black !important;
}


/*nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}*/

/*nav ul li {
  padding: 10px 5px;
  border-bottom: 1px solid #666;
  cursor: pointer;
}*/

/*nav ul li:hover {
  background-color: #f5f8fa;
}

nav ul li:last-of-type {
  border-bottom: none;
}*/

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


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

#howlInput {
  width: 100%;
  grid-area: input;
  display: flex;
  flex-direction: column;
}

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

#howlInput 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 **********/

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

.howl {
  margin-bottom: 2%;
}

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

.howl .user {
  font-weight: bold;
  margin-bottom: 1%;
}

.howl .content {
  margin-bottom: 2%;
}

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


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

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