body, button{
    font-family: "Roboto";
  }

* {
    box-sizing: border-row;
}

.notificationsFrame {
    background-color: rgba(255, 217, 0, 0.5);
    padding: 200px;
}

/* .notificationsFrame.previewed {

} */

.notificationsList {
    padding: 0px;
    position: relative;
    max-width: 480px;
    margin: auto;
}

.notificationBox {
    background-color: white;
    opacity: 1;
    border: 1px solid gray;
    border-radius: 10px;
    box-shadow: 0 30px 30px rgba(0,0,0,0.1);
    padding:5%;
    width: 100%;
    &:first-of-type{
        z-index: 9;
      }
      &:nth-of-type(2){
        z-index: 8;
      }
      &:nth-of-type(3){
        z-index: 7;
      }
      &:nth-of-type(4){
        z-index: 6;
      }
      &:nth-of-type(5){
        z-index: 5;
      }
      &:nth-of-type(6){
        z-index: 4;
      }
      &:nth-of-type(7){
        z-index: 3;
      }
      &:nth-of-type(8){
        z-index: 2;
      }
      &:nth-of-type(9){
        z-index: 1;
      }
}

/* .notificationsList.closed .notificationBox {
    &:not(:first-of-type){
        animation: hideItems 1s forwards;
        animation-timing-function: ease;
    }
} */

.notificationsFrame.previewed .notificationBox {
    &:first-of-type{
        
        }
        &:nth-of-type(2){
        animation: upItems2 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(3){
        animation: upItems3 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(4){
            animation: upItems4 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(5){
            animation: upItems5 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(6){
            animation: upItems6 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(7){
            animation: upItems7 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(8){
        animation: upItems8 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(9){
        animation: upItems9 1s forwards;
        animation-timing-function: ease;
        }
}

.notificationsFrame.unpreviewed .notificationBox {
    &:first-of-type{
        }
        &:nth-of-type(2){
        animation: downItems2 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(3){
        animation: downItems3 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(4){
            animation: downItems4 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(5){
            animation: downItems5 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(6){
            animation: downItems6 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(7){
            animation: downItems7 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(8){
        animation: downItems8 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(9){
        animation: downItems9 1s forwards;
        animation-timing-function: ease;
        }
}


.notificationsList.closed .notificationBox {
    &:first-of-type{
        
        }
        &:nth-of-type(2){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(3){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(4){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(5){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(6){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(7){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(8){
            animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
        &:nth-of-type(9){
        animation: hideItems 1s forwards;
        animation-timing-function: ease;
        }
}

.notificationsList.open .notificationBox {
    &:not(:first-of-type){
        animation: showItems 1s forwards;
        animation-timing-function: ease;
    }
}

@keyframes hideItems{
    0%{
      margin-top: 0;
    }
    30%{
      opacity: 1;
    }
    60%{
      opacity: 0;
      transform: scale(0.98);
    }
    80%{
      transform: scale(0.5);
    }
    100%{
      opacity: 0;
      transform: scale(0);
      margin-top: -20%;
    }
  }

  @keyframes upItems2{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -30px ;
    }
  }
  @keyframes upItems3{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -60px;
    }
  }
  @keyframes upItems4{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -90px;
    }
  }
  @keyframes upItems5{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -120px;
    }
  }
  @keyframes upItems6{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -150px;
    }
  }
  @keyframes upItems7{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -180px;
    }
  }
  @keyframes upItems8{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -210px;
    }
  }
  @keyframes upItems9{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 -240px;
    }
  }

  @keyframes downItems2{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 30px ;
    }
  }
  @keyframes downItems3{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 60px;
    }
  }
  @keyframes downItems4{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 90px;
    }
  }
  @keyframes downItems5{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 120px;
    }
  }
  @keyframes downItems6{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 150px;
    }
  }
  @keyframes downItems7{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 180px;
    }
  }
  @keyframes downItems8{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 210px;
    }
  }
  @keyframes downItems9{
    0%{
      
    }
    30%{
      
    }
    60%{
      
    }
    80%{
      
    }
    100%{
      translate: 0 240px;
    }
  }


@keyframes showItems{
    0%{
        opacity: 0;
        transform: scale(0.95);
        margin-top: -10%;
    }
    10%{
        opacity: 0;
    }
    100%{
        opacity: 1;
        margin-top: 0;
        transform: scale(1);
    }    
}

button {
    position: absolute;

}



