/*####################### for old web browsers #######################*/
article, aside, details, dialog, figcaption, figure, footer, header, hgroup, nav, section {
  display: block;
}
audio, canvas, embed, keygen, meter, progress, video {
  display: inline-block;
}
[hidden] {
  display: none;
}
/*####################################################################*/

@font-face {
    font-family: 'Montserrat';
  src: url('fonts/Montserrat-Light.ttf') format('opentype');
  font-weight: 300;
}

@font-face {
    font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('opentype');
  font-weight: 500;
}

@font-face {
    font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.ttf') format('opentype');
  font-weight: 900;
}

@font-face {
    font-family: 'Varela';
  src: url('fonts/Varela-Regular.ttf') format('opentype');
  font-weight: 500;
}

/*a simple CSS trick to achieve Photoshop-like quality*/
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: 'Montserrat';
  background-color: white;
  background: url("images/background.png") no-repeat bottom center;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: #707070;
}

.navgrid {
  display: grid;
  grid-template-columns: 1fr repeat(8, 160px) 1fr;
  grid-template-rows: 140px;
  align-items: center;
}

.home {
  height: 870px;
  display: grid;
  grid-template-columns: 1fr repeat(8, 160px) 1fr;
  grid-template-rows: 1fr 357px 40px 200px 1fr;
  align-items: center;
  justify-items: end;
}

footer {
  display: grid;
  grid-template-columns: 1fr 50px 110px repeat(7, 160px) 1fr;
  grid-template-rows: 70px;
  align-items: center;
}

.logo {
  grid-column: 2/4;
}

.emilia {
  font-size: 36px;
  text-transform: uppercase;
}

.radek {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
}

.menu {
  font-size: 24px;
  list-style-type: none;
  grid-column: -2/-8;
  text-align: right;
}

.menu li {
  display: inline;
  padding-left: 75px;
}

#hamburger {
  display: none;
}

.content {
  grid-column: -2/-5;
  grid-row: 2/3;
  align-self: self-start;
  justify-self: center;
  font-size: 18px;
}

.content h1 {
  margin-top: 0px;
  font-size: 36px;
  text-align: center;
}

.content p {
  font-size: 18px;
  text-align: justify;
}

.painting {
  box-shadow: 
    0px 3.91578px 8.72463px rgba(0, 0, 0, 0.0403024), 
    0px 9.9033px 22.0652px rgba(0, 0, 0, 0.0576822), 
    0px 20.2018px 45.011px rgba(0, 0, 0, 0.0723178), 
    0px 41.6119px 92.7142px rgba(0, 0, 0, 0.0896976);
  grid-column: -2/-5;
  grid-row: 2/3;
  max-width: 100%;
}

.description {
  font-size: 24px;
  color: #5B5B5B;
  grid-column: -2/-5;
  margin: 0 auto;
  grid-row: 3/4;
  align-self: self-end;
}

.button {
  width: 250px;
  text-align: center;
  margin: 0 auto;
  font-size: 32px;
  border: 4px solid black;
  color: black;
  border-radius: 15px;
  padding: 5px;
  grid-column: -2/-5;
  grid-row: 4/5;
  transition: 0.4s;
}

.button:hover {
  background-color: black;
  border-color: black;
  color: white;
  transition: 0.4s;
}

#kontaktButton {
  align-self: self-start;
  width: 130px;
  font-size: 24px;
}

#zamowButton {
  grid-row: 2/3;
  align-self: self-end;
  width: 180px;
  font-size: 24px;
}

#zamowButton2 {
  grid-row: 4/5;
  align-self: self-start;
  width: 180px;
  font-size: 24px;
}

#sendButton {
  align-self: self-start;
  width: 130px;
  font-size: 24px;
}

input {
  width: 475px;
  height: 32px;
  font-size: 18px;
  margin-top: 5px;
  margin-bottom: 20px;
  padding-left: 5px;
}

textarea {
  width: 475px;
  resize: none;
  padding-left: 5px;
}

.gallery {
  min-height: 2100px;
  display: grid;
  grid-template-columns: 1fr 1000px 1fr;
  grid-template-rows: 136px 50px 25px auto;
}

.gallery h1 {
  grid-column: 2/3;
  grid-row: 2/3;
}

.photos {
  justify-self: center;
  grid-column: 2/3;
  grid-row: 4/5;
  display: grid;
  grid-gap: 25px;
  grid-template-columns: repeat(3, 290px);
  grid-template-rows: repeat(4, 290px);
}

.gallery h1 {
  margin-top: 0px;
  font-size: 36px;
  text-align: center;
}

.thumbnail {
  transition: 0.3s;
}

.thumbnail:hover {
  opacity: 0.6;
  transition: 0.3s;
}

.author {
  font-family: 'Varela';
  font-size: 24px;
  grid-column: 3/6;
}

.rpLogo {
  grid-column: 2/3;
  height: 45px;
}

.socialMedia {
  text-align: right;
  grid-column: -2/-3;
}

@keyframes animationDown{
    0%{
        transform: translateY(-30px);
        opacity: 0;
        }
    100%{
        transform: rotate(xx) translateY(0);
        opacity: 1;
        }
}

@keyframes animationUp{
    0%{
        transform: translateY(30px);
        opacity: 0;
        }
    100%{
        transform: rotate(xx) translateY(0);
        opacity: 1;
        }
}

