body {
	font-family: -apple-system, -system-ui, 'SF Pro', BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu;
	margin: 0;
    padding: 0;
    background: #000;
}

.click-me {
    position: absolute;
    top: 3rem;
    right: 11.5rem;
    color: white;
    font-weight: 600;
    font-size: 3rem;
    animation: bounce 1s infinite alternate;
    line-height: 1.5rem;
}

.click-me svg {
    fill: white;
}

.presentation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: rgba(255, 255, 255, 0.99);
    text-shadow: 1px 3px 3px #333;
    padding: 2em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    text-align:center;
    color: rgba(255, 255, 255, 0.99);
    text-shadow: 1px 3px 3px #333;
}

.screen {
    height: 100vh;
}

.edge {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-image: url('static/wallpapers/p3-4096.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

@media (max-width: 1024px) {
    .edge {
        background-image: url('static/wallpapers/p3-1024.jpg');
    }
}

@media (max-width: 2048px) {
    .edge {
        background-image: url('static/wallpapers/p3-2048.jpg');
    }
}

.menu {
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    height: 2rem;
    color: #fff;
    font-size: 0.85rem;
    gap: 1rem;
    padding-inline: 1.25rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apple-logo {
    font-size: 1.35rem;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.app-name {
    font-weight: 600;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.app {
    padding: 0.2rem 0.5rem;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.1s ease;
    border-radius: 4px;
    display: flex;
    gap: 2px;
    align-items: center;
    font-weight: 300;
    font-size: 0.8rem;
    .trend {
        width: 0.8rem;
        height: 0.8rem;
    }
    &:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    a {
        color: #fff;
        text-decoration: none;
    }

}

.highlight {
    border: 1px solid rgba(89, 88, 235, 1);

    &:hover {
        background-color: rgba(89, 88, 235, 0.3);
    }
}

.app-wrapper {
    display: block;
    position: absolute;
    right: 4px;
    width: 500px;
    height: 500px;
    border-radius: 0.5rem;
    border: 1px solid hsla(0, 0%, 50%, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    .app-content {
        user-select: none;
        position: relative;
        height: 100%;
        color: rgba(73, 73, 73, 1);
        background: rgba(255, 255, 255, 0.65);

        .chart {
            margin-top: 8px;

            .chart-bg {

                position:relative;
                float:left;
                z-index: 5;

                .chart-time-sep {
                    margin-top: 35px;
                    border-left: 1px dashed rgba(62, 63, 64, 0.15);
                    padding-left: 10px;
                    float:left;
                    z-index: 5;
                    height: 280px;
                    bottom:0;
                    width:65px;
                    text-align: bottom;
                    font-size: 0.7rem;

                    div {
                        margin-top: 268px;
                    }
                }

                .chart-time-sep:first-child {
                    margin-left: 75px;
                }

                .y {
                    display: flex;
                    flex-direction: column;
                    position: absolute;
                    right: 0;
                    font-size: 0.7rem;
                    margin-right: -30px;
                    margin-top: 51px;

                    .chart-glucose-sep {
                        height:28;
                        float:left;
                        text-align: left;
                        margin-top: 0.8rem;

                    }
                }

            }

            .chart-range-upper {
                position:absolute;
                top: 192px;
                left: 13px;

                svg {
                    stroke: rgba(250,210,46, 1);
                }
            }

            .chart-range-lower {
                position: absolute;
                top: 339px;
                left: 13px;

                svg {
                    stroke: rgba(236, 78, 54, 1);
                }
            }

            .chart-plot {
                position:absolute;
                top: 154px;
                left: 7px;
                .chart-value {
                    position:relative;
                    z-index: 6;
                    font-size: 2.8rem;
                    float:left;
                    margin-right: -3px;
                    height: 280px;

                    &:hover {
                        color: rgba(37,110,250, 1);
                    }
                }

                .above-range {
                    color: rgba(250,210,46, 1);
                }

                .in-range {
                    color: rgba(79,204,76, 1);
                }

                .below-range {
                    color: rgba(236, 78, 54, 1);
                }

                .three {
                    margin-left: 6px;
                }

                /* .six {
                    margin-right: -3px;
                }

                .twelve {
                    margin-right: -12px;
                }

                .twentyfour {
                    margin-right: -12px;
                } */
            }
        }
    }
}

.inactive {
    display: none;
}

.datetime {
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    text-align:center;
    width: 8rem;
}
.spacer {
    flex: 1;
}

.line {
    text-align: center;
}

.line.time {
    font-size: 0.8rem;
    font-weight: 300;
    padding-top:1rem;
    padding-bottom:0.5rem;
}

.line.large {
    font-size: 1.5rem;
}

.pills {
    margin-top:1rem;
}

.time-select {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.timepill {
    font-size: 0.85rem;
    font-weight: 300;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.buttons {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem
}

.get-action {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@-webkit-keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@media (prefers-color-scheme: dark) {
    .app-wrapper {
        .app-content {
            color: rgba(233, 233, 233, 1);
            background-color: rgba(35, 35, 38, 0.7);
            color: #fff;

            .chart {
                .chart-bg {
                    .chart-time-sep {
                        border-left: 1px dashed rgba(75, 75, 75, 1);

                        div {
                            color: rgba(146, 146, 147, 1)
                        }
                    }

                    .chart-glucose-sep {
                        color: rgba(146, 146, 147, 1);
                    }
                }
            }
        }
    }

    .timepill {
        background: rgba(135, 135, 135, 0.7);
        color: rgba(193, 193, 193, 1);
    }
}

// 210, 211, 212