* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: var(--text-clr);
  background-color: var(--background-document);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

:root {
  --background-document: #f5faeb;
  --primary-clr: #b3e7a6;
  --secondary-clr: #c7f0d3;
  --highlight-clr: #31b95a;
  --box-shadow: rgba(49, 185, 90, 0.5);

  /* white to light green */
  --green--light-shade-100: #ffffff;
  --green--light-shade-90: #eaf8ef;
  --green--light-shade-80: #d6f1de;
  --green--light-shade-70: #c1eace;
  --green--light-shade-60: #ade3bd;
  --green--light-shade-50: #98dcad;
  --green--light-shade-40: #83d59c;
  --green--light-shade-30: #6fce8c;
  --green--light-shade-20: #5ac77b;
  --green--light-shade-10: #46c06b;

  /* light to dark green */
  --green--dark-shade-0: #46c06b;
  --green--dark-shade-10: #2ca751;
  --green--dark-shade-20: #279448;
  --green--dark-shade-30: #22823f;
  --green--dark-shade-40: #1d6f36;
  --green--dark-shade-50: #195d2d;
  --green--dark-shade-60: #144a24;
  --green--dark-shade-70: #0f381b;
  --green--dark-shade-80: #0a2512;
  --green--dark-shade-90: #051209;
  --green--dark-shade-100: #000000;

  /* other variables */
  --gap: 2rem;
  --border-radius: 15px;
  --max-width: 1400px;
}

/* 
=============================================

HEADER

=============================================
*/

.navigation-section {
  display: grid;
}

.tall-guy-presents,
.app-main-title {
  background-color: transparent;
  display: grid;
  font-size: 35px;
  color: var(--highlight-clr);
}

.tall-guy-presents {
  color: black;
  justify-content: center;
  align-items: end;
  font-size: 15px;
}

.nav {
  display: grid;
  justify-content: center;
  font-style: oblique;
  font-size: 50px;
  background-color: var(--background-document);
  color: rgb(255, 255, 255);
  height: 100px;
  width: 100%;
  padding-top: 5px;
  border-bottom: 2px solid var(--highlight-clr);
}

/* 
=============================================

NAVIGATION CENTER

=============================================
*/

.navigation-bar {
  display: grid;
  width: 100%;
  height: 50px;
}

.profile {
  display: flex;
  padding: 0rem 1rem 0rem 1rem;
  border-bottom: 2px solid var(--highlight-clr);
}

.profile-image-div {
  display: grid;
  /* width: 100%; */
  padding: 5px;
}

.profile-img {
  display: grid;
  justify-content: right;
  height: 45px;
  border-radius: 50%;
}

.navlinks {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  overflow: hidden;
  align-items: center;
}

/* .show-nav {
  width: 100%;
  transition: 500ms;
} */

.navlinks li {
  display: flex;
  list-style: none;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
}

.nav-link:hover {
  color: var(--green--dark-shade-10);
  transition: 300ms;
}

#home {
  color: var(--highlight-clr);
}

/* 
=============================================

PASSWORD TESTER

=============================================
*/

.password-section {
  display: none;
  justify-content: center;
  overflow: auto;
}

.input-subtitle {
  display: grid;
  justify-content: center;
  align-content: center;
  font-size: 1.5rem;
  /* height: 100%; */
  width: 90vw;
  overflow: visible;
  border-radius: 10px;
  color: white;
  padding: 20px;
  text-align: center;
  background-color: var(--highlight-clr);
}

/* ================================== password input container */
.password-input-center {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 20px;
  width: 100%;
  gap: 10px;
}

.password-input-container {
  display: grid;
  grid-template-rows: 1fr 0.5fr auto 1.6fr;
  padding-top: 2rem;
  /* justify-content: center; */
  align-items: center;
  gap: 20px;
}

.input {
  outline: none;
  width: 80%;
  justify-self: center;
  border: 1.5px solid black;
  height: 50px;
  background-color: var(--background-document);
  padding: 1rem;
  /* padding-top: 1rem; */
  font-size: 1rem;
  border-radius: var(--border-radius);
}

.loading-container {
  text-align: center;
  display: none;
}

