*:focus{
    outline:1px solid #C5D86D;
}

html{
    height:100%;
}

body{
    display:grid;
    height:100%;
    margin:0px;
    padding:0px;
    
    font-family: "Montserrat", sans-serif;
    
    font-size:14px;
    color:white;
}

h1{
    color:#C5D86D;
    font-weight:900;
    margin:0px;
    margin-bottom:20px;
}

a, a:visited{
    color:#C5D86D;
}

button#clear{
    background:none;
    color:#c5d86d;
    border:none;
}

#backgroundWrapper{
    z-index:0;
    box-sizing:border-box;
    width:100%;
    height:100%;
    
    position:fixed;
    top:0px;
    left:0px;
    
    overflow:hidden;
}

#gradientLayer{
    margin-top: -300vh;
    height:calc(100vh * 4);
    background-image: 
        linear-gradient(rgba(255,162,0,1), rgba(255,162,0,1)),
        linear-gradient(rgba(254,138,0,1), rgba(254,138,0,1)),
        linear-gradient(rgba(254,122,0,1), rgba(254,122,0,1)),
        linear-gradient(rgba(253,107,0,1), rgba(253,107,0,1)),
        linear-gradient(rgba(252,89,0,1), rgba(252,89,0,1)),
        linear-gradient(rgba(252,75,0,1), rgba(252,75,0,1)),
        linear-gradient(rgba(251,62,0,1), rgba(251,62,0,1)),
        linear-gradient(rgba(250,45,0,1), rgba(250,45,0,1)),
        linear-gradient(rgba(249,32,0,1), rgba(249,32,0,1)),
        linear-gradient(rgba(248,16,0,1), rgba(248,16,0,1)),
        linear-gradient(rgba(247,0,0,1), rgba(247,0,0,1)),
        linear-gradient(rgba(225,5,17,1), rgba(225,5,17,1)),
        linear-gradient(rgba(203,10,34,1), rgba(203,10,34,1)),
        linear-gradient(rgba(173,17,56,1), rgba(173,17,56,1)),
        linear-gradient(rgba(148,23,74,1), rgba(148,23,74,1)),
        linear-gradient(rgba(117,30,98,1), rgba(117,30,98,1)),
        linear-gradient(rgba(85,37,122,1), rgba(85,37,122,1)),
        linear-gradient(rgba(44,46,152,1), rgba(44,46,152,1)),
        linear-gradient(rgba(0,56,185,1), rgba(0,56,185,1));
    
    background-size:
        100% 5%,
        100% 10%,
        100% 15%,
        100% 20%,
        100% 25%,
        100% 30%,
        100% 35%,
        100% 40%,
        100% 45%,
        100% 50%,
        100% 55%,
        100% 60%,
        100% 65%,
        100% 70%,
        100% 75%,
        100% 80%,
        100% 85%,
        100% 90%,
        100% 100%;
    
    background-repeat: no-repeat;
    
    transition: margin-top 2000ms ease-out;
}

#tooltip{
    box-sizing:border-box;
    position:absolute;
    left:0px;
    top:0px;
    
    padding:8px;
    background:black;
    border-radius:8px;
    
    color:white;
    font-size:1em;
    font-weight:900;
    
    text-align:center;
    
    z-index:100;
    
    -webkit-box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2); 
    box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2);
    
    transition: opacity 200ms;
}

#toggleEnter{
    display:grid;
    grid-template-columns:auto auto;
    align-items:center;
    font-size:1em;
    font-weight:900;
    color:white;
    position:absolute;
    right: 40px;
    top:40px;
    border:none;
    background:none;
}

#toggleEnter span{
    display:inline-block;
    box-sizing:border-box;
    padding-right:20px;
}

#toggleEnter #glyph{
    display:inline-block;
    font-size: 2em;
    transition: transform 200ms ease-out;
}

.rotate{
    transform: rotate(45deg);
}

#enterBP{
    box-sizing:border-box;
    position:absolute;
    top:90px;
    right:-15px;
    
    max-width:300px;
    
    border-radius:30px;
    background:rgba(0,0,0,0.6);
    padding:30px;
    backdrop-filter: blur(60px);
    
    -webkit-box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2); 
    box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2);
    
    transition:transform 200ms ease-out, opacity 300ms ease-out;
}   
    
    .hideBP{
        opacity:0;
        transform:scale(.75, .75);
    }

    .showBP{
        opacity:1;
        transform:scale(1,1);
    }

    label{
        margin-bottom:.5em;
    }

    .inputWrapper{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .inputWrapper div{
        box-sizing:border-box;
        margin:4px;
    }

    input[type="number"], input[type="date"]{
        box-sizing:border-box;
        padding:.5em;
        margin-bottom:.5em;
        border:none;
        font-size:1em;
        color:darkslategray;
        font-weight:900;
        border-radius:10px;
        width:100%;
    }

    input[type="submit"]{
        box-sizing:border-box;
        background:#C5D86D;
        margin:auto;
        border:none;
        font-weight:900;
        padding:.5em;
        border-radius:30px;
        width:100%;
    }
    
    #error{
        color:#FF7200;
        text-align:center;
        padding-top:8px;
    }

    .hideError{
        opacity:0;
    }

    .showError{
        opacity:1;
    }

#bloodPressureApp{
    z-index:1;
    
    align-self:center;
    justify-self:center;
    
    box-sizing:border-box;
    position:relative;
    
    height:85vh;
    width:90vw;
    
    padding:40px 60px;
    
    background:rgba(0,0,0,0.45);
    backdrop-filter: blur(100px);
    border-radius:60px;
    
    -webkit-box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2); 
    box-shadow: 0px 3px 20px 10px rgba(39,0,61,0.2);
}

.bp-chart-wrapper{
    width:100%;
    height:100%;
    
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    justify-items:center;
}

.bp-chart{
    display:grid;
    grid-template-columns: auto 1px 1fr;
    grid-template-rows:1fr 20px;
    
    width:100%;
    height:100%;
}

#bloodPressureChart{
    display:grid;
    grid-template-columns:repeat(7, 1fr 1fr 1px);
}

.y-axis{
    display:grid;
    align-items: start;
}

.line{
    background:rgba(255,255,255, .3);
}

.systolic{
    margin-left:10%;
    background:red;
    align-self:end;
}

.diastolic{
    margin-right:10%;
    background:orange;
    align-self:end;
}

.number{
    border-top: 1px solid rgba(255,255,255,.3);
    color:white;
    text-align:right;
    padding-right:4px;
    padding-top:4px;
    font-size:.8em;
}

.bar{
    transition: height 2000ms ease-out;
}

.days{
    grid-column:2 / end;
    display:grid;
    justify-items:center;
    width:100%;
    padding-top:8px;
    grid-template-columns: repeat(7, 1fr);
    
    color:white;
    font-size:.8em;
}