/*! 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
   ========================================================================== */
/* ####### GENERAL RULES ######### */

* {
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: none;
}
strong {
  font-weight: bolder;
}

a {
  text-decoration: none;
  color: white;
  transition: color 1s;
}
a:hover, button:hover{
  color: rgba(0, 0, 0, 0.8);
}

button {
  background-color: transparent;
  color: white;
  border: none;
  outline: none;
  transition: color 1s;
}

i {
  font-size: 1.2rem;
  padding: 0 0.5rem;
}
i:hover {
  font-size: 1.5rem;
}

/* ######## UTILITY CLASSES ######## */

/* #### flexbox #### */
  .flex {
    display: flex;
  }
  .column {
    flex-direction: column;
  }
  .noWrap {
    flex-wrap: nowrap;
  }
  .fullCenter {
    justify-content: center;
    align-items: center;
  }
  .between {
    justify-content: space-between;
  }
  .around {
    justify-content: space-around;
  }
  .start {
    align-items: flex-start;
  }
  .end {
    justify-content: flex-end;
  }
  .itemsCenter {
    align-items: center;
  }

/* #### text #### */
  .mainFont {
    font-family: 'Stick No Bills', sans-serif;
  }
  .tCenter {
    text-align: center;
  }
  .text {
    text-align: justify;
    padding: 1.5rem 1rem;
    text-indent: 1.1rem;
    font-family:'Times New Roman', Times, serif;
    font-size: 1rem;
  }
  .underlined {
    text-decoration: underline;
  }
  .listStyle {
    list-style-type: circle;
    padding-left: 1.5rem;
    font-family:'Times New Roman', Times, serif;
  }

/* #### backgrounds #### */
  .mainBg {
    background-size: cover;
    color: white;
  }
  .secondaryBg {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 1em black;
    border-color: black;
  }
  .navBarBg {
    background: linear-gradient(180deg, rgb(68, 68, 68), rgb(209, 208, 208));
    box-shadow: inset 0 0 1em black;
    border-bottom: 1px solid #585858;
  }
  .articleBarBg {
    background: linear-gradient(35deg,rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.4));
  }

  /* #### container & width #### */
  .container {
    background-image: url("https://lasertag-hl.de/wp-content/uploads/2018/12/lasertagdenebelbgstars.jpg");
    width: 87%;
    padding-bottom: 1.5rem;
  }
  .fullWidth {
    width: 100%;
  }
  .price {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  /* ### fixed element ###*/
  .relative {
    position: relative;
  }
  .fixedFooter {
    position: fixed;
    bottom: 0;
  }
  .sticky {
    position: fixed;
    top: 0;
  }
  .sticky + main {
    padding-top: 5rem;
  }

  /* ### subnav ### */
  .subnav {
    float: left;
    overflow: hidden;
  }
  .subnavbtn {
    padding: 0 0.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
  .subnav:hover .subnavbtn {
    background-color: silver;
  }
  .subnav-content {
    display: none;
    position: absolute;
    left: 0;
    top: -2.1rem;
    background-color: silver;
    width: 100%;
    z-index: 1;
  }
  .subnav-content a {
    float: left;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
  .subnav:hover .subnav-content {display: block;}
  .subnav-content a:hover {background-color: white;}
  
  /* ### subnav for top-nav ### */
  .down {
    top: 2.4rem;
  }

  /* top nav */
  .navA {
    padding-left: 0.5rem;
    width: 65%;
  }
  .navB {
    padding-right: 0.5rem;
  }
  .navC {
    display: none;
  }


/* ####### HEADER ####### */
  header {
    height: 6rem;
    background-image: url("https://th.bing.com/th/id/R.fc8517d6e187cba7b71a8c8c1e43959f?rik=%2fAgC5oJITbeiOA&pid=ImgRaw&r=0");
  }
  h1 {
    font-size: 1.8rem;
    font-family: 'Codystar', cursive;
  }
  header>section>p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
  }

/* ####### NAV ####### */
  nav {
    z-index: 2;
  }
  nav>aside {
    padding: 0 0 0.4rem 0.5rem;
  }
  .navA>input{
    width: 80%;
  }

/* ####### MAIN #######" */
  main {
    background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.480) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.480) 95%, black 99%);
    position: relative;
    padding: 0 0.8rem 0rem 0.8rem;
    animation-name: color;
    animation-duration: 1s;
    animation-iteration-count: infinite;
  }
  @keyframes color {
    0% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.48) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.480) 95%, black 99%);}
    20% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.450) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.450) 95%, black 99%);}
    40% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.420) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.420) 95%, black 99%);}
    60% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.390) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.390) 95%, black 99%);}
    80% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.420) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.420) 95%, black 99%);}
    90% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.450) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.450) 95%, black 99%);}
    100% {background: repeating-linear-gradient(90deg, black 1%, rgba(0, 89, 255, 0.480) 5%, black 8%, black 92%, rgba(0, 89, 255, 0.480) 95%, black 99%);}
  }
  
