/* ANIMATIONS */

@-webkit-keyframes bounce {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0); 
    }

    53% {
        -webkit-transform: translate3d(0, 365px, 0);
        transform: translate3d(0, 365px, 0);
    }

    80% {
        -webkit-transform: translate3d(0, 330px, 0);
        transform: translate3d(0, 330px, 0);
    }

    100% {
        -webkit-transform: translate3d(0, 365px, 0);
        transform: translate3d(0, 365px, 0);
      }
  }
  
  @keyframes bounce {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0); 
    }

    53% {
        -webkit-transform: translate3d(0, 365px, 0);
        transform: translate3d(0, 365px, 0);
    }

    80% {
        -webkit-transform: translate3d(0, 330px, 0);
        transform: translate3d(0, 330px, 0);
    }

    100% {
        -webkit-transform: translate3d(0, 365px, 0);
        transform: translate3d(0, 365px, 0);
      }
  }

  .bounce {
    -webkit-animation-name: bounce;
    animation-name: bounce;
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }
  .animated {
    -webkit-animation-duration: .8s;
    animation-duration: .8s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
  }

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

a {
    color: #102540;
    font-weight: bolder;
}

p {
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    color: #4f4f4f;
}

ol {
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    color: #4f4f4f;
}

ul {
    margin: 0 0 5px 0;
    list-style: square;
    letter-spacing: 1px;
    color: #4f4f4f;
}

h2 {
    font-family: 'Teko', sans-serif;
    margin: 5px 0 10px 0;
    font-size: 3em;
    line-height: 44px;
    text-transform: uppercase;
}

h3 {
    font-family: 'Teko', sans-serif;
    margin: 5px 0 10px 0;
    font-size: 2rem;
    line-height: 44px;
    text-transform: uppercase;
}

hr {
    box-shadow: 1px 1px 1px gray;
}

::-moz-selection {
    color: white;
    background: #102540;
    text-shadow: none;
}

::selection { 
    color: white;
    background: #102540;
    text-shadow: none;
}

.nonActive {
    display: none;
}

/* Buttons etc */

.button {
    display: inline-block;
    padding: 12px;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    font-size: 0.8em;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #102540;
    border: 1px solid #102540;
    transition-duration: 0.5s;
    cursor: pointer;
}

.button:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1d4578;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.button:hover, .button:focus, .button:active {
    color: white;
  }
  .button:hover:before, .button:focus:before, .button:active:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
    transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
  }

.button-bounce-to-bottom {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: normal;
    color: #ffffff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    cursor: pointer;
  }

  .button-bounce-to-bottom:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1d4578;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
  }

  .button-bounce-to-bottom:hover, .button-bounce-to-bottom:focus, .button-bounce-to-bottom:active {
    color: white;
  }
  .button-bounce-to-bottom:hover:before, .button-bounce-to-bottom:focus:before, .button-bounce-to-bottom:active:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
    transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
  }

  /*STYLING CLASSES*/

  .largeFont {
    font-size: 1.23em;
    line-height: 1.3;
  }

  .textShadowW {
    text-shadow: 2px 1px 1px white;
  }

/*CONTAINERS, BOXES*/

.container {
    margin: 0 100px 0 100px;
}

.containerTighter {
    display: grid;
    column-gap: 70px;
    margin: 40px 20% 40px 20%;
    justify-content: center;
}

.grid-center {
    display: grid;
    justify-content: center;
}

.phone-box {
    display: inline-block;
    margin: 0 10px 0 0;
}

.icon-box {
    display: inline-block;
    margin: 20px 0 0 0;
}

.buttonBox {
    margin: 20px 0 0 0;
    text-align: center;
}

.buttonBox .button {
    display: block;
}

.darker {
    padding: 40px;
    color: #ffffff;
    background-color: rgba(0, 0,0, 0.9);
}

.darker h1 {
    color: #ebebeb;
}

.darkerBlue {
    background-color: rgba(16, 37, 64, 0);
}

.darker p {
    color: #c6c6c6;
}

.thumbnail {
    width: 260px;
    height: 175px;
    border: 3px solid #102540;
}

