/*
Theme Name: F13 Life
Author: Jim Valentine
Description:
Version: 0.0.1
Tags:
*/

:root {
    --brown: #7C3A00;
    --orange: #DC5F00;
    --light-orange: #FF8400;
}

html.dark {
    background: #222 !important;
}

.brown {
    color: var(--brown);
}

.orange {
    color: var(--orange);
}

body {
    font-family: sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
}

.dark body {
    background: #222;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--orange);
}

nav {
    background-color: var(--brown);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 265px;
    transition: left 0.5s;
    margin-left: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
}

nav input[type="checkbox"] {
    display: none;
}

nav .logo img {
    filter: brightness(0) invert(1);
    width: 50px;
    margin: 10px;
}

nav .logo .lifewise-life,
nav .logo .lifewise-wise {
    font-size: 40px;
    vertical-align: top;
    line-height: 75px;
    display: inline-block;
    margin: 0;
    color: white;
}

nav .logo .lifewise-wise {
    color: var(--light-orange);
}

nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 125px;
    bottom: 0;
    left: 0;
    width: 265px;
    overflow-y: auto;
    margin-bottom: 45px;
}

nav ul.menu > li > ul {
    list-style: none;
}

nav ul.menu ul {
    list-style: none;
    padding-left: 0;
}

nav ul.menu ul ul a {
    padding-left: 30px;
}

/* width */
nav ul.menu::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  nav ul.menu::-webkit-scrollbar-track {
    background: var(--brown);
  }
  
  /* Handle */
  nav ul.menu::-webkit-scrollbar-thumb {
    background: #888;
  }
  
  /* Handle on hover */
  nav ul.menu::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

nav ul.menu li a {
    padding: 7px 15px;
    display: block;
    text-decoration: none;
    color: white;
}

nav ul.menu li.current_page_item > a {
    background-color: #fff3;
}

nav ul.menu li a:hover {
    background-color: var(--orange);
}

.f13-life-container {
    position: absolute;
    top: 0;
    left: 265px;
    top: 80px;
    top: 0px;
    right: 0;
    background: #fff;
    color: #222;
    padding: 0 10px 40px;
}

.dark .f13-life-container {
    background: #222;
    color: white;
}

.google-chart-container {
    border: 1px solid #ccc;
    margin: 10px 0px;
}

.dark .google-chart-container {
    filter: invert(0.9);
}

.f13-data-header-btn-new {
    color: var(--orange);
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
input[type=submit],
textarea,
select {
    display: block;
    width: 100%;
    border-radius: 0;
    padding: 10px;
    max-width: unset;
    background-color: #f7f7f7;
    border: 2px solid #aaa;
    cursor: pointer;
    box-sizing: border-box;
}

.dark input[type=text],
.dark input[type=email],
.dark input[type=password],
.dark input[type=number],
.dark input[type=tel],
.dark input[type=url],
.dark input[type=submit],
.dark textarea,
.dark select {
    background-color: #343D4E;
    color: white;
}

/* Disabled */
.dark input[type=text]:disabled,
.dark input[type=email]:disabled,
.dark input[type=password]:disabled,
.dark input[type=number]:disabled,
.dark input[type=tel]:disabled,
.dark input[type=url]:disabled,
.dark input[type=submit]:disabled,
.dark textarea:disabled,
.dark select:disabled {
    background-color: #222;
    color: #aaa;
    cursor: not-allowed;
}

#site_search input[type=text] {
    display: inline-block;
    width: 244px;
    margin-left: 10px;
    padding-right: 50px;
    position: relative;
    margin-right: -43px;
}

#site_search input[type=submit] {
    display: inline-block;
    width: 45px;
    position: relative;
    left: -6px;
    color: #222;
}

.dark #site_search input[type=submit] {
    color: white;
}

#site_search input[type=submit]:hover {
    background: #efefff;
}
.dark input[type=submit]:hover,
.dark #site_search input[type=submit]:hover {
    background-color: #222;
    color: white;
}

.validation span.valid {
    background-color: #005500 !important;
}

.validation span {
    display: block;
    background-color: #990000 !important;
    padding: 5px;
}

#account_form, 
#login_form {
    max-width: 600px;
    margin: 0 auto;
}

#dark-mode {
    position: absolute; 
    cursor: pointer;
    color: #fff;
    display: none;
    font-weight: bold;
    left: 0;
    width: 265px;
    bottom: 0;
    display: block;
    box-sizing: border-box;
    padding: 10px;
}

#dark-mode:hover {
    background: var(--orange);
}

#dark-mode .dashicons {
    font-size: 1.5em;
    margin-top: -5px;
}

#dark-mode .dashicons:before {
    color: yellow;
}

#dark-mode.active .dashicons:before {
    color: #ccc;
}

#dark-mode:hover .dashicons:before {
    color: #ccc;
}

#dark-mode.active:hover .dashicons:before {
    color: yellow;
}

.f13-accounts-success,
.f13-accounts-error,
.f13-notice {
    display: block !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
}

.f13-notice.f13-notice-error, 
.f13-accounts-error {
    background: #ffcccc !important;
}

.f13-notice.f13-notice-success,
.f13-accounts-success {
    background: #ccffcc !important;
}

.f13-notice.f13-notice-warning {
    background: #ffffcc !important;
}

.dark .f13-notice.f13-notice-error,
.dark .f13-accounts-error {
    background: #990000 !important;
    color: #fff !important;
}

.dark .f13-notice.f13-notice-success,
.dark .f13-accounts-success {
    background: #005500 !important;
    color: #fff !important;
}

.dark .f13-notice.f13-notice-warning {
    background: #6F4500 !important;
    color: #fff !important;
}

#nav-burger {
    display: none;
}

#nav-burger-label {
    display: none;
}

.delete-links:hover {
    background: #990000 !important;
}

.nolink:hover {
    background: unset !important;
    cursor: unset !important;
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 10px;
    background: #eee;
    border-radius: 10px 0 0 0;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    z-index: 1;
}

.dark footer {
    background: #222;
}

@media screen and (max-width: 1100px) {
    nav {
        left: -265px;
        z-index: 99;
    }

    .f13-life-container {
        left: 0;
        margin-top: 50px;
    }

    #nav-burger-label {
        width: 40px;
        height: 40px;
        position: fixed;
        top: 15px;
        background: var(--brown);
        left: 0px;
        z-index: 99;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        display: block;
        transition: left 0.5s;
    }

    #nav-burger-label .dashicons {
        font-size: 2em;
        color: white;
        line-height: 40px;
        width: 40px;
    }

    #nav-burger:checked ~ #nav-burger-label {
        left: 265px;
    }

    header {
        z-index: 2;
    }

    #nav-burger:checked ~ header nav {
        left: 0;
    }
}