@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: rgb(254, 253, 252);
}

.notification {
    position: fixed;
    z-index: 1;
    top: 1em;
    left: 40vw;
    width: auto;
    height: auto;
    padding: 1em;
    border-radius: 1em;
    cursor: pointer;
    font-weight: bold;
}

.notification-none {
    display: none;
}

.notification-error {
    display: unset;
    background-color: rgb(255, 238, 238);
    color: rgb(170, 102, 102);
}

.list-grid {
    display: grid;
    grid-template-columns: 10% 80% 10%;
    column-gap: 0%;
    grid-auto-rows: minmax(5%, auto);
    row-gap: 0%;
    padding-bottom: 0.5em;
}

.list-grid-column-1 {
    grid-column: 1;
}

.list-grid-column-2 {
    grid-column: 2;
}

.list-grid-column-2:hover {
    cursor: text;
    /*box-shadow: 0.0em 0.0em 0.6em 0.0em rgb(190, 200, 210), 0.0em 0.0em 0.6em 0.0em inset rgb(190, 200, 210);*/
    background-image: radial-gradient(ellipse at center, rgba(235, 240, 245, 0.8), rgba(254, 253, 252, 0.8));
}

.list-grid-column-3 {
    grid-column: 3;
    justify-self: right;
    display: grid;
}

#current-list-name {
    text-align: center;
    font-size: large;
    font-weight: bold;
}

.login-logout-buttons {
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    background-color: rgb(50, 50, 50);
    border: 0.5em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    margin-bottom: 0.5em;
}

.login-logout-buttons:hover {
    background-color: rgb(125, 125, 125);
    border: 0.5em solid rgb(125, 125, 125);
}

#menu-button {
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    justify-self: center;
    background-color: rgb(50, 50, 50);
    border: 0.5em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    margin-bottom: 0.5em;
}

#menu-button:hover {
    background-color: rgb(125, 125, 125);
    border: 0.5em solid rgb(125, 125, 125);
}

.menu-list-names {
    cursor: pointer;
    text-decoration: underline;
    color: rgb(40, 60, 150);
}

#create-milestone-button-old {
    cursor: pointer;
    --b: 0.3em;
    /* thickness*/
    --c: rgb(50, 50, 50) 90deg, rgb(240, 240, 240) 0;
    /* coloration */
    width: 1.5em;
    /* size */
    aspect-ratio: 1;
    background: conic-gradient(from 90deg at var(--b) var(--b), var(--c)) calc(100% + var(--b)/2) calc(100% + var(--b)/2)/ calc(50% + var(--b)) calc(50% + var(--b));
    border: 0.5em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    justify-self: center;
}

#create-milestone-button {
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    justify-self: center;
    background-color: rgb(50, 50, 50);
    border: 0.5em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    margin-bottom: 0.5em;
}

#create-milestone-button:hover {
    background-color: rgb(125, 125, 125);
    border: 0.5em solid rgb(125, 125, 125);
}

#milestones-grid {
    display: grid;
    grid-template-columns: auto auto 85%;
    column-gap: 1%;
    grid-auto-rows: minmax(5%, auto);
    row-gap: 0%;
}

.dialog-grid {
    display: grid;
    grid-template-columns: 25% auto 25%;
    column-gap: 0%;
    grid-auto-rows: minmax(5%, auto);
    row-gap: 0%;
    margin-bottom: 0em;
}

.dialog-grid-column-1 {
    grid-column: 1;
}

.dialog-grid-column-2 {
    grid-column: 2;
}

.dialog-grid-column-3 {
    grid-column: 3;
    justify-self: right;
}

/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog */
dialog {
    min-width: 80%;
    max-width: 80%;
    min-height: 80%;
    max-height: 80%;
    background-color: rgb(254, 253, 252);
    border-color: rgb(254, 253, 252);
    border-radius: 1em;
    text-align: center;
    animation: fade-out 0.1s linear;
}

dialog[open] {
    animation: fade-in 0.1s linear;
}

dialog[open]::backdrop {
    animation: backdrop-fade-in 0.1s linear forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: scaleY(0);
        display: none;
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
        display: block;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: scaleY(1);
        display: block;
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        display: none;
    }
}

@keyframes backdrop-fade-in {
    0% {
        background-color: rgb(0 0 0 / 0%);
    }

    100% {
        background-color: rgb(0 0 0 / 25%);
    }
}

dialog div {
    margin-bottom: 0.5em;
}

