/* CSS RESET */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin-left: 1em;
}

/* GENERAL STYLING */
body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  background-color: #000;
}

/* OTHER STYLINGS */

.toast-container {
  width: 90%;
  position: fixed;
  top: 70px;
  right: 0;
  z-index: 1000;
}

.toast {
  background-color: rgb(16, 84, 16);
  color: #fff;
  padding: 0.2em;
  border-radius: 0.3em;
  margin-bottom: 0.2em;
  display: flex;
  gap: 0.2em;
  font-weight: bold;
  transform: translateY(-120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
}

/* HEADER & NAV STYLING */
.header-container {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: #000;
  width: 100%;
}

.header__nav-container {
  display: flex;
  justify-content: center;
  padding: 1em;
  border-bottom: 1px solid #fff;
}

.header__nav__logo-name {
  color: #fff;
  letter-spacing: 0.1em;
}

/* MAIN STYLING */
.main__heading {
  font-weight: 700;
  font-size: 2.3rem;
  padding: 1em;
  color: #fff;
  text-align: center;
}

/* main quotes area */
.main__quotes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.main__first-btns-container,
.main__second-btns-container,
.main__third-btns-container {
  display: flex;
  gap: 1em;
  margin: 0 1em;
}

/* contains multiple btn styles */
.btn-fav,
.btn-generate-quote,
.btn-show-all,
.show-all-fav,
.clear-all,
.clear-all-fav {
  padding: 0.5em;
  cursor: pointer;
  font-size: 1rem;
  background: #fff;
  border: none;
}

.btn-fav {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.svg-fav {
  width: 15px;
  height: 15px;
}

.main__group-category-container {
  margin: 1em;
  font-size: 1.2rem;
}

.category-label {
  color: #fff;
}

.category {
  margin-top: 1em;
  width: 100%;
  padding: 0.7em;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  font-size: 1rem;
}

.category:focus {
  outline: none;
  border-color: #070707;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.main__quote-display-container.container {
  border: 1px solid #fff;
  border-radius: 1em;
  margin: 1em;
  padding: 1em;
  width: 75%;
  max-width: 800px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #fff;
}

.main__first-btns-container {
  display: flex;
  gap: 1em;
  margin: 0 1em;
}

/* from javascript all-quotes.js => showAllQuotes function */
.quotes-card,
.filtered-quotes-container {
  border: 1px solid #fff;
  border-radius: 1em;
  margin: 0 auto 0.8em auto;
  padding: 1em;
  width: 75%;
  max-width: 800px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #fff;
}

.show-quotes-container {
  border: 1px solid #fff;
  border-radius: 1em;
  margin: 0 auto 0.8em auto;
  padding: 1em;
  width: 75%;
  max-width: 800px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #fff;
}

@media screen and (min-width: 48em) {
  .toast-container {
    width: 50%;
    top: 20px;
    right: 20px;
  }

  .toast {
    padding: 0.7em;
    transform: translateY(-120%);
  }

  .toast.show {
    transform: translateY(0);
  }

  .overall-container {
    display: flex;
    align-items: stretch;
  }

  /* HEADER STYLING */
  .header-container {
    width: 35%;
  }

  .header__nav-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    z-index: 1000;
    background-color: rgb(49, 69, 77);
  }

  .header__nav__logo-name {
    color: #fff;
  }

  /* MAIN STYLING */
  .main {
    width: 75%;
  }

  .main__heading {
    font-size: 3rem;
    text-align: center;
  }
}

@media screen and (min-width: 64em) {
  .btn-fav,
  .btn-generate-quote,
  .btn-show-all {
    cursor: pointer;
  }
}
