body{
width: 100dvw;
height: 100dvh;
display: flex;
flex-direction: column;
}
*{
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

.container{
    display: flex;
    width: 100dvw;
    aspect-ratio: 16/7;
    position: relative;
    /* min-height: 300px; */
    /* height: 100dvh; */
    flex-direction: column;
    align-items:center;
    /* justify-content: center; */
    /* grid-template-rows: auto; */
}
.b{
    display: flex;
    width: 80svw;
    margin-top: 10px;
    /* min-height: 25%; */
    aspect-ratio: 16/9;
    /* position: fixed; */
    top: 5px;
    border: solid 1px black;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#inputForm{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2%;
    gap: 10px;
    height: auto;
    width: 95dvw;
}

h2{
/* display: block; */
/* position: relative; */
    margin-top: 25px;
    margin-bottom: 15px;
    position: relative;
}
#btn, .btn_hint, #btn_new_flag, #btn_auto{
    padding: 8px 18px 10px 18px;
    min-height: 20%;
    min-width: 100px;
    max-width: 50dvw;
    border-radius: 15px;
    border: none;
    box-shadow: 5px 5px 20px gray;
    background-color: black;
    color: lightgray;
    font-size: 1em;
}
#btn_new_flag, #btn_auto, #btn{
    margin-top: 25px;
}

#btn:hover, .btn_hint:hover, #btn_new_flag:hover, #btn_auto:hover{

    background-color: lightgray;
    color: black;
    cursor: pointer;
    transform: scale(0.95);
}

.btn3{

    display: flex;
    position: relative;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    z-index: 999;
}

#nameA{

    height: 50px;
    padding: 10px;
    width: 85%;
    border-radius: 20px;
    font-size: 1em;
    text-align: center;
    border: solid rgb(192, 191, 191) 1px;
    background-color: rgb(235, 235, 235)
    ;
}

.hint{
    width: 90dvw;
    max-width: 700px;
    background-color: rgb(222, 240, 249);
    display: grid;
    grid-template-columns: 55% 8% 30%;
    gap: 20px;
    grid-auto-rows: 1fr;
    border: solid 0.5px gray;
    border-radius: 10px;
    padding: 30px;
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
}

body > div.hint > label{

    padding-right: 15px;
    font-size: 1em;
}
.hint > input{
    padding: 10px;
    border-radius: 10px;
    border: solid lightgrey 0.5px;
    font-size: 1.1em;
}
.input_to_Fill{

    display: flex;
    flex-direction: column;
    /* margin-top: 20px; */
    width: 35px;
    height: 35px;
    padding: 8px;
    text-align: center;
    font-size: 1.05em;
    border-radius: 10px;
}
.input_to_Fill:valid{

    background-color: rgb(224, 252, 224);
}
.input_to_Fill:invalid{
    
    background-color: rgb(224, 252, 224);
}
.emptyInput{
    background-color:  white;
    border: none;
}
.emptyInput:invalid{
    background-color:  white;
    border: none;
}

.congratsulation{
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 90dvw;
    max-width: 500px;
    height: 24dvh;
    max-height: 500px;
    background-color: brown;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 999;
}
body > div.congratsulation > span{

font-size: 1.3em;
/* line-height: 1em; */
padding: 0em 1em 0em 1em ;
line-height: 1.4em;
text-align: center;
color: white;
}

body > div.congratsulation > span::first-line{
font-size: 1.7em;
line-height: 1em;
}

.autoFill{
    margin-right: 20px;
    font-size: 2.5em;
    font-weight: 100;
    position: absolute;
    top: -20px;
    left: -75px;
    color: black;
    /* text-shadow: 1px 1px 1px rgba(8, 8, 8, 0.3); */
    cursor: pointer;


}
.autoFill:hover{

    font-size: 2.3em;
}
