 :root {
    --primary: #354a43; /*/Dark green*/
    --background: #D1D5D6; /*Light grey*/
    --accent: #3A9BAB; /*Teal*/
    --text: #222;
    --max-width: 900px;
  }



  body {
	font-family: "Exo 2", sans-serif; 
    background-color: var(--background);
	/*background-image: url('images/black_concrete.jpg');*/
	background-repeat: repeat;
	background-position: center;
    color: var(--text);
    margin: 0;
    padding: 0;
  }

header {
  background-color: var(--primary);
  color: white;
  position: relative;
  height: 150px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.header-inner {
    max-width: calc(var(--max-width) + 6em);
    margin: 0 auto 0 auto; /*top right bottom left*/
    padding-left: 3em;
    height: 100%;
    display: flex;
    align-items: center; /* vertically aligns h1 and creature */
    gap: 0; /* spacing between h1 and creature */
    position: relative;
    z-index: 10; /* ensure it sits above the sky layers */
}
#heading-creature{margin-left: auto;}

main {
    max-width: var(--max-width);
    background-color: white;
    margin: 2em auto;
    padding: 3em;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.page3-bg {
    background-image: url("images/solar_roofs.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain; /* or cover */
}

h1 {
	text-align: left;
	position: relative;
	color: white; 
	font-family: 'Exo 2', sans-serif; 
	font-size: 2.5em;
	z-index: 5;
	margin:0;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}
h2 {
	color: var(--primary);
	font-family: 'Exo 2', sans-serif; 
	margin-top: 0.5 em;
}

h3 {
	color: var(--primary);
	font-family: 'Exo 2', sans-serif; 
	margin-top: 0.5em;
	font-weight: bold;
}

hr { margin: 1em 0 1.5em 0;
	color: var(--primary);}

.section {
    margin-bottom: 1em;
    border-bottom: 2px solid var(--primary);
    padding-top: 1em;
}

.tab-space {
  display: inline-block;
  width: 3em;
  height: 0;
}

label {margin-bottom: 0.5em;}

/*Make radio and checkbox labels display as block*/
label:has(input[type="radio"]) {display: block;}
label:has(input[type="checkbox"]) {display: block;}
td label {display: block;}

.inline {display: inline !important;}

select , input[type="text"], input[type="number"], textarea {
	padding: 0.4em;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
}

textarea {width:90%;}

select {width: 100%;}
	
input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.4em;
  }
  
label input[type="text"]{
	/*Make inline text boxes shorter*/
    padding: 0.2em 0.4em !important;
    margin-left: 0.4em;
    margin-bottom: 0; 
    height: auto;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}
fieldset.grid{  
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4em 2em;
}
fieldset > *:not(:first-child) {
	/*Indent everything except the legend, which is first child*/
    margin-left: 2em;
}
fieldset img,
.float-right {
    float: right;
    margin-left: 1em;  /* space between text and image */
}

.float-bottom {
    float: bottom;
}

.question {margin-bottom: 1.5em;}
.question p{}

.question,
legend {
	color:  var(--accent);
	font-weight: bold;
    margin: 1em 0 0.5em 0;
}

.disabled {display: none;}
/*.disabled {opacity: 0.55;display: none;}
.disabled legend,.disabled label .disabled p{color: #777;}*/

.div-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
	margin-right: 2em;
}

/* Keep the last label (“Don’t know”) pushed to the right */
.div-row label:last-child {
    margin-left: auto;
    white-space: nowrap;
}

table{
	width: 100%;
	border-collapse: collapse;
}

/*table td:not(:first-child):not(:last-child) */

table.question-table{
	width: 90%;
	margin-bottom: 1em;
}
table.question-table th:first-child,
table.question-table td:first-child {
	text-align:left;
} 
table.question-table th:not(:first-child),
table.question-table td:not(:first-child){
	text-align:right;
} 
table.question-table td {}

.radio-table {
	margin-top: 1em;
    width: calc(100% - 4em);
	table-layout: fixed; 
}
.radio-table th,
.radio-table td {
    text-align: center;
	border: thin inset #EEEEEE;
}
.radio-table td:first-child,
.radio-table th:first-child {
    text-align: left;
    width: 40%;
	padding: 0 0.5em;
}

.radio-table input[type="radio"] {
	margin-left: 0 !important;
	transform: scale(1.2);
}

@media (max-width: 600px) {
    td, th { 
		font-size: small;
		overflow-wrap: break-word;
	};
}


.cell-label {
    display: block;          /* makes label fill the entire cell so it catches clicks */
    width: 100%;
    height: 100%;
    padding: 0.6em 0 0 0;        
    cursor: pointer;         /* shows the user it’s clickable */
    text-align: center;      
}

.scenario-box {
    border: 1px solid #cbd5e1; 
    background: #f8fafc;      
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
}

.scenario-label {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #334155; 
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
  }

  button:hover {
    background: var(--accent);
  }

.progress {
width: 100%;
background: #ddd;
border-radius: 10px;
margin-bottom: 0;
}

.progress-bar {
height: 12px;
background: var(--primary);
width: 1%; /* dynamically updated */
border-radius: 10px;
transition: width 0.3s ease;
}

.consent-content p{
	padding: 0em 1em 0em 1em;
}
.consent-content * {font-size:small;}

footer {
    text-align: center;
    padding: 1.5em;
    font-size: 0.9em;
    color: #666;
}

.debug
{ 
	color: gray !important;
	display:none;
	border: thin dashed grey;
	padding: 10px;
	margin: 10px;
}

@media (max-width: 600px) {
    main { padding: 1em !important;}
	fieldset.grid {
        grid-template-columns: 1fr !important; /* one column on small screens */
    }
}
