*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: rgb(138, 81, 192);
}


.buttons{
    margin: 50px;
}

.buttons button{
margin-left: 10px;
    font-weight: 600;
    border-radius: 10px;
        font-size: 15px;
        padding: 6px;
        border: none;
        outline: none;
        height: 40px;
        cursor: pointer;
        width: 120px;
color:  rgb(0, 0, 0);
        
}

.buttons button:hover{
    background: #28a745;
    transition: 0.2s background linear;
}
.buttons button:nth-child(2){
    color: rgb(0, 0, 0);
}

.buttons button:nth-child(2):hover{
    background: rgb(233, 34, 34);
    transition: 0.2s background linear;
}

.buttons button:last-child:hover{
    background: rgb(226, 209, 52);
    transition: 0.2s background linear;
}

#toast-box{
    position: absolute;
    bottom: 30px;
    right: 10px;
  color: rgb(236, 240, 238);
    display: flex;
    flex-direction: column;
    overflow: hidden;

}

@media (max-width:768px) {
    
    .buttons{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .toast{
        width: 200%;
    }
   

}

.toast {
    display: flex;
    align-items: center;
    height: 50px;
    width: 400px;
    font-family: sans-serif;
    background: rgb(240, 239, 239); /* Transparent glass look */
    color: rgb(8, 8, 8);
    font-weight: 600;
    font-size: 15px;
    padding-left: 20px;
    margin: 2px;
  }
  
  .toast::after {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: rgba(104, 124, 214, 0.897); 
    animation: progress 3s forwards;
    
  }
  

  @keyframes progress {
    100%{
         width: 25px;
    }
    95%{
        width: 1px;
    }
  }