/* notes to self
1. Figure out bottom border for .onboarding-header 
2. Cool Scroll effects?
*/


/* smooth scroll */

html {
    scroll-behavior: smooth;
}

section.wrapper {
    background: #e6e6e6;
    padding-top: 4em;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-family: "DM Mono";
    font-weight: 600;
    line-height: 1.42857;
    word-break: break-all;
    word-wrap: break-word;
    color: #333333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* text styling */

h1 {
    text-align: left;
    font-weight: 200;
    font-size: 36px;
    margin-top: 50px;
    margin-bottom: 25px;
}

h2 {
    text-align: left;
    font-weight: 200;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 30px;
}

article h2 {
    text-align: left;
    font-weight: 200;
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 20px;
}

å
/* list styling */

ul {
    padding: 0px;
    margin: 0px;
}

.list-disc li {
    margin-bottom: 1em;
}


/* list link styling */

ul a:hover {
    color: #333333;
    text-decoration: none;
    transition: 0.3s;
}


/* paragraph link styling */

p a:link {
    color: #3388dd;
    text-decoration: none;
}

p a:visited {
    color: #3388dd;
    text-decoration: none;
}

p a:hover {
    color: #3388dd;
    text-decoration: underline;
    transition: 0.3s;
}

table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: .35em;
}

table th,
table td {
    padding: .625em;
    text-align: center;
}

table th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media screen and (max-width: 600px) {
    table {
        border: 0;
    }
    table caption {
        font-size: 1.3em;
    }
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }
    table td::before {
        /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    table td:last-child {
        border-bottom: 0;
    }
}


/* css grid for section 2 */

.page {
    display: grid;
    grid-template-columns: auto 450px 700px auto;
    grid-template-rows: auto auto;
}


/* header styling */

.onboarding-header {
    grid-column: 3 / 4;
    grid-row: 1/2;
    border-bottom: 1px solid #e5e5e5;
    padding: 50px 300px 50px 50px;
}


/* checklist styling */

.onboarding-checklist {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    border-right: 1px solid #e5e5e5;
    padding: 50px;
}

#sticky-nav {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 50px;
}


/* steps styling */

.onboarding-steps {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    padding: 0px 50px 50px 50px;
}


/* tab styling */

.tab {
    overflow: hidden;
    padding: 50px 0px 0px 0px
}

.tablinks {
    padding: 0px 50px 0px 0px;
}

.tab button {
    color: #cccccc;
    text-align: left;
    font-family: 'Interstate';
    font-weight: 100;
    font-size: 18px;
    border: 0px;
    cursor: pointer;
}

.tab button:hover {
    color: #3388dd;
    transition: 0.3s;
}

.tab button:focus {
    color: #333333;
    outline: none;
    transition: 0.3s;
}

.tab button.active {
    color: #333333;
    transition: 0.3s;
}


/* Fade Animation for opensegment script */

.onboarding-steps {
    animation: fadeEffect 2s;
    /* Fading effect takes 1 second */
}


/* Go from zero to full opacity */

@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 35em) {
    .page {
        display: block;
    }
}