/* Resets */

html,body,div,p,
h1,h2,h3,h4,h5,h6,
ul,ol,li,
dl,dt,dd,
form,fieldset,caption,
table,tr,td,th,
address,blockquote,img {
    margin:0;
    padding:0;
}

img, fieldset {
    border:none;
}

/* General scroll behaviour */

html {
    scroll-behavior: smooth;

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {

    --primary-font-family: "proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --secondary-font-family: "myriad-pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    font-family: var(--primary-font-family);

}

body {
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) minmax(21rem, 61.25rem) minmax(1rem, 1fr);
    /*background-color: #ccc;*/
}

header,
div.prev-next {
    grid-column: 2;
}

header ul {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.625rem;
}

header ul li:last-child a:link,
header ul li:last-child a:visited {
    color: #333;
    font-size: 0.8125rem;
    margin-right: 1.25rem;
    text-decoration: none;
}

header ul li:last-child a:hover {
    border-bottom: 1px dotted #333;
}

a#logo {
    background: url(https://statistics.laerd.com/img/logo.png) no-repeat;
    background-size: contain;
    height: 4.25rem;
    width: 7rem;
    display: block;
}

nav[aria-label="primary"],
nav[aria-label="secondary"] {
    grid-column: 1/4;
    display: grid;
    grid-template-columns: inherit;
    font-family: var(--secondary-font-family);
}

nav[aria-label="primary"] {
    background-color: #369;
}

nav[aria-label="secondary"] {
    background-color: #fafafa;
}

nav[aria-label="primary"] > *,
nav[aria-label="secondary"] > * {
    grid-column: 2;
}

body > nav:nth-child(4) {
    display: none;
    padding: 0.5rem 0;
}

nav[aria-label="secondary"] details {
    background-color: #fafafa;
    align-content: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

nav[aria-label="secondary"] details ul {
    flex-direction: column;
    align-items: stretch;

}

div#testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

div#testimonials img {
    padding: 0.5rem;
}

div#testimonials p {
    padding: 1.25rem;
    width: 25%;
    min-width: 15rem;
    flex: 1;
    font-family: Georgia, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    line-height: 1.375rem;
    font-style: italic;
    color: #444;
    position: relative;
}

div#testimonials span:first-child {
    position: relative;
}

div#testimonials p::before,
div#testimonials span:first-child::after {
    position: absolute;
    font-family: Georgia, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    font-style: normal;
    font-weight: bold;
    font-size: 36px;
    color: #095393;
}

div#testimonials p::before {
    content: '\201C';
    top: 0.8125rem;
    left: -0.375rem;
}

div#testimonials span:first-child::after {
    content: '\201D';
    top: 1rem;
    left: 0.5rem;
}

span.who {
    display: block;
    padding-top: 2rem;
    text-align: right;
    font-size: 0.875rem;
    color: #369;
}

main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

section#main {
    flex-direction: row;
}

main section {
    padding: 1rem;
    margin-bottom: 2.25rem;
}

main section p {
    font-size: 1rem;
    line-height: 1.75rem;
    margin: 1rem 0;
}

p a:link,
p a:visited {
    text-decoration: none;
    color: #005595;
    border-bottom: 1px dotted #005595;
}

p a:hover {
    border-bottom: 1px dotted #fff;
}

.subheadings {
    font-family: var(--secondary-font-family);
    font-size: 1.125rem;
    color: #005595;
}

a.features-button:link,
a.features-button:visited {
    display: block;
    color: #fff;
    font-family: var(--secondary-font-family);
    font-weight: 600;
    text-decoration: none;
    text-shadow: 1px 1px 1px #222;
    background: linear-gradient(to bottom, #FF9900 0%,#FF6633 100%);
    border-radius: 0.3125rem;
    text-align: center;
    /*height: 2.5rem;*/
    line-height: 2.5rem;
    padding: 0.325rem 1.85rem;
    width: 7rem;
}

a.features-button:hover {
    background: #FF6633;
}

footer {
    grid-column: 2;
}

ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

ul li {
    display: inline-block;
}

nav[aria-label="primary"] ul {
    justify-content: flex-end;
    font-size: 1.125rem;
}

#menu-features:before {
    content: url('../img/menu-selected.png');
    position: absolute;
    margin-top: 1.45rem;
    margin-left: 2.5rem;
    z-index: 1000;
}

a#sign-up:link,
a#sign-up:visited {
    background: linear-gradient(to bottom,  #FF9801 0%,#FF6633 100%);
    text-shadow: 1px 1px 1px #333;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.3125rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

a#sign-up:hover {
    background: #FF9801;
}

nav a:link,
nav a:visited {
    display: block;
    padding: 0.35rem 0.65rem;
    margin: 0.35rem 0.7rem;
    text-decoration: none;
    color: #333;
    text-align: center;
}

nav[aria-label="primary"] a:link,
nav[aria-label="primary"] a:visited {
    color: #fff;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}
nav[aria-label="secondary"] ul {
    margin-left: -0.7rem;
}

nav a:hover {
    color: #fff;
    background-color: #6095CA;
    border-radius: 0.3125rem;
}

#feature-page-selected {
    color: #fff;
    background-color: #369;
    border-radius: 0.3125rem;
}

h1, h2, h6 {
    font-family: var(--secondary-font-family);
}

h1 {
    font-weight:100;
    font-size: 2.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    color: #222;
    margin-bottom: 2rem;
}

h1 + p {
    font-family: var(--secondary-font-family);
    font-size: 1.125rem;
    line-height: 1.875rem;
    font-weight: 100;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 1.875rem;
}

h1.declare {
    font-weight: 700;
    padding: 1.25rem;
    padding-bottom: 0.625rem;

}

h1.declare span {
    color:#005595;
    font-weight:500;
}

