@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", serif;
}
body{
    background-color: rgb(255, 255, 255);
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(selectsec1.png);
    background-size:contain ;
}
#popup{
    background-color: white;
    border: 1px solid rgb(184, 184, 184);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    top: 10%;
    box-shadow: 0px 0px 8px grey;
    scale: 0;
    opacity: 0.4;
    transition: all 2s;
    animation: popup 0.5s linear;
    animation-play-state:paused;
}
#popup p{
    font-size: 12px;
}
#popup i{
    font-size: 12px;
    margin-left: 80px;
}
@keyframes popup{
    from{
        opacity: 0.4;
        scale: 0;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.main{
    display: flex;
    justify-content: center;
    width: 80%;
    height: 80%;
    gap: 40px;
}

.main .policy{
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 50%;
    height: 100%;
}
.main .content p{
    font-size: 12px;
}
.main .content{
    border: 1px solid rgb(207, 207, 207);
    padding: 20px;
    width: 100%;
    height: 80%;
    background-image: url(paybg2.png);
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: 10% 55%;
    background-color: white;
    box-shadow: 0px 0px 5px rgb(163, 163, 163);
    border-radius: 12px;
}
.main .content img{
    margin-top: 18%;
    width: 100%;
}
.main .additor{
    border: 1px solid rgb(209, 208, 208);
    height: 20%;
    position: relative;
    background-color: white;
    box-shadow: 0px 0px 5px rgb(163, 163, 163);
    border-radius: 12px;
}
.main .additor #limitbtn{
    position: absolute;
    right: 5%;
    bottom: 15%;
    padding: 8px 20px;
    background: transparent;
    border: 3px solid black;
    font-weight: bold;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.25s;
}
.main .additor #limitbtn:hover{
    background-color: black;
    color: white;
}
.main .additor .limit{
    width: 140px;
   display: flex;
   position: absolute;
   translate: -50% -50%;
   top: 50%;
   left: 55%;
}

.main .additor .limit input{
    width: 60%;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    border: 1px solid rgb(122, 122, 122);
    text-align: center;
    padding-left: 14px;
}
.main .additor .limit button{
    width: 40%;
    padding: 5px;
    font-size: 20px;
    font-weight: bolder;
    border: 1px solid rgb(117, 117, 117);

}

.main .additor h2{
    font-size: 18px;
    position: absolute;
    left: 3%;
    top: 8%;
}
.main .detail{
    border: 1px solid rgb(221, 221, 221);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 35%;
    height: 85%;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 0px 5px rgb(163, 163, 163);
    border-radius: 12px;
}
.main .detail div{
    height: max-content;
    width: 100%;
    text-align: center;
}
.main .detail div label{
    margin: 0px 15px;
    font-size: 14px;
}
.main .detail .flex{
   display: flex;
   gap: 40px;
}
.main .detail select{
    width: 100%;
    text-align: center;
    border: none;
    border-bottom: 1px solid grey;
    outline: none;
}
.main .detail .flex input{
    padding: 8px;
    width: 100%;
    border: none;
    border-bottom: 1px solid grey;
    outline: none;
    color: black;
}
.main .detail label{
    font-size: 10px;text-align: center;
}
.main .detail #plan{
    border: 1px solid grey;
    padding: 5px 0px;
}
.main .detail #btn{
    background-color: black;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    height: 40px;
    width: 150px;
    align-self: center;
    border: none;
}
.main .detail h2{
    text-align: center;
    }
#back{
    text-decoration: none;
    color: black;
    font-size: 18px;
    position: absolute;
    top: 3%;
    left: 3%;
}
#back::before{
    content: "";
    position: absolute;
    height: 3px;
    width: 0%;
    background-color: black;
    bottom: 0;
    right: 0;
    transition: all 0.25s;
}
#back:hover::before{
    width: 100%;
}

@media (max-width:800px) {
    .main .policy .content{
        display: none;
    }
    .main{
        flex-direction: column-reverse;
    }
    .main .detail{
        width: 100%;
        height: auto;
    }
    .main .policy{
        width: 100%;
        height: auto;
    }
    .main .policy .additor{
        height: 100px;
    }
    .main .policy .additor .limit{
        scale: 0.8;
        left: 28%;
        top: 67%;
    }
    .main .policy .additor .limit #limit_number{
        padding: 0;
    }
    .main .policy .additor h2{
        font-size: 14px;
    }
    .main .policy .additor #limitbtn{
        font-size: 11px;
        padding: 7px 15px;
    }
    .main .detail{
        padding: 10px;
    }
    .main .detail input{
        font-size: 10px;
    }
    .main .detail input::placeholder{
        font-size: 10px;
    }
    .main .detail select{
        font-size: 10px;
    }
    .main .detail .flex{
        gap: 20px;
    }
    .main .detail label{
        font-size: 8px;
        padding: 0px 4px;
        display: flex;
        align-items: flex-start;
    }
    .main .detail h2{
        font-size: 20px;
    }
    .main .detail div label{
        font-size: 10px;
        display: flex;
        align-items: center;
        margin: 0;
        gap: 2px;
    }
    .main .detail div{
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    #back{
        font-size: 14px;
    }

}
@media screen and (min-width:500px) and (max-width:800px) {
    .main .policy .additor .limit{
        scale: 0.9;
        left: 50%;
        top: 67%;
    }
    .main .policy .additor .limit #limit_number{
        padding: 0;
    }
    .main .detail input{
        font-size: 14px;
    }
    .main .detail input::placeholder{
        font-size: 14px;
    }
    .main .detail select{
        font-size: 14px;
    }
    .main .detail div label{
        font-size: 14px;
    }
    .main .policy .additor h2{
        font-size: 17px;
    }
    .main .policy .additor #limitbtn{
        font-size: 14px;
    }
    
}
@media screen and (min-width:801px) and (max-width:1025px) {
    .main .content{
        background-position: 10% 65%;
        height: auto;
    }
    .main .policy,
    .main .detail{
        width: 50%;
    }
    .main .detail{
        height: max-content;
    }
    .main .content img{
        margin-top: 40%;
    }
    .main .policy .additor{
        width: 210%;
        height: auto;
        padding: 20px 15px 25px 15px;
    }
    .main .policy .additor .limit #limit_number{
        padding: 0;
    }
}
@media (min-height: 200px) {
    .main .content{
        height: max-content;
    }
    .main .detail{
        height: max-content;
    }
  }
  @media (max-height: 800px) {
    .main .policy .additor{
        padding: 40px;
    }
  }