*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
/* global class */

.center{
    display:flex;
    align-items:center;
    justify-content:center;
}

body{
    font-family:helvetica,sans-serif;
}
/* navbar */

.mainheader{
    height:9vh;
    width:100vw;
    background:#3652A4;
    display:flex;
}
.header1{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    font-weight:400;
    color:white;
}

/* end of nav */

/* section box */

.boxes{
    height:91vh;
    width:100vw;
    display:flex;
    justify-content:space-evenly;
    flex-wrap:wrap;
    padding:10px;
}

     /* first section */ 

.div1initialize{
    height:100%;
    width:25%;
    min-width:330px;
    border:2px solid grey;
    display:flex;
    align-items:start;
    flex-flow:column;
}
.initialheaderbox{
    height:8%;
    width:100%;
    display:flex;
    background:#F8F8F8;
}
.initialize{
    height:100%;
    width:100%;
    font-size:20px;
    font-weight:100;
    letter-spacing:.8px;
}

.enterMatrixSizeText{
    height:10%;
    width:100%;
}

.inputPart{
    height:auto;
    width:100%;
    padding:5px; 
}

.firstInput,.secondInput{
    display:flex;
    margin-bottom:5px;
}

.exceedsLimitOne{
   padding:3px;
    width:90%;
    color:red;
    margin:0 auto;
    font-size:13px;
    margin-bottom:5px;
    display:none;
}
.exceedsLimitTwo{
    padding:3px;
    width:90%;
    color:red;
    margin:0 auto;
    font-size:13px;
    display:none;
}
.sets{
    height:25px;
    width: 60px;
    background:#F8F8F8;
    margin-right:5px;
}
.inputOne{
    height:25px;
    width:calc(100% - 60px); 
}

.inputTwo{
    height:25px;
    width:calc(100% - 60px); 
}
.inputOne input[type="text"]{
    height:100%;
    width:90%;
    outline:none;
    letter-spacing:1px;
    padding-left:5px;
}
.inputTwo input[type="text"]{
    height:100%;
    width:90%;
    outline:none;
    letter-spacing:1px;
    padding-left:5px;
}

.buttons{
    height:40px;
    width:80%;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-evenly;
}
.start{
    height:30px;
    width:100px;
    background:#3652A4;
    border:none;
    outline: none;
    cursor:pointer;
    color:white;
}
.next{
    height:30px;
    width:100px;
    background:#3652A4;
    border:none;
    outline: none;
    cursor:pointer;
    color:white;
}
.start:hover{
    border:.5px solid black;
    background:transparent;
    color:black;
}
.next:hover{
    border:.5px solid black;
    background:transparent;
    color:black;
}
.next:hover{
    border:.5px solid black;
}

.restartButton{
    width:90%;
    margin:0 auto;
}
.restart{
    width:220px;
    color:white;
    background:#3652A4;
    border:none;
    outline: none;
    cursor:pointer;
    height:30px;
}
.restart:hover{
    border:.5px solid black;
    background:transparent;
    color:black;
}

    /* end section one */

/* section two */

.div2stepexecution{
    height:100%;
    width:28%;
    min-width:330px;
    border:2px solid grey;

}
.code{
    height:92%;
    width:100%;
    padding:10px;
    display:none;
}
.code ul{
    list-style:none;
}

/* section three */

.div3codeoutput{
    height:100%;
    width:43%;
    min-width:330px;
    border:2px solid grey;
   
}

.decoders{
    height:40px;
    width: 80%;;
    display:flex;
    margin:0 auto;
}

.decoderParentOne{
    width:50%;
    height:40px;
    display:flex;
    align-items:center;
    padding:10px;
}
.decoderOne{
    height:30%;
    width:45px;
    background:red;
    margin-right: 5px;
}

.decoderParentTwo{
    width:50%;
    height:40px;
    display:flex;
    align-items:center;
    padding:10px;
}

.decoderTwo{
    height:30%;
    width:45px;
    background:green;
    margin-right: 5px;
}

.actualSets{
    height:80px;
    width:90%;
    display:flex;
    justify-content:center;
    flex-flow:column;
    margin:0 auto;
    padding:10px 0;
    
}
.actualSetOne{
    height:100%;
    width:100%;
    display:flex;
    align-items:center;
    margin-bottom:5px;
}

.actualSetOneChild{
    height:30px;
    width:70px;
    background:#F8F8F8;
}

.actualSetTwo{
    height:100%;
    width:100%;
    display:flex;
    align-items:center;
}
.actualSetTwoChild{
    height:30px;
    width:70px;
    background:#F8F8F8;
}

