/* Global styles for elements in the webpage */
*{
    margin : 0;
    padding:0;
    box-sizing: border-box;
}
/* Styling  webpage body */
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height:100vh;
    background-color: rgb(125, 137, 148);
}
/* Styles of the webpage main heading */
h1{
    color:rgb(32, 46, 46);
    font-size: 3rem;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* transforming  response child type api to upper case  */
.type {
    text-transform: uppercase;
}
/* Styling for the content main container  */
.main-container{
    display: flex;
    height:100%;
    flex-direction: column;
    padding-top: 2rem;
    width:60%;
    text-align: center;
    gap: 1.5rem;

}
/*  main display container  styling*/
.display-container{
    background-color: rgb(201, 192, 192);
    border-radius: 10px;
    border-bottom-left-radius: 220px;
    color: rgb(13, 11, 11);
    border: 1px solid rgb(80, 77, 77);
    box-shadow: 0px 4px 7px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 4px 7px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 4px 7px 0px rgba(0,0,0,0.75);
    height:60vh;
    padding:1rem;
}
/* main display container child*/
.display-container > .display {
color:black;
font-family:'Times New Roman', Times, serif;}
.display-child{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    min-height: 5rem;
    width:100%;
    margin: 5px;
    padding: 1rem;
    font-size: 2rem;
    border-radius: 10px;
    color: rgb(237, 211, 211);
    background-color: rgb(26, 29, 29);
}
/* buttons styling  */
button {
    cursor: pointer;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: larger;
    background:rgb(217, 217, 213);
color:rgb(61, 75, 75);
font-family:Verdana, Geneva, Tahoma, sans-serif;
}
button:hover{
    background-color: rgb(146, 146, 145);

}
.error{
    color:red;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
}
/* responsiveness for screens with maximum width of 1200px */
@media screen and (max-width:1200px){
    .display-container{
        height: 60vh;
    }
}

/* responsiveness for screens with maximum width of 900px */
@media screen and (max-width:900px){
    .main-container{
        width: 90%;
    }
    .display-container{
        width:100%;
        height: 60vh;
        border-bottom-left-radius: 200px;

    }
    .display{
        height: 5rem;
        width:100%;
        border-radius: 10px;
 }
 .display-child{
    font-size:1.2rem;
 }
}

/* responsiveness for screens with maximum width of 500px */
@media screen and (max-width:500px){
    .main-container{
        width: 90%;
    }
    h1{
        color:rgb(32, 46, 46);
        font-size: 2rem;
    }
    .display-container{
        border: 1px solid rgb(80, 77, 77);
        width:100%;
        height:60vh;
        padding:2rem;
        border-bottom-left-radius: 180px;

    }
   
.display{
        height: 5rem;
        width:100%;
        border-radius: 10px;
 }
 .display-child{
    font-size:1.2rem;
 }

}