@font-face {
  font-family: 'pt_sansbold';
  src: url("fonts/ptsans-bold-webfont.woff2") format("woff2"), url("fonts/ptsans-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pt_sansbold_italic';
  src: url("fonts/ptsans-bolditalic-webfont.woff2") format("woff2"), url("fonts/ptsans-bolditalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pt_sansregular';
  src: url("fonts/ptsans-regular-webfont.woff2") format("woff2"), url("fonts/ptsans-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pt_sansitalic';
  src: url("fonts/ptsans-regularitalic-webfont.woff2") format("woff2"), url("fonts/ptsans-regularitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pt_sans_narrowbold';
  src: url("fonts/ptsansnarrow-bold-webfont.woff2") format("woff2"), url("fonts/ptsansnarrow-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pt_sans_narrowregular';
  src: url("fonts/ptsansnarrow-regular-webfont.woff2") format("woff2"), url("fonts/ptsansnarrow-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --clr-primary: #6AC0B6;
}

* {
    box-sizing: border-box;
  }
  html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: rgb(0, 0, 0);
    overflow: hidden;
    font-family: 'pt_sans_narrowregular', sans-serif;
  }
  img {
    width:100%;
  }
  #gallery {
    height:50vh;
    -moz-perspective: 3000px;
    -webkit-perspective: 3000px;
    perspective: 3000px;
    -moz-perspective-origin: right;
    -webkit-perspective-origin: right;
    perspective-origin: right;
    width:60%;
    margin: 0 auto;
  }
  .painting {
    width: 630px;/*210*/
    height: 960px;/*320*/
    position: absolute;
    top:0;
    left:0;
    backface-visibility: hidden;
  }
  .desc {
    background: rgb(238,238,238);
    background: linear-gradient(180deg, rgba(238,238,238,1) 27%, rgba(153,153,153,1) 100%);
    padding: 60px;
    font-size: 2em;
    color: #222;
    display:flex;
    flex-direction: row;
    align-items: center;
    line-height: 1.5;
  }
  main {
    max-width:500px;
    height: auto;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.5s ease-in-out;
  }
  .painting:nth-of-type(1){
    z-index: 14;
  }
  .painting:nth-of-type(2){
    z-index: 13;
  }
  .painting:nth-of-type(3){
    z-index: 12;
  }
  .painting:nth-of-type(4){
    z-index: 11;
  }
  .painting:nth-of-type(5){
    z-index: 10;
  }
  .painting:nth-of-type(6){
    z-index: 9;
  }
  .painting:nth-of-type(7){
    z-index: 8;
  }
  .painting:nth-of-type(8){
    z-index: 7;
  }
  .painting:nth-of-type(9){
    z-index: 6;
  }
  .painting:nth-of-type(10){
    z-index: 5;
  }
  .painting:nth-of-type(11){
    z-index: 4;
  }
  .painting:nth-of-type(12){
    z-index: 3;
  }
  .painting:nth-of-type(13){
    z-index: 2;
  }
  .painting:nth-of-type(14){
    z-index: 1;
  }

  .homelink {
    background: var(--clr-primary);
    margin: 20px;
    padding: 10px;
    display:inline-block;
  }
  .homelink a {
    font-family: 'pt_sansbold', sans-serif;
    color:#fff;
    text-decoration: none;
  }
  .homelink a:hover {
    color: #fff;
    text-decoration: underline;
  }

  /* custom range slider styles */
  
  .slidecontainer {
    position:absolute;
    bottom:50px;
    height:25px;
    width:100%;
    z-index:1000;
    display:flex;
    justify-content: center;
  }
  #slider {
    width: 60%;
    -webkit-appearance: none; /* slider line disappears*/
    appearance: none; 
    background: #ccc;
    height: 15px;
    outline: none;
    border-radius: 10px;
  }
#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none; /* slider dot disappears */
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--clr-primary);
    cursor: pointer;
  }
  .slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--clr-primary);
    cursor: pointer;
    outline:none;
    border: none;
    border-radius:50%;
  }

  @media screen and (max-width:800px) {
    #gallery {
      width:100%;
    }
    .painting {
      width: 420px;
      height: 640px;
    }
    .desc {
      font-size: 1.5rem;
    }
  }