.loading-icon {
  width: 24px;
  height: 24px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--highlight-clr);
  border-radius: 50%;
  animation: spin 2s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  display: grid;
  justify-self: start;
  align-self: center;
}

.error-message-two,
.success-message {
  display: grid;
  height: 1rem;
}

.characters,
.numbers,
.special,
.capital {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* =================strength status bar */

.strength-container {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  justify-content: center;
  align-items: center;
  align-self: center;
  background-color: var(--secondary-clr);
  width: 100%;
}

.strength-status-title {
  padding-bottom: 10px;
  justify-self: center;
  align-self: end;
  padding-bottom: 0;
  font-size: 18px;
  background-color: var(--secondary-clr);
}
.status-bar {
  background-color: var(--secn-btn-clr);
  height: 10px;
  width: 100%;
  border: 0.5px solid black;
}

.strength-status {
  justify-self: center;
  height: 2rem;
  align-self: flex-start;
}

.submit-btn {
  display: grid;
  width: 6rem;
  height: 2rem;
  justify-self: center;
  font-size: 15px;
  align-content: center;
}

.error-message,
.error-message-two {
  font-size: 0.9rem;
  justify-self: center;
  align-self: center;
  /* line-height: 5px; */
  gap: 5px;
}

.characters,
.numbers,
.special,
.capital {
  display: flex;
  gap: 4px;
  align-items: center;
}

.copy-to-clipboard-btn {
  display: none;
  width: 7rem;
  height: 4rem;
  justify-self: center;
  align-items: center;
  font-size: 15px;
  padding: 5px;
  border-radius: 10px;
}

.copy-to-clipboard-btn:hover {
  border: 2px solid #04aa47;
  cursor: pointer;
}

/* =================strength status bar */

.strength-status {
  display: grid;
  justify-content: center;
  background-color: var(--secondary-clr);
}

.show {
  display: flex;
}

.green {
  background-color: #04aa47;
}

.orange {
  background-color: orange;
}

.red {
  background-color: red;
}

.strength-status-full-bar {
  display: flex;
}

.strength-status {
  justify-self: center;
  height: 2rem;
  align-self: flex-start;
}

/* 
=============================================

PASSWORD GENERATOR

=============================================
*/

.password-generator-main-section {
  /* display: grid; */
  display: none;
}

.show-section {
  display: grid;
}

.password-generator-container {
  display: grid;
  /* border-top: 5px solid var(--btn-clr); */
  padding: 20px;
  justify-content: center;
  font-size: 1rem;
  height: fit-content;
  gap: 2rem;
  background-color: var(--secn-btn-clr);
  text-align: center;
}

.questions-center {
  display: grid;
  background-color: var(--secn-btn-clr);
  justify-content: center;
  gap: 1rem;
}

.questions-center p,
.questions-center p strong,
.questions-center p strong {
  background-color: var(--secn-btn-clr);
}

.questions-center p {
  display: grid;
  justify-content: center;
  align-content: center;
  font-size: 2rem;
  height: 100%;
  width: 90vw;
  overflow: visible;
  border-radius: 10px;
  color: white;
  /* text-decoration: underline; */
  padding: 20px;
  text-align: center;
  background-color: var(--highlight-clr);
}

.highlight {
  color: var(--btn-clr);
}

.tm-icon {
  font-size: 10px;
  align-self: start;
  background-color: var(--secn-btn-clr);
}

.password-generator-center {
  justify-content: center;
  display: grid;
  background-color: var(--secn-btn-clr);
  gap: 1rem;
}
.password-generator-btn {
  width: 6rem;
  height: 3rem;
  justify-self: center;
  background-color: var(--highlight-clr);
  font-size: 18px;
  border-radius: 10px;
  color: var(--background-document);
}
.password-generator-btn:hover {
  background-color: var(--green--dark-shade-20);
  transition: 500ms;
  /* color: black; */
}

.generated-password {
  display: grid;
  height: 2.5rem;
  width: 15rem;
  border-bottom: 1px solid black;
  border-bottom: 1px solid black;
  border-bottom: 1px solid black;
  background-color: var(--secn-btn-clr);
  padding: 5.5px;
  justify-content: center;
}

.copy-to-clipboard-btn-2 {
  display: grid;
  width: 7rem;
  height: 3.5rem;
  justify-self: center;
  align-items: center;
  font-size: 15px;
  border: 1px solid black;
  border-radius: 10px;
}

.copy-to-clipboard-btn-2:hover {
  border: 2px solid #04aa47;
  cursor: pointer;
}

@media screen and (max-width: 760px) {
  .questions-center p,
  .questions-center p strong,
  .questions-center p strong {
    font-size: 1.5rem;
  }

  .copy-to-clipboard-btn-2 {
    display: grid;
    width: 6rem;
    height: 45px;
  }
}

/* 
=============================================

HOME SECTION

=============================================
*/

.home-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-bottom: 3rem;
  gap: 2rem;
}

