/* This is the CSS file which will be used for styling */

/* Poppins Fonts */
@font-face {
  font-family: 'Poppins-Black';
  src: url('../fonts/Poppins-Black.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-BlackItalic';
  src: url('../fonts/Poppins-BlackItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Bold';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-BoldItalic';
  src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-ExtraBold';
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-ExtraBoldItalic';
  src: url('../fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-ExtraLight';
  src: url('../fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-ExtraLightItalic';
  src: url('../fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Italic';
  src: url('../fonts/Poppins-Italic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Light';
  src: url('../fonts/Poppins-Light.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-LightItalic';
  src: url('../fonts/Poppins-LightItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Medium';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-MediumItalic';
  src: url('../fonts/Poppins-MediumItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Regular';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-SemiBold';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-SemiBoldItalic';
  src: url('../fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Poppins-Thin';
  src: url('../fonts/Poppins-Thin.ttf') format('truetype');
  font-style: normal;
}
@font-face {
  font-family: 'Poppins-ThinItalic';
  src: url('../fonts/Poppins-ThinItalic.ttf') format('truetype');
  font-style: italic;
}


/* Styling */

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  margin: 0;
  background-color: #ffffff;
  font-family: 'Poppins', sans-serif;
  color: #002671;
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;

}

header {
  padding: 5px 60px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  margin-top: 10px;
  width: 35px;
  height: 35px;
  background-image: url('../materials/icons/DarkModeIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform, background-image 0.25s linear;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background-image: url('../materials/icons/DarkModeIconOrange.png') !important;
}

.logo {
  display: inline-block;
  width: 150px;
  height: 40px;    
  background-image: url('../materials/logos/T-LearnLogoThin.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 5px;
  transition: background-image, transform 0.25s linear;
}

.logo:hover {
  background-image: url('../materials/logos/T-LearnLogoOrangeThin.png');
  transform: scale(1.05);
}

.icon {
  display: inline-block;
  width: 85px;
  height: 85px;    
  background-image: url('../materials/logos/T-LearnIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 2px;
  margin-top: 5px;
  margin-left: 3px;
  transition: background-image, transform 0.25s linear;
}

.icon:hover {
  background-image: url('../materials/logos/T-LearnIconOrange.png');
  transform: scale(1.05);
}

.faq-link {
  padding-top: 9px;
  font-size: 27px;
  font-family: 'Poppins-Black';
  color: #002671;
  text-decoration: none;
  transition: color, transform 0.25s linear;
}

.faq-link:hover {
  color: #ffa500;
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  gap: 20px;
}

.signin-btn {
  font-size: 16px;
  font-family: 'Poppins-Medium';
  color: #002671;
  text-decoration: none;
  padding-top: 15px;
  transition: color, transform 0.25s linear;
}

.signin-btn:hover {
  color: #ffa500;
  transform: scale(1.05);
}

.signup-btn {
  font-size: 16px;
  font-family: 'Poppins-Bold';
  background-color: #002671;
  margin-top: 8px;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color, transform 0.25s linear;
}

.signup-btn:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

.nav-divider {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 10px 0;
  width: 100vw; /* Full viewport width */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.normal-divider {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 25px 0 10px 0;
  width: calc(100vw - 40px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.sub-title1 {
  text-align: center;
  padding: 100px 20px 40px;
}

.sub-title1 h1 {
  font-size: 48px;
  font-family: 'Poppins-Bold';
  margin: 0;
  line-height: 1.3;
}

.subtitle {
  font-size: 18px;
  color: #002671;
  margin-top: 5px;
  font-family: 'Poppins-Bold';
}

.highlight {
  background: linear-gradient(to bottom, #ffa500, #e4cb9b);
  background-clip: text;
  color: transparent
}

.getstarted-btn {
  background-color: #002671;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 40px;
  font-family: 'Poppins-Bold';
  font-size: 18px;
  display: inline-block;
  margin-top: 20px;
  transition: background-color, transform 0.25s linear;
}

.getstarted-btn:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

/* Stats Blocks */

.stats {
  display: flex;
  justify-content: space-around;
  gap: 0px;
  background-color: #ffffff;
}

.stat {
  background-color: #002671;
  color: #ffffff;
  width: 250px;
  height: 250px;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.25s linear;
}

.stat:hover {
  transform: scale(1.05);
}

.stat h2 {
  margin: 0;
  font-size: 80px;
  font-family: 'Poppins-Bold';
  color: #ffa500;
  line-height: 1;
}

.stat p {
  margin: 0;
  font-size: 36px;
  font-family: 'Poppins-Bold';
  color: #ffffff;
  line-height: 1;
}

/* Sign In Page Styles */

.sign-in-page, .reset-password-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sign-in-page main, .reset-password-page main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
  transform: translateY(-40px) 
}

/* Sign In/Up Page Headers */

.sign-up-page header, .sign-in-page header, .reset-password-page header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 1000;
}

/* Form */

.form-config {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

#sign-up-form {
  margin-top: 50px;
}

.name-row {
  display: flex;
  gap: 10px;
  flex: 1;
}

#first_name-label, #last_name-label {
  flex-direction: column;
}

.sign-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.sign-in-page legend, .sign-up-page legend, .reset-password-page legend {
  width: 100%;
  margin-bottom: 2rem;
}

.sign-in-page h1, .reset-password-page h1 {
  color: #002671;
  font-family: 'Poppins-SemiBold';
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sign-in-page h1 img, .reset-password-page h1 img {
  vertical-align: middle;
  height: 50px;
  width: auto;
  margin-left: -10px;
}

.dont-have-account {
  font-family: 'Poppins-Medium';
  color: #002671;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sign-in-page .sign-up a {
  font-family: 'Poppins-Medium';
  color: #FFA500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: text-decoration 0.25s linear;
}

.sign-in-page .sign-up a:hover {
  text-decoration: underline;
}

.form-label {
  font-family: 'Poppins-Bold';
  display: block;
  text-align: left;
  color: #002671;
  font-size: 1rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem 0;
}

/* --- XP GAIN NOTIFICATION STYLE --- */
.xp-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #002671; /* Your primary dark blue */
  color: #FFA500; /* Your primary orange */
  padding: 15px 30px;
  border-radius: 50px;
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.5s ease-out 2.5s; /* Fades out after 2.5s */
}

/* --- CORRECTED FORM STYLES --- */

#email, #password, #first_name, #last_name, #confirm_password {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #002671;
  border-radius: 6px; 
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.25s linear;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

#email:focus, #password:focus, #first_name:focus, #last_name:focus, #confirm_password:focus {
  outline: none;
  border-color: #FFA500;
}

.form-button {
  width: 100%;
  height: 50px;
  padding: 0.875rem;
  background-color: #002671;
  color: #ffffff;
  border: 1px solid #002671;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.25s linear, transform 0.25s linear, border-color 0.25s linear;
  box-sizing: border-box;      
}

.form-button:hover {
  background-color: #FFA500;
  border-color: #FFA500; /* Change border on hover too */
  transform: scale(1.05);
}

#sign-upButton {
  height: 50px;
  margin-top: 5px;
}


.sign-up-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

.sign-up-page main { 
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 100vh;
  transform: translateY(-40px);
}

.sign-up-page h1 {
  font-size: 2.5rem;
  color: #002671;
  margin-bottom: 10px;
  font-weight: 600;
}

.sign-up-page legend p {
  font-family: 'Poppins-Medium';
  color: #002671;
  font-size: 0.95rem;
}

.sign-up-page legend p span a {
  color: #ffa500;
  text-decoration: none;
  font-weight: 500;
}

.sign-up-page legend p span a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-family: 'Poppins-SemiBold';
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  transition: text-decoration 0.25s linear;
}

.disclaimer a span {
  color: #f59e0b;
}

.disclaimer a:hover span {
  text-decoration: underline;
} 

.anchor-link {
  color: #FFA500;
  text-decoration: none;
  transition: text-decoration 0.25s linear;
}

.anchor-link:hover {
  text-decoration: underline;
}

.mascot-container {
  display : flex;
  justify-content: right;
  margin-left: 200px;
  flex-direction : column;
  margin-top : 120px;
}

.mascot-message {
  font-family: 'Poppins-Bold';
  color: #002671;
  font-size: 1rem;
  margin-top: 20px;
  text-align: center;
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 65%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}
.password-rule-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-rule {
  font-family: 'Poppins-Regular';
  color: #FFA500;
  font-size: 0.75rem;
  margin-top: -5px;
  text-align: left;
  margin-bottom: 0;
}

.check-icon {
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* --- Google Button and Divider Styles --- */
.google-signUp-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.google-signIn-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #ffffff;
  color: #444;
  border: 1px solid #dddddd;
  border-radius: 6px; /* Matched to other form elements */
  padding: 0.875rem; /* Matched to other form elements */
  font-size: 1rem; /* Matched to other form elements */
  font-family: 'Poppins-Medium', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.google-btn:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.google-icon {
  width: 20px;
  height: 20px;
}

.faq-item {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin-bottom: 10px;
  background-color: #002671;
  box-shadow: none;
}

.faq-help {
  background-color: #002671;
  padding-left: 35px;
  align-items: center;
  text-align: left;
}

.faq-help h1 {
  font-family: 'Poppins-Bold';
  color: #FFA500;
  font-size: 30px;
  padding-top: 20px;
  margin-bottom: -19px;
}

.faq-help p {
  font-family: 'Poppins-Medium';
  font-size: 18px;
  color: #FFA500;
  padding-bottom: 25px;
  line-height: 25px;
}

.faq-question {
  font-family: 'Poppins-Medium';
  color: #FFA500;
  background-color: #002671;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
  max-width: 900px;
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
}

.first-question {
  border-radius: 10px 10px 0 0;
  font-family: 'Poppins-Medium';
  color: #FFA500;
  background-color: #002671;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
  max-width: 900px;
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
}

.last-question {
  border-radius: 0 0 10px 10px;
  font-family: 'Poppins-Medium';
  color: #FFA500;
  background-color: #002671;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
  max-width: 900px;
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
}

.faq-section {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.faq-section h2 {
  font-family: 'Poppins-SemiBold';
  color: #002671;
  font-size: 30px;
  padding-right: 25em;
  margin-bottom: -4px;
}

.faq-answer {
  font-family: 'Poppins-Medium';
  color: #002671;
  background-color: #FFA500;
  font-size: 1rem;
  padding: 0 20px;
  align-items: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height, padding-bottom 0.25s linear;
}

.faq-answer.open {
  padding-bottom: 10px;
  max-height: 50px;
  margin-bottom: -7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 20px;
  padding-top: 5px;
  padding-bottom: 12px;
}

.faq-toggle img {
  margin-left: 10px;
  display: block;
}

.privacy-policy-container {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

.terms-conditions-container {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

.xp-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: Poppins-Medium;
}

.daily-streak-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: poppins-Medium;
}

.upgrade-link {
  font-family: 'Poppins-Bold';
  color: #002671;
  text-decoration: none;
  font-size: 18px;
  margin-top: 15px;
  transition: color, transform 0.25s linear;
}

.upgrade-link:hover {
  color: #ffa500;
  transform: scale(1.05);
}

#signOutBtn {
  font-size: 16px;
  font-family: 'Poppins-Medium';
  color: #002671;
  text-decoration: none;
  padding-top: 15px;
  transition: color, transform 0.25s linear;
}

#signOutBtn:hover {
  color: #ffa500;
  transform: scale(1.05);
}

.settings-icon {
  background-color: transparent;
  border: none;
  padding: 0;
  width: 40px; 
  height: 40px;
  background-image: url('../materials/icons/SettingsIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.25s linear;
}

.settings-icon:hover {
  transform: scale(1.05) rotate(45deg);
}

.settings-link {
  font-size: 16px;
  font-family: 'Poppins-Bold';
  background-color: #002671;
  margin-top: 8px;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color, transform 0.25s linear;
}

.settings-link:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

#streak-writing, #xp-writing {
  font-family: 'Poppins-Bold';
  text-align: center;
  align-items: center;
  color: #002671;
}

.streak-logo {
  width: 40px;
  height: 35px;
  background-image: url('../materials/icons/StreakIconBlue.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.xp-logo {
  width: 40px;
  height: 40px;
  background-image: url('../materials/icons/XPIconBlue.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.dashboard-top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  margin-bottom: 60px;
}

.dashboard-bottom-title {
  font-family: 'Poppins-Bold';
  font-size: 40px;
  color: #002671;
  margin-left: 75px;
}

.dashboard-title-container {
  padding-top: -10px;
}

.dashboard-title-container h1 {
  font-family: 'Poppins-Bold';
  font-size: 75px;
  color: #002671;
  margin-bottom: 0px;
  padding-top:-10px
}

.dashboard-title-items {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -5px;
  margin-top: -30px;
}

.dashboard-title-item {
  font-family: 'Poppins-Medium';
  font-size: 15px;
  background-color: #002671;
  color:white;
  padding: 3px 10px;
  border-radius: 20px;
}

.badges-title {
  font-family: 'Poppins-Bold';
  font-size: 20px;
  color: #002671;
  margin-bottom: 12px;
  margin-top: -10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.daily-goal-streak-logo {
  padding-bottom: 5px;
  width: 40px;
  height: 40px;
}

.daily-goal-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Poppins-bold';
    color: white;
    padding-top: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.progress-text-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.progress-bar-background {
    width: 100%;
    height: 10px;
    background-color: #ffffff44;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #FFA500;
    border-radius: 5px;
    transition: width 0.5s linear;
}

.weekday-item {
    background-color: white;
    color: #002671;
    border-radius: 50px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-item.active {
    background-color: #FFA500;
    color: white;
    transform: scale(1.05);
    transition: all 0.25s linear;
}

.dashboard-left-container {
  margin-left: 170px;
  padding-top: -10px;
  height: 200px;
  width: 550px;
  padding-bottom: 40px;
  margin-top: -110px;
  
}

.dashboard-right-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 10px -10px;
  background-color : #002671;
  width: 550px;
  height : 300px;
  overflow: hidden;
  margin-right: 170px;
  border-radius: 10px;
  margin-top: 25px;
}

.daily-goal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Poppins-bold';
  color: white;
  padding-left: 20px;
  padding-right: 20px;
}

.daily-goal-progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Poppins-bold';
  color: white;
  padding-left: 20px;
  padding-right: 20px;
}

.weekday-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Poppins-Medium';
  color: #002671;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.weekday-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Poppins-bold';
  color: #002671;
}

.weekday-item {
  margin-bottom: 5px;
  background-color: white;
  border-radius: 50px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-goal-title {
  padding: 5px;
  font-family: 'Poppins-Bold';
  font-size: 25px;
  color: white;
}

.modules-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  padding: 20px;
  margin-top: -40px;
}

.module-item {
  background-color: #002671;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Poppins-bold';
  font-size: 16px;
  text-align: center;
  width: 250px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-content: space-between;
}

.module-title {
  font-size: 30px;
  margin-bottom: -25px
}

.module-link {
  display: inline-block;
  color: #ffffff;
  background-color: #FFA500;
  border-radius: 10px;
  height: 30px;
  width: 100px;
  font-size: 22px;
  padding: 10px 20px;
  margin-top: auto;
   margin-bottom: 10px;  
  text-decoration: none;
  transition: all 0.25s linear;
}

.module-link:hover {
  transform: scale(1.05);
  color: #002671;
  background-color: #ffffff;
}

.module-progress {
  color: white;
}

.guest-dashboard-title {
  font-family: 'Poppins-Bold';
  font-size: 60px;
  color: #002671;
  margin-bottom: -30px;
  padding-top: -10px;
  padding-left: 45px;
  align-items: center;
  text-align: center;
}

.guest-dashboard-header {
  display: flex;
  flex-direction: column;
  font-family: 'poppins-Bold';
  align-content: left;
  margin-top: -40px;
  margin-left: -40px;
  padding-left: -20px;
}

.guest-dashboard-subtitle {
  padding-left: 45px;
}

.guest-dashboard-header-container {
  display: flex;
  align-items: center;
  margin-top: 100px;
  justify-content: center;

}

.guest-dashboard-bottom-title {
  font-family: 'Poppins-Bold';
  font-size: 40px;
  color: #002671;
  margin-left: 75px;
}

/* Software Development Icons */

.software-dev-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/SoftwareDevelopmentIconLightMode.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.module-icon {
  display: flex;
  align-items: center;
}

#sd-paper1-icon {
  width: 125px;
  height: 125px;
  background-image: url('../materials/icons/SDCore1Icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
}

#sd-paper2-icon {
  width: 125px;
  height: 125px;
  background-image: url('../materials/icons/SDCore2Icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

#sd-esp-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/ESPIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

#sd-osp-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/OSPIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* SD Core Paper 1 Icon */

.sd-core-paper1-dev-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/SDCore1IconOrange.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.core-papers-bottom-title {
  font-family: 'Poppins-Bold';
  font-size: 40px;
  color: #002671;
  margin-left: 130px;
  margin-bottom: 0px;
}

/* Content Areas Container */
.content-areas-container {
  background-color: #002671;
  border-radius: 15px;
  padding: 8px 30px 12px;
  margin: 0 auto 25px;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s linear;
}

.content-areas-container:hover {
  transform: translateY(-2px);
}

/* Main "Content Areas" Title */
.core-paper1-bottom-title {
  max-width: 1200px;
  margin: 0 auto 15px;
  margin-left: calc(50% - 600px - 20px);
  font-size: 28px;
  text-align: left;
}

/* Orange Section Titles */
.content-area-title {
  font-family: 'Poppins-Bold';
  color: #FFA500;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: -2px 0 15px;
}

.content-areas-container .subtopic-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

/* Remove wrapper divs from layout */
.subtopic-row-container {
  display: contents;
}

/* Subtopic Links */
.subtopic-container a {
  color: #FFA500;
  font-family: 'Poppins-Medium';
  line-height: 1;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s linear;
  margin: 0;
  padding: 0;
}

.subtopic-container a:hover {
  color: #ffffff;
  transform: scale(1.02);
}

.subtopic-container a:active {
  transform: scale(0.98);
}

.sd-core-paper2-dev-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/SDCore2IconOrange.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.sd-esp-dev-icon {
  width: 150px;
  height: 125px;
  background-image: url('../materials/icons/ESPIconBlue.png');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

.guest-dashboard-header-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 90vw;
}

.guest-dashboard-divider {
  flex-grow: 1;
  height: 1px;
  background-color: #002671;
}

.learning-criteria-container {
  width: 1000px;
  margin: 0 auto;
  background-color: #002671;
  border-radius: 12px;
}

.criteria-item {
  background-color: #ffffff;
  font-family: 'Poppins-Bold';
  color: #002671;
  border-radius: 50px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-criteria p{
  font-family: 'Poppins-Medium';
  color: #ffa500;
  font-size: 18px;
  margin: 0;
  padding: 12.5px 5px;
}

.learning-criteria {
  display: flex;
  align-items: center;
  gap: 0px;
  width: 90vw;
  padding-left: 15px;
}

.clock-icon {
  width: 25px;
  height: 25px;
  background-image: url('../materials/icons/OrangeClockIcon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.criteria-title {
  font-family: 'Poppins-Bold';
  color: #ffa500;
  font-size: 24px;
  padding-left: 20px;
  padding-top: 5px;
  margin-bottom: 0px;
}

.learning-criteria-estimated-time {
  font-family: 'Poppins-Bold';
  color: #002671;
  font-size: 18px;
  margin: 0;
  padding: 12.5px 5px;
}

.learning-criteria-estimated-time-container {
  display: flex;
  align-items: center;
  gap: 0px;
  width: 90vw;
  padding-left: 15px;
  padding-bottom: 10px;
  padding-top: 5px;
}

.learning-criteria-time-pill {
  background-color: #ffffff;
  color: #002671;
  border-radius: 50px;
  width: 120px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-video {
  width: 1000px;
  height: 562px;
  margin: 0 auto;
  display: flex;
  padding: 15px 0px;
  border-radius: 25px;
}

.navigation-subtopic-title {
  font-size: 27px;
  font-family: 'Poppins-Black';
  color: #002671;
  margin: 5px auto;
  padding-top: 5px;
}

.lesson-x-button {
  position: fixed;
  top: 10px;
  right: 30px;
  width: 50px;
  height: 50px;    
  background-image: url('../materials/icons/XIcon.png');
  background-size: contain;
  background-position: center;
  display: inline-block;
  padding-top: 5px;
  transition: background-image, transform 0.25s linear;
}

.lesson-x-button:hover {
  transform: scale(1.05);
  background-image: url('../materials/icons/XIconOrange.png');
}

.quiz1-title {
  font-size: 27px;
  font-family: 'Poppins-Black';
  color: #FFA500;
  margin: 5px auto;
  padding-top: 5px;
  text-align: center;
}

.quiz1-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 20px;
}

.quiz1-container {
  width: 1000px;
  margin: 0 auto;
  background-color: #002671;
  border-radius: 12px;
  padding: 24px 32px;
  box-sizing: border-box;
}

.quiz1-question {
  font-family: 'Poppins-Bold';
  color: #ffa500;
  font-size: 20px;
  margin-bottom: 10px;
  text-align: left;
  padding-left: 20px;
}

.quiz1-options {
  display: flex;
  flex-direction: column;
  gap: 5pxpx;
  margin-bottom: 20px;
  padding-left: 20px;
}

.quiz1-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.18s ease, transform 0.12s ease;
  border-radius: 8px;
  padding: 4px 8px;
}

.quiz1-option input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

.quiz1-option.option-correct {
  background-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22,163,74,0.14);
}

.quiz1-option.option-wrong {
  background-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.12);
}

.quiz1-option.option-correct input,
.quiz1-option.option-wrong input {
  accent-color: #ffffff;
}

.quiz1-option {
  color: #ffffff;
  font-family: 'Poppins-Medium';
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: fit-content;
  white-space: nowrap;
  transition: background-color, transform 0.25s linear;
}
.quiz1-option:hover {
  background-color: #ffa500;
  color: #ffffff;
  transform: scale(1.02);
}

.quiz1-option:active {
  transform: scale(0.98);
}

.quiz1-btn {
  background-color: #ffa500;
  color: #ffffff;
  font-family: 'Poppins-Bold';
  font-size: 18px;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color, transform 0.25s linear;
}

.quiz1-btn:active {
  transform: scale(0.98);
}

.quiz1-message {
  font-family: 'Poppins-Bold';
  color: #00ff33;
  font-size: 22px;
  margin-top: 20px;
  text-align: center;
}

#quiz-check-btn1 {
  background-color: #FFA500; 
  color: #002671; 
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins-Bold';
  cursor: pointer;
  transition: transform 0.12s linear, background-color 0.12s linear;
}

#quiz-check-btn1:hover {
  background-color: #ffb84d;
  transform: scale(1.03);
}

#quiz-check-btn1:active {
  transform: scale(0.99);
}

#quiz-retry-btn1 {
  background-color: #FFA500;
  color: #002671;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins-Bold';
  cursor: pointer;
  transition: transform 0.12s linear, background-color 0.12s linear;
  display: none;
  margin-left: 10px;
}
#quiz-retry-btn1:hover { background-color: #ffb84d; transform: scale(1.03); }
#quiz-retry-btn1:active { transform: scale(0.99); }

#quiz-results1 {
  color: #FFA500; 
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 8px;
  text-align: center;
}


.quiz1-message {
  color: #FFA500;
}


.footer-text{  font-family: 'Poppins-Medium';
  color: #002671;
  font-size: 16px;
  text-align: center;
  margin: 0;
  padding: 20px 0;
  line-height: 1.5;
  transition: color, transform 0.25s linear;
}

.notes-container {
  width: 1000px;
  margin: 0 auto;
  background-color: #002671;
  border-radius: 12px;
  padding: 24px 32px;
  box-sizing: border-box;
  color: white;
}

.notes-title {
  font-size: 27px;
  font-family: 'Poppins-Black';
  color: #FFA500;
  margin: 5px auto;
  padding-top: 0px;
  text-align: center;
}

.notes-subtitle {
  font-size: 20px;
  font-family: 'Poppins-Black';
  color: #FFA500;
  margin: 5px auto;
  padding-top: 5px;
  text-align: left;
}

.notes-paragraph {
  font-size: 15px;
  font-family: 'Poppins-Medium';
  color: #ffffff;
  margin: 5px auto;
  padding-top: 5px;
  text-align: left;
  line-height: 1.5;
}

.notes-subtopic-subtitle {
  font-size: 18px;
  font-family: 'Poppins-Bold';
  color: #FFA500;
  margin: 5px auto;
  padding-top: 5px;
  text-align: left;
}

.notes-paragraph-list{
  font-size: 15px;
  font-family: 'Poppins-Medium';
  color: #ffffff;
  margin: 5px auto;
  line-height: 1.25;
}

.notes-table {
  text-align: left;
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
  border: 3px solid #FFA500;
}

.notes-table th, 
.notes-table td {
  width: 50%;
  border: 1px solid #FFA500;
  padding: 8px;
  border-left: 3px solid #FFA500;
}

.notes-table-3headings {
  text-align: left;
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
  border: 3px solid #FFA500;
}

.notes-table-3headings th, 
.notes-table-3headings td {
  width: 33%;
  border: 1px solid #FFA500;
  padding: 8px;
  border-left: 3px solid #FFA500;
}

.flowchart-example-1-2-2 {
  width: 300px;
  height: 400px;    
  background-image: url('../diagrams/flowchart-1.2.2.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.algorithm-container-1-2-2 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 27px;
}

.algorithm-container-1-2-6 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 27px;
}

.algorithm-container-1-2-8 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 27px;
}

.code-example-1-2-2 {
  font-size: 15px;
  font-family: 'Poppins-Medium';
}

.code-example-1-2-6 {
  font-size: 15px;
  font-family: 'Poppins-Medium';
}

.code-example-1-2-7 {
  font-size: 15px;
  font-family: 'Poppins-Medium';
}

.code-example-1-2-8 {
  font-size: 15px;
  font-family: 'Poppins-Medium';
}

.code-container-1-2-7 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code4-container-1-2-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 27px;
  margin: 0 auto;
  
}

.code4-example-1-2-6 {
  font-size: 15px;
  font-family: 'Poppins-Medium';
  height: auto;
  width: fit-content;
  padding-top: -20px;
}

.flowchart-container-1-2-7 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 27px;
}

#lesson-1-2-3-table {
  margin-bottom: 27px;
}


/* --- Settings Page Styles (UPDATED) --- */

/* The main container for all settings content */
.settings-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 40px;
  font-family: 'Poppins-Regular', sans-serif;
}

