@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

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

/* index */

.index-body {
    text-align: center;
    padding: 105px 35px;
    background-color: #181f2a;
    font-family: 'Open Sans';
}

.index-h2 {
    color:#fff;
    font-size: 22px;
    font-weight: 700;
    margin-top: 50px;
}

.index-p {
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
}

img {
    width: 60vw;
}

.start-btn {
    padding: 10px 15px;
    margin-top: 35px;
    font-size: 18px;
    font-weight: 700;
    background-color: #2b2bffd8;
    color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px #fff;
    cursor: pointer;
}

/* Converter */

.converter-body {
    padding: 20px 25px;
    background-color: #181f2a;
    font-family: 'Open Sans';
}

header {
    margin-top: 10px;
}

header a {
    text-decoration: none;
    color: #fff;
}

.header-icon {
    float: left;
}

.converter-p {
    color: #fff;
    margin-top: 50px;
    font-weight: 400;
    font-size: 16px;
}

.currency-container {
    margin-top: 20px;
}

.currency {
    padding: 15px 0;
}

select {
    padding: 10px;
    border: 1px solid #3e4c59;
    border-radius: 5px;
    background: #3e4c59;
    color: #fff;
}

input {
    padding: 10px;
    text-align: right;
    border: 1px solid #3e4c59;
    border-radius: 5px;
    background: #3e4c59;
    color: #fff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swap-rate-container {
    display: flex;
    justify-content: space-between;
} 

.rate {
    color: #fff;
    font-size: 13px;
    padding-right: 92px;
}

.swap-btn {
    padding: 5px;
    border-radius: 6px;
    border: none;
    border-radius: 5px;
    background: #2b2bffd8;
    color: #fff;
    cursor: pointer;
}

.reset-btn {
    padding: 6px 15px;
    border-radius: 6px;
    border: none;
    border-radius: 5px;
    background: #2b2bffd8;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    margin-top: 10px;
}

select:focus,
input:focus,
button:focus {
    outline: 0;
}


@media screen and (min-width: 1000px) {
    /* index*/
    .index-body {
        padding: 100px 25px 0;
    }

    img {
        width: 40vw;
    }

    .index-h2 {
        font-size: 25px;
    }

    .index-p {
        font-size: 18px;
        padding: 0 290px;
        line-height: 28px;
    }

    .start-btn {
        width: 18%;
        font-size: 20px;
        padding: 12px 15px;
    }

    /* converter */
    .converter-body {
        text-align: center;
    }

    header {
        font-size: 24px;
    }

    .converter-p {
        font-size: 18px;
    }

    .swap-rate-container {
        display: flex;
        justify-content: center;
        padding-left: 35px;
    }

    .rate {
        padding-left: 29px;
        font-size: 15px;
    }

    .reset-btn {
        width: 14%;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 320px) {
    /* converter */
    input {
       width:60%;
    }

    .rate {
       padding-right: 30px;
    }
}

@media screen and (width: 768px) {
    .rate{
        padding-right: 450px;
    }
}

@media screen and (width: 540px) {
    .rate{
        padding-right: 220px;
    }
}

@media screen and (width: 375px) {
    .rate{
        padding-right: 60px;
    }
}

@media screen and (width: 360px) {
    .rate{
        padding-right: 45px;
    }
}

@media screen and (width: 280px) {
    .rate{
        padding-right: 15px;
    }
}