@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-color: #fff;
    --background-color: #404A65;
    --font: "Kanit", sans-serif;
    --title-shadow: #35383F;
    --buttom-color: #1F6FB0;
}

body {
    height: 100vh;
    background-color: var(--background-color);
    color: var(--font-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font);
    padding: 0px 15px;
}

h1 {
    font-size: 3em;
    margin-top: 50px;    
}
.h1-container{
    position: relative;
    z-index: 1;
}
.h1-kid{
    position: absolute;
    color: var(--title-shadow);
    text-shadow: 5px 5px var(--title-shadow);
}

h2{
    margin-top: 25px;
}
h2,.nome-coin {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
}

.nome-coin {
    font-weight: 700;
}

.container {
    position: relative;
    width: 160px;
    height: 160px;

}

.text-container {
    text-align: center;
    position: relative;
    width: 70px;
    height: 70px;
}

.girar {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.girar.animar {
    animation: letra 2s ease-out forwards;
}

@keyframes letra {
    from {
        transform: rotateX(0deg);
    }

    to {
        transform: rotateX(var(--final-rotation));
    }
}

.flip {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
}

.flip.animar {
    animation: girar 2s ease-out forwards;
}

.texto {
    animation: girar 2s ease-out forwards;
}

/* usa var(--final-rotation) para a rotação final */
@keyframes girar {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(var(--final-rotation));
    }
}

.frente,.traz {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    backface-visibility: hidden;
}

.text-frente,.text-traz {
    position: absolute;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
}

.text-traz {
    transform: rotateX(180deg);
    background-color: var(--background-color);
}

.frente {
    background-image: url(resources/heads.svg);
}

.traz {
    background-image: url(resources/tails.svg);
    transform: rotateY(180deg);
}

img {
    display: block;
    margin-top: 15px;
    margin-bottom: 30px;
}

button {
    color: var(--font-color);
    background-color: var(--buttom-color);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font);
    padding: 5px 40px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 5px solid #06579a;
}

button:active {
    border-bottom: 0px;
    transform: translateY(5px);
}

.author-info {
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    color: var(--font-color);
}

.author-info a {
    text-decoration: none;
    color: var(--font-color);
}

@media screen and (min-width:1024px) {
    h1 {
        font-size: 4em;
            
    }
    h2,.nome-coin{
        font-size: 1.5rem;
    }
    button {
        font-size: 1.25rem;
    }
}