.settings-container h1 {
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 2.5rem;
  color: #002671;
  text-align: center;
  margin-bottom: 40px;
}

/* Styles for each settings group */
.settings-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}
.settings-section:last-of-type {
  border-bottom: none;
}

/* --- NEW: Header to align the section title and the "Edit" button --- */
.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Creates space below the header */
}

/* The h2 now lives inside the header, so its own margin is removed */
.settings-section h2 {
  font-family: 'Poppins-SemiBold', sans-serif;
  font-size: 1.5rem;
  color: #002671;
  margin-bottom: 0; /* Margin is now on the header container */
}

/* Layout for a single setting item row */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1rem;
}

/* --- FIX: Added styles for labels to ensure proper spacing --- */
.setting-item label {
    color: #002671;
    font-weight: 500;
    margin-right: 20px; /* Adds space between the label and the input */
    flex-shrink: 0; /* Prevents the label from shrinking on small screens */
}

/* Style for static text elements in a row */
.setting-item span {
  color: #002671;
  text-align: left; /* Ensures text aligns left */
  padding-right: 20px; /* Prevents text from touching the buttons */
}

/* Style for text inputs to match your other pages */
.settings-container input[type="text"],
.settings-container input[type="email"] {
  width: 60%; /* Adjusted width to give labels more space */
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f4f4f4;
  font-family: 'Poppins-Regular', sans-serif;
  font-size: 1rem;
  color: #555;
}

