@keyframes alertfade {
    0% {
      opacity: 0;
      height: 0vh;
      display: none;
    }
    10% {
      opacity: 1;
      height: 10vh;
      display: block;
    }
    20% {
      opacity: 1;
      height: 10vh;
      display: block;
    }
    80% {
      opacity: 1;
      height: 10vh;
      display: block;
    }
    100% {
      opacity: 1;
      height: 10vh;
      display: none;
    }
  }

  @keyframes spinner {
    from {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  
  .spinner:before {
    content: '';
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #000;
    -webkit-animation: spinner .6s linear infinite;
            animation: spinner .6s linear infinite;
  }
  
  .spinner {
    display: none;
  }

.alert_container {
    z-index: 1;
    position: fixed;
    left: 30vw;
    right: 30vw;
    top: 0%;
}

.alertmsg {
    z-index: 1;
    position: fixed;
    left: 30vw;
    right: 30vw;
    top: 0%;
    height: auto;
    padding: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: auto;
    border-radius: 3px;
    font-weight: bold;
    font-style: normal;
    text-align: top;
    -webkit-animation-name: alertfade;
            animation-name: alertfade;
    -webkit-animation-duration: 5s;
            animation-duration: 5s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    -webkit-box-shadow: 15px 15px 60px #2b2827,
   -15px -15px 60px #2b2827;
            box-shadow: 15px 15px 60px #2b2827,
   -15px -15px 60px #2b2827;
  }
  
  #messages {
    -webkit-animation-name: alertfade;
            animation-name: alertfade;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    -webkit-animation-duration: 5s;
            animation-duration: 5s;
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
  }
  
  .alertsuccess {
    background-color: #ebebeb;
    color: #137400;
    margin: 10px;
  }
  
  .alerterror {
    background-color: #ebebeb;
    color: #b31313;
    margin: 10px;
  }
  
  .alertclose {
    z-index: 10;
    color: #b1b0b0;
    font-size: 28px;
    font-weight: bold;
    font-style: normal;
    margin-right: 10px;
    float: right;
  }
  
  .alertclose:hover,
  .alertclose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .horizontal-only {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  @media screen and (max-width: 950px) {
    .alertmsg {
        z-index: 1;
        position: fixed;
        left: 10vw;
        right: 10vw;
        top: 0%;
        height: auto;
        padding: 10px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        margin: auto;
        width: auto;
        border-radius: 3px;
        font-weight: bold;
        font-style: italic;
        text-align: top;
        -webkit-animation-name: alertfade;
                animation-name: alertfade;
        -webkit-animation-duration: 5s;
                animation-duration: 5s;
        -webkit-animation-fill-mode: forwards;
                animation-fill-mode: forwards;
      }

      .horizontal-only {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
      }
  }