dialog p {
    margin-top: 0em;
    margin-bottom: 1em;
}

dialog input {
    font-size: x-large;
}

.dialog-buttons-div-left {
    text-align: left;
}

.dialog-buttons-div-right {
    text-align: right;
}

dialog button {
    font-family: 'Roboto Mono', monospace, sans-serif;
    color: rgb(240, 240, 240);
    background-color: rgb(50, 50, 50);
    border: 0.2em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    padding: 0.3em;
}

dialog button:hover {
    cursor: pointer;
    background-color: rgb(125, 125, 125);
    border: 0.2em solid rgb(125, 125, 125);
}

.dialog-button {
    display: inline-block;
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    justify-self: center;
    background-color: rgb(50, 50, 50);
    border: 0.5em solid rgb(50, 50, 50);
    border-radius: 0.5em;
    box-shadow: 0.2em 0.2em 0.4em 0.1em rgb(210, 210, 210);
    margin-bottom: 0.5em;
}

.dialog-button:hover {
    background-color: rgb(125, 125, 125);
    border: 0.5em solid rgb(125, 125, 125);
}

.dialog-label {
    /*font-family: 'Roboto Mono', monospace, sans-serif;*/
    font-size: large;
    font-weight: bold;
}

.dialog-div-no-margin-bottom {
    margin-bottom: 0em;
}

.milestone-grid-column-1 {
    grid-column: 1;
    padding: 1em;
}

.milestone-grid-column-1:hover {
    cursor: text;
    /*box-shadow: 0.0em 0.0em 0.6em 0.0em rgb(190, 200, 210), 0.0em 0.0em 0.6em 0.0em inset rgb(190, 200, 210);*/
    background-image: radial-gradient(ellipse at center, rgba(235, 240, 245, 0.8), rgba(254, 253, 252, 0.8));
    padding: 1em;
}

.milestone-timestamp-container {
    padding-bottom: 25px;
}

.milestone-day {
    text-align: right;
    font-size: small;
    white-space: nowrap;
}

.milestone-date {
    text-align: right;
    font-size: small;
    white-space: nowrap;
}

.milestone-year {
    text-align: right;
    font-size: small;
    white-space: nowrap;
}

.milestone-time {
    text-align: right;
    font-size: small;
    white-space: nowrap;
}

.milestone-relative {
    text-align: right;
    font-size: small;
    white-space: nowrap;
}

.milestone-grid-column-2 {
    grid-column: 2;
}

.milestone-node {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgb(240, 239, 238) 40%, rgb(50, 49, 48) 60%);
}

.milestone-node-passed {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgb(125, 124, 123) 10%, rgb(50, 49, 48) 90%);
}

.milestone-line {
    width: 0.2em;
    height: calc(100% - 1.2em);
    background-image: radial-gradient(rgb(125, 124, 123), rgb(50, 49, 48));
    transform: translate(0.5em, 0em);
}

.milestone-grid-column-3 {
    grid-column: 3;
    padding-bottom: 1em;
}

.milestone-grid-column-3:hover {
    cursor: text;
    /*box-shadow: 0.0em 0.0em 0.6em 0.0em rgb(190, 200, 210), 0.0em 0.0em 0.6em 0.0em inset rgb(190, 200, 210);*/
    background-image: radial-gradient(ellipse at center, rgba(235, 240, 245, 0.8), rgba(254, 253, 252, 0.8));
    padding-bottom: 1em;
}

.milestone-name {
    font-weight: normal;
    font-size: large;
}

.timestampDown {
    display: none;
    width: 1.5em;
    height: 1.5em;
    margin-left: 0.2em;
    cursor: pointer;
}

.timestampDownSVG {
    fill: none;
    stroke: rgb(125, 124, 123);
    stroke-width: 3;
    stroke-linejoin: round;
}

.timestampDownSVG:hover {
    fill: rgb(125, 124, 123);
}

.timestampUp {
    display: none;
    width: 1.5em;
    height: 1.5em;
    margin-left: 0.2em;
    cursor: pointer;
}

.timestampUpSVG {
    fill: none;
    stroke: rgb(125, 124, 123);
    stroke-width: 3;
    stroke-linejoin: round;
}

.timestampUpSVG:hover {
    fill: rgb(125, 124, 123);
}

.milestone-timebar {
    width: 10em;
    background-color:rgb(150, 255, 150);
}

.milestone-timebar div
{
    background-color:rgb(235, 240, 235);
    height:0.5em;
}