:root {
  --clownfishX: 0px;
  --clownfishY: 0px;
  --clownfishTransitionTime: 0s;
  --clownfishRotation: 0deg;
  --clownfishScaleX: 0.1;

  --dolphinX: 0px;
  --dolphinY: 0px;
  --dolphinTransitionTime: 0s;
  --dolphinRotation: 0deg;
  --dolphinScaleX: 1;
}

.material-symbols-outlined
{
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

html
{
  font-size: 16px;
}

html
{
  position: relative;
  height: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  overflow-x: hidden;
}

body
{
    display: grid;
    grid-template: "bg" 0
        "navbar" auto
        "main" 1fr
        "footer" auto/ 1fr;
    height: 100%;
}

.background
{
    grid-area: bg;
    position: fixed;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(180deg, #75afe1, #2a3160) no-repeat 0 0 / 100vw 100vh fixed;*/
    background: linear-gradient(180deg, #60c4f1, #15448b) no-repeat 0 0 / 100% 100% fixed;
    z-index: -1;
}

a
{
    cursor: pointer;
}

.navbar
{
    grid-area: navbar;
    /*display: grid;
    grid-template: "logo label reports sign-in sign-up" 64px / auto 1fr 1fr;*/

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    place-items: center;
    background: #fff;
    width: 100%;
    min-height: 64px;
    height: min-content;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.navbar .title
{
    line-height: 0;
    margin: 0 auto 0 20px;
    /*flex-shrink: 0;*/
    padding: 8px;
    border-radius: 4px;
}

.navbar .title:focus
{
    filter: invert(1);
    background: rgb(255, 255, 255);
}

.nav-burger
{

}

.nav-links
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    place-items: center;
    min-height: 64px;
    height: min-content;
}

.navbar .label
{
    line-height: 1.2em;
    font-size: 1.2em;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin: 0 0 0 24px;
}

.navbar .sign-in
{
    margin: 0 1.6vw 0 0;
    padding: 0.6em 1.1em;
    /*line-height: 1em;*/
    color: rgba(0,0,0,1);
    background: rgba(255,255,255,1);
    width: auto;
    text-transform: none;
    border-radius: 3px;
    font-weight: 600;
    position: relative;
    box-shadow: 0px 2px 7px 1px rgb(0 0 0 / 5%);
    transition: color 0.1s ease-out, background-color 0.1s ease-out;
}

.navbar .sign-in.out:hover, .navbar .sign-in.out:focus
{
    color: rgba(255,255,255,1);
    background-color: rgb(239 50 50 / 80%);
}

.navbar .sign-in:focus
{
    color: #fff;
    background: #000;
    outline: none;
}

.navbar .text-link
{
    margin: 0 1.6vw 0 0;
    padding: 0.25em 0.55em;
    border-top: 2px solid rgba(0,0,0,0);
    border-bottom: 2px solid rgba(0,0,0,0);
}

.navbar .text-link:hover
{
    /*text-decoration: underline;*/
    border-bottom: 2px solid rgba(0,0,0,0.16);
    /*font-weight: 600;*/
}

.navbar .text-link:focus
{
    border-radius: 4px;
    color: #fff;
    background: rgb(0,0,0);
    /*outline: 2px solid rgba(0,0,0,1);*/
}

.navbar .text-link.reports
{
}

.navbar .text-link.account
{
}

/*.navbar .sign-in::after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    opacity: 0;
    background: rgba(255,255,255,0.05);
    transition: opacity 0.2s ease-out;
}

.navbar .sign-in:hover::after,
.navbar .sign-in:focus::after
{
    opacity: 1;
}*/

.main-container
{
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    grid-area: main;
}

.page-container
{
    display: grid;
    place-items: center;
    width: 1024px;
    padding: 64px 0 48px 0;   
}

.clownfish.hide, .dolphin.hide
{
    transition: 0s;
    opacity: 0;
}

.clownfish
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(16px) sepia(20%) hue-rotate(8deg);
    transform: translate(calc(-50% + var(--clownfishX)), calc(-50% + var(--clownfishY))) scale(var(--clownfishScaleX), 0.1) rotate(var(--clownfishRotation));
    opacity: 0.54;
    transform-origin: center;
    transition:
        transform var(--clownfishTransitionTime) cubic-bezier(0.36, 0.05, 0.26, 0.96),
        opacity 2s ease-out;
}

@keyframes dolphinswim
{
    from
    {
        transform: translate(calc(-50% + var(--dolphinPositionStartX)), calc(-50% + var(--dolphinPositionStartY))) scale(var(--dolphinScaleX), var(--dolphinScaleY)) rotate(-3deg);
    }

    75%
    {
        transform: translate(calc(-50% + var(--dolphinPositionEndX)), calc(-50% + var(--dolphinPositionEndY))) scale(var(--dolphinScaleX), var(--dolphinScaleY)) rotate(-3deg);
    }

    to
    {
        transform: translate(calc(-50% + var(--dolphinPositionEndX)), calc(-50% + var(--dolphinPositionEndY))) scale(var(--dolphinScaleX), var(--dolphinScaleY)) rotate(-3deg);
    }
}



.dolphin
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(5px);
    animation: dolphinswim 40s ease-in infinite;
    opacity: 0.24;
    transform-origin: center;
}

.site-footer
{
    grid-area: footer;
    display: grid;
    place-items: center;
    width: 100%;
    border-bottom: 0 solid rgba(0,0,0,0); /* tab-bar height */
    padding: 12px 0;
    color: #fff;
    background: #222;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2) inset;
}

.site-footer a
{
    padding: 0.25em 0.55em;
    border-top: 2px solid rgba(0,0,0,0);
    border-bottom: 2px solid rgba(255,255,255,0);
}

.site-footer a:hover
{
    border-bottom: 2px solid rgba(255,255,255,0.16);
}

.site-footer a:focus
{
    border-radius: 4px;
    color: #000;
    background: #fff;
}


.glassy-window
{
    background: rgba(255,255,255,1);
    /*background: rgba(255,255,255,0.1);*/
    box-shadow: 0px 0.2px 2.1px rgb(0 0 0 / 2%), 0px 0.5px 5.2px rgb(0 0 0 / 2%), 0px 1.1px 10.6px rgb(0 0 0 / 3%), 0px 2.2px 21.9px rgb(0 0 0 / 3%), 0px 6px 60px rgb(0 0 0 / 5%);
}

.button
{
    color: #ddd;
    background: #2b5f90;
    display: block;
    text-align: center;
    /*color: #000;
    background: #fff;*/
    max-width: 400px;
    width: 90%;
    padding: 1em 0;
    margin: 16px auto;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0px 0.2px 0.4px rgb(0 0 0 / 2%), 0px 0.5px 1px rgb(0 0 0 / 2%), 0px 1.1px 2.1px rgb(0 0 0 / 3%), 0px 2.2px 4.4px rgb(0 0 0 / 3%), 0px 6px 12px rgb(0 0 0 / 5%);
}

.button.heavy-shadow
{
    box-shadow: 0px 0.2px 0.4px rgb(0 0 0 / 2%), 0px 0.5px 1px rgb(0 0 0 / 2%), 0px 1.1px 2.1px rgb(0 0 0 / 3%), 0px 2.2px 4.4px rgb(0 0 0 / 3%), 0px 6px 12px rgb(0 0 0 / 10%);
}

.button:focus, .button:focus-within
{
    outline: 2px solid rgba(0,0,0,1);
}

.dialog
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #111;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease-out, visibility 0s 0s;
    cursor: pointer;
    z-index: 1;
}

