/* ---------------- Font Import ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

/* ---------------- Global Styles ------------------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  /* Main page background gradient */
  background:
    url('images/blue-technology-background.png'),
    linear-gradient(
      180deg,
      #70B0D2 20.19%,
      #D8EDFF 100%
    ),
    linear-gradient(
      180deg,
      rgba(30, 30, 30, 0.00) 0%,
      rgba(216, 237, 255, 0.60) 47.6%,
      #D0E8FC 70.67%
    );
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}
.card-text,
.history-card-text,
.quiz-card,
.referencesText {
  word-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}
/* ---------------- Navigation Bar Styles ------------------- */
nav#navigationbar {
  display: flex;
  height: 55px;
  padding: 0 47px;
  justify-content: center;
  align-items: center;

  border-bottom: 6px solid #2B6E7C;
  background: #C6E9FB;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.nav-link {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  display: flex;
  padding: 10px;
  align-items: flex-start;
}

/* Hover effect for nav links */
.nav-link:hover {
  color: #000000;
  background-color: #a2ffc4;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ---------------- Header Styles ------------------- */
h1 {
  text-align: center;
  margin-top: 20px;
  color: black;
}
h2 {
  text-align: center;
  margin-top: 0;
  color: black;
}
h3 {
  text-align: left;
  margin-top: 0;
  color: black;
}

/* ---------------- Home Page Styles ------------------- */
.home-subheader {
  text-align: center;
  margin-top: 20px;
  color: black;
}
.card{
  background-color:white;
  border-radius: 10px;
  padding: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.card-content img {
  width: 40%;
  height: auto;
  display: block;
}
.card-text {
  flex: 1;
}
.card-text p {
  width: 90%;
  text-align: left;
  line-height: 2;
  font-size: 14px;
  color: black;
}
.cards {
  display:flex;
  justify-content:center;
  flex-direction: column;
}

/* ---------------- History Page Styles ------------------- */
.history-card{
  background-color:white;
  border-radius: 10px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.history-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.history-cards img {
  width: 40%;
  height: auto;
  display: block;
}
.history-card-text {
  flex: 1;
}
.history-card-text p {
  width: 90%;
  text-align: left;
  line-height: 2;
  color: black;
}

/* ---------------- Future Development ------------------- */
.future-cards{
  display:flex;
  justify-content:center;
  flex-direction: column;  
}
.future-card{
  background-color:white;
  border-radius: 10px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.future-card-content {
  display: flex;
  gap: 20px;
  align-items: flex-start; 
}
.future-card-content img {
  width: 40%;
  height: auto;
  display: block;
  align-self: flex-start;
}

/* ---------------- Quiz Page Styles ------------------- */
.quiz-container{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.quiz-card{
  background-color:white;
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  font-size: 15px;
  margin: 0 auto 20px auto;
  color: black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* ---------------- Menu Buttons ------------------- */
.buttons {
  border: none;
  display: flex;
  gap: 15px;
  justify-content: center;
  min-width: 120px;
  padding: 12px 24px;
  margin-left: auto;
  margin-right: auto;
}
.buttons button {
  background-color: #00000013;
  color: rgba(0, 0, 0, 0.834);
  font-size: 16px;
  cursor: pointer;
  min-width: 300px;
  border-radius: 3px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  border: solid 1px #00000021;
}
.buttons button:hover {
  background-color: #a2ffc4;
  color: #000000;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.percentageScore {
  text-align: center;
  font-size: 50px;
  margin-top: 20px;
}
.result {
  text-align: center;
  font-size: 20px;
  color: black;
  margin-top: 20px;
}
.quiz-card input{
  margin-top: 10px;
  cursor: pointer;
}
.feedback {
  padding: 10px;
  position: relative;
  top: -2.2px;
  font-style: italic;
  font-size: 12px;
  vertical-align: middle;
}

/* ---------------- References ------------------- */

.referencesText {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.referencesText li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.referencesText a {
  color: #007acc;
  text-decoration: none;
  word-break: break-word;
}

.referencesText a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive/Mobile Styles ------------------- */
/* Hide checkbox */
.menu-toggle {
  display: none;
}

/* Show hamburger icon only on mobile */
.menu-toggle-label {
  font-size: 24px;
  cursor: pointer;
  display: none;
}

/* Responsive Layout for different screen sizes */
@media (max-width: 1024px) {
  .card-content,
  .future-card-content,
  .history-cards {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .card-content img,
  .future-card-content img,
  .history-cards img {
    width: 80%;
    margin-bottom: 15px;
  }
  .card,
  .future-card,
  .history-card {
    max-width: 95vw;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  nav#navigationbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    position: relative;
    margin-bottom: 0px;
  }

  .menu-toggle-label {
    display: inline-block;
    font-size: 18px;
    padding: 8px 10px;
    background: none;
    border: none;
    }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .menu-toggle:checked + .menu-toggle-label + .nav-links {
    display: flex;
    position: relative; /* makes content push down */
  }

  .nav-link {
    display: block;
    padding: 10px;
    font-size: 15px;
    text-align: left;
    background-color: #a5e0fe;
    border-bottom: 1px solid #ccc;
  }

  .nav-link:hover {
    background-color: #a2ffc4;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .menu-toggle-label:hover {
    background-color: #a2ffc4;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  h1, h2, h3 {
    font-size: 1.3em;
    margin-top: 10px;
  }
  .card,
  .future-card,
  .history-card,
  .quiz-card {
    padding: 15px;
    max-width: 98vw;
  }
  .card-content img,
  .future-card-content img,
  .history-cards img {
    width: 100%;
    max-width: 350px;
  }
  .buttons button {
    min-width: 180px;
    font-size: 15px;
    padding: 10px 12px;
  }
  .percentageScore {
    font-size: 32px;
  }
  .result {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  nav#navigationbar {
    padding: 5px 8px;
    height: auto;
  }
  .menu-toggle-label {
    font-size: 18px;
    padding: 8px 10px;
  }
  .card,
  .future-card,
  .history-card,
  .quiz-card {
    padding: 8px;
    font-size: 13px;
  }
  .card-content img,
  .future-card-content img,
  .history-cards img {
    width: 100%;
    max-width: 220px;
  }
  .buttons button {
    min-width: 120px;
    font-size: 13px;
    padding: 8px 8px;
  }
  .percentageScore {
    font-size: 22px;
  }
  .result {
    font-size: 13px;
  }
  .referencesText {
    font-size: 0.9rem;
    padding-left: 1rem;
  }
  footer p {
    font-size: 12px;
  }
}

/*footer */
footer {
    text-align: center;
    padding: 0 0 15px;;
}
footer p {
    color: #262626;
    font-size: 14px;
}