.thumbnail:hover {
    box-shadow: 1px 1px 4px black;
}

.threeInRowBox {
    margin: -50px 0 0 0;
    padding: 2.5rem 2.625rem;
    max-width: 350px;
    background-color: #ffffff;
    box-shadow: 1px 1px 3px black;
}

.threeInRowBox h3 {
    font-family: 'Teko', sans-serif;
    margin: 0 0 15px 0px;
    font-size: 1.7em;
    line-height: 24px;
    text-align: center;
    color: #102540;
    text-transform: uppercase;
}

.circleImg {
    margin: 0 auto 20px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #102540;
    background-size: cover;
}

body {
    display: grid;
    font-family: 'Roboto Condensed', sans-serif;
}

h1 {
    display: block;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    color: #102540;
}

#goalBox h1::after {
    margin: 0 0 20px 0;
    background: none repeat scroll 0 0 #102540;
    top: 3px;
    content: "";
    display: block;
    height: 5px;
    position: relative;
    width: 100px;
    transition: width .4s;
}

#goalBox h1:hover::after {
    transition: width .4s;
    width: 200px;
}

h4 {
    display: grid;
    width: 100%;
    padding: 0 0 10px 0;
    align-items: center;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    grid-gap: 30px;
    text-transform: uppercase;;
    font-size: 1.5em;
    color: #102540;
}

h4:before,
h4:after {
    content: '';
    border-bottom: 2px solid #102540;
}

h5 {
    font-size: 1.6em;
    padding: 0 0 10px 0;
}

/*ICONS*/

.icon-phone {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 2px 6px 0 0;
    background-size: contain;
    background-image: url('../img/ico/phone.svg');
}

.icon-google {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin: 6px 0 0 0;
    background-size: contain;
    background-image: url('../img/ico/google.svg');
}

.icon-mail {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 2px 6px 0 0;
    background-size: contain;
    background-image: url('../img/ico/mail.svg');
}

.icon-pin {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 2px 6px 0 0;
    background-size: contain;
    background-image: url('../img/ico/pin.svg');
}

.icon-phoneW {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 2px 6px 0 0;
    background-size: contain;
    background-image: url('../img/ico/phoneW.svg');
}

.icon-clock {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 2px 6px 0 0;
    background-size: contain;
    background-image: url('../img/ico/clock.png');
}

.icon-phone span {
    display: inline-block;
}

.icon-scroll {
    display: inline-block;
    margin: 15px 0 5px 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-size: contain;
    background-image: url('../img/ico/scroll.svg');
    z-index: 1;
}

.phone-box a {
    text-decoration: none !important;
}
/* HEAD BAR */

@media screen and (max-width: 1196px) {
    .wrapper {
      grid-column: 2;
      margin-left: auto;
      z-index: 1;
      cursor: pointer;
    }

    #navRegular {
        display: none;
    }
  
    .nav div {
      height: 5px;
      background: #102540;
      margin: 5px 0;
      border-right: 24px;
      transition: .3s;
    }
  
    .nav {
      display: block;
      width: 50px;
    }
  
    .one {
      width: 50px;
    }
  
    .two {
      width: 30px;
    }
  
    .three {
      width: 40px;
    }
  
    .wrapperToggle {
      width: 50px;
      height: 1px;
    }
  }

  #navHidden {
    display: none;
    margin: 32px auto auto auto;
    width: 100%;
    text-align: center;
    color: #ffffff;
  }

  @media screen and (max-width: 930px) {
    .only-desktop {
        display: none;
    }
}

#blockList li {
    display: block;
    padding: 20px;
    color: #ffffff;
    background-color: #102540;
    cursor: pointer;
}

#blockList li:hover {
    transition: .4s;
    background-color: #1d4578;
}

.toggledMenu {
    display: block !important;
    position: fixed;
    top: 63px;
    z-index: 2;
}

header {
    grid-row: 1;
    height: 77px;
    width: 100%;
    position: fixed;
    font-size: 1.1em;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 5px #000000;
}

header a {
    font-weight: 400;
}

header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    align-items: center;
}

nav {
    text-transform: uppercase;
}

