@import url(https://fonts.googleapis.com/css?family=Nunito);

html {
  height: 100%;
}


h1 {
  font: 400 100px/1.2 'Merienda One', Helvetica, sans-serif;
  color: rgba(0,0,0,0.7);
  /* text-shadow: 3px 3px 3px #fff; */
  
}

div#title h1 {
  font-size: 4em;
  margin-bottom: 0;
}

div#title h1 span {
  font-size: 1.25em;
  color: rgb(31, 109, 24);
}


aside h1, .card h1  {
  font-size: 2.5em;
}

div#title:before {
  margin-top: 20px;
  background-image: url("images/web-trees.jpg");
  display: block;
  content: '';
  height: 50vh;
  /* margin: 0 auto; */
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 50%;
  box-shadow: 0 20px 8px 0 rgba(0, 0, 0, 0.2) ;


}

.slide h1 {
  /* font: 400px Helvetia,  sans-serif; */
  font-size: 2em;
  /* margin: 8px; */
}


.slide h1::first-letter {
  font-size: 3em;
  color: rgb(31, 109, 24);
}

.aside-card h1 {
  font-size: 1.25em;
}

body { 
  margin:0;
  padding:0;
	/* perspective: 1px; */
  height: 100%;
  font-family: Nunito;
  background-image: url("./subtle-patterns/dynamic-style.png"); 
  
  /* background-size: cover; */
  background-repeat: repeat; 
  /* background-color: rgb(221, 176, 117); */
}



.flex-row-center-center {
  flex-direction: row;
  display:flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  padding-top:20px;
}

.flex-row-spacebw-center {
  
  flex-direction: row;
  display:flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  width: 75%;
  margin: 150px auto 0px;
  /* margin: 200px 0px; */
}


/* navbar items*/
.flex-row-spacebw-center li {
  list-style-type: none;
  /* background-color: rgb(240, 190, 225); */
  padding: 4px 28px;
} 


.flex-row-spacebw-center li.selected {
  text-decoration: underline;
  
}

.flex-row-spacebw-center li:hover {
  transform: scale(1.25);
  transition-duration: 0.75s;
}
 
#title {
  /* background-color: rgb(135, 40, 161); */
  padding-bottom: 20px;
}

.logo {
  width: 300px;
}


a h1{ 
  text-decoration: none;
}


@keyframes grow-shrink{
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1.75);
  }
}

.card img {
  /* width: 400px; */
  min-width: 200px;
  max-width: 300px;
  /* flex: 1; */
  align-self: center;
}

.card h1 {
  text-align: center;
}

.card p {
  text-align: center;
  word-break: break-word;
}

.card.small {
  width: 240px;
}

.card img.small {
  width: 220px;
  
}

.aside-card {
  position: fixed;
  right: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 200px;
  
  background-color: white;
  padding: 4px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aside-card img {
  width: 200px;
}
.aside-card h1 {
  text-align: center;
}

aside .aside-card:nth-of-type(2n+1) {
  transform: rotateZ(.5deg);
}


/* Main content */

div.main-container {
  display: flex;
  flex-direction: row;

  /* width: 100%; */

}

article {
  margin-top: 20px;
  /* width: 70%; */
  /* max-width: 70%; */
  flex: 5;
  flex-direction: column;
  display:flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  /* background-color: #E8A87C; */
}

.row {
  width: 100%;
  min-height: 50vh;
  /* min-height: 600px; */
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  /* align-content: flex-start; */
  align-items: center;
  
  /* flex-grow: 0; */
  
  flex-wrap: wrap;
}

.slide {
  width: 400px;
  /* background-color: rgba(12, 172, 33, 0.74); */
  /* background-image: url("./subtle-patterns/cork-board.png"); */
  /* background-op */
  margin: 20px;
  height: 200px;
  padding: 20px;
  border-radius: 20px;

  box-shadow: 10px 10px 5px #333;
  /* border: solid 1px black; */
  
  display: flex;
  flex-direction: column;
  justify-content: center;

}

/* Trick for background image with opacity (keep all other children elements non opaque)  */
.slide::after {
  content: "";
  background: url("./subtle-patterns/cork-board.png");
  opacity: 0.25;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  border-radius: 20px;
  z-index: -1;   
}

.card {
  /* width: 800px; */
  display: flex;
  flex-direction: column;
  margin: 20px;
  /* width: 250px; */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  text-align: center;

  box-shadow: 10px 10px 5px #333;
  /* width: 40%; */
  
  /* height: 600px; */
  background-color: white;
  padding: 20px;
  /* background-image: url("./subtle-patterns/memphis-mini.png"); */
}


#download-card {
  width: 400px;
  margin: 0 auto;
  transform: rotateZ(-3deg);
}