.hide-section {
  display: none;
}

/* ======================== banner */

.banner-container {
  display: grid;
  height: 100%;
  border-radius: 10px;
}

.banner-container h1 {
  display: grid;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  background-color: var(--highlight-clr);
  color: white;
  height: 100%;
}

/* ======================= get started */
.get-started-container {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-clr);
  padding: 20px 0px 20px 0px;
  border-radius: 10px;
}

.get-started-container article {
  display: grid;
  /* height: 100%; */
  background-color: transparent;
  gap: 1rem;
}

.get-started-container p {
  display: grid;
  background-color: var(--secondary-clr);
  font-size: 1.2rem;
  /* height: 100%; */
  align-items: center;
  text-align: center;
}

.get-started-btn,
.info-btn {
  width: 80px;
  height: 60px;
  font-size: 1rem;
  justify-self: center;
  border-radius: 10px;
}
.get-started-btn {
  background-color: var(--highlight-clr);
  color: white;
}

.get-started-btn:hover {
  background-color: var(--green--dark-shade-20);
  transition: 500ms;
}

.info-btn:hover {
  background-color: var(--green--light-shade-60);
  transition: 500ms;
}

#shield {
  display: none;
}

/* ========================== advice */

.advice-center {
  /* display: flex; */
  /* flex-direction: column; */
}
.advice-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advice-container h1 {
  display: grid;
  justify-content: center;
  text-align: center;
}

.advice-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advice-center h1 {
  text-align: center;
}

.advice-container * {
  padding: 1rem;
}
.advice-card {
  display: grid;
  justify-items: center;
  /* grid-template-columns: 0.5fr 1.5fr; */
  border: 1px solid;
  border-radius: 10px;
  background-color: rgba(211, 211, 211, 0.5);
  /* width: 100%; */
  /* height: 250px; */
  /* height: fit-content; */
}

.advice-icon {
  display: grid;
  font-size: 2rem;
  justify-items: center;
  color: var(--highlight-clr);
  background-color: rgba(211, 211, 211, 0.1);
  align-self: center;
}

.advice-container p {
  display: grid;
  border: 0.5px solid;
  border-radius: 5px;
  background-color: var(--secondary-clr);
  line-height: 1.2rem;
  box-shadow: 3px 5px var(--box-shadow);
  align-items: center;
  height: fit-content;
  /* height: 100%; */
  /* width: 100%; */
}

/* ======================= ABOUT SECTION */

.about-container {
  display: grid;
  padding: 1rem;
  border-radius: 10px;
  justify-items: center;
  gap: 10px;
}
.about-container,
.about-container * {
  background-color: var(--secondary-clr);
}

.about-container h1 {
  font-size: 2rem;
  text-align: center;
}
.about-container h2 {
  display: grid;
  font-size: 1.5rem;
  justify-items: center;
}

.about-container span {
  color: var(--highlight-clr);
  text-transform: uppercase;
}

/* 
=============================================

            MEDIUM SCREEN

=============================================
*/

@media screen and (min-width: 768px) {
  /* banner */
  .banner-container h1 {
    font-size: 2rem;
    height: 6rem;
  }

  /* get started */
  .get-started-container {
    display: flex;
  }
  .get-started-container article p {
    font-size: 2rem;
  }

  #shield {
    display: grid;
    background-color: transparent;
    font-size: 7rem;
    color: var(--highlight-clr);
  }

  /* advice */
  .advice-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    justify-content: center;
  }

  .advice-card {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: 0.5fr 1fr;
    height: 100%;
  }

  .advice-card p {
    height: 100%;
  }

  /* input password */

  .password-input-center * {
    font-size: 1rem;
  }

  .input {
    width: 50%;
    min-width: 520px;
  }

  .input-subtitle {
    font-size: 1.8rem;
  }
}

