/* up to small screen width */

@media (max-width: 650px) {

  body {
    padding-bottom: 60px;
  }

  #inner {
    border: 0px;
  }

  #regex, #options, .slash {
    height: 60px;
  }

  .slash {
    padding-top: 20px;
  }

}

/* small screen width and up */
@media (min-width: 651px) {

  body {
    padding-bottom: 40px;
  }

  #inner {
    border:20px solid #e6e6e6;
  }

  #regex, #options, .slash {
    height: 45px;
  }

  .slash {
    padding-top: 6px;
  }

}

/* up to medium screen width */
@media (max-width: 1050px) {

  #main {
    width: 100%;
  }

  #regex {
    width: calc(100% - 140px);
  }

  #test_string {
    display: inline-block;
    width: 100%;
  }

  .notice, .error {
    margin-top: 20px;
  }

  #result {
    margin-top: 10px;
  }

  #quickref td:nth-child(1) {
    min-width: 70px;
  }

  #quickref td:nth-child(2) {
    min-width: 150px;
  }

  #regex_options code {
    margin-right: 8px;
  }

  .regex_option {
    display: block;
    margin-top: 5px;
  }

}

/* large screen width and up */
@media (min-width: 1051px) {

  #main {
    width: 1035px;
  }

  #regex {
    width: 824px;
  }

  #test_string {
    float: left;
    padding-left: 0px;
    width: 430px;
  }

  .match_result {
    margin-top:-31px;
  }

  #result {
    margin-left: 454px;
    width: 490px;
    margin-bottom: 0px;
    padding-top:31px;
  }

  #test_and_result {
    margin-right:3px;
  }

  #regex_options {
    text-align: center;
  }

  #regex_options code {
    margin-left: 25px;
    margin-right: 8px;
  }

  #ajax_note {
    width:550px;
  }

}

/* general styles */

html {
  /* Prevent font scaling in landscape while allowing user zoom */
  -webkit-text-size-adjust: 120%;
  text-size-adjust: 120%;
}

body {
  font-family:futura, helvetica, arial;
  font-size:19px;
  background-color:#232323;
}

#main {
  min-width: 320px;
}

form {
  margin:0px;
  padding:0px;
}

label {
  user-select: none;
}

#form_wrapper {
  border-bottom:1px solid #5E5D5E;
  min-height:270px;
}

a {
  color:#ffffff;
}

a:hover {
  text-decoration:none;
}

h1 {
  margin-bottom:0px;
  padding-bottom:0px;
  padding-top:0px;
  margin-top:18px;
  font-size:60px;
  font-weight:normal;
  letter-spacing:-3px;
  margin-left:-6px;
}

h1 a,
.birdseed a {
  color:#F2F179;
  text-decoration:none;
}

h1 a:hover,
.birdseed a:hover {
  /*color:#FFFFAA;*/
  text-decoration:underline;
}

h2 {
  margin-top:0px;
  padding-top:0px;
  font-size:20px;
  font-weight:normal;
  color:#F2F179;
  margin-bottom:20px;
  letter-spacing:-0.01em;
}

h3 {
  color:#7086DB;
  font-weight:normal;
  margin-bottom:10px;
  font-size:22px;
  margin-top:22px;
}

#main {
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

#inner {
  position:relative;
  text-align:left;
  padding:10px;
  padding-right:15px;
  margin-left:auto;
  margin-right:auto;
  background-color:#5E5D5E;
  color:#ffffff;
}

#regex, #options, #test {
  box-sizing: border-box;
}

#regex {
  margin: 0;
}

#options {
  width: 100px;
}

#match_string.match_string_nowrap {
  white-space:pre;
}

#match_string, #match_captures, input[type="text"], textarea, .slash {
  font-size:12px;
  font-family:monaco, courier;
}

#match_captures table {
  border-collapse:collapse;
  margin: 5px;
}

#match_captures table th {
  font-family:futura, helvetica, arial;
  font-variant:small-caps;
  color: #84bde7;
  font-size:12px;
  padding-top:10px;
  font-weight:normal;
}

#match_captures table th:first-child {
  padding-top:5px;
}

#match_captures table tbody tr:first-child td {
  padding-top:10px;
}

#match_captures table tbody tr:nth-last-child(1) td {
  padding-bottom:10px;
}

#match_captures table tr td:nth-child(1) {
  padding-top:4px;
}

#match_captures table tr td:nth-child(2) {
  padding-left:8px;
  padding-top:4px;
}

#match_captures td.named_group span {
  font-size:12px;
  padding:1px 2px 1px 2px;
  background-color:#F2F179;
  color:#000;
}

#match_string, #match_captures {
  border:1px solid #DDDDDD;
  padding:15px;
  background-color:#000000;
  color:#ffffff;
  margin-bottom:10px;
}

