.wrapper {
  max-width: 1000px;
  margin: 0 20px;
  display: grid;
  grid-gap: 10px;
}

.wrapper > * {
  background-color: #999;
  color: #fff;
  border-radius: 5px;
  padding: 20px;
  font-size: 100%;
  /* needed for the floated layout*/
  margin-bottom: 10px;
}


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

body {
  margin: 10px;
  font-family: 'Open Sans', 'sans-serif';
  background-color: #fff;
  color: #444;
}

h1, p {
  margin: 0 0 1em 0;
}

button.swar {
    border-radius: 22px;
    padding: 18px;
    background-color: beige;
}

button.popup_swar {
    border-radius: 22px;
    padding: 18px;
    background-color: #ffff00;
}


button.btn {
    border-radius: 22px;
    padding: 8px;
    background: linear-gradient( #666699,#e5e5e5);
}

.swar_remove {
    border-radius: 22px;
    padding: 18px;
    background-color: gray;
    text-decoration: line-through;
}




@media screen and (min-width: 500px) {

  /* no grid support? */
  .sidebar {
    float: left;
    width: 22%;
  }

  .content {
    float: right;
  }

  .wrapper {
    margin: 0 auto;
    grid-template-columns: 3fr 222px ;
  }
  
  .header, .footer {
    grid-column: 1 / -1;
    /* needed for the floated layout */
    clear: both;
  }

}

/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps. */
@supports (display: grid) {
  .wrapper > * {
    width: auto;
    margin: 0;
  }
}




  /* Popup box BEGIN */
.hover_bkgr_subset{
    background:rgba(0,0,0,.4);
    color: black;
    cursor:pointer;
    display:none;
    height:100%;
    position:fixed;
    text-align:center;
    top:0;
    left:0;
    width:100%;
    z-index:10000;
}



.hover_bkgr_subset .helper{
    display:inline-block;
    height:100%;
    vertical-align:middle;
}

#quiz {
    min-height: 160px;
}

.hover_bkgr_subset > div {
    background-color: #fff;
    box-shadow: 10px 10px 60px #555;
    display: inline-block;
    height: auto;
    max-width: 551px;
    min-height: 100px;
    vertical-align: middle;
    width: 60%;
    position: relative;
    border-radius: 8px;
    padding: 15px 5%;
}
.popupCloseButton {
    background-color: #fff;
    border: 3px solid #999;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    font-family: arial;
    font-weight: bold;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
}
.popupCloseButton:hover {
    background-color: #ccc;
}
.trigger_popup_subset {
    cursor: pointer;
    font-size: 20px;
    margin: 20px;
    display: inline-block;
    font-weight: bold;
    text-decoration: underline;
    color: #666699;
}

.alignright {
    float: right;
}

/* class applies to select element itself, not a wrapper element */

.select-css {
    border-radius: 22px;
    padding: 8px;
    background: linear-gradient( #666699,#e5e5e5);
}

.select-css * {
    border-radius: 22px;
    padding: 8px;
    background: linear-gradient( #666699,#e5e5e5);
}


