*{
    margin: 0;
    padding: 0;
}
.birthday-background{
    position: absolute;
    background-color: rgb(66 66 66 / 30%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;    
    align-items: center;     
    overflow: hidden;
    animation-name: birthday-background;
    animation-timing-function:ease-in-out;
    animation-duration:2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards; 
    z-index:15000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
}
@keyframes birthday-background{
    from{
        opacity: 0;
       }
       to{
        opacity: 1;
       }
}
@keyframes birthday-backgroundexit{
    from{
     opacity:1;
    }
    to{
     opacity: 0; 
     display: none;
    }
}
.birthday{
    box-shadow: 0px 0px 15px rgb(150 150 150 / 90%);
    background-color: white;
    color: black;
    position: absolute;
    width:auto;
    min-width:500px;
    height: 500px;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    animation-name: birthday;
    animation-timing-function:ease-in-out;
    animation-duration:2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards; 
}
@keyframes birthday{
    from{
        opacity: 0;
        margin-top: -5%;
       }
       50%{
        margin-top: 1%;
       }
       to{
        opacity: 1;
        margin-top: 0%;
       }
}
@keyframes birthdayexit{
    from{
     opacity:1;
    }
    50%{
    margin-top: 5%;
    }
    to{
     opacity: 0; 
     margin-top: -100%;
     display: none;
    }
}
.birthday .title{
    position: relative;
    font-size:40px;
    font-weight: bold;
    border-style:solid;
    border-color: black;
    border-width: 0px 0px 2px 0px;
    background-color: rgba(255, 255, 255, 0);
    width: 100%;
    height: auto;
    padding-right:20px;
    text-align:center;
}
.birthday .main{
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(255, 255, 255, 0);
    font-size: 30px;
    display: flex;
    justify-content: center;    
    align-items: center;  
    overflow: auto;
}
.birthday .out{
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 100%;
    border-style: none;
    font-size: 20px;
    top:1px;
    right:1px;
    width: 30px;
    height: 30px;
    color: #000;
    cursor: pointer;
    transition: 0.2s linear;
    z-index:1;
}
.birthday .out:hover{
    color: red;
}
@media (max-width:1000px){
    .birthday{
       width: calc(100% - 40px);
       height: 500px;
    }   
}
@media (max-width:500px){
    .birthday{
    min-width:0px;
    }
   .birthday .title{
       font-size:25px;
   }
   .birthday .main{
       font-size:20px;
   }
}
@media (max-height:500px){
    .birthday{
       height: calc(100% - 40px);
    }   
}