#sideMenu {
    display: block;
    grid-row: 2;
    grid-column: 1;
    margin: 80px 0 80px 100px;
    padding: 20px;
    width: 350px;
    height: 700px;
    background-color: #102540;
    border-top: 1px solid #1d4578;
}

#sideMenu h3 {
    color: #ffffff;
}

.sub-menu li a {
    padding: 5px;
    margin: 0 5px 0 0;
    font-size: .6em;
    font-weight: normal;
}

#sideMenu ul li {
    font-size: 1.4em;
}

#sideMenu ul li a {
    display: block;
    width: 100%;
    padding: 10px;
    color: #ffffff;
    text-transform: none;
}

#sideMenu a:hover {
    transition: .5s;
    padding: 12px;
    background-color: #1d4578;
}

nav ul {
    list-style: none;
}

#navRegular div {
    display: inline-block;
}

#navRegular ul {
    display: inline-block;
}

#navRegular ul li {
    display: inline-block;
    margin: 0 10px 0 0;
    cursor: pointer;
}

#navRegular ul li.active {
    background-color: green;
}

nav a {
    color: #4f4f4f;
    text-decoration: none;
}

#navRegular span {
    margin: 0px 0px 0 6px;
}

#navRegular ul li:after {
    background: none repeat scroll 0 0 rgba(16, 37, 64, 0.01);
    top: 28px;
    content: "";
    display: block;
    height: 3px;
    position: relative;
    width: 1px;
    transition: width .4s;
}

#navRegular ul li:hover::after {
    background: none repeat scroll 0 0 rgb(16, 37, 64, 0.9);
    width: 100%;
    transition: width .4s;
}

#navRegular ul li:hover {
    text-shadow: 1px 1px 2px grey;
}

.home-ico {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../img/ico/home.svg);
}

.news-ico {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../img/ico/news.svg);
}

.products-ico {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../img/ico/product.svg);
    background-size: cover;
    background-repeat: no-repeat;
}

.career-ico {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../img/ico/work.svg);
}

.check-ico {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-image: url(../img/ico/check.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.lang-ico {
    width: 21px;
    box-shadow: 1px 1px 3px black;
}

#headBar-right {
    text-align: right;
}

/*MAIN SECTION*/

main {
    display: grid;
    grid-row: 2;
    height: auto;
    text-align: center;
    align-items: center;
}

#main-bg {
    width: 100%;
    height: 1000px;
    overflow: hidden;
    position: relative;
}

#main-bg video {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

main .container {
    display: grid;
    position: absolute;
    top: 157px;
    justify-items: center;
    margin: 0 30% 0 30%;
}

main .container h1 {
    font-family: 'Teko', sans-serif;
    margin: 15px 0 5px 0;
    font-size: 3.2em;
    line-height: 44px;
    color: #ebebeb;
    text-shadow: 0px 0px 13px black;
}

main h3 {
    font-family: 'Teko', sans-serif;
    margin: 0 0 5px 0;
    font-size: 2.1em;
    color: #ebebeb;
    text-shadow: 0px 0px 13px black;
    text-transform: uppercase;
}

main hr {
    color: #1d4578;
    width: 20%;
}

main .button {
    margin: 20px 0 0 0;
    font-size: 1em;
    padding: 17px;
}

.tytan-logo img {
    position: relative;
    bottom: 350px;
    margin: 0px 0 20px 0;
    width: 340px;
}

#aboutUs {
    grid-row: 3;
    text-align: justify;
    background: rgb(242,242,242);
    background: linear-gradient(177deg, rgba(242,242,242,1) 35%, rgba(214,214,214,1) 100%); 
    border-bottom: 70px solid #102540;
}

#aboutUs .containerTighter {
    grid-template-columns: 400px 565px;
}

#aboutUsCover img {
    max-width: 400px;
    height: 620px;
    box-shadow: 3px -1px 5px black;
}

#aboutUs ul li strong {
    text-transform: uppercase;
}

#aboutUs video {
    min-width: 400px;
    float: right;
    box-shadow: -3px -1px 5px black;
}


#aboutUsMore {
    grid-row: 4;
}

#aboutUsMore .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    grid-row-gap: 80px;
    justify-content: space-between;
    justify-items: center;
}

