:root {
    --primary-font-family: Lexend, Verdana, sans-serif;
    --title-font-size: 2rem; 
    --title-font-weight: 800;
    --primary-text-color: black;
    --title-text-color: #10243C;
    --h2-font-size: 1.5rem;  
    --h2-font-weight: 700;
    --h3-font-size: 1rem; 
    --h3-font-weight: 600;
    --h4-font-size: 1rem; 
    --h4-font-weight: 600;
    --body-font-size: 1.1rem;
    --body-font-weight: 300;
    --caption-font-size: .8rem; 
    --caption-font-weight: 300;
    --table-font-size: 1rem; 
    --table-header-font-weight: 600;
    --table-text-font-weight: 400;
    --line-height: 1.5rem;
    --dark-gray: #d9d9d9;
    --light-gray: #f3f3f3;
    --blue-gray: #eaebf2;
    --pale-blue: #F3F7FD;
    --semi-pale-blue: #e2eaf6;
    --light-blue: #D2DFEA;
    --mid-blue: #245298;
    --mid-blue-lighter: #2f60aa;
    --mid-blue-pale: #6997c8;
    --dark-blue: #132c52;
    --ngss-blue: #2F3B8E;
    --ngss-blue-light: #3f50be;
    --ngss-green: #85A63B;
    --ngss-green-dark: #5f7829;
    --mid-ngss-green: #75942f;
    --ngss-orange: #F28023;
    --mid-orange: #C77624;
    --dark-ngss-orange: rgb(166 86 33);
    --red: #B63334;
    --dark-red: #812121;
    --yellow: #F4BA3D;
    --large-border-radius: 20px;
    --med-border-radius: 10px;
    --large-margin: 20px;
    --button-border-radius: 5px;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;

    --progressButtonWidth: 175px;
    --progressNumberSize: 16px;
}


body {
    margin: 0;
    background-color: black;
    font-family: var(--primary-font-family);
}

/* -------------------------------------------------------- */
/* header */
/* -------------------------------------------------------- */

header {
    display: inline-block;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 0 0 auto;
    /* border-bottom: 10px solid var(--mid-blue); */
    gap: 1rem;
    /* padding: 0 1.5rem .5rem 1.5rem ; */
}

#header-wrap {
    background-color:  var(--dark-blue); 
    /* padding-top: .5rem; */
    display: flex;
} 

#icon {
    justify-content: center;
    align-items: center;
    display: flex;
    width: 50px;
    padding-right: 10px;
    height: 60px;
    background-color: var(--red);
    border-radius: 0 50% 50% 0;
    border: 1px solid white;
    border-width: 1px 1px 1px 0;
}

#icon img {
    /* border: 3px solid var(--red); */
    /* background-color: var(--red); */
    /* padding: .2rem; */
    width: 2rem;
    /* border-radius: 10px; */
}

/* -------------------------------------------------------- */
/* main */
/* -------------------------------------------------------- */
#main {
    background-color: white;
    padding: 1.5rem 0 0 0;
}

#instructions {
    padding: 1rem 2rem 1rem 2rem;
    background-color: white;
}

#instructions h2 {
    color: var(--primary-text-color)
}

#instructions li {
    margin-bottom: 1rem;
}

#slideContainer {
    clear: both;
}

/* -------------------------------------------------------- */
/* nav back / next buttons */
/* -------------------------------------------------------- */
#nav {
    background-color: white;
    border-top: 8px solid var(--light-gray);
    padding:  2rem 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#nav.hide {
    display: none;
}

#nav .buttonHolder {
    margin: 0 0 2rem 0;
    justify-self: flex-start;
}

@media screen and (max-width: 650px) {
    #nav .buttonHolder button {
        padding: .5rem;
        font-size: .8rem;
    }   
}

#nav .buttonHolder.left button::before {
    font: var(--fa-font-solid);
    content: '\f060';
    padding-right: 8px;
}

#nav .buttonHolder.right button::after {
    font: var(--fa-font-solid);
    content: '\f061';
    padding-left: 8px;
}

#nav .buttonHolder button:hover {
    cursor: pointer;
}

#nav .buttonHolder.right {
    text-align: right;
    justify-self: flex-end;
}


#holder {
    border-top: 8px solid #356cc0;
    background-color: var(--mid-blue-lighter);
    padding: 2rem 1rem;
}