#match_string, #match_captures {
  margin-top:1px;
}

#match_string {
  white-space:pre-wrap;
  word-wrap: break-word;
}

#match_captures {
  padding-top:5px;
  padding-bottom:5px;
}

#match_string_inner {
  background-color:#000000;
}

code {
  font-family:monaco, courier;
  font-weight:bold;
}

.slash {
  display: inline-block;
  box-sizing: border-box;
  font-size:20px;
  width: 20px;
  padding-left: 4px;
  padding-right: 4px;
}

#form_wrapper input[type="text"], #regex {
  font-size:16px;
  vertical-align: top;
}

#form_wrapper input[type="text"], #form_wrapper textarea {
  background-color:#000000;
  color:#ffffff;
  padding:10px;
  border:1px solid #DDDDDD;
}

.match {
  padding:2px;
  color:#0066B3;
  background-color:#BFE4FF;
}

#test_and_result {
  margin-top:10px;
  margin-left:20px;
  text-align:left;
  position:relative;
}

input[type="text"]:focus, textarea:focus {
  background-color:#221e1e !important;
}

#test_string textarea {
  width:100%;
  height:165px;
}


/* notices + errors */

.notice, .error {
  padding:20px;
  font-size:16px;
  text-align:center;
  margin-bottom:5px;
}

.notice {
  border:10px solid #779A73;
  background-color:#CDF3C9;
  color:#283A26;
}

.error {
  border:10px solid #D37979;
  background-color:#FDD2D2;
  color:#4D3838;
}

.notice a {
  color:#283A26;
}

label, .result_label {
  letter-spacing:1px;
  font-size:16px;
}

#ajax_note {
  clear:both;
  text-align:center;
  color:#F2F179;
  font-size:14px;
  padding:0px;
  margin:0px;
  margin-top:13px;
  margin-bottom:0px;
  margin-left:auto;
  margin-right:auto;
}

#ajax_note a {
  color: #F2F179;
}

.form_controls {
  clear:both;
  text-align:center;
  padding-bottom:10px;
  padding-top:15px;
}

.form_controls a {
  background-color:#6E6E6E;
  padding:3px 10px 3px 10px;
  margin-left:10px;
  font-size:11px;
  letter-spacing:1px;
  text-decoration:none;
}

.form_controls a:hover {
  background-color:#8B8B8B;
}

#regex_label, #test_label, .result_label {
  line-height:30px;
}

#regex_label {
  padding-left:20px;
}

#quickref {
  text-align:left;
  background-color:#e6e6e6;
  border:10px solid #5E5D5E;
  font-size:13px;
  padding:5px;
}

#quickref td {
  padding-right:18px;
  vertical-align: top;
}

.birdseed {
  margin-top:20px;
  color:#ffffff;
  font-size:14px;
  clear: both;
}

.birdseed a {
  color:#F2F179;
}

.birdseed_note {
  font-size:12px;
/*  letter-spacing:1px;*/
  color:#9F9F9F;
}

.birdseed_note a {
  text-decoration:none;
}


#ajax_loader_wrapper {
  position:absolute;
  bottom:10px;
  right:10px;
}

#ad {
  margin-top:20px;
}


#regex_options {
  margin-top:8px;
  margin-left:10px;
  margin-right:10px;
  border-top:1px solid #cecece;
  padding-top:4px;
  font-size:12px;
  clear:both;
}

#regex_options p {
  margin:3px;
}

#modal_birdseed {
  display:none;
}


/* Test settings */

#test_settings {
  display:block;
  padding-top:2px;
}

#test_settings,
#test_settings label {
  font-family: futura, helvetica, arial;
  font-size: 11px;
}

#test_settings label {
  color: #D6D6D6;
  letter-spacing: 0px;
  padding-left: 9px;
}

#test_settings label:nth-child(1) {
  padding-left: 0px;
}

#test_settings input {
  padding: 0px;
  margin: 0px;
  margin-left: 2px;
}

#test {
  margin-top: 1px;
}

/*
  sadly this is needed to work around the left margin issue described here:
  http://www.webmasterworld.com/css/3253181.htm
*/
#inner_test_string_wrapper {}

.invis_char {
  color:#5F5F5F;
}

.match .invis_char {
  color: #0066B3;
}

/* ad styles */

#native-fixed-js .native-fixed {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 0%, .075);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #111;
}

#native-fixed-js .native-fixed .native-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  color: #eee;
}

#native-fixed-js .native-fixed .native-sponsor {
  font-size: 11px;
  border-radius: 2px;
  margin-right: 1em;
  line-height: 1;
  padding: 6px 10px;
  font-weight: 600;
  text-transform: uppercase;
}

#native-fixed-js .native-fixed .native-text {
  font-size: 14px;
  line-height: 1.3;
}
