* { box-sizing: border-box; } body { font-family: Arial, Helvetica, sans-serif; } .modal-box { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.8); /* Black w/ opacity */ } .modal-box[popup-display="false"] { display: none; /* Hidden by default */ } .modal-box[popup-display="true"] { display: flex; /* Hidden by default */ } /* Modal Content/Box */ .modal-content { margin: 10% auto; /* 15% from the top and centered */ padding: 20px; border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ height: 80%; overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ } /* Float three header columns side by side */ .header-column { float: left; width: 30%; padding: 0 10px; } /* Float four columns side by side */ .column { float: left; width: 25%; padding: 0 10px; } /* Remove extra left and right margins, due to padding in columns */ .row {margin: 0 -5px;} /* Clear floats after the columns */ .row:after { content: ""; display: table; clear: both; } /* Style the counter cards */ .card { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */ padding: 16px; text-align: center; height: 400px; overflow: hidden; text-overflow: ellipsis; background-color: #f1f1f1; } /* Responsive columns - one column layout (vertical) on small screens */ @media screen and (max-width: 600px) { .column { width: 100%; display: block; margin-bottom: 20px; } }