/* Importing Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.alert-box,
.show-button{
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -50%);
}
.show-button{
    height: 55px;
    padding: 0 30px;
    font-size: 20px;
    font-weight: 400;
    line-height: 55px;
    cursor: pointer;
    border: none;
    outline: none;
    color: #fff;
    background: #2980b9;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.show-button:hover {
    background: #216898;
}
.background {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}
#check:checked ~ .background{
    opacity: 1;
    pointer-events: auto;
}
.alert-box {
    width: 450px;
    max-width: 90%;
    background: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 5px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%) scale(0.8);
}
#check{
    display: none;
}
#check:checked ~ .alert-box {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.alert-box .icon {
    height: 100px;
    width: 100px;
    /* background: rosybrown; */
    color: #f23b26;
    border: 3px solid #f23b26;
    border-radius: 50px;
    line-height: 97px;
    font-size: 60px;
}
.alert-box header {
    font-size: 35px;
    font-weight: 500;
    margin: 10px 0;
}
.alert-box p {
    font-size: 20px;

}
.alert-box .btn{
    margin-top: 20px;
}
.alert-box label{
    display: inline-flex;
    background: gray;
    height: 55px;
    padding: 0 30px;
    font-size: 20px;
    font-weight: 400;
    line-height: 55px;
    cursor: pointer;
    color: #fff;
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
}
.btn label:first-child{
    background: #bc2e1e;
}
.btn label:first-child:hover{
    background: #ac1808;
} 
.btn label:last-child{
    background: #2980b9;
}
.btn label:last-child:hover{
    background: #216898;
}

@media (max-width: 480px) {
    .alert-box header {
        font-size: 28px;
    }
    .alert-box p {
        font-size: 16px;
    }
    .alert-box .btn label {
        font-size: 16px;
        padding: 0 20px;
    }
}