/*
Theme Name: Arm & Hammer Playbook
*/

body {
    --PrimaryFont: "neue-haas-grotesk-text", sans-serif;
    --TitleFont: owners-narrow, sans-serif;
    --primary: #004a90;
    --background: #fff;
    --navBackground: #e6e6e6;
    --link: #004a90;
    --link: #d31145;
    --textColor: #000;
    --selectTextColor: #333;

    --StandardTransitionSpeed: 500ms;
    --StandardTransitionFunction: cubic-bezier(0.075, 0.82, 0.165, 1);

    font-family: var(--PrimaryFont);
    font-size: 1.1em;
    margin-bottom: 3em;
    background: var(--background);
    color: var(--textColor);
}

a {
    color: var(--link);
}

a:hover {
    color: var(--link);
    opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--TitleFont);
    font-weight: 800;
    color: var(--primary);
    font-size: 40px;
    line-height: 1.2em;
    margin-bottom: 0em;
}

h1 {
    line-height: 1.0;
    padding-top: 0.5em;
}

h2 {
    font-size: xx-large;

}

h3 {
    font-size: x-large;

}

#logo {
    position: absolute;
    top: 10px;
    width: 45px;
    height: 45px;
    left: 4px;
    background: url(logo.svg) no-repeat;
    background-size: contain;
}

#logo a {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

#fixedNav {
    position: fixed;
    background: var(--navBackground);
    margin-bottom: 10px;
    width: 100%;
    text-align: right;
}

#fixedNav>.container {
    position: relative;
}

#content {
    padding-top: 75px;
    min-height: calc(95vh - 75px);
}
#content_not_found {
    padding-top: 150px;
    padding-bottom:150px;
    text-align: center;
}

header select {
    font-weight: bold;
    color: var(--selectTextColor);
    background-color: var(--navBackground);
    border: 1px solid var(--textColor);
    border-radius: 4px;
    box-shadow: none;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    /*display: inline-block;*/
    height: 46px;
    line-height: 46px;
    padding: 6px 12px;
    font-size: 20px;
    margin: 10px 4px;
    min-width: 175px;
}

header select:disabled {
    background: #ddd;
}

#nav-boxes {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 20px;
}

#nav-search {
    background-size: 24px;
    color: var(--textColor);
    height: 46px;
    width: 32px;
    position: absolute;
    top: 10px;
    right: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}

#nav-search svg {
    width: 24px;
    height: 24px;
}

#content header {
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modified-date {
    font-style: italic;
}

.breadcrumbs {
    flex-grow: 1;
}

.post-options {
    width: 100%;
    display: flex;
}

.edit_links {
    align-self: flex-end;
    text-align: right;
}

/* Search Box */
#search-box>form {
    z-index: 999999;
    overflow: hidden;
    position: absolute;
    display: flex;
    width: 938px;
    height: 0;
    left: calc(50% - 938px / 2);
    padding: 0;
    top: 66px;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(84, 88, 89, 0.7);
    border-left: 1px solid rgba(84, 88, 89, 0.7);
    background: var(--background);
    transition: all var(--StandardTransitionSpeed) var(--StandardTransitionFunction);
}

#search-box.active>form {
    height: 215px;
    padding: 40px 50px;
    box-shadow: 0px 5px 7px 0px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(84, 88, 89, 0.7);
}

#search-box input[type="text"],
.search-box input[type="text"] {
    border-radius: 33px 0px 0px 33px;
    /*
    border-top: 1px solid var(--Smoke);
    border-bottom: 1px solid var(--Smoke);
    border-left: 1px solid var(--Smoke);
    */
    border: none;
    background: var(--navBackground);
    padding-left: 25px;
    color: var(--textColor);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: 0.16px;
    height: 40px;
    outline: 0;
    border: 1px solid var(--navBackground);
}

#search-box input[type="text"]:focus {
    border: 1px solid var(--selectTextColor);
}

#search-box input[type="submit"],
.search-box input[type="submit"] {
    border-radius: 0px 33px 33px 0px;
    border-top: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    border-left: none;
    background: var(--primary);
    height: 40px;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.search-result {
    margin-bottom: 2em;
}

#footer {
    text-align: center;
    margin-top: 3em;
}
#logout{
    margin-top:1em;
    margin-bottom:1em;
}
#footer button {
    color: var(--link);
    background:none;
    border:none;
    transition: color .1s ease-in;
}
#footer button i{
    color: var(--textColor);
    width:1em;
    height:1em;
    font-size:24px;
}
#footer button:hover{
    color: var(--link);
    opacity: 0.9;
    text-decoration: none;
}
#footer button:hover i{
    opacity: 0.9;
}
#playbook_logo{
    width:100%;
    background:url(images/playbook.png) left no-repeat;
    background-size:contain;
    height:250px;
    margin-bottom:1em;
}
@media (min-width: 1400px) {

    header .container,
    header .container-lg,
    header .container-md,
    header .container-sm,
    header .container-xl {
        max-width: 1340px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        --primary: #0070dc;
        /* safe contrast version of brand color #004a90 */
        --navBackground: #333;
        --background: #111;
        --link: #e63956;
        --textColor: #fff;
        --selectTextColor: #fff;

    }

    header select {
        border: 1px solid #111;
    }

    header select option {
        border: none;
    }

    header select:disabled {
        background: #222;
    }

    #content header {
        border-bottom: 1px solid #fff;
    }

}


@media print {
    #fixedNav, .post-options .edit_links, #footer{
        display:none;
    }
    #content{
        padding-top:1em;
    }
}