/* Setting box model */
#main {
  box-sizing: border-box;
}

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


/* Grid classes from 1 to 12 for a 12 column grid layout */
.grid-s-1, .grid-s-2, .grid-s-3, .grid-s-4, .grid-s-5, .grid-s-6, .grid-s-7,
.grid-s-8, .grid-s-9, .grid-s-10, .grid-s-11, .grid-s-12,
.grid-1, .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9,
.grid-10, .grid-11, .grid-12 {
  float: left;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 10px;
}

.row {
  clear: both;
  width: auto;
  min-height: 20px;
  float: none;
  margin-left: -5px;
  margin-right:-5px;
}

.row:after {
  content: ".";
  clear: both;
  display: block;
  visibility: hidden;
  height: 0px;
}

/* Default values */
.grid-1 {
  width: 8.3333333333%;
}
.grid-2 {
  width: 16.6666666666%;
}
.grid-3 {
  width: 25%;
}
.grid-4 {
  width: 33.3333333333%;
}
.grid-5 {
  width: 41.6666666666%;
}
.grid-6 {
  width: 50%;
}
.grid-7 {
  width: 58.3333333333%;
}
.grid-8 {
  width: 66.6666666666%;
}
.grid-9 {
  width: 75%;
}
.grid-10 {
  width: 83.3333333333%;
}
.grid-11 {
  width: 91.6666666666%;
}
.grid-12 {
  width: 100%;
}


::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #999;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #999;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #999;
}

/* formular input elements */
input, select, label, textarea {
  width:100%;
  padding:5px;
  min-height: 30px;
  font-size: 0.9em;
}

input, select, textarea {
  color: green;
}

input, select, textarea {
  border: 1px solid #266590
}

select {
  background-color: rgba(0,0,0,0.02);
}

input:disabled, select:disabled, textarea:disabled {
  color: #999;
  border-color: #CCC;
}

input:checked + label { }

input[type="checkbox"],
input[type="radio"] {
  width:auto;
  height:auto;
  padding:0;
  min-height: 16px;
}

.grid-1 input[type="checkbox"] {
  margin: 5px;
  display: inline-block;
}

/* special format for label element */
.label {
  margin-bottom: 5px;
  padding: 0 5px;
}

.label label {
  display:block;
  background-color:#097364;
  color: #fff;
  line-height:20px;
  white-space:nowrap;
  overflow:hidden;
  font-size: 0.9em;
}

.label.wrap label {
  white-space: normal;
}

.center {
  margin: auto;
  width: 50%;
  padding: 10px;
}

@media screen and (max-width: 750px) {
  .label {
    width:100%;
  }
  .grid-s-1 {
    width: 8.3333333333%;
  }
  .grid-s-2 {
    width: 16.6666666666%;
  }
  .grid-s-3 {
    width: 25%;
  }
  .grid-s-4 {
    width: 33.3333333333%;
  }
  .grid-s-5 {
    width: 41.6666666666%;
  }
  .grid-s-6 {
    width: 50%;
  }
  .grid-s-7 {
    width: 58.3333333333%;
  }
  .grid-s-8 {
    width: 66.6666666666%;
  }
  .grid-s-9 {
    width: 75%;
  }
  .grid-s-10 {
    width: 83.3333333333%;
  }
  .grid-s-11 {
    width: 91.6666666666%;
  }
  .grid-s-12 {
    width: 100%;
  }
  
.center {
  margin: auto;
  width: 100%;
  padding: 10px;
}
}

