:root {
    --primary-color: hsl(122, 39%, 49%);
    --dark-primary-color: hsl(122, 39%, 39%);
    --light-primary-color: hsl(122, 39%, 84%);
    --accent-color: hsl(14, 100%, 57%);
    --divider-color: hsl(0, 0%, 74%);
    --secondary-color: hsl(0, 0%, 46%);
    
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    font-family: 'Roboto', sans-serif;
}

@media (min-width: 300px) {
    .menu_delete_button {
        background: #d50000;
        position: absolute;
        top: 0.4em;
        right: 0.4em;
    }
}

* {
    box-sizing: border-box;
    font-size: inherit;
    font-family: inherit;
}

body {
    margin: 0;
    height: 100%;
    width: 100%;
}

input {
    padding: 0.15em;
    border: 1px solid white;
    box-shadow: 0px 1px 5px var(--secondary-color);
}

button {
    background: var(--accent-color);
    border: 1px solid white;
    color: white;
    padding: 0.7em;
    box-shadow: 0px 1px 5px var(--secondary-color);
    transition: box-shadow 100ms ease-out;
    cursor: pointer;
}

button:disabled,
button:disabled:hover {
    background-color: var(--divider-color);
    box-shadow: 0px 1px 5px var(--secondary-color);
    cursor: not-allowed;
}

button:hover {
    box-shadow: 0px 1px 15px var(--secondary-color);
}

#wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#header {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 5em;
    display: flex;
    flex-direction: row;
    background-color: var(--primary-color);
    padding: 1.25em;
    position: relative;
    user-select: none;
}

#header > h1 {
    display: inline-block;
    color: white;
    font-weight: initial;
    font-size: 1.5rem;
}

#options_button {
    border: 0;
    background-color: transparent;
    padding: 1.25em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    margin-left: auto;
    box-shadow: none;
    transition: transform 300ms cubic-bezier(0.36, 0.95, 0.4, 1.72);
}

#options_button.hide {
    transform: translateY(-150%);
    transition: transform 300ms cubic-bezier(0.6, -0.28, 0.74, 0.05);
}

#options_button_content {
    --border: 0.25em solid #263238;
    border-bottom: var(--border);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    transition: border-bottom-color 300ms ease-in-out,
                transform 300ms ease-in-out;
}

.close > #options_button_content {
    border-bottom-color: transparent;
    transform: translate(-50%, -50%) rotate(180deg);
}

#options_button_content::before {
    content: '';
    border-bottom: var(--border);
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-0.6em);
    transition: transform 300ms ease-in-out;
}

.close > #options_button_content::before {
    transform: rotate(45deg);
}

#options_button_content::after {
    content: '';
    border-bottom: var(--border);
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(0.6em);
    transition: transform 300ms ease-in-out;
}

.close > #options_button_content::after {
    transform: rotate(-45deg);
}

.option_entry {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--divider-color);
    padding: 1em;
    overflow: hidden;
    cursor: pointer;
}

#header > #date {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
    position: absolute;
    right: 1em;
    bottom: 1em;
}

#content {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100vh;
    overflow-y: auto;
    position: relative;
}

.loading_wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    font-size: 0.6rem;
}

.loading_part {
    display: inline-block;
    width: 0.5em;
    height: 4em;
    border-radius: 0.4em;
    margin-left: 0.25em;
    margin-right: 0.25em;
    animation: loading 1s ease-in-out infinite;
}

.loading :nth-child(1) {
    background-color: #3498db;
}

.loading :nth-child(2) {
    background-color: #c0392b;
    animation-delay: 0.09s;
}

.loading :nth-child(3) {
    background-color: #f1c40f;
    animation-delay: 0.18s;
}

.loading :nth-child(4) {
    background-color: #27ae60;
    animation-delay: 0.27s;
}

@keyframes loading {
    0% {transform: scale(1)}
    20% {transform: scale(1, 2)}
    40% {transform: scale(1)}
}

#login_wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login_box {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    background-color: #81d4fa;
    background-image: linear-gradient(90deg, #81d4fa, #4fc3f7);
    box-shadow: 0px 1px 5px var(--secondary-color);
    padding: 1.5em;
    padding-top: 1.1em;
    animation: login_popup 400ms ease-in-out;
}

@keyframes login_popup {
    0% {transform: scale(0)}
    100% {transform: scale(1)}
}

#login_box > * {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.task {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--divider-color);
    height: 4.1em;
    overflow: hidden;
    cursor: pointer;
}

.task > * {
    margin-left: 0.7em;
    margin-right: 0.7em;
}

.task_time {
    display: flex;
    flex-direction: column;
    color: var(--accent-color);
}

.task_time > p {
    font-weight: bold;
    margin: 0;
    line-height: 1.3em;
    white-space: nowrap;
}

.task_content {
    min-width: 0;
}

.task_content > p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task_content_topic {
    font-size: 1.25rem;
}

.task_content_action {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.task_user {
    font-size: 1.4rem;
    text-align: right;
    font-weight: bold;
    margin-left: auto;
}

.task_user > div {
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
}

.task_user > .self {
    color: hsl(262, 52%, 47%);
}

.task_user > .all {
    color: var(--accent-color);
}

.birthday {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--divider-color);
    height: 4.1em;
    cursor: pointer;
    user-select: none;
    padding-left: 1em;
    width: 100%;
}

.birthday > div,
.listed_birthday > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.birthday_name, .listed_birthday_name {
    font-size: 1.25rem;
}

.birthday_info, .listed_birthday_info {
    font-size: 0.875rem;
    color: var(--accent-color);
}

