@import url('https://fonts.googleapis.com/css2?family=The+Girl+Next+Door');

body {
  font-family: "The Girl Next Door", cursive;
  font-weight: 400;
  font-style: normal;
  background-color: #704A20;
  background-image: url(img/oak.jpg);
  background-size: 50em;
  overflow-x: hidden;
  margin: 0;
}

#folder {
  position: absolute;
  height: 100vh;
  width: 200vw;
  top: -30vw;
  left: -110vw;
  transform: rotate(10deg);
  z-index: -200;
}

#folder:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius:2em;
  background-image: url(img/paper.jpg);
}

#folder:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 0 0 2em 2em;
  background-blend-mode: multiply;
  background-color: rgba(112,74,32,0.5);
  box-shadow: 0.5em 0.5em 4em rgba(0,0,0,0.5);
}

#thefiles {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  z-index: -150;
  position: absolute;
}

.paper,
.paper:hover {
  transition-duration: 1s;
  transition-property: transform;
}

.paper {
  z-index: -100;
  background-color: #DBD7CC;
  background-image: url(img/paper.jpg);
  background-size: 15em;
  width: 95%;
  max-width: 60em;
  flex-grow: 1;
  min-height: 20em;
  transform: rotate(1deg);
  box-shadow: 1em 1em 5em rgba(0,0,0,0.69);
  margin: 2em auto 4em auto;
  padding: 1em;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #704A20 transparent;
}

.paper:hover {
  transform: rotate(.5deg);
}

.left {
  float: left;
}

.right {
  float: right;
}

.polaroid {
  width: fit-content;
  margin: 1em;
  background-color: #F5F5F5;
  box-shadow: -0.1em 0.1em 1em rgba(0,0,0,0.3);
  transform: rotate3D(0,0,1,-2deg);
  transition-duration: 1s;
}

.polaroid:hover {
  transform: rotate3D(0,5,1,10deg) scale(1.1);
  box-shadow: -0.1em 0.1em 5em rgba(0,0,0,0.3);
  transition-duration: 1s;
}

.polaroid.alt_angle_1 { transform: rotate3D(0,0,1,1deg);}
.polaroid.alt_angle_1:hover { transform: rotate3D(0,10,-1,10deg) scale(1.1); }
.polaroid.alt_angle_2 { transform: rotate3D(0,0,1,-0.5deg); }
.polaroid.alt_angle_2:hover { transform: rotate3D(5,0,1,5deg) scale(1.05); }
.polaroid.alt_angle_3 { transform: rotate3D(0,0,1,2deg); }
.polaroid.alt_angle_3:hover { transform: rotate3D(5,0,1,10deg) scale(1.1); }


.polaroid img {
  width: 20em;
  margin: 1em;
}

.polaroid p {
  text-align: right;
  margin: -0.5em 1em 1em 1em;
  color: darkblue;
  font-weight: 600;
}

.tabs {
  display: flex;
  flex-wrap: wrap-reverse;
  width: 95%;
  max-width: 60em;
  margin: auto;
  z-index: 2;
}

.tabs a {
  min-width: 8em;
  max-width: 15em;
  font-weight: 800;
  flex-grow: 1;
  margin-top: -10em;
  padding-top: 11em;
  text-align: center;
  transform: rotate(-5deg);
  text-decoration: none;
  color: black;
  border-radius: 3em;
  box-shadow: -0.1em 0.1em 1em rgba(0,0,0,0.8);
}

.tabs a:before,
.tabs a:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0 0 1em 1em;
}

.tabs a:before {
  z-index: -1;
  background-image: url(img/paper.jpg);
}

.tabs a:after {
  background-blend-mode: multiply;
}

.tabs a:nth-child(odd):after { background-color: rgba(0,150,0,0.25); }
.tabs a:nth-child(even):after { background-color: rgba(180,50,50,0.5); }
.tabs a:nth-child(3n):after { background-color: rgba(0,150,150,0.5); }
.tabs a:nth-child(4n):after { background-color: rgba(50,50,150,0.5); }
.tabs a:nth-child(5n):after { background-color: rgba(150,150,0,0.5); }
.tabs a:nth-child(6n):after { background-color: rgba(160,150,150,0.5); }


.tabs a:hover {
  translate: 0 1em;
}

.tabs a,
.tabs a:hover {
  transition: translate 0.4s;
}

h1 {
  margin-top: 0;
}

@media screen and (max-width: 800px) {
  .polaroid,
  .polaroid:hover,
  .polaroid.alt_angle_1,
  .polaroid.alt_angle_1:hover,
  .polaroid.alt_angle_2,
  .polaroid.alt_angle_2:hover,
  .polaroid.alt_angle_3,
  .polaroid.alt_angle_3:hover {
    margin: 1em auto 1em auto;
    box-shadow: -0.1em 0.1em 1em rgba(0,0,0,0.3);
    transform: none;
  }

  .left,
  .right {
    float: none;
  }
  
  .paper,
  .paper:hover {
    transform: none;
    margin: 1em;
    flex-grow: 1;
    width: calc(100vw - 4em);
  }
  
  .tabs {
    width: 100vw;
    translate: -0.33em;
  }
}