.painting {
    animation: animationDown 1.5s forwards 0s ease;
}

.description {
    animation: animationDown 1.5s forwards 0s ease;
}

.content {
    animation: animationDown 1.5s forwards 0s ease;
}

.button {
    animation: animationUp 1.5s forwards 0s ease;
}

.gallery {
  animation: animationDown 1.5s forwards 0s ease;
}

/* For small laptops: */
@media screen and (max-width: 1400px) {
  .navgrid {
    grid-template-columns: 1fr repeat(8, 140px) 1fr;
  }
  
  .home {
    grid-template-columns: 1fr repeat(8, 140px) 1fr;
  }
  
  footer {
    grid-template-columns: 1fr 50px 110px repeat(7, 140px) 1fr;
  }

  .menu li {
    padding-left: 70px;
  }

  body {
    background: url("images/bg_smaller.png") no-repeat bottom left;
  }

  .painting {
    align-self: self-start;
  }

  .description {
    grid-row: 2/3;
  }
}

/* For tablets: */
@media screen and (max-width: 1250px) {
  .navgrid {
    grid-template-columns: 30px 1fr 30px;
    grid-template-rows: 86px 70px;
  }

  .home {
    height: 1150px;
    grid-template-columns: 30px 1fr 30px;
    grid-template-rows: 1fr 357px 40px 200px 2fr 1fr;
  }

  .gallery {
    grid-template-columns: 20px 1fr 20px;
  }

  .photos {
    grid-template-columns: 290px 290px;
    margin-bottom: 650px;
  }
  
  footer {
    grid-template-columns: 30px 0.4fr 1.6fr repeat(6, 1fr) 30px;
  }

  .content {
    grid-column: -2/-3;
  }

  .painting {
    margin: 0 auto;
    grid-column: -2/-3;
  }

  .description {
    grid-column: -2/-3;
    grid-row: 3/4;
  }

  .button {
    grid-column: -2/-3;
    background: rgba(255, 255, 255, 0.8);
  }

  .logo {
    grid-row: 1/2;
    align-self: end;
  }

  .menu {
    grid-row: 2/3;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
  }

  .menu li {
    padding: 0;
    margin-left: -8px;
  }

  .socialMedia {
    grid-column: -2/-4;
  }
}

/* For mobile phones: */
@media screen and (max-width: 767px) {
  body {
    background: url("images/bg_mobile.png") no-repeat bottom left;
  }

  .navgrid {
    grid-template-columns: 20px 3fr 1fr 20px;
    grid-template-rows: 70px 70px;
  }

  .home {
    height: auto;
    grid-template-columns: 20px 1fr 20px;
    grid-template-rows: auto 40px 200px 450px;
  }
  
  .gallery {
    grid-template-columns: 20px 1fr 20px;
    grid-template-rows: 1px 50px 25px auto;
  }

  .photos {
    grid-template-columns: auto;
    margin-bottom: 500px;
  }

  .photos img {
    max-width: 100%;
  }

  footer {
    grid-template-columns: 20px 0.7fr 4fr 3fr 20px;
  }

  .logo {
    grid-column: 2/3;
    align-self: center;
  }

  .emilia {
    font-size: 24px;
  }

  .radek {
    font-size: 24px;
  }

  .menu {
    display: none;
    grid-column: none;
    grid-row: none;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-top: 0px;
    padding-top: 70px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-bottom: 3px solid #2D2D2D;
    z-index: 1;
  }

  #hamburger {
    display: block;
    grid-column: 3/4;
    justify-self: end;
    cursor: pointer;
    padding: 20px 0;
    padding-left: 25px;
    z-index: 1;
  }

  .changeHam #bar1 {
    transform: translateY(4px) rotateZ(-45deg);
  }

  .changeHam #bar2 {
    transform: translatex(20px);
    opacity: 0;
  }

  .changeHam #bar3 {
    transform: translateY(-4px) rotateZ(45deg);
  }

  .changeMenu {
    display: block;
    position: absolute;
  }

  .changeMenu li {
    display: list-item;
    padding: 15px 20px;
  }

  .bars {
    height: 4px;
    width: 25px;
    background-color: black;
    border-radius: 4px;
    transition: 0.3s;
  }

  #bar1 {
    transform: translateY(-4px);
  }

  #bar3 {
    transform: translateY(4px);
  }

  .painting {
    grid-column: 2/3;
    grid-row: 1/2;
    width: 100%;
    align-self: flex-end;
  }

  .description {
    grid-column: 2/3;
    grid-row: 2/3;
    text-align: right;
    font-size: 18px;
    align-self: center;
  }

  .button {
    grid-column: 2/3;
    grid-row: 3/4;
    font-size: 24px;
    width: 200px;
  }

  .content {
    grid-row: 1/4;
  }

  #kontaktButton {
    grid-row: 4/5;
  }

  #zamowButton {
    grid-row: 4/5;
    align-self: self-start;
  }

  #sendButton {
    margin-top: 15px;
    grid-row: 4/5;
  }

  input {
    width: 260px;
  }

  textarea {
    width: 260px;
  }

  .rpLogo {
    grid-column: 2/3;
    height: 30px;
  }

  .author {
    grid-column: 3/4;
    font-size: 16px;
  }

  .socialMedia {
    grid-column: 4/5;
  }
}