/* ###### home page ##### */
  h2 {
    border-style: outset;
    margin-top: 2.5rem;
    width: 98%;
    background-color: rgba(30, 20, 53, 0.4);
    box-shadow: inset 0 0 1em black;
    border-color: white;
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }
  h3 {
    padding: 0.5rem 0;
    font-size: 1.3rem;
  }
  .article {
    margin-bottom: 4rem;
  }
  .desktop {
    display: none;
  }

  /* ##### services page ##### */
  table {
    margin: 0.7rem 0;
  }
  td, th {
    border: 1px dotted white;
    border-collapse: collapse;
    padding: 0.5rem;
  }
  th {
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
  }
  td {
    font-size: 1.1rem;
  }
  tr:nth-child(even) {
    background-color: rgba(192, 192, 192, 0.250);
  }
  tr:not(:first-child):hover {background-color: silver; color: black}

  /* ###### contact page ##### */
  fieldset {
    background-color: rgba(71, 71, 71, 0.5);
    border: 1px dotted white;
    padding: 1rem;
    width: 80%;
  }
  legend {
    font-size: 1.2rem;
  }
  label, select, textarea {
    font-size: 1.1rem;
  }
  select {
    margin-bottom: 1rem;
  }
  .inputbtn {
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
  }

  /* ##### about us ###### */
  iframe {
    width: 100%;
  }

