@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
:root{
    font-family: 'Fredoka One', sans-serif;
    --game-vertical-offset: -12vh;
    height: 100vh;
}
body{
    height: 100%;
}

h1, h2, h3{
    font-weight: 100;
}

.container{
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
}

.hints{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;

}

.hints  h1{
    text-transform: uppercase;
}

.guesses{
    width: 80%;
    max-height: 50%;
    position: relative;
    top: 5px;
    min-width: 25%;
}

@media screen and (min-width: 1000px){
    .keyboard, .guesses{
        transform: translateY(var(--game-vertical-offset));
    }   
}

@media screen and (max-width: 500px) {
    .keyboard-key.wide{
        font-size: .5em;
    }
}

.keyboard{
    margin-top: 5%;
    position: relative;
    bottom: 5%;
}

.row{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}


.letter-box{
    border: solid black 1px;
    width: 5vw;
    height: 5vw;
    max-width: 50px;
    max-height: 50px;
    min-width: 25px;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5vw;
    border-radius: 3px;
    margin: 1.25% .15%;
    text-transform: capitalize;
    user-select: none;
}

.keyboard-key{
    min-width: 25px;
    width: fit-content;
    height: 35px;
    border: solid black 1px;
    border-radius: 4px;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 5px;
}
.keyboard-key.wide{
    width: 90px;
}

.not-word .letter-box{
    border: solid rgb(255, 0, 0) 3px;
}
.win .letter-box{
    border: solid rgb(9, 255, 0) 4px;
}

.correct{
    border: solid rgb(43, 255, 0) 2px;
    background-color: rgba(25, 207, 15, 0.317);
}
.wrong-position{
    border: solid rgb(255, 183, 0) 2px;
    background-color: rgba(194, 207, 15, 0.317);
}
.not-in-word{
    border: solid rgb(255, 0, 0) 2px;
    background-color: rgba(207, 15, 15, 0.317);
}


#tooltip{
    display: none;
    position: absolute;
    border: solid black 1px;
    width: fit-content;
    max-width: 45%;
    height: fit-content;
    padding: 1% .5%;
    z-index: 1;
    background-color: whitesmoke;
    font-weight: 100;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

button{
    background-color: whitesmoke;
    border-radius: 5px;
    box-shadow: none;
    border: solid black 1px;
}

#next-button {
    position: absolute;
    top: 15%;
    width: 100vw;
    height: fit-content;
    z-index: 10;
    /* display: flex; */
    background: #e5ffdfed;
    /* border: solid red; */
    flex-direction: column;
    align-items: center;
    padding-bottom: 5%;
}
#next-button button{
    width: 10vw;
    height: 5vh;
    color: black;
    background-color: rgb(81, 226, 81);
}
.left-arrow {
    position: absolute;
    width: 11vw;
    left: 20%;
    top: 21%;
    height: 8vw;
}
.right-arrow {
    position: absolute;
    width: 11vw;
    right: 20%;
    top: 21%;
    height: 8vw;
    transform: scaleX(-1);
}

.current .letter-box{
    border: solid black 2px;
}

img{
    width: 100%;
    height: 100%;
}

dialog{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    max-width: 50%;
}

  .login-popup {
    position: relative;
    width: 350px;
    max-width: 100%;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    padding: 1.5rem;
    display: none;
  }
  
  .close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: #757575;
    cursor: pointer;
  }
  
  form {
    margin-top: 1rem;
  }
  