
:root{
  --survey-color: #30969d;
/*  --survey-color: #012245; */
}

#studyHeader {
  margin-top: 5px;
  margin-left: 10px;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: var(--survey-color);
  height: 53px;
  padding-bottom: 3px;
  margin-bottom: 5px;
}

#studyHeader {
  position: relative;
  display: flex;
  align-items: center;
}

#studyHeader::before {
  display: inline-block;
  content: "DecideACT";
  padding-top: 5px;
  padding-left: 8px;
  color: #FFD600;
  text-shadow: 0 0 5px #D04B3A, 1px 1px 3px #002347;
  font-size: 44px;
  font-family: "Abril Fatface", serif;
  text-align: center;
  font-weight: bold;
}


#productionHeader{
  background: #B2A4D4;
}

.surveyFooter {
    background-image: none;
    background-color: var(--survey-color);
}

.buttonWrapper {
    border: 2px solid var(--survey-color);
}

#progressHolder {
    color: var(--survey-color);
}

DIV.studyLogo {
  display: flex;
  align-items: center;
  background-color: var(--survey-color);
  border-bottom: 0px;
  height: 50px;
}

DIV.studyLogo::after {
  content: "DecideACT";

  color: #FFD600;
  text-shadow: 0 0 5px #D04B3A, 1px 1px 3px #002347;
  font-size: 44px;
  font-family: "Abril Fatface", serif;
  text-align: center;
  font-weight: bold;


  padding-left: 5px;
}

UL.app_activation_steps LI {
  padding-bottom: 0.4em;
}

.lang-switch {
  text-align: right;
  padding: 0.5em 0.25em 0.25em;
  font-size: 12px;
}

.lang-switch a,
.lang-switch a:visited {
  color: #D04B3A;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch a:focus {
  text-decoration: underline;
}


/*
.lang-switch a,
.lang-switch a:visited {
  color: #D04B3A;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch a:focus {
  text-decoration: underline;
}

.lang-switch {
  text-align: right;
  padding: 0.25rem 0.5rem 0.25rem;
}


.lang-switch {
  font-size: 0.9em;
  position: absolute;
  top: 84%;
  right: 1em;
  transform: translateY(-50%);
  padding: 0.0em 0.3em 0.0em 0.3em;
  overflow: hidden;
  max-width: calc(100% - 200px);
  min-width: 2em;
  white-space: nowrap;
}
*/


.progress-wrapper {
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  background: rgb(255, 244, 199, 0.92);
  border: 2px solid #0B2E44;
  border-radius: 999px;
  padding: 0.0em 0.3em 0.0em 0.3em;
  overflow: hidden;
  max-width: calc(100% - 200px); /* keep off the logo */
  min-width: 2em;
  white-space: nowrap;
}

.progress-box {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

.progress-text {
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
}

.progress-box.fade::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2em;
  height: 100%;
  background: linear-gradient(to right, transparent, #FFF4C7);
  pointer-events: none;
  opacity: 0; /* default: invisible */
  transition: opacity 0.2s ease-in-out;
}

@media (max-width: 20.5em) {
  .progress-box.fade::after {
    opacity: 1; /* fade in only on narrow viewports */
  }
}


/*  WIDE */
@media screen and (min-width: 600px){
  #studyHeader {
    margin-left: 0px;
  }
}

H1.consentHeader {
  color: #2f5496;
  font-weight: bold;
  text-align:center;
  font-size: 1.25em;
}

span.consentHeader {
  color: #2f5496;
  font-weight: bold;
}

#consentIntro p:last-of-type {
  border-bottom: 3px solid #000;
}

H2.consent {
  color: #2f5496;
  font-size: 1.25em;
  margin-bottom: 0;
  margin-top: 1em;
}

H2.consent + P {
  margin-top: 0.5em;
}

.consent-emphasis {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.consent-lead {
  font-weight: bold;
}

UL.consent LI {
  margin-bottom: 1em;
}

#install-table-container {
  margin-bottom: 1.5em;
}



/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-family: system-ui, sans-serif;
}

/* Modal card */
.modal-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  width: min(420px, 90%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: modal-fade-in 0.15s ease-out;
}

/* Smooth entry */
@keyframes modal-fade-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Header and body text */
.modal-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
}

.modal-card p {
  color: #444;
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
}

/* Textarea */
.modal-card textarea {
  width: 100%;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  resize: vertical;
  margin-bottom: 1rem;
}

/* Buttons */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-buttons button {
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-buttons .confirm {
  background-color: #1976d2;
  color: #fff;
}

.modal-buttons .confirm:hover {
  background-color: #1565c0;
}

.modal-buttons .cancel {
  background-color: #e0e0e0;
  color: #333;
}

.modal-buttons .cancel:hover {
  background-color: #d5d5d5;
}
