/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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
 *
 * 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
   ========================================================================== */

@font-face {
  font-family: Pixel;
  src: url(/fonts/pixel_operator/PixelOperator.ttf);
}

::-webkit-scrollbar {
  width:8px;
  height:8px;
  background-color: var(--light);
  border-left: 1px solid var(--contrastbrownlight);
}

  ::-webkit-scrollbar-thumb {
    background-color: var(--contrastbrownlight);

    border: 1px solid var(--contrastbrowndark);
  }

body {
  --contrastbg: #ebecda;
  --bg: #E4E6C3;
  --lightest: #ebecda;
  --light: #CACDA9;
  --mid: #adab85;
  --dark: #999C68;
  --darkest: #0F0E17;
  --contrastbrownlight: #8C7D58;
  --contrastbrowndark: #524a3a;
  --contrastredlightest: #edc4b3;
  --contrastredlight: #F39C91;
  --contrastreddark: #CD4631;

  background-color: var(--bg);

  cursor: url(/img/cursor_default.png), auto;
}

a {
  color: var(--contrastreddark);

  cursor: url(/img/cursor_hover.png), auto;
}

button {
  cursor: url(/img/cursor_hover.png), auto;
}

label {
  cursor: url(/img/cursor_default.png), auto;
}

::selection {
  background: var(--contrastredlightest); /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: var(--contrastredlightest); /* Gecko Browsers */
}

#loader {
  position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
  background-color: white;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding-top: 30vh;

  transition: opacity  1s;
  pointer-events: none;
}

  #loader img {
    display: block;
    margin: auto;
  }

#container {
  width: 70vw;
  margin: auto;
  position: relative;
  font-family: Pixel;

  background-image: url(/img/gradient.png);
    background-attachment: fixed;
    background-size: contain;
    background-position-y: 150%;
    background-repeat: no-repeat;
}

#egg {
  background-image: url(/img/egg.jpg);
  background-size: cover;
  background-position: center;
  height: 65px;
  border-left: 2px solid var(--bg);
  border-right: 2px solid var(--bg);
}

#naglowek {
  background-image: url(/img/headerimg.png);
  background-size: cover;
  height: 200px;
  border: solid var(--contrastbrowndark) 1px;
}

