@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

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

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', sans-serif;
    color: #eee;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* LAYOUT */
header {
    position: relative;
    height: 25vh;
    width: 100%;
    border-bottom: 5px solid #eee;
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
}

/* ELEMENTS STYLE */
h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

.number {
    background: #eee;
    color: #333;
    font-size: 5rem;
    width: 15rem;
    padding: 2.5rem;
    margin: 1rem auto;
    text-align: center;
    border-radius: 10px;
}

.between {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.again {
    margin-top: 1rem;
}

.guess {
    background: none;
    border: 3px solid #eee;
    font-family: inherit;
    color: inherit;
    font-size: 3rem;
    padding: 1.5rem;
    width: 20rem;
    text-align: center;
}

.btn {
    border: none;
    background-color: #eee;
    color: #222;
    font-size: 1.8rem;
    font-family: inherit;
    padding: 1.5rem 2.5rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #ccc;
}

.right {
    font-size: 1.6rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    header {
        height: 20vh;
    }

    h1 {
        font-size: 2.5rem;
    }

    .number {
        font-size: 4rem;
        width: 15rem;
    }

    .guess {
        font-size: 2.5rem;
        width: 18rem;
    }

    .btn {
        font-size: 1.5rem;
        padding: 1.2rem 2rem;
    }

    main {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    h1 {
        font-size: 2rem;
    }

    .number {
        font-size: 3rem;
        width: 11rem;
    }

    .guess {
        font-size: 2rem;
        width: 15rem;
    }

    .btn {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    main {
        gap: 1rem;
    }
}