/* -------------------------------------------------------- */
/* tabs */
/* -------------------------------------------------------- */
#tabContainer {
    padding-left: 2rem;
}

#tabHolder {
    max-width: 1500px;
    margin: 0 auto;
}

#tabs {
    gap: 0;
    z-index: 100;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 2rem;
    position: absolute;
    display: flex;
}

.contentHeaderTab {
    display: flex;
    align-items: end;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 94px;
    flex: 0 0 85px;
    align-self: flex-end;
    background-color: transparent!important;
}

.contentHeaderTab.selected {
    width: 100px;
    height: 99px;
    margin-top: 0;
    flex-basis: 100px;
    margin-right: 15px;
    margin-left: 15px;
}

.contentHeaderTab:first-of-type.selected {
    margin-left: 0;
}

.contentHeaderTab .imageholder,
.contentHeaderTab h3 {
    font-weight: 500;
    color: white;
    line-height: 2.2rem;
    background-color: white;
    display: inline-block;
    border-radius: 50% 50% 0 0;
    font-size: 1.5em;
    user-select: none;
    border: 0;
    border-bottom-width: 0;
    background: var(--mid-blue-pale);

    padding: 10px 10px 5px 10px;
}

.contentHeaderTab .imageholder:hover,
.contentHeaderTab h3:hover {
    background-color: rgba(255,255,255,.5);
    cursor: pointer!important;
}

.contentHeaderTab.selected .imageholder,
.contentHeaderTab.selected h3 {
    font-size: 2.2rem;
    padding: 10px 10px 0 10px;
    border: 10px solid var(--mid-blue);
    border-bottom: 0;
    height: 83px;
    background-color: white;
    margin-top:-4px;
}

.contentHeaderTab .imageholder img.newtab,
.contentHeaderTab h3 img.newtab {
    position: absolute;
    width: 40px;
    top: 0;
    margin-left: 5px;
}

.contentHeaderTab.selected .imageholder img.newtab,
.contentHeaderTab.selected h3 img.newtab {
    top: -10px;
    margin-left: 10px;
}

.contentHeaderTab .imageholder img.normal,
.contentHeaderTab h3 img.normal {
    display: block;
    width: 55px; 
    height: 55px; 
    border-radius: 50%;
    background-color: rgba(255,255,255,.2);
    padding: 2px;
    
}

.contentHeaderTab.selected .imageholder img.normal,
.contentHeaderTab.selected h3 img.normal {
    width: 80px; 
    height: 80px; 
    border: 0;
    background-color: white;
    padding: 0;
}

.contentHeaderTab.selected .inversecurve {
    background-color: white;
    display: block;
}

.contentHeaderTab.selected .inversecurve {
    background-color: var(--mid-blue);
}

.contentHeaderTab[aria-disabled="true"] h3 {
    background-color: var(--light-blue);
}

.contentHeaderTab[aria-disabled="true"] h3 img {
    opacity: .5;
}

.inversecurve {
    width: .5rem;
    height: 1rem;
    display: none;
    align-self: flex-end;
    margin-bottom: -2px;
}

.inversecurve div {
    border-radius: 0 0 0 .5rem;
    background-color: var(--mid-blue-lighter);
    width: .5rem;
    height: 1rem;
}

.inversecurve.left div {
    border-radius: 0 0 .5rem;
}


/* -------------------------------------------------------- */
/* fonts */
/* -------------------------------------------------------- */
h1 {
    color: white;
    font-size: var(--title-font-size);
    font-weight: var(--title-font-weight);
    margin: 0;
    padding: 1rem 2rem 0 1.5rem;
    display: inline-block;
    padding: 0;
    line-height: 0;
}

.twolinetitle h1 {
    line-height: 1.5rem;
    padding-bottom: 5px;
}

.twolinetitle #icon {
    height: 65px;
}

h1#title .pretitle {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: rgba(255, 255, 255, .8);
}

h1#title .maintitle {
    display: block;
    font-size: 1.9rem;
}

h2 {
    font-size: var(--h2-font-size);
    font-weight: var(--h2-font-weight);
    color: var(--mid-blue);
    margin: 0;
    text-align: left;
}

h2:focus {
    outline: transparent;
}

h3 {
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    margin: 0;
}