/* General button style for the settings page */
.settings-button {
  font-family: 'Poppins-SemiBold', sans-serif;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #002671;
  background-color: #ffffff;
  color: #002671;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.settings-button:hover {
  background-color: #002671;
  color: #ffffff;
}

/* Modifier for the primary action button */
.settings-button.button-primary {
  background-color: #002671;
  color: #ffffff;
  border-color: #002671;
}
.settings-button.button-primary:hover {
  background-color: #FFA500;
  border-color: #FFA500;
}

/* Modifier for the dangerous action button */
.settings-button.button-danger {
  border-color: #dc2626;
  color: #dc2626;
}
.settings-button.button-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* --- Your Existing Modal CSS (Unchanged, but included for completeness) --- */

/* The full-screen background overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 38, 113, 0.6);
  z-index: 1999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* The content box of the modal */
.modal-content {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  text-align: center;
  font-family: 'Poppins-Regular', sans-serif;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-content h3 {
  font-family: 'Poppins-Bold', sans-serif;
  color: #002671;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.modal-content p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Input field for prompts */
.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 25px;
  box-sizing: border-box;
}
.modal-input:focus {
  outline: none;
  border-color: #FFA500;
}

/* Container for the modal buttons */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* General style for buttons inside the modal */
.modal-button {
  font-family: 'Poppins-SemiBold', sans-serif;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #002671;
  background-color: #ffffff;
  color: #002671;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 100px;
}
.modal-button:hover {
  background-color: #f0f0f0;
}

/* Primary confirm button */
.modal-button.primary {
  background-color: #002671;
  color: #ffffff;
}
.modal-button.primary:hover {
  background-color: #001f5c;
}

/* The non-blocking notification style */
.custom-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #002671;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}
.custom-notification.error {
    background-color: #dc2626;
}

/* --- NEW Styles for Settings Page --- */

/* This new wrapper holds the input and the help text together */
.input-wrapper {
    width: 60%; /* Matches the width of your other inputs */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns content to the left */
}

/* The style for the new help text */
.setting-help-text {
    font-size: 0.8rem; /* Makes it slightly smaller */
    color: #666;      /* A muted grey color for informational text */
    margin-top: 8px;   /* Adds a little space below the input box */
    margin-bottom: 0;
    text-align: left;
}

.goal-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates a neat 3-column grid */
  gap: 15px; /* Space between the buttons */
  margin-bottom: 25px;
}

/* This styles each individual goal button (e.g., "50 XP") */
.goal-option-btn {
  font-family: 'Poppins-Bold', sans-serif;
  font-size: 1.1rem;
  padding: 15px 10px;
  border-radius: 8px;
  border: 2px solid #ddd;
  background-color: #f9f9f9;
  color: #002671; /* Your primary blue */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Adds a hover effect to the buttons */
.goal-option-btn:hover {
  border-color: #FFA500; /* Your primary orange */
  transform: translateY(-2px); /* Lifts the button slightly */
}

/* This style is applied by the script to the currently selected goal */
.goal-option-btn.selected {
  background-color: #002671; /* Your primary blue */
  color: #ffffff;
  border-color: #002671;
}