@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

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

:root {
    --bg-color: darkkhaki;
    --bg-win-color: lightgreen;
    --bg-loose-color: rgb(255, 54, 54);
    --font: 'Roboto', sans-serif;

}

body {
    font-family: var(--font);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    min-height: 100vh;
    padding: 10px;
    background-color: var(--bg-color);
}

.container.win {
    background-color: var(--bg-win-color);
}

.container.loose {
    background-color: var(--bg-loose-color);
}

.container.win .guessBtn {
    cursor: not-allowed;
}

.container_about {
    max-width: 400px;
}

.container_about .container_title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .6rem;
    letter-spacing: 1px;
}

.container_about .container_description {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
}

.container_input {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

input,
.btn {
    width: 100%;
    outline: none;
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all .3s ease-in-out;

}

input {
    border: 1px solid #b6b6b6;
    background-color: rgb(226, 225, 224);
}

input:focus {
    background-color: #fff;
}

.guessBtn {
    background-color: darkgoldenrod;
    cursor: pointer;
    color: #fff;
    border: none;
}



.guessBtn:hover,
.reset_btn:hover {
    filter: brightness(1.2);
    border: none;
}

.container_reset {
    max-width: 400px;
}

.reset_btn {
    background-color: rgb(255, 0, 0);
    color: #fff;
    cursor: pointer;
    width: 100%;
}

.container_result {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.container_result #attempts,
#highScore {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container_footer {
    max-width: 400px;
}

.container_footer p {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.container_footer a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    transition: all .3s ease-in-out;
}

.container_footer a:hover {
    color: #fff;
    text-decoration: underline;
}