h2 {
    font-weight:300;
    color:#005595;
    font-size: 1.375rem;
    margin-bottom:0;
    margin-top:0;
}

section h2 {
    margin-left: 4rem;
    font-size: 1.75rem;
    position: relative;
}

section h2::before {
    content: "";
    background-size: 40px 40px;
    position: absolute;
    top: 0;
    left: -4rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: inline-block;
}

section#correct-test h2::before {
    background-image: url('../img/understand1-icon.png');
}

section#examples h2::before {
    background-image: url('../img/examples-icon.png');
}

section#spss-procedure h2::before,
section#step-by-step h2::before {
    background-image: url('../img/spss-procedure-icon.png');
}

section#data-setup h2::before {
    background-image: url('../img/data-entry-icon.png');
}

section#filter-data h2::before {
    background-image: url('../img/funnel-icon.png');
}

section#split-files h2::before {
    background-image: url('../img/split-icon.png');
}

section#reverse-coding h2::before {
    background-image: url('../img/reverse-icon.png');
}

section#weighting-cases h2::before {
    background-image: url('../img/weighting-icon.png');
}

section#understand-assumptions h2::before {
    background-image: url('../img/one-icon.png');
}

section#assumptions-met h2::before {
    background-image: url('../img/two-icon.png');
}

section#assumption-solutions h2::before {
    background-image: url('../img/three-icon.png');
}

section#options h2::before {
    background-image: url('../img/options1-icon.png');
}

section#advanced h2::before {
    background-image: url('../img/advanced-icon.png');
}

section#tests h2::before {
    background-image: url('../img/tests-icon.png');
}

section#understanding h2::before {
    background-image: url('../img/understanding1.png');
}

section#presenting h2::before {
    background-image: url('../img/graphs-icon.png');
}

section#writing h2::before {
    background-image: url('../img/write-icon.png');
}

ul#wishlist {
    position: relative;
    padding-left: 6rem;
    display: flex;
    flex-wrap: wrap;
}

ul#wishlist li {
    padding: 0.1rem;
}

ul#wishlist::before {
    content: "";
    background-size: 40px 40px;
    position: absolute;
    top: 1rem;
    left: 2rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: inline-block;
    background-image: url('../img/dec-25-icon.png');
}

section#tests,
section#everything,
section#spss-procedure,
section#understanding {
    flex-direction: column;
}

section#tests > div,
section#everything > div,
section#spss-procedure > div,
section#understanding > div {
    max-width: 100%;
    width: 100%;
}
section#tests > div:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

section#tests > div:last-child > div {
    flex: 1;
    min-width: 18rem;
}

section#tests h3 {
    color: #005595;
    font-size: 1.125rem;
    font-family: var(--secondary-font-family);
    padding: 1rem 0 0.5rem;
}

section#tests ul {
    display: block;
}

section#tests ul li {
    display: block;
    line-height: 1.5rem;
}

main > section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /*flex: 1;*/
}

section > div {
    flex: 1;
    width: 50%;
    min-width: 20rem;
}

section > div:has(p) {
    width: calc(50% - 2rem);
}

section div:has(p) {
    max-width: 27rem;
}

section div:first-child:has(img) {
    padding-right: 1rem;
}

section div:last-child:has(img) {
    padding-left: 1rem;
}

section#selecting div:last-child {
    padding: 2rem 0 0 2rem;
    min-width: 20rem;
}

div.prev-next ul {
    display: flex;
    justify-content: space-between;
}

div.prev-next ul a:link,
div.prev-next ul a:visited {
    font-family: var(--secondary-font-family);
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to bottom, #6095ca 0%,#369 100%);
    border-radius: 0.3125rem;
    text-align: center;
    padding: 0.625rem 1.56rem;
}

div.prev-next ul a:hover {
    background: #6095ca;
}

footer ul {
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

footer li {
    /*margin: 1rem 0;*/
}

footer a:link,
footer a:visited,
footer li {
    font-size: 0.75rem;
    text-decoration: none;
    color: #333;
    margin: 0.25rem 0.5rem;
    white-space: nowrap;
}

footer a:hover {
    border-bottom: 1px dotted #333;
}

h3 {
    font-weight:600;
    color:#6095CA;
    font-size:16px;
    margin-bottom:0px;
    margin-top:0px;
    padding-bottom:0px;
}
h6 {
    color:#555666;
    font-size:14px;
    margin-top:35px;
    padding:0px;
    padding-top:15px;
    margin-bottom:2px;
    border-top:1px solid #e9e9e9;
    font-weight:normal;
}

@media (max-width: 56rem) {
    div#testimonials img {
        display: none;
    }
    body > nav:nth-child(3) {
        display: none;
    }
    body > nav:nth-child(4) {
        display: flex;
    }
    section div:last-child:has(img) {
        padding: 1rem;
    }
    section#examples div:first-child {
        display: none;
    }
    section#examples div {
        max-width: 100%;
    }
    main section {
        margin-bottom: 0;
    }
    section div:has(p) {
        max-width: 100%;
    }
    ul#wishlist {
        margin-bottom: 1rem;
    }
    section#examples div:has(img),
    section#filter-data div:has(img),
    section#reverse-coding div:has(img),
    section#assumptions-met div:has(img),
    section#examples div:has(img),
    section#advanced div:has(img),
    section#presenting div:has(img) {
        display: none;
    }
}


@media (max-width: 40rem) {
    section div:last-child:has(img) {
        padding: 1rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    h2 + p:not(p.subheadings) {
        margin-top: 2rem;
    }
    h1 {
        font-size: 2rem;
    }
    nav[aria-label="primary"] li:nth-child(2) {
        display: none;
    }
    footer a:link,
    footer a:visited {
        padding: 0.5rem;
    }

}



