
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #93A5CF, #E4EFE9);
  font-family: 'Ropa Sans', sans-serif;
}




/*  Box-sizing: border-box; Incorporates margins and padding into the height and width dimensions
    make the divisions all the same 'size' in appearance */

* {
  box-sizing: border-box;
}



.slider {
  width: 300px;
  text-align: center;
  overflow: hidden;
}




.slides {
  display: flex;
  
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  
  
  
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
       /*
       scroll-snap-points-x: x-axis scroll repeats in 300px spaces;
    
       scroll-snap-type: mandatory ... forced move to next slide on scroll;
    
       Seems to be working... depends on browser */
    
    
}
.slides::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.slides::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 10px;
}
.slides::-webkit-scrollbar-track {
  background: transparent;
}


.slides > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  margin-right: 50px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

/* Picture corners rounded */
.slidepic{
  border-radius: 10px;  
}


/*  On button click to navigate slides, URL changes to that #hash 'slidenumber'...  transform: scale(0.8); */

.slides > div:target {
    
}


.slider > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
}
.slider > a:active {
  top: 1px;
}
.slider > a:focus {
  background: #000;
}

/* Don't need button navigation */
@supports (scroll-snap-type) {
  .slider > a {
    display: none;
  }
}

html, body {
  height: 100%;
  overflow: hidden;
}