h4 {
    font-size: var(--h4-font-size);
    font-weight: var(--h4-font-weight);    
    color: var(--primary-text-color);
    margin: 0;
}

li,
p,
label {
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    color: var(--primary-text-color);
}

strong {
    font-weight: bold;
}

ol li {
    margin-bottom: 1rem;
}

sub {
    line-height: 0;
}

p.credit {
    color: var(--primary-text-color);
    text-align: right;
    margin-top: 0;
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

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

select {
    font-size: 1rem;
    padding: .6rem .75rem;
    border-radius: var(--button-border-radius);
    font-family: var(--primary-font-family);
    background-color: white;
    height: 44px;
}

/* -------------------------------------------------------- */
/* about */
/* -------------------------------------------------------- */
#about {
    background-color: var(--dark-blue);
    padding: 2rem 2rem 1rem 2rem;
    border-top: 8px solid var(--mid-blue);
}

#about h3,
#about h5 {
    color: white;
}

#about p,
#about li {
    color: white;
    font-size: .9rem;
}

#about a:link,
#about a:visited,
#about a:hover,
#about a:active {
    color: white;
}

#about hr {
    border: 1px solid rgba(255,255,255,.3);
    border-width: 1px 0 0 0;
    margin: 2rem 0;
}

#about h5 {
    font-weight: normal;
}

#about li {
    padding-bottom: 1rem;
}

#about .star {
    margin-left: -0.8em;
    display: inline-block;
    margin-right: 0.3em;
    color: #F9D84E;
}

/* -------------------------------------------------------- */
/* interactive */
/* -------------------------------------------------------- */
button {
    border-radius: var(--button-border-radius);
    border: none;
    padding: 0.75rem;
    font-weight: bold;
    font-size: 1rem;
    background-color: var(--ngss-green-dark);
    color: white;
    font-family: var(--primary-font-family);
}

button:hover {
    background-color: var(--ngss-green);
    cursor: pointer;
}

button[aria-disabled="true"] {
    opacity: 0.5;
}

button.blue {
    background-color: var(--ngss-blue);
}

button.blue:hover {
    background-color: var(--ngss-blue-light);
}

/* -------------------------------------------------------- */
/* datalist */
/* -------------------------------------------------------- */
dl {
    text-align: left;
}

dt {
    position: relative;
    background: var(--blue-gray);
    padding: 8px 20px;
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 2.5rem;
    border-radius: var(--button-border-radius);
    margin-top: 1rem;
}

dt.comic {
    background-color: var(--ngss-green-dark);
    color: white;
}

dt.comic::before {
    content: '\f302';
    font-family: "Font Awesome 6 Free";
    font-weight: var(900); 
    padding-right: 5px;
}

dt:first-of-type {
    margin-top: 0;
}

dt.selected {
    background-color: var(--yellow);
    border-radius: 0 var(--button-border-radius) 0 0;
}

dt.selected.comic {
    border-radius: var(--button-border-radius) var(--button-border-radius) 0 0;
    background-color: var(--ngss-green-dark);
}

dt:hover {
    background-color: var(--yellow);
    cursor: pointer;
}

dt.comic:hover {
    background-color: var(--mid-ngss-green);
}

dt.selected:not(.comic):before {
    content: "";
    position: absolute;
    right: 100%; /* Positions it at the right end */
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 20px solid var(--yellow); /* The point color */
}

dt button {
    background-color: transparent!important;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    float: right;
    padding: 0;
}

dt i {
    float: right;
    padding-top: 2px;
}

dt i.open {
    display: none;
}

dt i.closed {
    display: inline-block;
}

dt.selected i.open {
    display: inline-block;
}

dt.selected i.closed {
    display: none;
}

dd {
    display: none;
    background: var(--pale-blue);
    border: 1px solid var(--light-blue);
    padding: 0 1rem;
    border-radius: 0 0 var(--button-border-radius) var(--button-border-radius);
}

dd.selected {
    background: rgba(244, 186, 51, .2);
    border-color: var(--yellow);
    display: block;
}

dd.selected.comic {
    border-color: var(--ngss-green-dark);
    background-color: #5f782933;
}

dd li + li {
    margin-top: 1rem;
}

/* -------------------------------------------------------- */
/* buttonset */
/* -------------------------------------------------------- */
.buttonset input[type="radio"] {
    display: none; /* Or use opacity: 0; */
}

