/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}







/* ==========================================================================
   Author's custom styles
   ========================================================================== */





* {
  padding: 0;
  margin: 0;
}
    
body {
  background-color: #192c2c;
  font-family: "Courier New", Courier, monospace;
}
    
#container {
  max-width: 800px;
  min-width: 400px;
  margin: 0 auto;
  box-align: center; 
  /* border: 4px solid magenta; */
}




/* ======= content ======= */


#content {
  /* border: 1px solid red; */
  margin-top: 20px;
  padding: 0 20px 20px 20px;
}



#content h1 {
  color: darkslategrey;
  margin-bottom: 1em;
}

#content h2 {
  color: gray;
  margin-top: 1em;
  margin-bottom: 1em;
}

#content h3 {
  color: rgb(187, 186, 186);
  margin-top: 2em;
  margin-bottom: 1em;
}

#content h4 {
  color: rgb(212, 212, 212);
  margin-top: 1em;
  margin-bottom: 1em;
}

#content h5 {
  color: rgb(212, 212, 212);
  margin-bottom: 1em;
}

#content h6 {
  color: rgb(212, 212, 212);
  margin-bottom: 1em;
}




/* boxy */


div#first {
  margin-left: 1em;
}

div#first ol li {
  margin-left: 70px;
}

div#first h2 {
  margin-bottom: 0;
}

div.exc {
  border: inset 4px rgb(48, 80, 73);
  background-color: white;
}

div.note {
  margin-left: 2em;
}

p.note {
  margin-top: 20px; 
}




a.back-to-js {
  text-decoration: none;
}

a.back-to-js div {
  
  display: block;
  background-color: black;
  padding: 1em 2em 1em 1em;
  margin: 0em 0em 1em -10em;
  
  
  color: rgb(117, 131, 123);
}

a.back-to-js div:hover {
  color: white;
}



a.go-to-test {
  text-decoration: none;
  text-align: right;
}

a.go-to-test div {
  
  display: block;
  background-color: black;
  padding: 1em 1em 1em 2em;
  margin: 0em -10em 1em 0em;
  
  
  color: rgb(117, 131, 123);
}

a.go-to-test div:hover {
  color: white;
}




.box {
  margin-top: 1em;
  margin-bottom: 3em;
  margin-left: 2em;
}

.box ol {
  margin-left: 3em;
}



div.link ul li,
div.link ul a {
  list-style: none;
}

li {
  margin-left: 3em;
  
  
  color: #8b9e9e;
  font-size: 1em;
}


dl {
  color: rgba(255, 255, 255, 0.767);
  margin-left: 15px;
  font-size: 0.9em;
  font-style: italic;
}

dl dt:nth-child(n+1) {
  margin-top: 10px;
}
dt {
  margin-left: 30px;
}
dd {
  margin-left: 60px;
  color: rgba(255, 255, 255, 0.521);
  
}

.next {
  background-color: black;
  padding: 10px 20px;
}




/* paragrafy */

p {
  color: #d4d4d4;
  margin: 0 1em;
  margin-bottom: 1em;
  
}







/* linki */
a,
a:link,
a:visited {
  color: #d4d4d4;
}

a:hover {
  color: #566d6d;
}

a.info {
  color: #192c2c ;
  background-color: rgb(150, 150, 150); 
  margin: 30px 20px;
  padding: 20px 30px;
  margin-bottom: 80px;
}

a.info:hover {
  color: #d4d4d4;
  background-color: #192c2c;
  
}

a[href^="http://"],
a[href^="https://"] {
  color: #a76f68;
}

a[href^="http://"]:hover,
a[href^="https://"]:hover {
  color: #b69b98;
}

div#content a {
  margin-left: 10px;
}




/* tabele */

table {
  border-collapse: collapse;
  background-color: #d4d4d4;
}

div.table {
  /*border: 4px inset #192c2c;*/
  border: 4px inset #192c2c;
  font-size: 0.8em;
}

div.table td {
  padding: 1em 1em 1em 1em;
}

table th {
  border-bottom: 2px inset #192c2c;
}

table td {
  font-size: 1em;
}

/* table {
  border: 5px solid red;
  color:red;
  text-: ;
} */

div+table {
  border: 1px solid red
}






/* ======= topnav ======= */

#container div#topnav {
  background-color: black;
  overflow: hidden; 
  background: -o-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 97%, rgba(255,255,255,1) 100%);
}
#container div#midnav {
  background-color: rgb(24, 24, 24);
  overflow: hidden; 
  background: -o-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 97%, rgba(255,255,255,1) 100%);
}

div#topnav a, div#midnav a {
  float: left;
  color: rgb(153, 165, 165);
  text-align: center;
  padding: 8px;
  text-decoration: none;
  font-size: 15px;
  
  
  
  
}

#topnav a:hover {
  background-color: rgb(142, 148, 148);
  color: black;
}
#topnav a.active {
  background-color: rgb(24, 24, 24);
  color: rgb(153, 165, 165);
}

#midnav a:hover,
#midnav a.active {
  background-color: rgb(142, 148, 148);
  color: black;
}




code {
  color: rgba(212, 212, 212, 0.726);
  font-size: 0.8 em;

  display: block;

  margin-left: 2em;
  margin-bottom: 1em;

}












/* do wyjabanie */



/* koniec rzeczy do wyjebania */











/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

