@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;500;800&display=swap');

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

html {
    height: 100vh;
}

body {
    background: linear-gradient(45deg, #bdc3c7, #2c3e50);
    font-family: 'Montserrat', sans-serif;
    width: 60vw;
    text-align: center;
    padding: 5em 0;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;    
    font-size: 20px;
}

.titulo {
    color: #FFFFFF;
    font-size: 2em;
    margin: 0 0 1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

#chance {
    font-size: 0.8em;
    letter-spacing: 0.2em;
    color: #FFF;
    text-transform: uppercase;
    font-weight: 200;
    margin-top: 20px;
}

#chance #mostraTentativas {
    font-weight: 400;
}

.area-resposta {
    background: #009AFE;
    width: 100%;
    max-width: 400px;
    display: inline-block;
    border-radius: 8px;
    padding: 0.5em;
    color: #FFFFFF;
    margin-bottom: 2em;
    display: none;
}


.chutes-registrados {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chutes-registrados li {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0.5em;
}

.chutes-registrados span {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #282324;
    color: #FFFFFF;
    border-radius: 6px;
    line-height: 60px;
    font-weight: 800;
    font-size: 1.8em;
}

.chutes-registrados .letra-certa {
    background: #279788;
}

.chutes-registrados .letra-existe {
    background: #CF9F62;
}

#tentativa {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

#tentativa input {
    display: block;
    width: 100%;
    padding: 8px 24px;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    outline: none;
    color: #666;
    letter-spacing: 1px;
    font-size: 0.9em;
    font-family: inherit;
}

#tentativa input::-webkit-input-placeholder {
    color: #CCC;
    letter-spacing: normal;
    text-transform: none;
}

#tentativa button {
    display: block;
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    width: 45px;
    height: 90%;
    border-radius: 5px;
    border: none;
    background: #279788;
    color: #FFF;
    cursor: pointer;
}

#recomecar {
    display: none;
    border: none;
    border-radius: 5px;
    margin: 16px 0 0;
    cursor: pointer;
    background: none;
    color: #FFF;
    font-size: 0.8em;
    font-family: inherit;
}

#recomecar:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        width: 100vw;
        padding: 5em 1em;
    }
}

@media (max-width: 420px) {
    .titulo {
        font-size: 1.6em;
    }

    .area-resposta {
        font-size: 0.9em;
    }

    .chutes-registrados span {
        font-size: 1.4em;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}