h1{
  font-size: 5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  font-family: MyFirstFont;

}

h2{
  text-align: center;
  font-size: medium;
  position: relative;
  bottom: 40px;
  font-family: 'Times New Roman', Times, serif;
}

p{
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: small;
  margin-left: 10%;
  margin-right: 10%;
  position: relative;
  bottom: 25px;
}

@font-face {
  font-family: myFirstFont;
  src: url(/studio/projects/02_elastic-collection/assets/Chomsky.otf);
}



/* limit width so that content will need to scroll */
main {
    max-width: 100em;
  }
  
  /* SCROLL SNAPPING */
  .scroll-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .scroll-item {
    scroll-snap-align: center;
  }
  
  /* FLEXBOX LAYOUT */
  .scroll-container[data-layoutmethod="flexbox"] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center; /* vertically align children */
  }
  .scroll-container[data-layoutmethod="flexbox"] .scroll-item {
    margin-right: 2em; /* fake gap */
    flex: 0 0 auto;
    margin-bottom: 1rem;
  }
  
  
  /** OTHER STYLES **/
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
  }
  
  /* center main element */
  main {
    margin: 0 auto;
    padding: 0 1em;
   
  }
  
  /* remove list styles */
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .scroll-item {
    /* make it square */
    width: 24em;
    height: 24em;
    margin-top: 1.5rem;
    
  
    
  
    /* center contents */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .imageBox {
    position: relative;
    float: left;
    height: 400;
    width: 400;
  }
  
  .imageBox .hoverImg {
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    height: 400;
    width: 400;
  }
  
  .imageBox:hover .hoverImg {
    display: block;
    height: 400;
    width: 400;
    margin-left: 10%;
    margin-bottom: 80%;
  }

