@font-face {
    font-family: 'LINESeedJP Num';
    src: url('/fonts/LINESeedJP_OTF_Rg_Num.woff2');
}
html{
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
}
body{
    height: 100%;
    width: 100%;
    margin: 0;
}

:picture-in-picture{
    display: none;
}

#VelocityNativeNum{
    font-size: xxx-large;
    font-family: 'LINESeedJP Num', sans-serif;
    display: flex;
    pointer-events: stroke;
}
#VelocityNativeNum > div{
    width: 2rem;
    text-align: center;
}
#VelocityNative{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
}

#VelocityMain{
    display: grid;
    height: 100%;
    width: 100%;
}
#VelocityMain > h1{
    grid-column: 1/3;
    grid-row: 1/2;
}
#VelocityMaps > iframe{
    width: 100%;
    height: 100%;
}
#VelocitySettings{
    overflow-y: auto;
}
#Velocity9_16time{
    display: none;
}
#VelocityBattery{
    position: fixed;
    top: 5px;
    right: 5px;
}
@media (max-width: 640px) {
    #VelocityMain{
        grid-template-rows: auto auto auto 1fr auto;
    }
    #VelocityMain[data-velocityrec="9_16"]{
        grid-template-rows: auto calc(calc(100vw / 9) * 16) auto;
    }
    #VelocityMain[data-velocityrec="full"]{
        grid-template-rows: 0 auto 0;
    }
    #VelocityMain[data-velocityrec="9_16"] > h1,
    #VelocityMain[data-velocityrec="full"] > h1{
        font-size: small;
        font-weight: 900;
        grid-row: 2/3;
        text-align: right;
        padding-top: 40px;
        padding-right: 5px;
        z-index: 1;
        color: white;
        filter: drop-shadow(0px 0px 1px black);
        pointer-events: none;
    }
    #VelocityNative{
        grid-column: 1/3;
        grid-row: 2/3;
    }
    #VelocityMain[data-velocityrec="9_16"] > #VelocityNative,
    #VelocityMain[data-velocityrec="full"] > #VelocityNative{
        z-index: 1;
        padding-top: 60px;
        padding-right: 5px;
        justify-content: right;
        color: white;
        filter: drop-shadow(0px 0px 2px black);
        box-sizing: border-box;
        pointer-events: none;
    }

    #VelocityInfo{
        grid-column: 1/3;
        grid-row: 3/4;
    }
    #VelocityMain[data-velocityrec="9_16"] > #VelocityInfo,
    #VelocityMain[data-velocityrec="full"] > #VelocityInfo{
        pointer-events: none;
        grid-row: 2/3;
        z-index: 1;
        padding-top: 100px;
        padding-left: 5px;
        color: white;
        filter: drop-shadow(0px 0px 1px black);
        font-size: xx-small;
    }
    #VelocityMaps{
        grid-column: 1/3;
        grid-row: 4/5;
    }
    #VelocityMain[data-velocityrec="9_16"] > #VelocityMaps,
    #VelocityMain[data-velocityrec="full"] > #VelocityMaps{
        grid-row: 2/3;
    }
    #VelocitySettings{
        grid-column: 1/3;
        grid-row: 5/6;
        z-index: 1;
        pointer-events: stroke;
    }
    #VelocityMain[data-velocityrec="9_16"] > #VelocitySettings,
    #VelocityMain[data-velocityrec="full"] > #VelocitySettings{
        position: fixed;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
    #VelocityMain[data-velocityrec="9_16"] #Velocity9_16time,
    #VelocityMain[data-velocityrec="full"] #Velocity9_16time{
        display: block;
        position: fixed;
        left: 65px;
        top: 52px;
    }
    #VelocityMain[data-velocityrec="9_16"] #VelocityBattery,
    #VelocityMain[data-velocityrec="full"] #VelocityBattery{
        left: 65px;
        right: unset;
        top: 73px;
        z-index: 50020;
    }
}
@media (min-width: 641px) {
    #VelocityMain{
        grid-template-rows: auto auto 1fr;
        grid-template-columns: auto auto;
    }
    #VelocityNative{
        grid-column: 1/2;
        grid-row: 2/3;
    }

    #VelocityInfo{
        grid-column: 2/3;
        grid-row: 2/3;
    }
    #VelocityMaps{
        grid-column: 1/2;
        grid-row: 3/4;
    }
    #VelocitySettings{
        grid-column: 2/3;
        grid-row: 3/4;
    }
}