*{
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#container{
    display: flex;
    background-color: black;
    height: 100%;
    align-items: center;
    flex-direction: column;
}

header{
    border-bottom: 1px solid rgb(58,58,60);
}

.title{
    color: gainsboro;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.4rem 0 0.4rem 0;
    text-align: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

}

#game{
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#board-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

#board{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
    padding: 10px;
    box-sizing: border-box;
}

.square{
    border: 2px solid rgb(58,58,60);
    min-height: 65px;
    min-width: 65px;
    font-size: 40px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;

    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

#modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.modal-content{
    background-color: #121213; /*original wordle grey*/
    color: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgb(58, 58, 60);
    text-align: center;
    box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.2);
}

#reset-button{
    background-color: white;
    color: black;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 15px;
}

.hidden{
    display: none !important;
}

#keyboard-container{
    height: 200px;
}

.keyboard-row{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 8px;
    touch-action: manipulation; /*önemli*/
}

.keyboard-row button{
    font-family: inherit;
    font-weight: bold;
    border: 0;
    padding: 0;
    height: 58px;
    cursor: pointer;
    background-color: rgb(129, 131, 132);
    color: rgb(215, 218, 220);
    flex-grow: 1;
    text-transform: capitalize;
    margin-right: 6px;
    border-radius: 4px;
    user-select: none;
}

.keyboard-row button.wide-button{
    flex-grow: 1.5;
}

.spacer{
    flex-grow: 0.5;
}