*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
}
html,body{
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
#main{
    min-height: 100%;
    min-width: 100vw;
    background-color:  #493545;
    display:grid;
    grid-template-columns: 2fr 1.7fr;
    gap:1.5rem
}
#left_container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:1.5rem
}
#title{
    position: relative;
    left: 50px;
    font-size: 3rem;
}
#title span:nth-child(1){
    color: lightpink;
}
#title span:nth-child(2){
    color: lightgoldenrodyellow;
}
#title span:nth-child(3){
    color: lightsalmon;
}
#container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    position: relative;
    left: 50px;
}
.box{
    height: 140px;
    width: 140px;
    margin: 5px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.unused:hover{
    background-color: #b7b6b6;
}
.box i{
    font-size: 10vh;
}
.xblock i{
    color: rgb(0, 47, 255);   
}
.yblock i{
    color: yellow;   
}
.line{
    position: absolute;
    height: 80%;
    width: 3px;
}
#diagonal_line{
    height: 120%;
    transform: rotate(45deg);
    transform: rotate(135deg);
}

#right_container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6vh;
    font:  22px 'Fira Sans',sans-serif;
}
fieldset{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    gap: 8px;
    width: 50%;
    height: 150px;
}
legend{
    text-align: center;
}
input{
  margin:.4rem;
}

.btn{
    height: 50px;
    width: 150px;
    border-radius: 10px;
    font-size: 1.3rem;
}
#resetbtn{
    background-color: transparent;
    border: 1px dotted white;
    color: rgb(0, 217, 255);
    align-self: center;
}
#msgbox{
    text-align: center;
    font-size: 2.5rem;
    color: palegreen;
}
#resetbtn:hover{
    cursor: pointer;
    color: white;
    background-color:cadetblue;
}


@media (max-width:900px) {
    #title,#container{
        left: 0;
    }
}

@media (max-width:800px) {
    #main{
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        gap:60px
    }
    #left_container{
        padding-top: 40px;
    }
    .box{
        height: 100px;
        width: 100px;
    }
    #right_container{
        padding: 0 10px;
        padding-bottom: 50px;
    }
    .box i{
        font-size: 6vh;
    }
}
@media (max-width:410px) {
    fieldset{
        font-size:  22px;
    }
    input{
        margin-right: 0;
    }
    .box{
        height: 70px;
        width: 70px;
    }
}