body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: rgb(228, 252, 255);
}

hr {
    width: 50%;
    margin: 0 auto;
}

#title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0;
}

#board {
    width: 250px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

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

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

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

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

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


.keyboard-row {
    width: 400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

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

    /* Text */
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

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

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

#info {
    position: absolute;
    right: 2%;
    top: 3%;
    width: 20px;
    font-size: 14px;
    font-weight: bold;
    color: gray;
    cursor: pointer;
    /* border: 1px solid black; */
}

#info p {
    position: absolute;
    top: -13px;
    right: 23px;
    opacity: .5;
    display: none;
}

#info:hover p {
    display: block;
}

.main {
    position: absolute;
    opacity: 0;
    z-index: -99;
}

#rules {
    position: absolute;
    top: 40px;
    left: 20%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
}

.rulesHide {
    z-index: 0;
    opacity: 0;
}

.rulesShow {
    z-index: 1;
    opacity: 1;
}

#rules h1 {
    margin: 0 auto;
}

#rules h1:hover {
    border-bottom: 1px solid black;
    letter-spacing: 1.2px;
}

#rules p {
    margin: 10px;
}

#rules ul,
ol {
    text-align: left;
    font-size: 15px;
    line-height: 22px;
}

#cancle {
    position: absolute;
    right: 10px;
    top: 5px;
    width: 15px;
    cursor: pointer;
}

@media screen and (max-width: 950px) {
    #rules {
        left: 0;
        width: 100%;
    }
}

@media screen and (max-width: 375px) {
    .keyboard-row {
        width: 230px;
    }
}