#stRadialPhoto {
    background-image: url('../img/precyzyjne-spawanie.png');
}

#ndRadialPhoto {
    background-image: url('../img/obrobka-wyrob-metali.jpg');
}

#rdRadialPhoto {
    background-image: url('../img/niestandardowe-wyroby.JPG');
}

/* PRODUCT OFFER SECTION */


#productBox {
    grid-row: 5;
}

#productBox .containerTighter {
    display: grid;
    margin: 50px 100px 25px 100px;
    grid-template-columns: auto auto;
    justify-items: center;
}

#productContent {
    max-width: 415px;
    min-width: 320px;
    text-align: justify;
    justify-content: space-between;
}

#productGallery {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    column-gap: 15px;
    row-gap: 15px;
    text-align: center;
}

#productBox h4 {
    margin: -15px 0 0 0;
}

/* #PRODUCTGALLERY CONTAINER ELEMENTS */

#productGallery h3 {
    margin: 0;
    height: 50px;
    position: relative;
    top: 33.3%;
    color: #ffffff;
    background-color: rgba(16, 37, 64, .8);
}

#productGallery .thumbnail {
    cursor: pointer;
    border: none;
}

.thumbnail div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.darkerBlue:hover {
    transition: all .3s ease-in-out;
    background-color: rgba(16, 37, 64, .65);
}

#galwCont {
    background-image: url('../img/galwanotechnika/20130928_192527.jpg');
}

#nagrzCont {
    background-image: url('../img/nagrzewnice_wymienniki_ciepla/IMG_1022.JPG');
}

#obudCont {
    background-image: url('../img/obudowa_maszyn/DSC00014.JPG');
}

#spaaCont {
    background-image: url('../img/spawanie_aluminium/IMG_1146.JPG');
}

#spatCont {
    background-image: url('../img/spawanie_tytanu/IMG_1413.jpg');
}

#wozkCont {
    background-image: url('../img/wozki_ogrodzenia_balustrady/IMG_1854.JPG');
}

#zbioCont {
    background-image: url('../img/zbironiki_cisnieniowe/DSC00956.JPG');
}

#przeCont {
    background-image: url('../img/przenosniki_do_spozywki/IMAG0259.jpg');
}

#goalBox {
    grid-row: 6;
    display: grid;
    align-items: center;
    height: 400px;  
    letter-spacing: 1px;
    background-image: url('http://tytan-august.pl/wp-content/themes/tytan-august-wp/img/galwanobcg.JPG');
    background-attachment: fixed;
    background-size: cover;
    z-index: 1;
}

#goalBox .containerTighter {
    margin: 0 20% 0 20%;
}

#goalBox .button {
    display: inline-block;
    margin: 30px 0 0 0;
}

aside {
    display: grid;
    grid-row: 7;
    justify-content: center;
    align-items: center;
    height: 115px;
    background-color: #102540;
}

aside .container {
    margin: 12px 100px 0 100px;
}

aside h5 {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 2.1em;
    font-weight: normal;
    color: #ffffff;
}

aside .button-bounce-to-bottom {
    padding: 10px;
    margin: 0 0 10px 10px;
    font-size: 1.5em;
    border: 2px solid white;
}


/* FORM SECTION */

#contactForm {
    grid-row: 8;
    padding: 20px 0 20px 0;
}

#contactForm h5 {
    text-align: center;
    margin: 10px 0 35px 0;
    font-size: 2rem;
    color: #4f4f4f;
}

#contactForm form {
    display: grid;
    grid-column-gap: 25px;
    justify-content: center;
    align-items: center;
}

#contactForm label {
    display: block;
}

#contactForm span {
    display: inline-block;
}

#contactForm input {
    width: 100%;
    min-height: 30px;
    padding: 12px 24px;
    margin: 10px 0 20px 0;
    font-size: 15px;
    color: #102540;
    border: 1px solid #102540;
}

input:hover {
    transition: .4s;
    box-shadow: 2px 2px 6px #1d4578;
}

