:root {
    --background: #101418;
    --card: #1B2127;
    --blue-1: #66B2FF;
    --blue-2: #5490FF;
    --blue-3: #416DFF;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

*:not(.fa-solid) {
    font-family: 'Nunito', 'Poppins', Arial, Helvetica, sans-serif !important;
}

html {
    background-color: var(--background);
}

body {
    display: none;
    max-width: 500px;
    margin: auto;
}

#statdata, 
#statnum, 
#statnum span, 
.habit .title, 
.habit-icon,
.checkbox,
.menu-button,
.site-name,
.guide-link,
.category-title,
.flex  {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-col  {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

main {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 1em;
    margin-top: 0;
    gap: 8px;

    /* max-width: 500px; */
    overflow-x: scroll;
    right: 100%;
    overflow-y: visible;
}

/* @media (min-width: 600px) { */
@media (min-width: 0px) {
    main::-webkit-scrollbar {
        display: none;
    }
      
    main{
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}


main > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    position: relative;
    border-radius: 8px;
    font-weight: 500;
    background-color: var(--background);
    --background: var(--card);
    --background: #161b20;
    --day-text: #454545;
    --day-number: #5F5F5F;
    --checkmark-display: block;
    --checkmark-color: #3A3C42;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

main div .checkmark {
    position: absolute;
    right: -2px;
    top: -3px;
    font-size: 16px;
    color: var(--checkmark-color);
    display: var(--checkmark-display);
}

.day-text {
    color: var(--day-text);
}

.day-number {
    color: var(--day-number);
}

.today {
    --background:var(--blue-3);
    --day-text: #8EA8FF;
    --day-number: #FFF;
    --checkmark-display: none;
    --checkmark-color: #3c5abf;
    font-weight: 500;
}

.today.done {
    --background: color-mix(in srgb, var(--blue-3) 50%, transparent);
    --day-text: #8EA8FF88;
    --day-number: #FFF6;
    --checkmark-display: block;
}




header {
    margin: .8em 1em;
    display: flex;
    color: #FFF;
    gap: 20px;
    font-size: 24px;
    /* justify-content: space-between; */
    justify-content: center;
    align-items: center;
}

.site-name {
    display: flex;
    font-weight: 600;
    /* gap: 10px; */

    align-items: start;
}

.site-name span {
    color: var(--blue-1) !important;

}

.subtext {
    font-size: 12px;
    text-align: start;
    font-weight: 300;
    line-height: 20px;
    color: rgb(170, 214, 255);
}

.guide-link {
    margin-left: auto;
    color: #6d6f76;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.75px;
}

.guide-link span {
    /* text-decoration: underline; */
    text-underline-offset: 3px;
    text-decoration-color: #525456;
}

.guide-link a {
    color: #cAcCd2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    background-color: #1b2127;
    padding: 7.5px 12px;
    border-radius: 8px;
    /* padding-right: 16px; */
}

.menu-button {
    z-index: 11;
    width: 24px;
    /* height: 24px; */
    color: #fff;
    display: none;
}

#menu {
    display: none;
    position: absolute;
    height: 100dvh;
    width: 100vw;
    padding: 2em;
    background-color: #101214ee;
    top: 0;
    left: -100%;
    overflow: hidden;
    z-index: 10;
}

#menu ul {
    list-style: none;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2em 0;
    font-size: 20px;
    color: #fff;
    max-width: 440px;
    margin: auto;
}

#menu ul hr {
    background-color: #1B2127;
    border: none;
    height: 2px;
}

#menu li a {
    padding: 6px 0;

    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 16px;
}

#menu li i {
    font-size: 20px;
    color: #999;
}

#menu li.active a,
#menu li.active i {
    color: var(--blue-1) !important;
}

.fa-up-right-from-square {
    font-size: 14px !important;
}

#statistics {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card);
    border-radius: 8px;
    margin: 1em;
    padding: 0.75em;
    gap: 12px;
    --foreground: var(--blue-3);
    --dark: #3d3dcf;
    --dark: #11151d;
    --completed: 1%;
}

#statdata {
    flex-direction: column;
    gap: 6px;
    color: #fff;
    width: 100%;
}

#stattexts {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--foreground);
    font-size: 16px;
    color: #fff;
}

#text1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

#statbar {
    --height: 5px;
    height: var(--height);
    width: 100%;
    background-color: var(--dark);
    border-radius: 8px;
    position: relative;
}

#statbar::before {
    position: absolute;
    content: '';
    height: var(--height);
    width: var(--completed, 0%);
    background-color: var(--foreground);
    border-radius: 8px;
}

#statbar div {
    height: var(--height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0 0.5em;
    position: absolute;
    content: '';
}

#statnum {
    color: #999;
}

#statnum span {
    font-size: 16px;
    color: #999;
}

span#donenumber {
    color: #fff;
    font-size: 16px;
}

#habits {
    margin: 1em;
    gap: 0.5em;
    display: flex;
    flex-direction: column;
}

.habit {
    /* background-color: #1B1B1B; */
    background-color: var(--card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75em;
    color: #fff;
    border-radius: 8px;
}

.habit .title {
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.habit .title span {
    color: var(--blue-1);
}

.habit-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #272f36;
}

.checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #ccc;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    position: relative;
}

.habit[done="true"] .checkbox {
    border: 2px solid var(--blue-3);
    background-color: var(--blue-3);
}

.habit:not([done="true"]) .checkbox i {
    display: none;
}

.habit[done="true"] {
    opacity: 0.5;
}

.checkbox {
    z-index: 1;
}

.checkbox .animation {
    background-color: #fff;
    position: absolute;
    display: flex;
    opacity: 0.5;
    z-index: -1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50%;
    /* animation: click-checkbox .8s infinite; */
    opacity: 0;
}

.separator {
    background-color: #272f36;
    margin: 0 1em;
    border: none;
    height: 2px;
    border-radius: 2px;
}

h1, h2, h3 {
    color: var(--blue-1);
    text-align: center;
    padding: 0.3em;
}

#other-habits {
    margin: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#edit-habits {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-decoration: none;
    color: #454545;
    gap: 4px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #222222;
}

@media (max-width: 380px) {
    .site-name {
        font-size: 20px;
    }
}

.category-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #2B2F34;
    gap: 6px;
    white-space: nowrap; 
}

.category-title div {
    height: 2px;
    border-radius: 8px;
    background-color: #2B2F34;
    width: 100%;
}


.habit-details {
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
}

.habit-text {
    font-weight: 500 !important;
    font-size: 16px !important;
}

.habit-measure {
    color: #888;
    color: rgb(133, 158, 185);
    color: var(--blue-1);
    font-size: 16px !important;
    font-weight: 500 !important;
}

#navigation {
    position: fixed;
    /* height: 10vh; */
    background-color: #101418;
    z-index: 100;
    bottom: 0;
    left: 0;
    width: 100vw;
    /* display: flex;   
    justify-content: space-between;
    align-items: center;
    text-align: center; */


    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-template-columns: 1fr 1fr 1fr 1fr; */
    padding: 12px;
    gap: 12px;
    border-top: 1px solid #171c20;
}

#navigation div {
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

#navigation div.active {
    color: var(--blue-1);
}

#navigation div span:nth-child(2) {
    font-size: 14px;
}

body {
}

#habits {
    overscroll-behavior: auto;
}

.no-select,
.header,
#navigation
main,
body {
    -webkit-user-select: none !important; /* Safari */
    -ms-user-select: none !important; /* IE 10 and IE 11 */
    user-select: none !important; /* Standard syntax */
}