h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.027rem;
}

h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.802rem;
  color: #000064;
  margin-bottom: 30px;
}

h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.602rem;
  color: #000064;
  margin-bottom: 40px;
}

h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.424rem;
  color: #232323;
}

p {
  font-family: 'Lato', sans-serif;
}

.app-title {
  text-decoration: none;
  color: inherit;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0 0 20px 0;
  width: 60%;
}

.section-container {
  padding: 30px;
}

.btn-start {
  background-color: #ff3b7f;
  color: white;
  border: none;
  padding: 12px 52px;
  font-size: 1.3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-start:hover {
  background-color: white;
  border: 2px solid #ff3b7f;
  color: #ff3b7f;
}

.section-title {
  padding: 35px;
  max-width: 1200px;
}
.results-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.results-chart,
.results-table {
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
}

.results-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* splash screen */
.center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

/* number icon */
.circle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #079b77;
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-right: 15px;
}

/* progress bar */
.progress-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f9f6f8;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  font-family: 'Arial', sans-serif;
}

.progress-text {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.progress-bar-bg {
  background-color: #eaeaea;
  border-radius: 999px;
  height: 10px;
  width: 100%;
  overflow: hidden;
}

.progress-bar-fill {
  background-color: #f35d92;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.button-container {
  margin-bottom: 10px;
}

.button {
  margin: 2px;
  padding: 10px;
  border: none;
  color: black;
  cursor: pointer;
}

/*button-like radio buttons*/
.button-container {
  display: flex;
  flex-direction: row;
}

.button-container input[type='radio'] {
  display: none;
}

.button-container label {
  display: inline-block;
  margin: 2px;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
}

/*selected radio button */
.button-container input[type='radio']:checked + label {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

#citation {
  font-size: 16px;
  padding-top: 10px;
}

#citation strong,
#instructions strong {
  color: #000064;
}

#instructions a {
  color: #4b91ed;
}

#instructions a:hover {
  color: #000064;
}

.purpose {
  color: #000064;
  margin: 10px 0px;
}

.header {
  background: #15b292;
  color: white;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header img {
  width: 15%;
  padding: 20px;
}

body {
  font-family: Tahoma;
  padding: 0px 0px 100px 0px;
  margin: 0px;
}

.intro {
  padding: 10px 30px;
  background-color: #f2f2f2;
  /*border-radius: 15px;*/
  width: 75%;
}

.app {
  padding: 10px 30px;
}

.section-container h2 {
  color: #15b292;
}

.banner {
  display: flex;
  flex-direction: row;
}

#itemLabel p {
  font-weight: 400;
  font-size: 1.02rem;
}

.radio-button-group {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 10px;
  padding-right: 10px;
}

.radio-button-group input[type='radio'] {
  display: none;
}

.radio-button-group label {
  padding: 10px 20px;
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.radio-button-group input[type='radio']:checked + label {
  background-color: #d1edf9;
  color: black;
  /*border-color: #4572b5;*/
  border: solid 2px black;
}

.radio-button-group label:hover {
  background-color: #d1edf9;
}

#form-container {
  padding: 10px 30px;
}

.rating-section,
.importance-section {
  display: flex;
  flex-direction: row;
  padding-right: 10px;
}

.status-text {
  display: inline-block;
  margin: 50px 10px;
}

.status {
  display: inline-block;
  width: min-content;
  margin: 50px 0;
  padding: 20px;
  border-radius: 6px;
  font-weight: bold;
}

#form-container > h2 {
  color: #000064;
}

.section > h3 {
  font-size: 1.602rem;
  color: #000064;
}

.section > p {
  font-size: 1.266rem;
  font-weight: 600;
}

.section p:nth-of-type(2) {
  font-size: 1.128rem;
  font-weight: 600;
}

.info-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.info-form-container {
  width: 100%;
  max-width: 600px; /* or whatever */
  margin: 0 auto; /* centers horizontally */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation-name: left;
  animation-duration: 0.75s;
  animation-fill-mode: both;
  animation-delay: 0.5s;
}

.text-header > h3 {
  margin: 0;
  color: #000064;
}

.text-header > h4 {
  margin: 10px 0;
}

.org-info {
  max-width: 95%;
  display: flex;
  flex-direction: column;
}

.org-info label {
  margin-bottom: 10px;
  font-weight: 400;
  color: #000064;
}

.form-field {
  height: 28px;
  padding: 0 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: Tahoma;
  outline: 0;
  transition: 0.2s;
  margin-bottom: 12px;
}

