﻿@font-face {
    font-family: impact;
    src: url('font/impact.ttf');
}

@font-face {
    font-family: carlito;
    src: url('font/Carlito-Regular.ttf');
}


@font-face {
    font-family: titan;
    src: url('font/TitanOne-Regular.ttf');
}

/* Use a more intuitive/familiar box sizing mode */
* {
    box-sizing: border-box;
}

:root {
    /* A 'dvmin' like scaling, that kicks in at an aspect of 0.75 (4:3), instead of 1.0 */
    --font-scale: min( 1dvw * 1.3, 1dvh );
    --font-scale-6: calc( var( --font-scale ) * 6 );
    --font-scale-5: calc( var( --font-scale ) * 5 );
    --toolbar-button-size: clamp(44px, 5dvh, 108px);
    --toolbar-top: 2dvh;
    --toolbar-side: 1dvw;
    --toolbar-gap: clamp(6px, 1dvw, 16px);
}

html {
   height: 100%;
   pointer-events: auto;
   font-size: 5dvh;
}

body {
   overflow: hidden hidden;
   height: 100%;
   width: 100%;
   margin: 0px;
   color: white;
   user-select: none;
   -webkit-user-select: none;
   -webkit-touch-callout: none;
}

app {
   display: block;
   height: 100%;
   width: 100%;
   background-color: lightblue;
   background-image: url("img/bgtest.webp");
   background-repeat: no-repeat;
   background-size: cover;
}

.unselectable {
   pointer-events: none;
   touch-action: none;
}

input {
   display: block;
   border-color: black;
   min-width: 5em;
   font-size: 5dvh;
   text-transform: uppercase;
   -webkit-appearance: none;
   -moz-appearance: textfield;
   font-family: titan;
}

input:focus {
   outline: none;
   text-decoration: none;
   caret-color: black;
}

button {
    outline: none;
    font-family: titan;
    cursor: pointer;
    text-transform: uppercase;
}

.standard-input {
    width: 100%;
    position: relative;
    padding: 2dvmin;
    border: 1dvh solid #210655;
    padding: 0 2dvw;
    background: lightgray;
    border-radius: 2dvh;
    color: black;
    text-align: center;
    touch-action: none;
    user-select: none;
    padding-inline: 0px;
    height: 8dvh;
}

.layout-down {
    display: flex;
    flex-flow: column nowrap;
    overflow: visible visible;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1dvmin;
}

.layout-across {
    display: flex;
    flex-flow: row nowrap;
    overflow: visible visible;
    justify-content: center;
    align-items: stretch;
    gap: 3dvmin;
}

/* Layout across for landscape, down for portrait */
.layout-orientation {
    display: flex;
    flex-flow: row nowrap;
    overflow: visible visible;
    justify-content: center;
    align-items: stretch;
    gap: 3dvmin;
}

@media (max-aspect-ratio: 1) {
    .layout-orientation {
        flex-flow: column nowrap;
    }
}

/* Layout across for landscape, down for portrait */
.layout-orientation-43 {
    display: flex;
    flex-flow: row nowrap;
    overflow: visible visible;
    justify-content: center;
    align-items: stretch;
    gap: 3dvmin;
}

@media (max-aspect-ratio: 4/3) {
    .layout-orientation-43 {
        flex-flow: column nowrap;
    }
}

/* Default visualisation for 9-sliced bordered tile */
.standard-tile {
    background: #322e78;
    border-radius: 6dvmin;
    box-shadow: 0 1dvh 0 #2e0f87, 0 1dvh 0.8dvh rgb(25 0 90 / 18%);
    color: white;
}

@media (max-aspect-ratio: 1) {
    .standard-panel {
        inset: 10dvh 6dvw 20dvh 6dvw;
    }
}

/* Default full-page panel */
.standard-panel {
   position: fixed;
   inset: 10dvh 12dvw 10dvh 12dvw;
   text-align: center;
   padding: 5dvmin 4dvw 5dvmin 4dvw;
}

@media (max-aspect-ratio: 1) {
    .standard-panel {
        inset: 10dvh 6dvw 15dvh 6dvw;
    }
}

.flex-align-start{
   align-self: start;
}

/*animation for text pulse*/
.pulse-text {
    display: inline-block;
    transform-origin: center;
    animation: prompt-pulse 1.5s ease-in-out infinite;
}

@keyframes prompt-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-text {
        animation: none;
    }
}