@media screen and (max-height: 640px) {
    .container.container-single{
        padding-top: 3px !important;
    }
}
#gamebox {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 5px;
    margin-bottom: 0px;
    background: cadetblue;
    width: 700px;
    height: 440px;
    position: relative;
}
input:focus{
    outline: none;
}
.penci-single-wrapper #header{
    width: 100%;
    height: 80px;
    font-size: 30px;
    color: #fff;
    padding: 20px;
}
#score{
    float: left;
    width: 140px;
    text-align: left;
}
#answer{
    float: left;
    width: 220px;
    text-align: center;
    height: 43px;
}

#answer span{
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: red;
    padding: 0px 5px;
}
#time{
    float: right;
    width: 180px;
    text-align: right;
}
#scorev, #timer {
    color: red;
    font-weight: bold;
}
#game-container {
    width: 580px;
    margin: auto;
    font-size: 36px;
}
#grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px auto;
    padding: 0px 30px;
    height: 150px;
    justify-items: anchor-center;
}
#gameover{
    display: none;
    position: absolute;
    top: 0px;
    width: 700px;
    height: 440px;
    margin-left: -10px;
    background-color: rgba(22, 28, 28, 0.95);
}
#gameover p.msg {
    font-family: Arial;
    font-size: 40px;
    color: grey;
    margin: 0 auto;
    margin-top: 80px;
}
#tryagainbtn, #nextlevelbtn, #resetbtn {
    display: block;
    width: 160px;
    padding: 6px;
    background-color: #00BB00;
    font-family: Arial;
    font-size: 30px;
    color: red;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}
#tryagainbtn {
    margin: 36px auto 20px;
}
#nextlevelbtn {
    margin: 20px auto;
}
#resetbtn {
    margin: 20px auto;
}
#tryagainbtn:hover {
    background-color: #9f8b77;
}
#nextlevelbtn:hover{
    background-color: #9f8b77;
}
#resetbtn:hover {
    background-color: #9f8b77;
}
.grid-item {
    width: 60px;
    height: 60px;
    border: 1px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    margin-bottom: 10px;
}

#word-input {
    padding: 5px 10px;
    display: block;
    margin: 50px auto 10px;
    height: 50px;
    width: 280px;
    border-radius: 8px;
    font-size: 26px;
    background-color: #eee;
    color: #000;
}

#submit-button, #next-button, #view-button{
    padding: 5px 12px;
    font-size: 24px;
    border-radius: 8px;
    background: green;
    color: #fff;
    border: 1px solid #333;
}

#score-container {
    margin-top: 20px;
}