/* ##### FOOTER ##### */
  .footer1 {
    padding: 0.3rem 0;
  }
  .footer2 {
    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
 */

.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 (min-width: 480px) {
    
    i {
      font-size: 1.4rem;
      padding: 0 0.9rem;
    }
    i:hover {
      font-size: 1.6rem;
    }
    
    /* header*/
    header {
      height: 10rem;
    }
    h1 {
      font-size: 2.3rem;
      padding-bottom: 0.5rem;
    }
    header>section>p {
      font-size: 1.4rem;
    }

    /* nav*/
    nav {
      display:flex;
      flex-flow: row wrap;
      justify-content: space-between;
      padding: 0.2rem 0 0.8rem 0;
      font-size: 1.2rem;
    }
     .navA {
      display: none;
    }
    .navC {
      display: inline-flex;
    }
    .navC>input {
      width: 75%;
    }

    /*subnav*/
    .subnavbtn {
      padding: 0 0.8rem;
      height: 2.8rem;
      font-size: 1.3rem;
    }
    .subnav-content a {
      padding: 0.5rem 1rem;
      font-size: 1.3rem;
    }
    .down {
      top: 2.7rem;
    }
    
    /* fixed nav */
    .sticky + main {
      padding-top: 5.5rem;
    }
   
    /* main */
    main {
      background-image: url("https://lasertag-hl.de/wp-content/uploads/2018/12/lasertagdenebelbgstars.jpg");
      background-size: cover;
      animation-name: none;
      padding: 0;
    }
    .container{
      background: transparent;
      padding-bottom: 3.5rem;
    }

    /* homepage */
    .tablet{
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
    }
    .item1 {
      margin-right: 3%;
    }
    .item2 {
      margin-left: 3%;
    }
    h2 {
      margin-top: 4rem;
      margin-bottom: 3.5rem;
      font-size: 1.8rem;
      width: 100%;
    }
    .article {
      width: 47%;
      margin-top: 1rem;
    }
    h3 {
      font-size: 1.6rem;
    }
    .text {
      padding: 2rem 1.5rem;
      text-indent: 1.3rem;
      font-size: 1.2rem;
    }
    .price {
      padding: 0.7rem 0.2rem;
      font-size: 1.2rem;
      margin-top: 0.5rem;
    }
  
    /* page2*/
    .mainItem {
      padding-top: 3rem;
      padding-bottom: 0.5rem;
      width: 80%;
    }
    .listStyle {
      padding-left: 2.5rem;
      font-size: 1.2rem;
    }
    .container2 {
      width: 75%;
    }
 
    /* services*/
    table {
      margin-bottom: 1.5rem;
    }
    th {
      font-size: 1.4rem;;
    }
    td {
      font-size: 1.3rem;
    }

    /* contact page */
    fieldset {
      padding: 2rem;
    }
    legend {
      font-size: 1.4rem;
    }
    label, select, textarea {
      font-size: 1.3rem;
    }
    select {
      margin-bottom: 2rem;
    }
    .inputbtn {
      padding: 0.4rem 0.8rem;
      font-size: 1.3rem;
    }

    /* about us */
    iframe {
      width: 50%;
      float:inline-start;
      padding: 2rem;
    }
  
   /*footer*/
    .footer1 {
      display: none;
    }
    .footer2 {
      display: inline-flex;
      font-size: 1.2rem;
    }
    .footer2>ul {
      padding: 0.3rem;
      border-bottom: 0.1rem solid rgba(0, 0, 0, 0.3);
    }
    .footer2>article {
      padding: 0.8rem 0;
    }
    h4 {
      color: white;
      font-weight: normal;
      padding-right: 2rem;
    }
    .link2 li {
      padding: 0.3rem 0.8rem;
      height: 2.8rem;
      display: flex;
      align-items: center;
    }
    .link2 li:hover {
      background-color: silver;
    }
  }

  @media (min-width: 1200px) {
    
    i {
      font-size: 1.8rem;
      padding: 0 1rem;
    }
    i:hover {
      font-size: 2rem;
    }

    /*header*/
    header {
      height: 13rem;
    }
    h1 {
      font-size: 3rem;
      padding-bottom: 1rem;
    }
    header>section>p {
      font-size: 1.8rem;
    }

    /* nav */
    nav {
      font-size: 1.5rem;
      padding: 0.3rem 0 1rem 0;
    }
    .navB {
      padding-right: 2rem;
    }
    .navC {
      padding-top: 0.3rem;
    }

    /* subnav */
    .subnavbtn {
      font-size: 1.5rem;
      height: 3rem;
    }
    .subnav-content a {
      font-size: 1.5rem;
      padding: 0.7rem 1.5rem;
    }
    .down {
      top: 3.3rem;
    }
  
    /* main */
    .container{
      padding-bottom: 6rem;
    }

    /*homepage*/
    h2 {
      font-size: 2.5rem;
      margin-top: 7rem;
      margin-bottom: 6rem;
    }
    .tablet {
      justify-content: space-between;
    }
    .item1 {
      margin-right: 0;
    }
    .item2 {
      margin-left: 0;
    }
    .article {
      width: 30%;
    }
    h3 {
      font-size: 1.8rem;
      padding: 0.8rem 0;
    }
    .text {
      padding: 2.5rem 2rem;
      text-indent: 1.5rem;
      font-size: 1.4rem;
    }
    .price {
      padding: 0.8rem 0.4rem;
      font-size: 1.5rem;
    }
    .desktop {
      display: block;
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
    }

    /*page 2*/
    .container2 {
      width: 50%;
      margin-bottom: 1rem;
    }
    .mainItem{
      padding-top: 5rem;
      width: 70%;
    }
    .listStyle {
      padding-left: 3rem;
      font-size: 1.4rem;
    }
    .price {
      margin-top: 1rem;
    }

    /* about us page */
    iframe {
      padding: 4rem;
    }

    /*contact page*/
    fieldset {
      padding: 3rem;
    }
    legend {
      font-size: 1.7rem;
    }
    label, select, textarea {
      font-size: 1.5rem;
    }
    .inputbtn {
      font-size: 1.5rem;
      margin-top: 0.5rem;
    }

    /*services*/
    table {
      margin-bottom: 3rem;
    }
    th {
      font-size: 1.7rem;;
    }
    td {
      font-size: 1.5rem;
    }

    /*footer*/
    .footer2 {
      font-size: 1.5rem;
    }
    .footer2>article {
      padding: 1rem 0;
    }
    h4 {
      padding-right: 4rem;
    }
    .link2 li {
      height: 3rem;
    }
  }  

@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;
  }
}