.buttonset label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.buttonset input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.buttonset label:hover {
    background-color: #e0e0e0;
}

.buttonset input[type="radio"]:focus + label {
    outline: 2px solid #0056b3; /* For accessibility */
}


/* -------------------------------------------------------- */
/* interactive */
/* -------------------------------------------------------- */
#interactive {
    border-radius: 0 1rem 1rem 1rem;
    background-color: var(--mid-blue-lighter);
    text-align: center;
    margin-top: 89px;
}

#interactive h2 {
    padding-bottom: 1rem;
}

#interactive h2 + p {
    margin-top: -.5rem;
    margin-bottom: 2rem;
}

#interactive p {
    text-align: left;
}

/* -------------------------------------------------------- */
/* content */
/* -------------------------------------------------------- */
#contentWrapper {
    display: flex;
    gap: 1rem;
    background-color: white;
    border-radius: 1rem;
    border-width: var(--large-margin);
    border: 10px solid var(--mid-blue);
    padding: 1rem;
}

#content {
    flex: 1 1 auto;
    padding: 1rem 1rem 1rem 0;
}
 
h2#contentTitle  {
    margin-left: 2.5rem;
    padding-bottom: 0;
}

#contentBody h2 {
    margin-left: 0;
    padding-bottom: 1.5rem;
}

#content h3 {
    font-size: 1.4rem;
    text-align: left;
}

#contentBody {
    margin-left: 2.5rem;
}


#tabContainer + #interactive {
    margin-top: -8px;
    
}

#tabScreen {
    
    background-color: white;
}

#modelHolder {
    background-color: white;
    border: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    /* border-radius: .5rem 0 0 .5rem; */
}

#tabScreen img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* -------------------------------------------------------- */
/* content images and image grid */
/* -------------------------------------------------------- */
.imgholder {
    width: 250px;
    background-color: white;
    border-radius: var(--button-border-radius);
    border: 1px solid var(--dark-blue);
    margin-bottom: 1rem;
}

.imgholder.right {
    float: right;
    margin-left: 1rem;
}

.imgholder.margintop {
    margin-top: 1rem;
}

.imgholder img,
.imgholder div svg {
    border-radius: calc(var(--button-border-radius) - 1px) calc(var(--button-border-radius) - 1px) 0 0;
    border-bottom: 1px solid var(--dark-blue);
    display: block;
    background-color: var(--mid-blue-pale);
}

.imgholder.nocaption img {
    border-radius: calc(var(--button-border-radius) - 1px);
    border-bottom: none;
}

.imgholder .caption {
    padding: .5rem;
}

.imgholder .caption p {
    padding: 0 0 .5rem 0;
    margin: 0;
    font-size: .9rem;
}

.imggrid {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}



.imggrid .imgholder {
    margin-bottom: 0;
}

/* single row image grid */
.imggrid.singlerow {
    justify-content: stretch;
    flex-wrap: nowrap;
}

.imggrid.singlerow .imgholder {
    flex: 1 1 auto;
    width: auto!important;
}

.imggrid.singlerow.length4 .imgholder {
    flex-basis: 25%;
}

.imggrid.singlerow.length3 .imgholder {
    flex-basis: 33%;
}

.imggrid.singlerow.length2 .imgholder {
    flex-basis: 50%;
}

@media screen and (max-width: 1000px) {
    .imggrid.singlerow {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

  .imggrid.singlerow.length4 .imgholder {
    flex-basis: 45%;
    }

    .imggrid.singlerow.length3 .imgholder {
    flex-basis: 45%;
    }
}

.imggrid.singlerow .imgholder img {
    width: 100%;
    max-width: 100%;
}



/* -------------------------------------------------------- */
/* footer */
/* -------------------------------------------------------- */
footer {
    padding: 2rem;
}

footer p {
    color: white;
    font-size: .9rem;
    line-height: 1.3rem;
    padding: 0;
    margin: 0;
}

footer img {
    padding-bottom: 1rem;
    float: right;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------- */
/* GENERAL */
/* -------------------------------------------------------- */
.hide {
    display: none;
}

.transparent {
    opacity: 0;
}


@media screen and (max-width: 450px) {
    :root {
        --progressButtonWidth: 82px;
    }
    .hideVertMobile {
        display: none!important;
    }   
}


.sr-only {
    display: none!important;
}