* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5em;
    background: linear-gradient(238deg, #590af5, #d27428, #d65205, #d83f3f, #810af5, #ab0af5, #ad049f);
    background-size: 1000% 1000%;
    animation: bg-gradient 33s ease infinite;
    box-sizing: border-box;
}

@keyframes bg-gradient {
    0%{background-position:0% 99%}
    50%{background-position:100% 2%}
    100%{background-position:0% 99%}
}


h1 , h3 , button {
    color: #fff;
}

.hint {
    margin-bottom: 20px;
    padding: 1.5em 2em;
    padding-top: .1em;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    box-shadow: 0px 0px 20px 10px rgb(0 0 0 / 8%);
    border: 10px solid #ffffff14;
    color: #fff;
}
.hint .hint-title {
    text-align: center;
    font: 1.7rem;
    text-align: center;
    display: block;
    font-weight: bolder;
    margin-bottom: .7em;
}

.hint p {
    font-size: 1.1rem;
    font-weight: 600;
}

main {
    padding: 2em;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    box-shadow: 0px 0px 20px 10px rgb(0 0 0 / 8%);
    border: 20px solid #ffffff14;
}
.title {
    flex-direction: column;
}
.form > div, .title{
    display: flex;
    justify-content: center;
    align-items: center;
}
.title h1 {
    margin-bottom: .3em;
    font-size: 3rem;
    font-weight: 400;
}

.title h3 {
    margin-bottom: .5em;
    font-weight: 100;
    color: #ddd !important;
}
.form input{
    border: none;
    outline: none;
    padding: .3em 0em;
    padding-left: 1em;
    font-size: 1.5rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.6);
}
.form input::placeholder{
color: rgba(255, 255, 255, 0.664);
}
.won button,
.form button {
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
    outline: none;
    padding: .6em 2.5em;
    font-weight: bolder;
    cursor: pointer;
    transition: all .15s linear;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.548);
}

.form button::before {
    position: absolute;
    content: '';
    height: calc(100% + 7px);
    width: calc(100% + 7px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    left: -2px;
    top: -2px;
}
.won button:hover,
.form button:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 400px) {
    body {
        /* align-items: flex-start; */
    }
    main {
        padding: .8em;
        border-width: 10px;
    }
    .form input {
        max-width: 300px;
        box-sizing: border-box;
    }
    .hint {
        padding: .7em;
    }
    .title h1 {
        font-size: 1.9rem;
    }
}
.form .input {
    flex-direction: column;
    margin: 1.2em 0em;
}

.input-error-check {
    margin-top: 5px;
    margin-left: -80px;
    display: none;
}

.input-error-check.show {
    display: block;
    color: red;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.698);
}
.form.hide {
    display: none;
}
.won {
    text-align: center;
    display: none;
    color: #fff;
}

.won.show {
    display: block;
}
.hint p span,
.tries {
    color: rgb(7, 246, 107);
    font-weight: bolder;
}
