@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

    *{ 
        margin: 0;
        padding:0;
        box-sizing: border-box;
    }

    body{
         font-family: "Poppins", sans-serif;
        height: 100vh;
        width: 100vw;
    }
    .body{
        background-color: rgb(148, 69, 12);
        height: 100%;
        width: 100%;
        display: flex;
         flex-direction: row;
       justify-content: center;
       align-items: center;
    }
    .main{
        box-shadow: 2px 2px 14px black;
     border: none;
     border-radius: 30px;
        min-height:48vh;
        min-width:70vw;

    background-color: rgb(254, 232, 202);
    display: flex;
    flex-direction: column;
align-items: center;
overflow: hidden;


    }
    .heading{
        flex-shrink: 2;
        display: flex;
        justify-content: center;
        align-items: center; 
        width: 100%; 
        flex:1;  
    background-color:  rgb(255, 199, 135);
        
padding: 0.7rem;
margin: 0.2rem;
margin-top: 0rem;
padding-top: 0.3rem; }
    h1{
    
font-size: 3rem;
    }
    .input-amount{
        flex-shrink: 2;
   /* background-color: aqua; */
         flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        width: 100%;
    }
.enter-amount{
  outline: none;
    width: 25rem;
    height: 4rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.171);
    margin: 3px 8px;
    padding-left: 18px;
    font-size: 28px;
    transition: transform 0.3s ease;
}
.enter-amount:hover{
    border:1px solid rgb(255, 199, 135);
    transform: scale(1.02);
}
.tofrom{
   height: 6.5rem;
    flex-shrink: 2;
    /* flex: 3;
    background-color: aqua; */
    width: 100%;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:1rem;
    margin-bottom: 1.6rem;
    
}
#fromc,#toc{
    border:1px solid rgba(0, 0, 0, 0.171);
    background-color: rgb(252, 239, 220);
    border-radius: 4px;
 padding: 4px;
 margin: 2px;
 cursor: pointer;
 font-size: 30px;
    text-align: center;
outline: none;
}
.fro,.too{
display: flex;
flex-direction: column;
}
#fromcl,#tocl{
    font-size: 22px;
}

.data{
    flex: 2;
    /* background-color: aqua; */
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 40px;
     background-color: rgba(245, 183, 113, 0.174); 
}
#swap{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
position: relative;
top:1rem; padding: 4px;
}

.buttons{
    flex-shrink: 3;
    flex: 2;
/* background-color: aquamarine; */
   
     width: 100%;
      margin: 1rem;
      margin-top: 1.4rem;
      display: flex;
      justify-content: center;
      align-items: center;
     
}
.rate{
    font-size: 30px;
}
#swap:hover{
background-color: rgba(255, 199, 135, 0.406);
}
#get-rate{
    padding: 0.5rem 3.5rem;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.29);
    cursor: pointer;
    font-size: 30px;
    background-color: rgb(250, 230, 125);
}
#get-rate:hover{
     background-color: rgb(253, 220, 55);
}
.from-currency,.to-currency{
    background-color: rgba(65, 63, 63, 0.893);
    color: white;
    font-size: 12px;
    padding:none;
}