.dialog.hide
{
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-out, visibility 0s 0.5s;
}

.dialog .glassy-window
{
    position: relative;
    width: 600px;
    max-width: 90vw;
    padding: 0 0 32px 0;
    /*background: linear-gradient(180deg, rgba(117, 175, 225, 1), rgba(42, 49, 96, 1)) no-repeat;*/
    z-index: 1;
    cursor: auto;
}

.dialog .glassy-window .title
{
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px 0;

    background: rgba(255,255,255,0.08);
}

.tab-bar
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    background-color: #fff;

    min-height: 64px;
    height: min-content;
}

.tab-bar .text-link
{
    position: relative;
    width: 100%;
    /*height: 40px;*/
    color: #000;
    /*background-color: #15448b;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /*background-color: rgba(37,38,40,.08);*/
    
    border-radius: 6px;
    /*margin: 0 1.6vw 0 0;
    padding: 0.25em 0.55em;*/
}

.tab-bar .text-link .material-symbols-outlined
{
    /*padding: 4px;*/
    vertical-align: middle;
    font-size: 32px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 32;
}

.tab-bar .text-link .label
{
    /*padding: 0 8px 0 0;*/
    font-size: 0.8em;
}

.tab-bar .text-link::before
{
    /*content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 40px;
    height: 40px;*/
    
}

@media (max-width: 1078px)
{
    .page-container
    {
        width: 95%;
    }
}

@media (max-width: 650px)
{
    .tab-bar
    {
        display: flex;
    }

    .site-footer
    {
        border-bottom: 64px solid rgba(0,0,0,0); /* tab-bar height */
    }

    .nav-links
    {
        display: none;
    }

    .navbar .title
    {
        margin: 0 auto;
    }
}

@media (max-width: 350px)
{
    .tab-bar .text-link .label
    {
        display: none;
    }
}