#fleksboks {
  display: flex;
}

  #navbox {
    width: 20vw;
    border: solid var(--contrastbrowndark) 1px;
    border-top: none;
    padding: 1px;
  }

    #navbar {
      position: fixed;
      width: 10vw;
      margin: 1px;
      background-color: var(--bg);
    }

    .navtitle {
      border-bottom: 1px solid var(--contrastbrowndark);
      padding: 5px;
      font-size: 1.2em;
      font-weight: bold;
    }

    #navbar button {
      width:100%;
      text-align: left;
      background-color: transparent;
      border: none;
      font-family: Pixel;
      font-size: 1em;
      display: flex;
    }

      #navbar button:hover {
        background-color: rgba(255, 255, 255, 0.5);
      }

    .navdivider {
      margin-right: 3px;;
    }

  #kolumna1 {
    /*width: 33%;*/
    width: 100%;
    border-bottom: solid var(--contrastbrowndark) 1px;;
  }

    #notification {
      width: 100%;
    }

    #art  {
      width: 100%;
      background-color: var(--bg);
      height: 500px;
    }
      #art img {
        height: 100%;
        width: 100%;
        object-fit: cover;
      }

    #formcarry-container {
      box-sizing: border-box;
      padding: 10px;
    }

      #formcarrytitle {
      font-size: 1.2em;
      padding: 3px;
      font-weight: bold;
      }

      .formcarry-form label {
        display: block;
      }

      .formcarry-form input,
      .formcarry-form textarea {
        font-family: Pixel;
        border:1px var(--contrastbrownlight) solid;
        background-color: var(--lightest);
        width: 99%;
      }

      .formcarry-form input:focus,
      .formcarry-form textarea:focus {
        border:1px var(--contrastreddark) solid;
      }

      .formcarry button {
        color: #999;
      }

    #log {
      height: 240px;
      overflow: scroll;
      overflow-x: hidden;
      border-top: solid var(--contrastbrowndark) 1px;

      background: repeating-linear-gradient(
      to bottom, transparent, transparent 9px, var(--mid) 10px
      );
      background-attachment: local;
      background-color: var(--lightest);
      padding-left: 45px;
    }

      #line {
        position: absolute;
        border-left: 1px solid var(--contrastredlight);
        height: 240px;
        margin-left: -10px;
      }

  #kolumna2 {
    width: 50%;
    border: solid var(--contrastbrowndark) 1px;
    border-top: none;
  }

    #aboutme {
      padding: 20px;
      box-sizing: border-box;
    }

      #aboutmeimg {
        border: 1px solid var(--contrastbrowndark);
        background-color: var(--bg);
        text-align: center;
      }

      #aboutmeimg img {
        width: 200px;
      }

      #aboutmesocials {
        border: 1px solid var(--contrastbrowndark);
        padding: 10px;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
        background-color: var(--bg);
      }

      #aboutmetxt {
        border: 1px solid var(--contrastbrowndark);
        padding: 10px;
        background-color: var(--bg);
      }

  #copyright {
    text-align: center;
    background-color: var(--bg);
  }

  /* -- komputer -- */
  @media screen and (min-width: 1024px) {
    #egg {
      display: none;
    }
  }

  /* -- tablet -- */
  @media screen and (max-width: 1024px) {

    #container {
      width: 97vw;
      font-size: 1.5em;
      background-image: none;
    }

    #naglowek {
      border-top: none;
    }

    #navbox {
      top: -9px;
      position: absolute;
      display: flex;
      width: 96.5vw;
      height: 75px;
      margin: 0;
      transition: top 0.3s;
      border-bottom: none;
    }

    #navbar {
      top: 0;
      display: flex;
      width: 96.6vw;
      height: 75px;
      margin: 0;
      transition: top 0.3s;
    }

    .navtitle {
      display: none;
    }

    #navbar button {
      display: block;
      text-align: center;
      font-size: 1.2em;
      border-bottom: 1px solid var(--contrastbrowndark);
    }

    .navdivider {
      display: none;
    }

    #kolumna1 {
      border-left: 1px solid var(--contrastbrowndark);
    }

    #kolumna2 {
      background-image: none;
    }

    #log {
      height:290px;
    }

      #line {
        height: 290px;
      }

    #aboutmeimg img {
        width: 300px;
      }
  }


  .tumblr {

    color:var(--darkest);

    text-align: center;
    font-family: Pixel;
    font-size: 1em;

    margin-top: 20px;

    overflow: hidden;
    }

    .tumblr ::-webkit-scrollbar {
      background-color: var(--mid);
    }

      .tumblrbox {
        overflow: hidden;
      }

      .tumblr {
        vertical-align: top;
      }

      /*.tumblr {

        position: relative;
        height: 180px;
        padding: 5px;
      }*/

      tumblr_controls, .tmblr-iframe{
        display:none !important;
        }

      .tumblr img {
       position: relative;
       width: 90%;

       border: solid 1px var(--contrastbrowndark);
      }

      /*.tumblr_posts {
       max-width: 200px;
      }*/

      /*.tumblr_body {
       max-width: 200px;
      }*/

      .tumblr_posts {
        overflow: scroll;
        overflow-x: hidden;
       max-height: 450px;


       font-size:1em;

       padding: 0px;

        border: solid var(--contrastbrowndark) 1px;
      }

        .tumblr_posts img {
         max-width: 90%;
         margin: 10px;
        }

        .tumblr_posts video {
         max-width: 90%;
        }

        .tumblr_video {
         max-width: 90%;
         margin-left: auto;
         margin-right: auto;
         margin: 15px;
         text-align: center;
        }

        .tumblr_posts h1 {
       font-family: MainFont;
       font-size: 1em;
        }

        .tumblr_post {
         border-bottom: 1px solid var(--contrastbrowndark);

         /*margin: 15px;*/

        background-color: var(--bg);
        }

        .tumblr_text_post {
          padding: 5px;
        }

  /* -- telefon -- */
  @media screen and (max-width: 800px) {

    #container {
      width: 96vw;
    }

    #fleksboks {
      display: block;
    }

    #naglowek {
      width: 100%;
    }

    #art {
      border-right: 1px solid var(--contrastbrowndark);
    }

    #formcarry-container {
      width: 100.2%;
      border-right: 1px solid var(--contrastbrowndark);
    }

    #navbox {
      width: 99.8%;
    }

    #navbar {
      width: 96.9%;
    }

    #notification {
      border-right: 1px solid var(--contrastbrowndark);
    }

    #kolumna2 {
      width: 96vw;
    }

    #aboutmeimg {
        display: none;
      }

    #log {
      display: none;
    }

    .tumblr {
      display: none;
    }
  }

/* ==========================================================================
   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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

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

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

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