#contactForm select {
    width: 80%;
    min-height: 30px;
    padding: 12px 24px;
    margin: 10px 0 20px 0;
    font-size: 15px;
    color: #102540;
    border: 1px solid #102540;
}

select:hover {
    transition: .4s;
    box-shadow: 2px 2px 6px #1d4578;
}

#contactForm textarea {
    width: 100%;
    padding: 12px 24px;
    margin: 10px 0 20px 0;
    font-size: 15px;
    border: 1px solid #102540;
    resize: none;
    color: #102540;
    font-family: Work Sans, sans-serif;
}

textarea:hover {
    transition: .4s;
    box-shadow: 2px 2px 6px #1d4578;
}

.nameLabel {
    grid-column: 1;
    grid-row: 1;
}

.surnameLabel {
    grid-column: 2;
    grid-row: 1;
}

.mailLabel {
    grid-column: 1;
    grid-row: 2;
}

.phoneLabel {
    grid-column: 2;
    grid-row: 2;
}

.categoryLabel {
    grid-column: 1;
    grid-row: 3;
}

.localizationLabel {
    grid-column: 2;
    grid-row: 3;
}

.inputTextBox {
    grid-column: 1 / 2 span;
    grid-row: 4;
}

.submitLabel {
    grid-column: 1 / 2 span;
    grid-row: 5;
    margin: 0 0 20px 0;
}

.submitLabel .button {
    width: 100%;
    letter-spacing: 2px;
    text-align: center;
}

/* MAP WIDGET */

#map {
    display: grid;
    grid-row: 9;
    width: 100%;
    height: 400px;
    background-color: grey;
}


/* FOOTER */

footer {
    grid-row: 10;
    background-color: #102540;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer h5 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2em;
}

footer h5::after {
    margin: 0 0 20px 0;
    background: none repeat scroll 0 0 #ffffff;
    top: 4px;
    content: "";
    display: block;
    height: 1px;
    position: relative;
    width: 100px;
    transition: width .4s;
}

footer p {
    color: #c6c6c6;
}

footer span {
    color: #c6c6c6;
    line-height: 2.1;
}

footer .tytan-logo img {
    position: inherit;
    width: 200px;
}

footer ul {
    line-height: 2.1;
    display: inline-block;
}

#footerDesc {
    display: inline-block;
    text-align: justify;
}

#upperFooter {
    padding: 40px 0 40px 0;
    border-top: 3px solid #1d4578;
}

#upperFooter .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 123px;
}

#upperFooter .fourthInRow .tytan-logo {
    text-align: center;
}

#upperFooter a {
    padding: 0 10px 0 10px;
    display: block;
}

#upperFooter a:hover {
    transition: .5s;
    background-color: #1d4578
}


#downerFooter {
    background-color: #000000;
}

#downerFooter .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

#downerFooter .firstInRow {
    margin: 10px 0 10px 0;
}

#downerFooter .secondInRow {
    margin: 10px 0 10px 0;
    text-align: right;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1685px) {
    #productGallery {
        grid-template-columns: repeat(3, 260px);
    }
}


@media screen and (max-width: 1500px) {

    #newsBox {
        grid-template-columns: 1fr;
    }

    #productBox .containerTighter {
        margin: 50px 80px 25px 80px;
    }

    #upperFooter .container {
        grid-template-columns: 2fr 2fr 2fr;
    }

    #upperFooter .fourthInRow {
        grid-column: 2;
        grid-row: 2;
    }
}

@media screen and (max-width: 1485px) {
    #productGallery {
        grid-template-columns: repeat(2, 260px);
    }
}

@media screen and (max-width: 1200px) {

    #aboutUsCover {
        grid-row: 1;
        text-align: center;
    }

    #aboutUsCover img {
        max-width: 100%;
    }

    .aboutUsContent {
        max-width: 549.117px;
        grid-row: 2;
        padding: 20px;
        justify-items: center;
    }

    #aboutUs .containerTighter {
        margin: 0;
        justify-content: inherit;
        justify-items: center;
        grid-template-columns: 1fr;
        grid-template-columns: 1fr;
    }

    #productBox .containerTighter {
        grid-template-columns: 1fr;
        grid-row-gap: 30px;
    }

    #goalBox .containerTighter {
        margin: 0 10% 0 10%;
    }
}

