/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Merriweather", sans-serif;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-size: 100%;
}

/* TRANSITION */
a,
.btn {
  transition: all 0.3s ease;
}

/* NAVIGATION LOGO */
button.logo {
  background: transparent;
  line-height: 0;
  cursor: pointer;
  margin-bottom: 1.69rem; /* 27px */
  border: none;
  outline: none;
  padding: 0;
  margin-left: 2.81rem; /* 45px */
}

.logo img {
  width: 8.44rem; /* 135px */
  height: auto;
  transition: 0.4s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

/* MAIN LOGO STYLING */
.main-logo {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 8.44rem; /* 135px */
}

.main-logo img {
  width: 30%;
  height: 30%;
  transition: 0.4s ease;
}

.main-logo img:hover {
  transform: scale(1.1);
}

/* MAIN TEXT STYLING */
.finance-title {
    position: absolute;
    top: 18rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(252 , 229, 205);
    font-size: 4rem;
    text-align: center;
    width: 100%;
    border: 0.28rem solid rgb(252, 229, 205); /* 4.5px */
    padding: 1.69rem; 
}

/* DESKTOP NAVIGATION */
.top-header {
  position: fixed;
  height: 8.44rem; /* 135px */
  display: flex;
  width: 100%;
  background: rgba(92, 51, 23, 0.4);
  transition: background 0.3s ease;
  z-index: 1000;
  gap: 3.94rem; /* 63px */
}

.top-header.scrolled {
  background: rgb(92, 51, 23);
  width: 100vw;
  height: 19vh;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

/* Removes the bulletpoints and adjusts font size */
.nav-links {
  gap: 1.8rem;
  list-style: none;
  font-size: 1.35rem;
}

/* Color of the Navigation Text */
a {
  color: rgb(252, 229, 205);
  font-size: 1.01rem; /* ~16px */
  text-decoration: none;
  text-decoration-color: white;
  transition: 0.4s ease;
}

/* Effect of the Navigation Text when Hovering */
a:hover {
  text-shadow: 0 0 0.45rem rgba(205, 208, 252, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.17rem;
  transform: scale(1.05);
}

/* ACTIVE NAV ITEM */
.nav-links a.active {
  font-weight: 800;
}

/* HAMBURGER MENU STYLING */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  width: 1.69rem; /* 27px */
  height: 1.35rem; /* 22px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 0.11rem; /* 1.8px */
  background-color: rgb(252, 229, 205);
  transition: all 0.3s ease-in-out;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(0.34rem, 0.5rem);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(0.34rem, -0.54rem);
}

/* Reset when closed */
.hamburger-icon span {
  transform: none;
  opacity: 1;
}

/* Dropdown */
.menu-links {
  position: fixed;
  text-align: center;
  margin-top: 0.9rem;
  left: 0;
  right: 0;
  background: rgb(92, 51, 23);
  width: 100vw;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0.34rem 1rem rgba(0, 0, 0, 0.12);
  padding: 0;
}
.menu-links.open {
  max-height: 18rem;
}
.menu-links li {
  list-style: none;
}
.menu-links a {
  display: block;
  padding: 0.68rem 0.9rem;
  font-size: 0.85rem; /* 13.6px */
  color: rgb(252, 229, 205);
  text-decoration: none;
}
.menu-links a:hover {
  background: #f4f4f4;
}

/* ------------------- LANDING IMAGES ----------------------- */
.finance-landing-image img {
  margin-top: -6.19rem; /* -99px */
  width: 100vw;
  height: auto;
}

.finance-landing-image {
  margin: 0 auto;
}

/* -------------------   INFO SECTION 1 -------------------*/ 
#info-one {
    max-width: 100vw;
    min-height: 111vh;
    display: flex;
    background: rgb(252 , 229, 205);
}

.bank-account {
    padding: 5.556rem;
    margin-left: -1rem;
}

/* POPUP */
.popup {
    display: flex;
    width: 27.778rem;
    height: 34.722rem;
    justify-content: center;
    background: rgb(252 , 229, 205);
    border-radius: 0.417rem;
    position: absolute;
    margin-top: 40rem;
    margin-left: 12rem;
    transform: translate(-50%, -50%) scale(0.1);
    padding: 0 2.083rem 2.083rem;
    visibility: hidden;
    transition: transform 0.444s, top 0.444s;
    overflow-y: scroll;
}

.open-popup {
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}

.bank-button img {
    width: 24rem;
    height: auto;
    transition: 0.444s ease;
}
.bank-button img:hover { transform: scale(110%); }

.close-button img {
    position: absolute;
    top: 0.694rem;
    right: 0.694rem;
    width: 2.083rem;
    height: auto;
    margin: 0;
    cursor: pointer;
    opacity: 50%;
}

.popup-text {
    display: block;
    text-align: left;
    justify-content: left;
    max-width: 34.722rem;
}

.popup h3 {
    font-size: 2.431rem;
    font-weight: 500;
    margin: 2.083rem 0 0.694rem;
    padding-left: 1.736rem;
    padding-right: 2.083rem;
}

.popup ol {
    max-width: 34.722rem;
    font-size: 1.389rem;
    margin: 2.083rem 0 0.694rem;
    padding-left: 1.736rem;
    padding-right: 2.083rem;
}

.step-two, .sublist { margin-left: 1.389rem; padding-left: 1.389rem; }

/* ---------------- 50/20/30 RULE POPUP ---------------- */
.fifty-twenty-thirty { margin-left: 2.778rem; margin-top: 2.778rem; }

.popup-two {
    display: flex;
    width: 27.778rem;
    height: 34.722rem;
    justify-content: center;
    background: rgb(252 , 229, 205);
    border-radius: 0.417rem;
    position: absolute;
    margin-top: 40rem;
    margin-left: 15rem;
    transform: translate(-50%, -50%) scale(0.1);
    padding: 0 2.083rem 2.083rem;
    visibility: hidden;
    transition: transform 0.444s, top 0.444s;
    overflow-y: scroll;
}

.open-popup-two { visibility: visible; top: 50%; transform: translate(-50%, -50%) scale(0.8); }

.fifty-twenty-thirty img { 
    width: 24rem; 
    height: auto; 
    transition: 0.444s ease; 
}

.close-button img {
    position: absolute;
    top: 0.694rem;
    right: 0.694rem;
    width: 2.083rem;
    height: auto;
    margin: 0;
    cursor: pointer;
    opacity: 50%;
}

.fifty-twenty-thirty img:hover { transform: scale(110%); }

.popup-two h3 { font-size: 2.431rem; font-weight: 500; margin: 2.083rem 0 0.694rem; padding-left: 1.736rem; padding-right: 2.083rem; }
.popup-two p, .popup-two ol { font-size: 1.389rem; }




/* ---------------- INFO SECTION 2 ---------------- */
#info-two {
    width: 100%;
    min-height: 111vh;
    margin-top: -10.417rem;
    display: flex;
    background: rgb(252 , 229, 205);
}

