@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

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

body{
    background-color: rgb(195, 203, 255);
}

h1{
    height: 3rem;
    width: 100%;
    background-color: rgb(0, 4, 110);
    color: white;
    font-family: monospace;
    font-size: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card{
    height: 15rem;
    width: 25rem;
    /* background-color: rgb(0, 4, 86); */
    margin: auto;
    margin-top: 90px;
    /* border: 2px solid black; */
    box-shadow: 4px 4px 8px 8px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    background-color: rgb(212, 216, 255);
    /* transition: height 1s ease; */
   
}

h2{
    font-family: 'Helvetica', sans-serif;
    text-align: center;
    padding-top: 40px;
    font-size: 25px;
}

.textbox{
    text-align: start;
    width: 80%;
    height: 40px;
    margin-top: 30px;
    margin-left: 40px;
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 14px; 
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #333; 
    transition: box-shadow 0.3s ease;
    padding-left: 5px;
    /* display: flex; */
}

.textbox:focus{
    outline: none; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.gen{
    height: 50px;
    width: 150px;
    border-radius: 7px;
    border: none;
    /* margin-top: 8%; */
    margin-left: 10%;
    font-weight: 500;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    background-color: rgb(141, 164, 255);
    color: white; 
    background: linear-gradient(135deg, rgba(141, 164, 255, 1) 0%, rgba(94, 121, 255, 1) 100%); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease; 
}

.gen:hover{
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
}

.gen:active{
    transform: scale(0.98); 
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); 
}

.dwn{
    height: 50px;
    width: 150px;
    margin-left: 7px;
    border-radius: 7px;
    border: none;
    margin-top: 9%;
    margin-right: 10%;
    font-weight: 500;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    background-color: rgb(141, 164, 255);
    color: white; 
    background: linear-gradient(135deg, rgba(141, 164, 255, 1) 0%, rgba(94, 121, 255, 1) 100%); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease; 
    
}

.dwn:hover{
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
}

.dwn:active{
    transform: scale(0.98); 
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); 
}

#qrImg {
    display: none;
    margin: 20px auto;
    width: 150px;
    height: 150px;
}

@media (max-width: 1200px) {
    h1 {
        width: 100%;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        width: 100%;
        font-size: 25px;
    }

    .card {
        width: 80%;
        height: auto;
        padding: 20px;
    }

    .search{
        display: flex;
        justify-content: center; 
        margin-top: 20px;
    }
    .textbox {
        width: 85%;
        height: 50px;
        margin-right: 40px;
    }

    .btns{
        display: flex;
        justify-content: center; 
        align-items: center; 
        flex-wrap: wrap; 
        margin-top: 40px;
    }
    .gen, .dwn {
        width: 40%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
        padding: 10px;
    }

    .card {
        width: 90%;
        height: auto;
        padding: 10px;
        margin-left: 18px;
    }

    .search{
        display: flex;
        justify-content: center; 
        margin-top: 20px;
    }
    .textbox {
        width: 85%;
        height: 50px;
        margin-right: 35px;

    }

    .btns{
        display: flex;
        justify-content: center; 
        align-items: center; 
        flex-wrap: wrap; 
        margin-top: 20px;
    }

    .gen, .dwn {
        width: 45%;
        margin: 10px;
    }

    .dwn {
        margin-top: 2%;
    }
}