* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #333;
    /* font-family: 'Courier New', Courier, monospace; */
}

.mainframe {
    padding: 2rem;
    
    background-color: grey;
    width: 30rem;
    margin: auto auto;
    margin-top: 7rem;
    border-radius: 20px;
    position: relative;
}
.mainframe>h1{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.main-body {
    margin-top: 2rem;
}

.main-body>input {
    text-indent: 5px;
}

.currencyinput {
    width: 20rem;
    height: 1.9rem;
border-radius: 5px;
}


.currencyinput::placeholder {
    /* letter-spacing: 6px; */
    text-indent: 3.7px;
}

.currencyinputbut {
    height: 1.9rem;
    width: 2.2rem;
    background-color: rgb(226, 209, 209);
    border: 2px double black;
    border-radius: 5px;
}

.currencyinputbut:hover {
    background-color: rgb(36, 156, 36);

    color: white;
}

.clearbut {
    padding: 2px;
    height: 1.9rem;
    background-color: rgb(226, 209, 209);
    border: 2px double black;
    border-radius: 5px;
}

.clearbut:hover {
    background-color: rgb(185, 34, 34);

    color: white;
}

.fromto {
    margin-top: 2rem;
}

.fromto>select {
    width: 22.2rem;
    height: 1.7rem;
}

.result {
    margin-top: 3rem;
    justify-content: center;
    display: flex;
    
}
.tag{
    text-align: center;
    color: white;
}
.help>i:hover{
    background-color: rgb(212, 160, 160);
}
.help>i{
    background-color: white;
    border-radius: 50%;
    padding: 5px 8px;
    position: absolute;
    top: 1rem;
    left: 27.6rem;
}

.popinfo{
    background-color: rgb(78, 78, 78);
    color: white;
    padding: 2rem;
    width: 27rem;
    border-radius: 1rem;
    text-align: center;
    margin: auto auto;
    position: absolute;
    top: -5rem;
    left: 2rem;
    animation: akay 2s forwards;
}
.popinfobut{
    font-size: 1.4rem;
    margin-left: 22.5rem;
    margin-top: -1.5rem;
}
#from{
    border-radius: 5px;
}
#to{
    border-radius: 5px;
}
label{
    font-size: 1rem;
    font-weight: 900;
}
#resultee{
    background-color: white;
    border-radius: 5px;
    padding: 3px 10px;
    min-width: 10rem;
    height: 1.5rem;
    font-size: 1.2rem;
}
p>a{
    color: white;
}


/* ANIMATION */
@keyframes akay {
    from{
        position: absolute;
        transform: translateY(-20rem);
    }
    to{
        position: absolute;
        transform: translateY(2rem);
    }
}

/* MEDIA QUERIES */

@media screen and (max-width: 793px) {
    .mainframe {
        padding: 2rem;
    }
}

@media screen and (max-width: 548px) {
    .mainframe {
        width: 27rem;
    }

    .mainframe>h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .currencyinput {
        width: 17rem;
        height: 1.5rem;
    }

    .fromto>select {
        width: 20rem;
        height: 1.5rem;
    }

    .fromto {
        margin-top: 1.2rem;
    }

    .result {
        margin-top: 2rem;
    }
    .popinfo{
        width: 23rem;
    }
    .popinfobut{
        margin-left: 18.4rem;
    }
    .help>i{
        left: 24.5rem;        
    }
}

@media screen and (max-width:455px) {
    .mainframe {
        width: 24rem;
    }
    .clearbut{
        margin-top: 7px;
    }
    .popinfo{
        width: 21rem;
        left: 1.2rem;
    }
    .popinfobut{
        margin-left: 17rem;
    }
    .help>i{
        left: 21.7rem;        
    }
}
@media screen and (max-width:397px) {
    .mainframe {
        width: 21rem;
    }
    .fromto>select{
        width: 17rem;
    }
    .popinfo{
        width: 18rem;
        left: 1.2rem;
    }
    .popinfobut{
        margin-left: 14rem;
    }
    .help>i{
        left: 18.8rem;        
    }
}
@media screen and (max-width:349px) {
    .mainframe {
        width: 18rem;
    }
    .currencyinput{
        width: 15rem;
    }
    .fromto>select{
        width: 15rem;
    }
    .popinfo{
        width: 16rem;
        left: 1rem;
    }
    .popinfobut{
        margin-left: 12rem;
    }
    .help>i{
        left: 15.8rem;        
    }
}