@font-face {
    font-family: Scramble;
    src: url(Scramble-KVBe.ttf);
}


body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

hr.header {
    width: 500px;
}

button, input[type=button] {
    cursor: pointer;
}


#title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
}

#board {
    width: 483px;
    height: 420px;
    margin: 0 auto;
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
}

.tile {
    /* Box */
    border: 2px solid lightgray;
    width: 60px;
    height: 60px;
    margin: 2.5px;

    /* Text */
    color: black;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.correct {
    background-color: #6AAA64;
    color: white;
    border-color: #6AAA64;
}

.present {
    background-color: #C9B458;
    color: white;
    border-color: #C9B458;
}

.absent {
    background-color: #787C7E;
    color: white;
    border-color: #787C7E;
}

.notword {
    background-color: rgb(212 212 216);
    color: rgb(225, 29, 72);
}


.keyboard-row {
    width: 400px;

    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.key-tile {
    width: 36px;
    height: 40px;
    margin: 1px;
    border: 1px solid lightgray;
    cursor: pointer;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-key-tile {
    width: 76px;
    height: 40px;
    margin: 1px;
    border: 1px solid lightgray;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tiles {
    font-family: 'Scramble', Arial, Helvetica, sans-serif;
    font-size: 55px;
    margin: 20px auto;
    
}

#errorMsg {
    visibility: hidden;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(0, 0, 0, .9);
    color: white;
    padding: 5px;
    border-radius: 4px;
    transition: opacity 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
    font-weight: 700;
}

  #about-overlay, #settings-overlay, #endgame-overlay {
    z-index: 2;
    cursor: pointer;
    position: fixed;
    border-radius: 8px;
    border: 1px solid #EEE;
    background-color: white;
    color: black;
    box-shadow: 0 4px 23px 0 rgba(0, 0, 0, .2);
    width: 90%;
    max-width: 520px;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#settings-overlay {
    text-align: left;
}

.scrabblefont {
    font-family: 'Scramble', Arial, Helvetica, sans-serif;
    font-size: 22px;
}

.exit {
    float: right;
    font-size: 30px;
}


#options {
    position: absolute;
    right: 20px;
}
#options button {
    font-size: 30px;
    width: 43px;
    height: 43px;
}

#playagain_btn {
    font-size: 25px;
    background: #6AAA64;
    padding: 10px;
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

.index_btn {
    border: thin solid black; font-size: 30px; padding: 20px; margin: 20px auto;
}