#download-card:hover{
  transform: scale(1.05);
  transition-duration: 1s;
  
}

#download-card:hover a {
  transform: scale(1.15);
  transition-duration: 1s;
}


article div.row div.card:nth-of-type(n):hover {
  transform: scale(1.05);
  transition-duration: 1s;
}



/* Switch order of slides and card and add random rotation */
.row:nth-of-type(2n) .slide {
  transform: translateX(8px) rotateZ(-.8deg) ;
  order: 1;
}

.row:nth-of-type(2n) .card {
  transform: translateX(-8px) rotateZ(2deg) ;
  order: 2;
}

.row:nth-of-type(2n+1) .slide {
  transform: translateX(8px) rotateZ(-.8deg) ;
  order: 2;
}

.row:nth-of-type(2n+1) .card {
  transform: translateX(8px) rotateZ(-.8deg) ;
  order: 1;
}

.row:nth-of-type(n+4) .card:nth-of-type(2n) {
  transform: translateX(4px) rotateZ(-5deg) ;
  
}

.row:nth-of-type(n+4) .card:nth-of-type(3n) {
  transform: translateX(8px) rotateZ(4deg) ;
  
}

.row:nth-of-type(n+4) .card:nth-of-type(4n) {
  transform: translateX(-12px) rotateZ(-1deg) ;
}

aside {
  flex: 1;
  /* width: 300px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  margin-bottom: 40px;
  /* flex-basis: 25%; */
  /* background-color: rgb(240, 190, 225); */
}

#img-soundcloud {
  margin-bottom: 10px;
  width: 100px;
  animation: wiggle 4s infinite alternate;
  /* animation-fill-mode: both; */
  
}

@keyframes wiggle {
  0%   { opacity: .5; transform: rotateZ(3deg); }
  100% { opacity: 1; transform: rotateZ(-3deg)}
}

/* Footer */
footer {
  background-color: #eee;
  padding: 100px 0px;
}
footer h3 {
  text-align: center;
  margin: 0;
  color: rgb(173, 173, 173);
  
}


@media only screen and (max-width: 1000px) {
  .card img {
    width: 90%;
  }

  .aside-card img {
    width: 100%;
  }

  .row {
    flex-wrap: wrap;
    height: auto;
  }
  .card {
    width: 100%;
   
  }

  .slide {
    width: 100%;
    
  }

  
  div.main-container {
    flex-direction: column;
  }
  aside {
    align-self: center;
    width: 90%;
    order: 1;
    
  }

  article {
    order: 2;
    width: 100%;
    align-self: center;
  }
  div.aside-card {
    position: relative;
    width: 90%;
    right: 0;
  }
  .row:nth-of-type(n) .slide {
    transform: translateX(8px) rotateZ(-.8deg) ;
    order: 1;
  }
  
  .row:nth-of-type(n) .card {
    transform: translateX(-8px) rotateZ(2deg) ;
    order: 2;
  }

  div#title:before {

    height: 50vh;
    /* width: 90%; */

    background-size: 90vh;
  
  
  }
  
  
  
}