@media screen and (max-width: 1000px) {

    main .container {
        margin: 5% 20% 0 20%;
    }
}

@media screen and (max-width: 930px) {

    .container {
        margin: 0px 80px 0 80px;
        grid-row-gap: 30px;
    }
}

@media screen and (max-width: 900px) {

    .container {
        margin: 0px 80px 0 80px;
    }

    #upperFooter .container {
        grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
        justify-items: stretch;
    }
}


@media screen and (max-width: 850px) {

    /*RESPONSIVE ASIDE*/

    aside h5 {
        font-size: 1.7em;
    }

    /*RESOPONSIVE FORM*/

    .nameLabel {
        grid-column: 1 / 2 span;
        grid-row: 1;
    }

    .surnameLabel {
        grid-column: 1 / 2 span;
        grid-row: 2;
    }

    .mailLabel {
        grid-column: 1 / 2 span;
        grid-row: 3;
    }

    .phoneLabel {
        grid-column: 1 / 2 span;
        grid-row: 4;
    }

    .categoryLabel {
        grid-column: 1 / 2 span;
        grid-row: 5;
    }

    .localizationLabel {
        grid-column: 1 / 2 span;
        grid-row: 6;
    }
    
    .inputTextBox {
        grid-column: 1 / 2 span;
        grid-row: 7;
    }

    .submitLabel {
        grid-column: 1 / 2 span;
        grid-row: 8;
    }

    #contactForm form {
        justify-content: inherit;
    }

}

/*MOBILE VERSION OF SITE*/


@media screen and (max-width: 750px) {
    
    #upperFooter .container {
        grid-template-columns: repeat(1, 260px);
        grid-column-gap: 45px;
    }

    #upperFooter .firstInRow {
        grid-column: 1;
        grid-row: 1;
    }

    #upperFooter .secondInRow {
        grid-column: 2;
        grid-row: 1;
    }

    #upperFooter .threeInRow {
        grid-column: 1/2 span;
        grid-row: 2;
    }

    #upperFooter .fourthInRow {
        grid-column: 1/2 span;
        grid-row: 3;
    }
}

@media screen and (max-width: 730px) {
    
    #productGallery {
        grid-template-columns: repeat(1, 260px);
    }

    aside .button-bounce-to-bottom {
        font-size: 1em;
    }

    #downerFooter .container {
        grid-template-columns: 1fr;
        justify-items: center;
        grid-row-gap: 0;
    }

    #downerFooter .firstInRow {
        margin: 10px 0 0 0;
    }

    #downerFooter .secondInRow {
        margin: 0 0 10px 0;
    }
}

@media screen and (max-width: 650px) {

    #upperFooter .container {
        justify-content: center;
    }

    #upperFooter .firstInRow {
        grid-column: 1;
        grid-row: 1;
    }

    #upperFooter .secondInRow {
        grid-column: 1;
        grid-row: 2;
    }

    #upperFooter .threeInRow {
        grid-column: 1;
        grid-row: 3;
    }

    #upperFooter .fourthInRow {
        grid-column: 1;
        grid-row: 4;
    }
}

@media screen and (max-width: 600px) {

    body {
        display: block;
    }

    header {
        top: 46px;
    }
}

/* PAGE, SINGLE, PRODUCTS STYLES */

.pageLayout {
    display: grid;
    grid-template-columns: auto 1fr;
}

.pageTop {
    display: grid;
    grid-row: 1;
    grid-column: 1 / 2 span;
    height: 265px;
    background-image: url( '../img/weldingcolor.jpg' );
    background-size: cover;
    background-attachment: fixed;
    justify-content: center;
    align-content: center;
}

.pageTop h1 {
    display: block;
    margin: 40px 0 0 0;
    padding: 20px;
    font-size: 2.5em;
    background-color: #102540;
    color: #ffffff;
}

#pageContainer {
    grid-row: 2;
    grid-column: 2;
}

#pageContainer .containerTighter {
    justify-content: start;
    margin: 80px 20% 40px 40px;
}

.pageContent {
    margin: 0 0 100px 0;
}