/* styles.css 
   Project: 
   Author: 
   Date: 
	
   Helpful links: 
   	Web colors: 
   		https://en.wikipedia.org/wiki/Web_colors#X11_color_names
	Color picker tool:
		https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool
		http://colorpicker.com

*/

* {
   box-sizing: border-box;
}

img {
   width: 100%;
   display: block;
}

body {
   background-color: black;
   font-family: 'Montserrat', sans-serif;
/*   color: black;*/
   /*font-family: 'Lato', sans-serif;*/
/*   overflow-x: hidden;*/
}

a {
   color: red;
}

.mobile {
   display: none;
}

.background img {
   width: 100vw;
   height: 100vh;
   position: fixed;
   top: 0px;
   left: 0px;
   z-index: -2;
   width: 100%;
   object-fit: cover;
}


.animation {
  animation: pulse 2s ease infinite;
  width: 80%;
  margin: auto;
  margin-right: -3%;
}

.experiment {
   margin: auto;
   display: grid;
   grid-template-columns: 1fr 4fr;
   width: 80%;
   margin-top: 5%;
   margin-bottom: 5%;
}

.animation img {
  width: 100%;
}

.graphictext {
   margin-left: -5%;
   margin-top: -3%;
   width:100%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.annenbergmedia {
   position: absolute;
   top: 5px;
   width: 100%;
   height: 100%;
}

.annenbergmedia img {
   margin: auto;
   margin-top: 1%;
   width: 250px;
   cursor: pointer;
}

.story {
   color: white;
   margin: auto;
}

.story img {
   width: 50px;
   margin: auto;
}

.story h1 {
   max-width: 800px;
   margin: auto;
   text-align: center;
   font-weight: bold;
}

.story p {
   max-width: 600px;
   margin: 30px auto;
   text-align: justify;
}

.bigheader h4 {
   max-width: 600px;
   margin: auto;
   color: white;
   margin-top: 50px;
   font-size: 1.5em;
   text-align: center;
}

.section {
   display: grid;
   grid-gap: 2%;
   grid-template-columns: 1fr 4fr;
   margin: auto;
   width: 80%;
   margin: auto;
   padding-bottom: 5%;
   padding-left: 2%;
   padding-right: 2%;
   padding-top: 2%;
   margin-bottom: 2%;
   border-radius: 10px;
}

.section p {
   font-size: 1.15em;
}

.categories {
   cursor: pointer;
   border: 5px solid black;
   padding-left: 3%;
   background-color: black;
   border-radius: 10px;
}

.categories p {
   font-size: 1vw;
   text-align: center;
}

.categoriescontainer {
   display: grid;
   grid-gap: 4%;
   grid-template-columns: 1fr; 
   max-height: 600px;
   position: sticky;
   top: 0;
}

.filler {
   background-color: black;
   position: relative;
   width: 100%;
   height: 800px;
   border-radius: 10px;
}

.filler h1 {
   max-width: 800px;
   margin: auto;
   text-align: center;
   font-weight: bold;
   margin-top: 50px;
   position: sticky;
   top: 0;
}

.writing {
   background-color: black;
   border: 10px solid white;
   display: none;
   position: relative;
   max-height: 5000px;
   border-radius: 10px;
   text-align: justified;
   line-height: 1.5em;
}

.close {
  color: #aaa;
  position: absolute;
  top: 0px;
  right: 8px;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: rgb(182, 156, 73);
  text-decoration: none;
  cursor: pointer;
}

.writing p {
   padding: 10px 5px;
}

.dividertext {
   width: 100%;
   text-align: center;
}

.dividertext h6 {
   margin: auto;
   color: white;
   font-size: 2.5em;
   margin:2%;
}

.catlist, .nomlist, .results {
   background-color: black;
   color: white;
   width: 100%;
   margin: 20px auto;
   padding: 2%;
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
   grid-gap: 1px;
   box-shadow: 3px 3px 8px black;
   margin-bottom: 40px;
   position: relative;
}

.nomlist, .results {
   margin-top: -40px;
}

.catlist img {
   position: relative;
   width: 100%;
   /*height: 100%;*/
}

.catlist h3 {
   position: absolute;
   font-weight: bold;
   z-index: 4;
   margin: auto;
   padding-top: 8%;
   padding-bottom: 10%;
   padding-right: 25%;
   padding-left: 5%;
   text-align: left;
   font-size: 1.2em;
   height: auto;
}

.nomlist {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
   grid-gap: 10px;
}

.nomitem img {
   object-fit: cover;
}

.nomlist h3 {
   margin: auto;
   text-align: left;
}

.catitem h3 {
   font-size: 1em;
   margin: 15px 20px;
   text-align: left;
   width: 100%;
}

.catitem, .nomitem {
   position: relative;
   padding: 1%;
   box-shadow: 2px 2px 6px black;
   cursor: pointer;
   background-color: none;
}

.catitem img, .nomitem img {
   border: 7px solid black;
   width: 100%;
}

.catitem img:hover, .nomitem img:hover {
   border: 7px solid white;
}

.nomlist {
   display: none;
}

.selected {
   background-color: rgb(182, 156, 73);
   padding: 10px;
   width: 20%;
}

.other {
   background-color: #565656;
   padding: 10px;
   width: 20%;
}

.vote {
   position: absolute;
   bottom: 4px;
   z-index: 100;
}

.results {
   grid-template-columns: 1fr;
   display: none;
   padding: 50px;
   font-size: 1.4em;
   line-height: 1em;
   text-align: left;
   color: lemonchiffon;
}


/*FOOTER*/

.footer {
   position: absolute;
   background-color: black;
   color: white;
   margin: auto;
   text-align: center;
   padding: 0.5%;
   font-size: 0.75em;
   line-height: 1.5em;
}

.footer img {
   width: 15%;
   margin: auto;
   margin-top: 1%;
}

.footer h5 {
   max-width: 800px;
   margin: auto;
   font-style: italic;
   margin-bottom: 30px;
}



/*media query for responsive design */


@media only screen and (max-width: 1000px) {
   .catitem h3 {
      font-size: 0.8em;
   }
}

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

   .graphictext {
      margin-top: 8%;
   }

   .desktop {
      display: none;
   }

   .mobile {
      display: block;
   }

   .animation{
      margin-top: 50px;
      margin-bottom: 50px;
   }

   @keyframes pulse {
     0% {
       transform: scale(1);
     }

     50% {
       transform: scale(1.1);
     }

      0% {
       transform: scale(1);
     }
   }

   .categoriescontainer {
      position: relative;
      grid-template-columns: 1fr 1fr;
      margin-bottom: 30px;
   }

   .section {
      width: 95%;
   }

   .categories p {
      font-size: 2vw;
   }

   .filler {
      display: none;
   }

   .catlist, .nomlist {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-gap: 0px;
      box-shadow: 3px 3px 8px black;
      font-size: 1.5em;
      text-align: center;
      position: relative;
   }

   .catlist h3 {
      position: absolute;
      z-index: 4;
      margin: auto;
      padding: 20px;
      text-align: center;
      font-size: 1em;
      text-align: left;
   }

   .story {
      padding: 0px 40px 0px 40px;
      font-size: 1em;
   }

   .story h1 {
      font-size: 1.6em;
   }

   .story p {
      text-align: left;
   }

   .section {
      display: block;
   }

   .filler {
      padding: 5%;
   }

   .writing {
      width: 100%;
      max-height: 5000px;
   }

   .writing p {
      padding: 10px;
   }

   h4 {
      padding: 0px 30px 0px 30px;
   }

   .footer img {
      width: 35%;
   }

   .footer {
      font-size: 0.5em;
   }

}










