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

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

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

body {
    position: relative;
    font-family: 'Press Start 2P', sans-serif;
    color: #eee;
    background-color: #009688;
    text-transform: capitalize;
}

/* LAYOUT */
header {
    position: relative;
    height: 35vh;
    border-bottom: 7px solid #eee;
}

section {
    height: 65vh;
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.left {
    width: 52rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right {
    width: 52rem;
    font-size: 2rem;
}

/* ELEMENTS STYLE */
h1 {
    font-size: 4rem;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.secret {
    background: #eee;
    color: #333;
    font-size: 6rem;
    width: 15rem;
    padding: 3rem 0rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.range {
    font-size: 1.4rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.again {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.guess {
    background: #fff;
    border: 4px solid #eee;
    font-family: inherit;
    font-size: 5rem;
    padding: 2.5rem;
    width: 25rem;
    text-align: center;
    display: block;
    margin-bottom: 3rem;
}

button {
    border: none;
    background-color: #eee;
    color: #222;
    font-size: 2rem;
    font-family: inherit;
    padding: 1.5rem 3rem;
    margin: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #ccc;
}

.message {
    margin-bottom: 8rem;
}

.chance {
    margin-bottom: 2rem;
}

footer {
    text-align: left;
    padding: 0.3rem 2rem;
    color: #fff;
    background-color: #000;
    position: absolute;
    inset: auto 0 0 0;
}

footer a {
    font-size: medium;
    color: #fff;
}

@media only screen and (max-width: 600px) {
    section {
        display: block;
        padding: 8rem 2rem;
        text-align: center;
    }

    .left,
    .right {
        display: block;
        width: 100%;
        padding: 2rem;
    }

    .guess {
        width: 100%;
    }

    .message {
        margin-bottom: 4rem;
    }

    footer {
        padding: 0;
    }
}