@font-face {
    font-family: DDMFont;
    src: url("./resources/asul-regular.ttf");
  }

.main{
    --color-player1: rgb(133, 36, 36);
    --color-player2: rgb(59, 127, 219);
}

/* .loaderContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgb(56, 56, 56);
}
.progressBar {
    width: 60%;
    height: 20px;
    background: white;
    overflow: hidden;
    border-radius: 10px;
}
.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e3d753, #dad7bb);
    transition: width 0.3s ease;
}
.progressText { 
    color: white;
} */

body {
    font-family: DDMFont;
    background-color: rgb(56, 56, 56);
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    touch-action: manipulation;
}

.buttonsContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.langSelect {
    position: absolute;
    top: 1%;
    right: 1%;
    color: white;
    font-size: large;
}
.langSelect a {
    text-decoration: underline;
    cursor: pointer;
}

#rollButton {
    position: fixed;
    top: 1%;
    left: 1%;
}

h1 {
    font-size: x-large;
}

img {
    max-width: 100%;
    max-height: 75%;
}

canvas {
    height: 100%;
    width: 100%;
}

.titleScreenContainer {
    margin: auto;
    padding: 3%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.nameContainer {
    margin: 5%;
}
button {
    --border-color: rgb(0,0,0);
    --border-width: 0.15em;
    --curve-size: 0.5em;
    --blur: 30px;
    --bg: #ffffff;
    border: 0;
    cursor: pointer;
    position: relative;
    isolation: isolate;    
    clip-path: polygon(
        /* Top-left */ 0% var(--curve-size),
        var(--curve-size) 0,
        /* top-right */ 100% 0,
        100% calc(100% - var(--curve-size)),
        /* bottom-right 1 */ calc(100% - var(--curve-size)) 100%,
        /* bottom-right 2 */ 0 100%
    );
    text-transform: uppercase;
}
button::after,
button::before {
  content: "";
  position: absolute;
  inset: 0;
}
button::before {
    background: var(--border-color);
    background-size: 300% 300%;
    z-index: -2;
}
button::after {
    background: var(--bg);
    z-index: -1;
    clip-path: polygon(
      /* Top-left */ var(--border-width)
        calc(var(--curve-size) + var(--border-width) * 0.5),
      calc(var(--curve-size) + var(--border-width) * 0.5) var(--border-width),
      /* top-right */ calc(100% - var(--border-width)) var(--border-width),
      calc(100% - var(--border-width))
        calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
      /* bottom-right 1 */
        calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
        calc(100% - var(--border-width)),
      /* bottom-right 2 */ var(--border-width) calc(100% - var(--border-width))
    );
}
button:disabled {
    --border-color: rgba(255, 255, 255, .5);
    --bg: unset;
}

button, input[type="text"], input[type="color"], input[type="number"] {
    min-height: 5vh;
}

button, input {
    font-weight: bold;
    text-align: center;
}

.errorFooter {
    display: none;
    background-color: red;
    color: white;
    position: absolute  ;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 3%;
    justify-content: center;
    align-items: center;
}