.listed_birthday {
    display: flex;
    gap: 0.7em;
    align-items: center;
    padding-left: 1.15em;
    border-bottom: 1px solid black;
    padding-bottom: 0.2em;
    cursor: pointer;
    user-select: none;
}

.listed_birthday > .listed_birthday_day {
    width: 1.5em;
    min-width: 1.5em;
}

.listed_birthday_day::after {
    content: '.';
}

@media (max-width: 700px) {
    .listed_birthday_info {
        margin-left: auto;
    }   
}

.holiday {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--divider-color);
    height: 4.1em;
    cursor: pointer;
    user-select: none;
    padding-left: 1em;
    width: 100%;
}

.holiday > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.holiday_name {
    font-size: 1.25rem;
}

.holiday_info {
    font-size: 0.875rem;
    color: #2196f3;
}

.menu:has(.overview_title_bar) {
    height: initial;
    min-height: 100%;
}

.overview_title_bar {
    display: flex;
    gap: 0.5em;
}

.overview_title_bar > :last-child {
    margin-inline-start: auto;
}

.overview_title {
    text-align: center;
}



.section_title {
    display: flex;
    position: relative;
    align-items: center;
    font-size: 1rem;
    overflow: hidden;
    top: -1px;
    background-color: white;
    padding-left: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.section_title_blue {
    color: #2196f3;
}

.section_title_blue::before {
    filter: invert(61%) sepia(61%) saturate(4953%) hue-rotate(184deg) brightness(96%) contrast(100%);/*Adjust SVG Color accordingly LOL*/
}

#footer {
    font-size: 0.6rem;
    
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 5em;
    margin-top: auto;

    display: flex;
    flex-direction: row;
    transition: transform 300ms cubic-bezier(0.36, 0.95, 0.4, 1.72);
}

#footer.hide {
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.6, -0.28, 0.74, 0.05);
}

#footer :first-child {
    margin-right: auto;
    margin-left: 2.5em;
}

#footer :last-child {
    margin-left: auto;
    margin-right: 2.5em;
}

.nav_button {
    border: 0;
    border-radius: 50%;
    background-color: var(--accent-color);
    padding: 3.5em;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5em;
    margin-top: 2.5em;
    box-shadow: 0px 1px 5px var(--secondary-color);
    transition: box-shadow 200ms ease-in-out;
}

.nav_button:hover {
    box-shadow: 0px 1px 15px var(--secondary-color);
}

#previous_day_button,
#next_day_button {
    transition: transform 300ms ease-in-out;
}

#previous_day_button.close {
    transform: translateX(-150%);
}

#previous_day_button::after {
    content: url(/src/left_button.svg);
    position: absolute;
}

#menu_button::after {
    content: url(/src/plus_button.svg);
    position: absolute;
    transition: transform 400ms ease-in-out;
}

#menu_button.close::after {
    transform: rotate(135deg);
}

#next_day_button.close {
    transform: translateX(150%);
}

#next_day_button::after {
    content: url(/src/right_button.svg);
    position: absolute;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    font-size: 1.125rem;
    position: absolute;
    z-index: 1;
    background: white;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 1em;
    overflow-y: auto;
    transform-origin: top;
    animation: open_menu 500ms ease-in;
}

.menu.full {
    padding: 0;
}

.menu.close {
    transform: scaleY(0);
    animation: close_menu 500ms ease-in;
}

@keyframes open_menu {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes close_menu {
    0% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0);
    }
}

.menu_title {
    font-size: 1.25rem;
    text-decoration: underline;
    font-weight: bold;
}

.menu > * {
    margin: 0;
}

.menu_label {
    color: var(--accent-color);
}

.menu input {
    font-size: 1.25rem;
}

.input_button {
    color: white;
    background-color: #64B5F6;
    border: 0;
    padding: 0.6em;
    cursor: text;
    box-shadow: 0px 1px 5px var(--secondary-color);
    transition: box-shadow 200ms ease-in-out;
}

.input_button:hover {
    box-shadow: 0px 1px 15px var(--secondary-color);
}

.menu_line {
    display: flex;
    gap: 0.5em;
    flex-direction: row;
    align-items: center;
}

.menu_delete_button {
    background: #d50000;
}

.disabled {
    pointer-events: none;
    user-select: none;
}

.disabled > * {
    background-color: var(--divider-color);
}

.disabled > .text {
    background: transparent;
    color: var(--divider-color);
}

.flex_fill {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
}

.menu_indicator::before {
   content: '>';
   margin-right: 0.15em;
}

.multi-select {
    position: relative;
    color: white;
    background-color: #64B5F6;
    border: 0;
    padding: 0.6em;
    cursor: pointer;
    box-shadow: 0px 1px 5px var(--secondary-color);
    transition: box-shadow 200ms ease-in-out;
}

.multi-select:hover {
    box-shadow: 0px 1px 15px var(--secondary-color);
}

.multi-select > div {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: inherit;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 300ms ease-in;
}

.multi-select > div > div {
    padding: 0.6em;
    border-top: 1px solid white;
}

.multi-select > div.open {
    transform: scaleY(1);
}






.birthday_icon::before {
    content: url(/src/birthday_icon.svg);
    margin-right: 1em;
}

.jumpto_icon::before {
    content: url(/src/jumptop_icon.svg);
    margin-right: 1em;
}

.week_icon::before {
    content: url(/src/week.svg);
    margin-right: 1em;
}

.month_icon::before {
    content: url(/src/month.svg);
    margin-right: 1em;
}