
@font-face {
    font-family: "Clements";
    src: url("../assets/fonts/Clements Morgle Serif.otf");
}

@font-face {
    font-family: "FiraLight";
    src: url("../assets/fonts/FiraSans-Light.ttf");
}

@font-face {
    font-family: "Creato";
    src: url("../assets/fonts/CreatoDisplay-Regular.otf");
}

*,
*::before,
*::after{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    width:100%;
    height:100%;

    font-size:16px;

    -webkit-text-size-adjust:100%;

    touch-action:manipulation;

}

body{

    width:100%;
    height:100%;

    overflow:hidden;

    background:var(--background);

    color:var(--text);

    font-family:
        "Segoe UI",
        Inter,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    user-select:none;

    -webkit-user-select:none;

    -webkit-tap-highlight-color:transparent;

}

.app{

    width:100vw;
    height:100vh;

    padding:12px;

    background:var(--background);

}

.board{

    width:100%;
    height:100%;

    display:grid;

    gap:2px;

    background:var(--divider);

    border:2px solid var(--divider);

    border-radius:var(--radius-large);

    overflow:hidden;

    box-shadow:var(--shadow);

}

img{

    display:block;

    max-width:100%;

}

button{

    font:inherit;

    border:none;

    background:none;

    color:inherit;

    cursor:pointer;

    outline:none;

}

input,
select{

    font:inherit;

    outline:none;

}

.counter-power {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: 16px;
    height: 100%;
}

.power-control,
.initiative {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 16px;
}

.counter-label,
.initiative-label {
    font-family: "Fira Sans Light", sans-serif;
    font-size: 32px;
    color: white;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

::-webkit-scrollbar{

    width:0;
    height:0;

}

.fade{

    animation:fade .25s ease;

}

@keyframes fade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@media (max-width:768px){

    .app{

        padding:6px;

    }

    .board{

        border-radius:18px;

    }

    .counter-label,
    .initiative-label {
        font-family: "Fira Sans Light", sans-serif;
        font-size: 16px;
        color: white;
        text-align: center;
        white-space: nowrap;
        user-select: none;
    }

}