.variableBox{
    height:30px;
    width:90%;
    margin:0 auto;
    background:#F8F8F8;
    display:none;
}
.variableBox div{
    display:flex;
    font-size:15px;
    font-weight:bold;
    text-align:center;
    color:red;
    
}
.indexI,.indexJ{
    width:10px;
    text-align:center;
}

.actionSet{
    height:200px;
    width:80%;
    padding:30px;
    margin:0 auto;
}

.actionSetOne{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    margin-bottom:10px;
}
.unpackSetOne{
    font-size:20px;
}

.unpackSetOne span{
    margin:10px;
    text-align:center;
    padding:5px;
    border-radius:50%;
}
.unpackSetTwo span{
    margin:10px;
    text-align:center;
    padding:5px;
    border-radius:50%;
}

.intersectionSymbol{
    margin-bottom:10px;
}

.actionSetTwo{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    margin-bottom:10px;
}
.unpackSetTwo{
    font-size:20px;
}

.bracketTwo{
    font-size:40px;
    color:#3652A4;
}

.numberOutput{
    margin:10px;
}


/* start last output display */

.intersectionOutput{
    height:auto;
    width:90%;
    margin:0 auto;
    padding:15px 0;
    display:flex;
}

.intersectionWord{
    height:40px;
    width:120px;
    background:#F8F8F8;
    display:flex;
    font-weight:bold;
}
.output{
    height:40px;
    font-weight:bold;
    font-size:30px;
    
}

.lastLine{
    height:50px;
    width:80%;
    margin:0 auto;
    display:none;
}

.lastLineNone{
    height:50px;
    width:80%;
    margin:0 auto;
    display:none;
}
.lastCommentNone{
    height:40px;
    width:60%;
    background:red;
    color:white;
}

.lastComment{
    height:40px;
    width:60%;
    background:green;
    color:white;
}

/* media queries ............... */


@media only screen and (max-width: 1200px){
    body{
        overflow-x:hidden;
    }
    .start{
        width:70px;
    }
    .next{
        width:70px;
    }
    .restartButton .restart{
        width:164px;
    }
    
    .div1initialize{
        min-width:25%;
    }
    .inputPart{
        padding:5px 0 5px 5px; 
    }
    .exceedsLimitOne{
        padding:3px 0 3px 3px;
    }
    .exceedsLimitTwo{
        padding:3px 0 3px 3px;
    }
    .sets{
        width: 50px;
        margin-right:2px;
    }
    .restart{
        width:200px;
    }

    /* second section */ 
    .div2stepexecution{
        min-width:25%;
        font-size:15px;
    }
    .code ul li{
        margin-bottom: 1px;
    }

    /*third section */
    .div3codeoutput{
        min-width: 40%;
    }
    .setValuesOne{
        font-size:15px;
    }
    .setValuesTwo{
        font-size:15px;
    }
    .actionSet{
        padding:20px;
        display:flex;
        align-items:center;
        justify-content:center;
        flex-flow:column;
    }
    .actionSetOne{
        font-size:20px;
        margin-bottom:15px;
    }
    .unpackSetOne{
        font-size:18px;
    }
    .unpackSetOne span{
        margin:5px;
        padding:2px;
    }
    .unpackSetTwo span{
        margin:5px;
        padding:2px;
    }
    .actionSetTwo{
        font-size:20px;
    }
    .unpackSetTwo{
        font-size:18px;
        margin:0;
    }
    .bracketTwo{
        font-size:30px;
    }
    .bracketOne{
        font-size:30px;
    }
    .intersectionOutput{
        padding:10px 0;
    }
    
    .intersectionWord{
        height:30px;
        width:120px;
        margin:3px;
    }
    .output{
        height:30px;
        font-size:20px; 
    }
    .numberOutput{
        margin:10px;
    }
    .lastLineNone{
        height:50px;
    }
    .actualSetOneChild{
        height:25px;
    }
    .actualSetTwoChild{
        height:25px;
    }

}

@media only screen and (max-width: 1000px){
    .start{
        width:100px;
    }
    .header1{
        font-size:25px;
    }
    .next{
        width:100px;
    }
    .restartButton .restart{
        width:224px;
    }
    .div1initialize{
        width:340px;
        margin-top:10px;
    }
    /* second section */
    .div2stepexecution{
        width:340px;
        margin-top:10px;
    }
    .code ul li{
       margin-bottom: 1px;
    }
    .inputOne{
        width:calc(100% - 50px); 
    }
    
    .inputTwo{
        width:calc(100% - 50px); 
    }

    .div3codeoutput{
        margin-top:10px;
       min-width:340px;
    }
   
}
















