
$color-white: #FFFFFF;
$color-black: #111111;
$color-gray: #CCCCCC;
$color-primary: #1E88E5;
$color-success: #43A047;
$color-danger: #E53935;


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

body {
  font-size: 1rem;
  padding: 100px;
  color: #111;
font-family: 'Josefin Sans', sans-serif;
}

label { font-family: 'Josefin Sans', sans-serif !important; }

#cform  span label {
font-family: 'Josefin Sans', sans-serif !important; 
padding-right: 15px !important;
}

form { max-width: 90%; }
fieldset {
  max-width: 500px !important;
  padding: 46px 32px 32px 32px  !important;
  margin-bottom: 40px  !important;
  border: 2px solid $color-gray  !important;
  border-radius: 3px  !important;
  font-family: 'Josefin Sans', sans-serif !important;
  }

#cform > fieldset > span > div { min-width: 400px}


#your_name, #email_address, #person_from 
 { max-width: 200px;}

  
  legend {
    font-size: 1.2rem  !important;
    padding: 0 4px  !important;
    margin-left: -4px  !important;
    font-weight: 700  !important;
      font-family: 'Josefin Sans', sans-serif !important;

  }


span {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  }
  
  label, form#cform fieldset span label {
    text-transform: none  !important;
    font-weight: 700  !important;
    padding: 10px 0  !important;
    font-size: 1.4rem  !important;
    min-width: 120px  !important;
      font-family: 'Josefin Sans', sans-serif !important;

  }
 
	input#username { display: none; }
  
  input {
    font-family: 'Josefin Sans', sans-serif !important;

 
    height: inherit;
    flex-grow: 1;
    font-size: 1rem;
    padding: 10px 0;
    line-height: 1;
    
    + .underline {
      width: 100%;
      border-bottom: 2px solid $color-gray;
      transition: border ease-in-out .1s;
    }
    
    &:invalid + .underline {
      border-color: $color-danger;
    }
    
    &:focus + .underline {
      border-color: $color-primary;
    }
  }
}

button {
  border: 2px solid $color-black;
  background: transparent;
  padding: 8px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all ease-in-out .1s;
  
  &.sm {
    padding: 4px 6px;
  }
  
  &.lg {
    padding: 12px 14px;
  }
  
  &:hover {
    background-color: $color-black;
    border-color: $color-black;
    color: $color-white;
  }
  
  &.primary {
    color: $color-primary;
    border-color: $color-primary;
    
    &:hover {
      background-color: $color-primary;
      color: $color-white;
    }
  }
  
  &.confirm {
    color: $color-success;
    border-color: $color-success;
    
    &:hover {
      background-color: $color-success;
      color: $color-white;
    }
  }
  
  &.danger {
    color: $color-danger;
    border-color: $color-danger;
    
    &:hover {
      background-color: $color-danger;
      color: $color-white;
    }
  }
}


.ta-r {
  text-align: right;
}

.mb32 {
  margin-bottom: 32px;
}

.mb16 {
  margin-bottom: 16px;
}

#cform  div.file_upload   div   p.sub_filename input[type="file"] {
  background-color: #ccc; /* gray */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

#cform  div  div.file_upload  div   p.file_existing

{display: none;}

body#submit img#lake { width: 25%; }

#cform > input[type="submit"] {
	  background-color: #4CAF50; /* Green */
  border: 1px solid gray;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 0;
}

#cform > fieldset > legend {display: none;}

#cform > label:nth-child(7),#cform > label:nth-child(5)
 { margin-top: 25px; display: block;}

#cform > fieldset > span > div { margin-top: 0; }

table tr, td { padding: 3px; border: 1px solid #ccc; vertical-align: top;}

/* FLEXBOX */

table.table { width: 100%; }

.table th, .table td { 
  text-align: left; 
  padding: 0.25em;
}

.table tr { 
  border-bottom: 1px solid #DDD;
}
td.edit-buttons { text-align: right; }
button { 
  border-radius: 3px; 
  border: none; 
  margin: 0 0.25em; 
  transition: all 0.3s;
}

button:hover { 
  box-shadow: 0 0 4px rgba(3,3,3,0.8); 
  opacity: 0.9;
}

button.edit { background: #6F9; }
button.delete { background: #F69; }

@media screen and (max-width: 800px) {
  tr { 
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0.5em 0;
    border: 1px solid rgba(3,3,3,0.2);
  }
  td, th {
    flex: 1 1 150px;
    border: 0.5px solid rgba(3,3,3,0.2);
  }
  td.edit-buttons, td.empty {
    /*flex: 1 0 90%;
    text-align: center;*/
  }
}

* { box-model: border-box; font-family: 'futura'; }


  img#lake,  img#hug { max-width: 100%; }
  
/* MOBILE */


@media only screen and (max-width: 1000px) {
  body { padding: 10px; }
    body#submit img#lake,body#submit img#hug  {  max-width: 100% !important; }


  fieldset{padding:0!important;}
  #cform fieldset span div {min-width: 90%;}
  #cform > fieldset > span > div > div.ck.ck-editor__top.ck-reset_all > div > div.ck.ck-sticky-panel__content {
  	min-width: 90%;}
  
}