.credit-card { 
    padding: 5.556rem; 
    margin-left: -1rem; 
}

.popup-three {
    display: flex;
    width: 27.778rem;
    height: 34.722rem;
    justify-content: center;
    background: rgb(252 , 229, 205);
    border-radius: 0.417rem;
    position: absolute;
    margin-top: 75rem;
    margin-left: 12rem;
    transform: translate(-50%, -50%) scale(0.1);
    padding: 0 2.083rem 2.083rem;
    visibility: hidden;
    transition: transform 0.444s, top 0.444s;
    overflow-y: scroll;
    z-index: 2000;
}

.open-popup-three { visibility: visible; top: 50%; transform: translate(-50%, -50%) scale(0.8); }

.visa-button img { 
    width: 24rem; 
    height: auto; 
    transition: 0.444s ease; 
}

.visa-button img:hover { transform: scale(110%); }

.popup-three h3 { font-size: 2.431rem; font-weight: 500; margin: 2.083rem 0 0.694rem; padding-left: 1.736rem; padding-right: 2.083rem; }
.popup-three ol, .popup-three p { font-size: 1.389rem; }

/* ---------------- FUTURE GOALS ---------------- */
.future-goals { margin-left: 2.778rem; margin-top: 2.778rem; }

.popup-four {
    display: flex;
    width: 27.778rem;
    height: 34.722rem;
    justify-content: center;
    background: rgb(252 , 229, 205);
    border-radius: 0.417rem;
    position: absolute;
    margin-top: 75rem;
    margin-left: 15rem;
    transform: translate(-50%, -50%) scale(0.1);
    padding: 0 2.083rem 2.083rem;
    visibility: hidden;
    transition: transform 0.444s, top 0.444s;
    overflow-y: scroll;
}

