*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    background-color: white;
}

.col-container {
    display: grid; /* Make the container element behave like a table */
    width: 65%; /* Set full-width to expand the whole page */
  grid-template-columns: 350px 320px;
}

.col {
//    display: table-cell; /* Make elements inside the container behave like table cells */
    display: grid;
}
p.ex1 {
    margin-left: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 350;
    font-size: 12px;
    border: 1px solid black;
    background-color:  #f2f2f2;
    position: relative;
}

.formContainer {
    position: relative;
    display: block;
    max-width: 320px;
    min-width: 320px;
    margin-left: 30px;
    margin-top: 55px;
    background-color: #eee;
}

.formContainer:after,
.formContainer:before {
    content: " ";
    display: table;
}

.formContainer:after {
    clear: both;
}

form {
    width: 100%;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#display {
    width: 100%;
    min-height: 84px;
    display: block;
    padding: 0 15px;
    text-align: right;
    text-overflow: clip;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    background-color: #444;
    border: 0;
    border-bottom: 10px solid #999;
    border-top: 10px solid #999;
}

input[type="button"],
#equal {
    width: 80px;
    height: 80px;
    display: block;
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #eee;
    border: 0;
    border-bottom: 1px solid #bbb;
}

input[type="button"]:hover,
#equal:hover {
    cursor: pointer;
    background-color: #ddd;
}

input[type="button"]:active,
#equal:active {
    cursor: pointer;
    background-color: #bbb;
}

input:focus {
    box-shadow: 0;
    outline: 0;
    background-color: #eee;
}

.linkRefresh {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 30px;
    font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 400px) {
    .formContainer {
        margin: 0 auto;
    }
}

@media screen and (max-width: 990px) {
    input[type="button"]:hover,
    #equal:hover {
        background-color: #eee;
    }
    input[type="button"]:active,
    #equal:active {
        background-color: #bbb;
    }
}
