html, body {
    margin: 0px;
    max-height: 100%;
    height: 100%;
}

html {
    /*overflow: hidden;*/
}

main {
    background: url("/images/background.svg");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    max-height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    /*overflow: hidden;*/
}

.estrela {
    background: url("/images/estrelas.png");
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    height: 100vh;
    width: 100vw;
}

.estrela2 {
    transform: rotate(180deg);
}

.seta {
    transform: scaleX(-1) rotate(25deg);
    transform-origin: 50% 100%;
    width: auto;
    height: 60vh;
    position: absolute;
    top: -5vh;
    left: 0px;
    z-index: 5;
    animation-name: animacaoSetas;
    animation-play-state: paused;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

.seta.play {
    animation-play-state: running;
}

.nao-selecionavel {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Padrão */
    pointer-events: none;
}

.seta:last-of-type {
    transform: rotate(25deg);
    left: inherit;
    right: 0px;
    animation-name: animacaoSetas_;
}

@keyframes animacaoSetas {
    0% {
        transform: scaleX(-1) rotate(25deg);
        animation-timing-function: ease-in;
    } 50% {
          transform: scaleX(-1) rotate(0deg);
          animation-timing-function: ease-out;
      } 60% {
            transform: scaleX(-1) rotate(5deg);
            animation-timing-function: ease-in;
        } 100% {
              transform: scaleX(-1) rotate(0deg);
              animation-timing-function: ease-out;
          }
}

@keyframes animacaoSetas_ {
    0% {
        transform: rotate(25deg);
        animation-timing-function: ease-in;
    } 50% {
          transform: rotate(0deg);
          animation-timing-function: ease-out;
      } 60% {
            transform: rotate(5deg);
            animation-timing-function: ease-in;
        } 100% {
              transform: rotate(0deg);
              animation-timing-function: ease-out;
          }
}

.loading-page {
    width: 50vw;
    position: absolute;
    z-index: 1000;
    height: 100vh;
    background: linear-gradient(#007ABA, #CD0F8F);
    top: 0px;
    left: 0px;
    background-repeat: no-repeat;
    transition: width 1s ease;
    background-size: 200vw 100vh;
}

.loading-page:last-of-type {
    left: inherit;
    right: 0px;
    transform: scaleX(-1);
}

.loading-page.loaded {
    width: 0vw;
}

* {
    font-family: 'BespokeSans-Variable', sans-serif;
}

.btn {
    background-color: #CD0F8F;
    color: white;
    padding-top: 17px;
    padding-bottom: 17px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 4px;
    border: none;
    border-left: 4px solid #ff5dca;
    border-bottom: 4px solid #ff5dca;
    font-size: 35px;
    cursor: pointer;
    transition: border-left 0.1s, border-bottom 0.1s, transform 0.1s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    border-left: 0px solid #ff5dca;
    border-bottom: 0px solid #ff5dca;
}

.btn-start {
    margin-bottom: 50px;
}

.start-page {
    position: absolute;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    z-index: 10;
}

.d-none {
    display: none !important;
}

.zoom-in {
    animation-duration: 0.2s;
    animation-name: zoom-in-animation;
    animation-play-state: running;
}

@keyframes zoom-in-animation {
    0% {
        transform: scale(0);
    } 100% {
        transform: scale(1);
    }
}

.titulo {
    color: white;
    text-transform: uppercase;
    font-size: 50px;
}

@font-face {
    font-family: casino;
    src: url('/fonts/CasinoShadow.ttf');
}

.key {
    border: none;
    width: 80px;
    height: 80px;
    background-color: #d70d90;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: white;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.21);
    border-bottom: 4px solid #ff5dca;
    border-left: 4px solid #ff5dca;
    cursor: pointer;
    transition: transform 0.2s, border-width 0.1s ease;
    animation-name: keyAnimation;
    animation-play-state: running;
    animation-duration: 0.3s;
    margin: 15px;
    text-transform: uppercase;
    font-weight: 900;
}

.key:active {
    border-width: 0px;
}

.key span {
    transition: transform 0.2s ease;
}

@keyframes keyAnimation {
    0% {
        width: 0px;
        height: 0px;
        font-size: 0px;
    } 100% {
        width: 80px;
        height: 80px;
        font-size: 70px;

    }
}

.key:hover {
    transform: scale(1.1) rotate(45deg);
}
.key:hover span {
    transform: scale(1.1) rotate(-45deg);
}

#menu {
    transition: transform 0.3s, opacity 0.2s ease;
}

@media screen and (max-width: 450px) {
    .key {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

@media screen and (max-width: 350px) {
    .key {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

#keyboard {
    width: 90vw;
    position: absolute;
    z-index: 10;
    left: 5vw;
    bottom: -10vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#sound, #donate {
    position: absolute;
    left: 30px;
    bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.49);
    padding: 15px;
    display: flex;
    align-items: center;
    z-index: 15;
    width: 17px;
    overflow: hidden;
    transition: width 0.3s ease;
}

#donate {
    left: inherit;
    right: 30px;
    background-color: #c50a75;
}

#sound input {
    cursor: pointer;
}

#sound img, #donate img{
    width: 20px;
    margin-right: 10px;
    opacity: 0.8;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.buffer-resultado {
    font-size: 30px;
    color: white;
    line-height: 1px;
    font-weight: 900;
}

.card-cassino {
    position: absolute;
    max-width: 70vw;
    z-index: 1000;
    top: 20vh;
    border-image: url('/images/border-cassino.png') 30 fill / 10px / 10px round;
    background-color: #54358a;
    padding-left: 25px;
    padding-right: 25px;
    display: flex;
    opacity: 0;
    animation-duration: 1s;
    animation-name: bornAnimation;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

@keyframes bornAnimation {
    0% {
        opacity: 0;
        transform: translate(0px, 70px);
    } 100% {
        opacity: 1;
        transform: translate(0px, 0px);
    }
}

@media screen and (min-width: 375px) {
    .card-cassino {
        border-image: url('/images/border-cassino.png') 30 fill / 20px / 20px round;
        padding-left: 35px;
        padding-right: 35px;
    }
    .buffer-resultado {
        font-size: 40px;
        line-height: 40px;
    }
}

@media screen and (min-width: 425px) {
    .card-cassino {
        border-image: url('/images/border-cassino.png') 30 fill / 25px / 25px round;
    }
    .buffer-resultado {
        font-size: 60px;
        line-height: 60px;
    }
}

@media screen and (min-width: 607px) {
    .card-cassino {
        border-image: url('/images/border-cassino.png') 30 fill / 30px / 30px round;
        padding-left: 50px;
        padding-right: 50px;
    }
    .buffer-resultado {
        font-size: 60px;
    }
}

.coin {
    width: 50px;
}

#coins {
    z-index: 6;
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 900;
}

#coins p {
    color: white;
    font-size: 60px;
    margin: 0px;
    margin-right: 15px;
    line-height: 0px;
}

.tremendo {
    animation: treme 0.1s;
    animation-iteration-count: infinite;
}

@keyframes treme {
    0% {margin-left: 0;}
    25% {margin-left: 5px;}
    50% {margin-left: 0;}
    75% {margin-left: -5px;}
    100% {margin-left: 0;}
}

#modalPerdeu {
    color: white;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    top: -100vh;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
    transition: top 0.3s ease;
}

.efeito-vidro {
    background: rgba( 255, 255, 255, 0.35 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 13.5px );
    -webkit-backdrop-filter: blur( 13.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    font-size: 30px;
}

.titulo-derrota {
    font-size: 70px;
    line-height: 1px !important;
}
