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

html{
    font-family: sans-serif;
}

.background{
    background-image: url(home.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    align-content: center;
}

.container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-left: 2rem;
}

@keyframes background-color{
    0% { background-color: red;}
    10%{ background-color: yellow;}
    20%{background-color: green;}
    30%{background-color: blue;}
    40%{background-color: darkmagenta;}
    50% { background-color: rgb(9, 245, 194);}
    60%{ background-color: rgb(253, 1, 148);}
    70%{background-color: rgb(3, 49, 7);}
    80%{background-color: rgb(229, 255, 0);}
    90%{background-color: rgb(21, 161, 161);}
    100%{background-color: rgb(145, 81, 21);}
}

.box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height:20rem;
    width: 40%;
    background-color: rgb(22, 19, 68);
    border-radius: 2rem;
    gap: 20px;
    box-shadow: 0 0 1rem white;
}

.main{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main input {
    width:40%;
    padding: 4px;
}

.box button{
    padding:  0.5rem 2.5rem 0.5rem 2.5rem ;
    background-color: rgb(240, 13, 13);
    border: none;
    border-radius: 5px;
    color: white;
}

.box button:hover{
    opacity: 0.9;
    animation: background-color 5s infinite;
}

.box button:active{
background-color: rgb(18, 104, 18);
}


h1{
    font-size: 5rem;
    line-height: 4rem;
    text-shadow: 3px 2px 4px bisque;
}
h2{
    font-size: 3rem;
    margin-top: 1rem;
    color: aliceblue;
    text-shadow: 3px 2px 4px rgb(0, 0, 0);
}

h1,h2{
    margin-left: 1.5rem;
}

.result{
    color: white;
    font-size: 2rem;
    text-align: center;
}

@media (max-width : 500px){
    .container{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -2rem;
    }
    .box{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 60%;
        text-align: center;
    }
    .main input{
        width:10rem;
    }
    .main button{
        padding:  0.5rem 1.5rem 0.5rem 1.5rem ;
    }
    .main{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    h1{
        font-size: 4rem;
    }
    h2{
        font-size: 2.5rem;
    }
}