.form-field:focus {
  border-color: #0f7ef1;
}

.org-info > input#submit-btn {
  padding: 12px 10px;
  border: 0;
  background: linear-gradient(
    to right,
    #15b292 0%,
    #0097ff 100%
  );
  border-radius: 3px;
  margin-top: 10px;
  color: #fff;
  letter-spacing: 1px;
  font-family: Tahoma;
  font-weight: bold;
  font-size: 18px;
}

.animation {
  animation-name: move;
  animation-duration: 0.4s;
  animation-fill-mode: both;
  animation-delay: 0.5s;
}

.a1 {
  animation-delay: 1s;
}

.a2 {
  animation-delay: 1.1s;
}

.a3 {
  animation-delay: 1.2s;
}

.a4 {
  animation-delay: 1.3s;
}

.a5 {
  animation-delay: 1.4s;
}

.a6 {
  animation-delay: 1.5s;
}

.submit-btn {
  padding: 12px 30px;
  border: 0;
  background: linear-gradient(
    to right,
    #15b292 0%,
    #0097ff 100%
  );
  border-radius: 3px;
  margin-top: 10px;
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: 1px;
  font-family: Tahoma;
  /*color: #3dd5b7;*/
  font-weight: bold;
  font-size: 18px;
}

/*tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

#saveGraph,
#saveTable {
  display: none;
}

.saveContainer {
  padding-left: 30px;
  padding-top: 20px;
  align-items: center;
}

.legend-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

#myTable {
  padding-top: 120px;
}

#myChart .bg {
  width: 600px;
}

/*PAGINATION*/
.page {
  display: none;
  /*padding: 1rem;
      border: 1px solid #ccc;*/
  margin-bottom: 1rem;
}

/*Pagination buttons*/
#pagination-controls {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/*Submit button container*/
.submit-btn-div {
  margin-top: 1rem;
  text-align: right;
}

/*Submit button itself*/
.pagination-btn {
  padding: 12px 10px;
  border: 0;
  /*background: linear-gradient(to right, #15b292 0%, #0097ff 100%);*/
  border-radius: 10px;
  margin-top: 10px;
  /*color: #fff;*/
  border: #ccc 1px solid;
  letter-spacing: 1px;
  font-family: Tahoma;
  font-weight: bold;
  font-size: 18px;
}

.pagination-btn:not([disabled]):hover,
.submit-btn {
  cursor: pointer;
  background-color: #fc8bb2;
}
#next-page {
  background-color: #f35d92;
}
#next-page:hover {
  background-color: #fc8bb2;
}

/* Instructions Accordion */
.accordion {
  max-width: 1200px;
  margin: 2rem;
  font-family: sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-button {
  width: 100%;
  /* background: #f5f5f5; */
  padding: 54px 18px;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* One color per item */
.accordion > .accordion-item:nth-child(1) .accordion-button,
.accordion
  > .accordion-item:nth-child(1)
  .accordion-button:not(.collapsed) {
  background: #fdc618;
}

.accordion > .accordion-item:nth-child(2) .accordion-button,
.accordion
  > .accordion-item:nth-child(2)
  .accordion-button:not(.collapsed) {
  background: #0eb494;
}

.accordion > .accordion-item:nth-child(3) .accordion-button,
.accordion
  > .accordion-item:nth-child(3)
  .accordion-button:not(.collapsed) {
  background: #5d99e3;
}

.accordion-button:hover {
  background: #eaeaea;
}

.accordion-button .arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.accordion-content {
  overflow: hidden;
  height: 0;
  padding: 0 18px;
  transition: height 0.3s ease, padding 0.3s ease;
  background: #fff;
}

.accordion-item.open .accordion-button .arrow {
  transform: rotate(90deg);
}

.accordion-item.open .accordion-content {
  height: auto;
  padding: 18px;
}

@media screen and (max-width: 768px) {
  .banner {
    display: flex;
    flex-direction: column !important;
  }

  .intro {
    width: auto;
  }

  .info-form-container {
    padding: 20px 60px;
  }

  .header img {
    width: 25%;
    padding: 5px;
  }

  .rating-section,
  .importance-section {
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    align-items: flex-start;
  }

  .radio-button-group {
    padding-bottom: 10px;
  }

  .radio-button-group,
  label {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  @keyframes move {
    0% {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-40px);
    }

    100% {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }

  @keyframes left {
    0% {
      opacity: 0;
      width: 0;
    }

    100% {
      opacity: 1;
      padding: 20px 40px;
      width: 440px;
    }
  }
}