/* 
=============================================

            BIG SCREEN

=============================================
*/

@media screen and (min-width: 1170px) {
  /* header */

  .navigation-section {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--highlight-clr);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
  }

  .nav {
    height: 15vh;
    border: none;
    width: 45rem;
  }

  .app-main-title {
    font-size: 3rem;
    border: none;
  }

  /* navigation bar */

  .profile {
    font-size: 1.2rem;
    height: 8vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    border-bottom: none;
  }

  /* home section */
  .home-section {
    /* display: grid; */
    gap: 5rem;
  }

  /* banner */

  .banner-container h1 {
    height: 15vh;
    font-size: 2.5rem;
    align-content: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }

  .profile-image-div {
    align-items: center;
  }

  /* get started */
  .get-started-container {
    display: flex;
    height: 50vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 4rem;
  }

  .get-started-container article {
    display: grid;
    align-items: center;
  }

  #shield {
    font-size: 20rem;
    padding: 1rem;
  }

  .get-started-btn {
    height: 8rem;
    width: 15rem;
    font-size: 2rem;
  }

  .get-started-container p {
    font-size: 3rem;
  }

  .info-btn {
    height: 6rem;
    width: 15rem;
    font-size: 2rem;
  }

  /* advice  */

  .advice-center {
    display: grid;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }

  .advice-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    grid-template-rows: repeat(2, minmax(400px, 1fr));
    justify-content: center;
    grid-template-areas:
      "a b b"
      "a c d";
  }

  .advice-card {
    /* padding: 3.5rem; */
    grid-template-columns: none;
  }

  .advice-card-1 {
    grid-area: c;
  }
  .advice-card-2 {
    grid-area: b;
  }
  .advice-card-3 {
    grid-area: a;
  }
  .advice-card-4 {
    grid-area: d;
  }

  .advice-icon {
    font-size: 7rem;
    align-self: center;
  }

  .advice-card p {
    display: grid;
    text-align: center;
    /* width: 100%; */
    align-items: center;
    font-size: 1.1rem;
    line-height: 1.5rem;
  }

  .advice-center h1 {
    font-size: 3rem;
  }

  /* about */

  .about-container h1 {
    height: fit-content;
    line-height: 2.2rem;
  }

  .about-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.5rem;
    height: fit-content;
    padding: 5rem;
  }

  /* password tester */

  .password-input-center * {
    font-size: 1.2rem;
  }

  .strength-container * {
    font-size: 1.2rem;
  }

  .input-subtitle {
    height: 15vh;
    font-size: 2.5rem;
    max-width: var(--max-width);
  }

  .input {
    width: 50%;
    height: 5rem;
    font-size: 1.5rem;
  }

  .copy-to-clipboard-btn {
    /* display: flex; */
    height: 4rem;
  }
  .password-generator-container {
    /* height: calc(100vh - 193px - 141px); */
    height: fit-content;
    padding-bottom: 200px;
  }


}

/* generator */


/* 
=============================================

FOOTER SECTION

=============================================
*/

.footer-center {
  display: grid;
  /* grid-template-columns: auto; */
  /* height: 40vh; */
  justify-items: center;
  padding: 2rem 1rem;
}

.footer-center,
.footer-center * {
  background-color: rgb(202, 201, 201);
}

.footer-center h1 {
  align-self: center;
  /* color: var(--highlight-clr); */
  font-size: 1.5rem;
  padding-bottom: 1rem;
  color: var(--green--dark-shade-30);
}

.footer-links-container {
  display: flex;
  /* justify-items: center; */
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid;
  border-bottom: 1px solid;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-links-container a {
  text-decoration: none;
  justify-content: space-evenly;
  /* flex: 1 0 200px; */
}

.footer-links-container a:hover {
  color: var(--green--dark-shade-20);
  transition: 300ms;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
}