.open-popup-four { visibility: visible; top: 50%; transform: translate(-50%, -50%) scale(0.8); }

.future-button { 
    margin-top: 2.778rem; 
    margin-left: 2.778rem; 
}

.future-button img { 
    width: 24rem; 
    height: auto; 
    transition: 0.444s ease; 
}

.future-button img:hover { transform: scale(110%); }

.popup-four h3 { font-size: 2.431rem; font-weight: 500; margin: 2.083rem 0 0.694rem; padding-left: 1.736rem; padding-right: 2.083rem; }
.popup-four p, .popup-four ol { font-size: 1.389rem; }

/* ----------------------------------------- VIDEOS ------------------------------------------*/
.personal-video, .personal2-video { padding-top: 5.556rem; transition: 0.444s ease; }
.personal-video:hover, .personal2-video:hover { transform: scale(110%); }

/* --------------------------------   POP QUIZ -------------------------------- */
#pop-quiz {
    background-color: rgb(114, 68, 40);
    width: 100%;
    min-height: 111vh;
    padding: 3.472rem;
}

.quiz-main {
    max-width: 34.722rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 24.306rem;
    margin: 0 auto;
    padding: 1.389rem;
    background: rgb(252 , 229, 205);
    font-size: 1.389rem;
    border-radius: 0.347rem;
    box-shadow: 0 0 0.694rem rgba(92, 51, 23, 0.2);
}

.quiz-title h2 {
    color: rgb(252 , 229, 205);
    font-size: 3.472rem;
    text-align: center;
}

#question { margin-bottom: 3.472rem; }

#options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.833rem;  
    align-items: center;
}

#options.center-result {
  display: flex;
  justify-content: center;
}

#options .option { 
    padding: 0.694rem 0.833rem;
    border-radius: 0.417rem;
    border: 0.069rem solid rgba(92,51,23,.25);
    background: rgb(114, 68, 40);
    color: rgb(252 , 229, 205);
    cursor: pointer;
    font: inherit;
    transition: 0.444s ease;
}
#options .option:hover { 
    box-shadow: 0 0 0.556rem rgba(92,51,23,.6); 
    transform: scale(110%);
}

button.submit {
    display: block;
    margin: 0 auto;
    padding: 0.694rem 1.389rem;
    background-color: rgb(114, 68, 40);
    color: rgb(114, 68, 40);
    border: none;
    border-radius: 0.347rem;
    cursor: pointer;
}
button.submit:hover { background-color: rgb(252 , 229, 205); }

/* ----------------------------------- SOCIALS ----------------------------------- */
#socials {
    background-color: rgb(92, 51, 23);
    width: 100%;
    height: 55.6vh;
    margin-top: -0.694rem;
    padding: 3.472rem;
}

.social-text p { color: rgb(252 , 229, 205); font-size: 1.736rem; }

.social-title h2 {
    color: rgb(252 , 229, 205);
    font-size: 3.472rem;
    text-align: center;
}

.insta-button {
    width: 5.556rem;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.insta-button img {
    width: 5.556rem;
    height: auto;
    transition: 0.222s ease;
}
.insta-button img:hover {
    transform: scale(110%);
    box-shadow: 0 0 0.556rem rgba(252 , 229, 205,.9);
    border-radius: 50%;
}

/* ----------------------------------- FOOTER ----------------------------------- */
footer {
    margin-top: auto;
    position: relative;
    padding: 0.694rem;    
    text-align: center;
    width: 100%;
    background: rgb(252 , 229, 205);
}

footer p { margin: 0; }
