* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: arial;
}

body {
    background-color: rgb(189, 202, 209);
}

/* HEADER */
#header-bar {
    width: 100vw;
    height: 10vh;
    background-color: rgb(46, 46, 46);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
}

#copyright {
    text-align: center;
    font-size: 12px;
    color: rgb(212, 212, 212);
    position: relative;
}
.icon-container-class{
    width: 20%;
    height: 10vh;
    float: right;
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: khaki; */
}
.mail-btn-class{
    font-size: 20px;
    margin-right: 6px;
    color: rgb(170, 170, 170);
}
.icon-container-class p{
    display: inline;
    font-style: 20px;
    line-height: 20px;
    margin-left: 6px;
    color: rgb(170, 170, 170);
    font-size: 12px;
}
#menu-btn{
    display: none;
    cursor: pointer;
    color: rgb(170, 170, 170);
}
@media only screen and (max-width: 1200px){
    #menu-btn{
        display: block;
    }
    #mail-btn{
        display: none;
    }
    #icon-container p{
        display: none;
    }
    #icon-container{
        justify-content: flex-end;
        padding-right: 2%;
    }
}
#show-mail-box{
    width: 200px;
    height: 50px;
    margin-top: 14vh;
    margin-right: 6vw;
    background-color: rgb(46, 46, 46,0.8);
    border-radius: 4px;
    display: none;
}


/* FORM */
form {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inp {
    width: 40vw;
    height: 28px;
    display: block;
    margin: 10px auto;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid rgb(0, 0, 0);
    outline: none;
}
@media only screen and (max-width: 1000px) {
    .inp {
        width: 60vw;
    }
    #copyright{
        font-size: 10px;
    }
    #header-bar{
        height: 60px;
    }
}

#pavt-type,
#road-type,
#road-class,
#veh-type,
#cbr-value-sb,
#cbr-value-bs,
#design-life,
#modulus-ab,
#modulus-aw,
#carriageway-type,
#number-of-lanes {
    cursor: pointer;
}

#add-btn {
    width: 100px;
    background-color: rgb(27, 105, 37);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin: 20px auto;
}

#general-next-btn {
    width: 100px;
    background-color: rgb(27, 105, 37);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin: 20px auto;
}

#material-next-btn {
    width: 100px;
    background-color: rgb(27, 105, 37);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin: 20px auto;
}

#calculate-btn {
    width: 250px;
    background-color: rgb(27, 105, 37);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin: 20px auto;
}

/* VISIBILITY */
#general-input-box {
    padding-top: 100px;
}

#material-prop-box {
    display: none;
}

#traffic-box {
    display: none;
}

#calc-btn-box {
    margin: 80px 0;
    display: none;
}

#result-box{
    visibility: hidden;
}


/* TABLE */
table {
    width: 700px;
    border-spacing: 0px;
}

@media only screen and (max-width: 700px) {
    table {
        width: 80vw;
    }
}

thead {
    background-color: rgb(223, 223, 223);
    font-weight: bold;
}

th {
    width: 200px;
    text-align: center;
    border-bottom: 1px solid #000;
    font-size: 14px;
}

td {
    width: 200px;
    text-align: center;
    border-bottom: 1px solid #000;
    font-size: 14px;
}

tfoot td {
    font-weight: bold;
}



/* DISPLAY RESULT */
.result-container {
    width: 100vw;
    height: 100vh;
    background-color: rgba(216, 216, 216, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.box {
    border: 1px solid #000;
    border-radius: 2px;
    height: 30px;
    font-size: 14px;
    text-align: center;
    line-height: 30px;

}

#box1 {
    width: 60vw;
    background-color: rgb(207, 207, 207);
}

#box2 {
    width: 65vw;
    background-color: rgb(175, 175, 175);
}

#box3 {
    width: 70vw;
    background-color: rgb(133, 133, 133);
    color: #fff
}

#box4 {
    width: 75vw;
    background-color: rgb(98, 98, 98);
    color: #fff
}

#box5 {
    width: 85vw;
    background-color: rgb(69, 69, 69);
    color: #fff;
    display: none;
    display: none;
}

#box6 {
    width: 85vw;
    height: 50px;
    background-color: rgb(75, 58, 31);
    border-top: 1px solid #000;
    color: #fff;
    line-height: 50px;
}

@media only screen and (max-width: 700px){
    .box{
        font-size: 10px;
        height: 20px;
        line-height: 20px;
    }
    #my-heading{
        font-size: 0.9rem;
    }
}
#close-display{
    width: 80px;
    height: 30px;
    border: 1px solid #000;
    border-radius: 6px;
    background-color: rgb(189, 202, 209);
    font-size: 14px;
    outline: none;
    position: absolute;
    top: 2%;
    right: 2%;
    cursor: pointer;
}

/* Alert Box */
#alert-box{
    width: 350px;
    height: 160px;
    background-color: rgb(46, 46, 46);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgb(138, 138, 138);
}
#my-heading{
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
