*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font: 0.935rem arial, helvetica, sans-serif;
    color: #000000;
    -webkit-text-size-adjust: none;
}

header {
    margin: 2.5% 0 0 5%;
}

.slogan {
    margin: 10px 0;
    color: #000000;
    font-size: 24px;
}

.slogan img {
    max-width: 95%;
    height: auto;
}

nav {
    padding: 0 0 20px;
    margin-left: 5%;
}

nav a:link, nav a:visited {
    font-size: 14px;
    background-color: #3e7627;
    color: #ffffff;
    text-decoration: none;
    padding: 8px;
    border-radius: 3px;
    display: inline-block;
    text-align: center;
    margin: 1px;
    width: 204px;
    line-height: 19.5px;
    white-space: nowrap;
}

nav a:hover {
    opacity: 0.8;
}

a.tooltip {
    border-bottom: #800 dotted 1px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 1px;
}

.glossary-def {
    margin: 0 0 10px 25px;
}

.ital {
    font-style: italic;
}

ul, ol {
    margin: 0;
}

h1 {
    margin-left: 5%;
}

h2 {
    text-align: center;
}

a:link, a:visited {
    color: #000000;
}

a:hover, a:active {
    color: #777777;
}

#how-to-vid {
    border: none;
}

/*PDF viewer page*/
.media-list {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.media-link, .media-link:link, .media-link:visited {
    width: 7rem;
    background-color: #bfaa85;
    border: none;
    color: white;
    text-decoration: none;
    margin: 5px;
    padding: 0.5rem;
    border-radius: 10px;
}

.media-link.active {
    background-color: #7e6440;
}

.media-iframe {
    width: 100%;
    max-width: 1000px;
    height: 98vh;
    margin: 0 auto;
    display: block;
    border: none;
}

.media-iframe-title {
    text-align: center;
    font-weight: bold;
}

/*search page*/
.form-cont, .page-cont {
    margin: 0 auto;
    width: 90%;
}

.highlight {
    border: #777 solid 1px;
    background-color: #f7f7f7;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.form-cont label {
    padding-right: 15px;
    white-space: nowrap;
    min-width: 6.5em;
}

.form-cont input[type=radio], .form-cont input[type=checkbox] {
    margin: 15px;

}

.form-cont input[type=submit], .form-cont button, .result-notice button {
    -webkit-appearance: none;
    text-decoration: none;
    border: 1px solid #adadad;
    border-radius: 0.9rem;
    background-color: #e1e1e1;
    padding: 0.5em 3em;
    margin: 5px 0;
    cursor: pointer;
}

.form-cont input[type=submit], .form-cont button, .result-notice, .result-notice button {
    color: #880000;
    font-weight: bold;
}

fieldset {
    border: none;
}

.gl-cont, .ss-cont {
    display: flex;
    flex-wrap: wrap;
}

.gl-cont label {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.ss-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0.5rem 0.5rem 0;
    padding: 2px 0;
}

.ss-item label {
    display: flex;
    align-items: center;
}

.result-cont p {
    margin: 5px;
}

.strand-bg-1 {
    background-color: #96ceff;
}

.strand-bg-2 {
    background-color: #b6d7a8;
}

.strand-bg-3 {
    background-color: #ffe3c0;
}

.strand-bg-1a {
    background-color: #cce7ff;
}

.strand-bg-2a {
    background-color: #c7d6c1;
}

.strand-bg-3a {
    background-color: #fff1e0;
}

p.strand-text {
    font-size: 1.03rem;
    font-weight: bold;
}

.row-cont {
    border-top: #000000 solid 2px;
}

.libnum-text {
    font-weight: bold;
}

.ela-button {
    position: relative;
    margin: 10px;
    padding: 1px 7px;
    border: 1px solid #aaa;
    border-radius: 6px;
    outline: none;
}

.ela-button + .ela-text {
    width: 60%;
    margin: 0 0 0 10px;
    padding: 0 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}

.ela-button + .ela-text pre {
    white-space: pre-wrap;
    font-family: arial, helvetica, sans-serif;
}

.grade-text {
    font-weight: bold;
}

/*top button*/
html {
    scroll-behavior: smooth;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #3e7627;
    color: white;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 0.4rem;
    text-decoration: none;
}

@media (hover: hover) {
    #topBtn:hover {
        background-color: #555;
    }
}

/*footer*/
footer {
    text-align: center;
    margin: 20px 0;
}

footer a {
    white-space: nowrap;
    margin: 0 10px 20px;
    display: inline-block;
}

/*desktop*/
@media all and (min-width: 601px) {
    .row-cont {
        display: flex;
        flex-wrap: wrap;
    }
    .ind-cont, .goal-cont {
        width: 150px;
    }
}

/*mobile*/
@media all and (max-width: 675px) {

    fieldset.radio label:not(:first-child) {
        display: block;
    }

    .no-mobi {
        display: none;
    }

    .ela-button + .ela-text {
        width: 80%;
    }

    #how-to-vid {
        height: 45.8vw;
        width: 80vw;
    }

    .gl-cont label {
        flex-basis: 5rem;
        margin-right: 0;
    }
}