*, *::after, *::before{
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header, main {
    margin:0 auto;
    max-width: 900px;
}

.input-container {
    position: relative;
}

.input-container label {
    position: absolute;
    top:-11px;
    padding: 0 5px;
    left: 25px;
    font-size: 12px;
    background-color: #ffffff;
}

.symbol {
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 10px;
    font-weight: 600;
    transform: translateY(-50%);
}

#exchange-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position:relative;
    padding:10px;
    margin:10px;
    border-radius: 10px;
    border: 1px solid #c3c3c3;
}
#exchange-form > div {
    width: 100%;
    margin-bottom: 20px;
}

#exchange-form h1 {
    flex-basis: 100%; 
    font-size: 24px;
    line-height: 1.2;   
    margin-top: 0;
}

#exchange-form button {
    font-size: 18px;
    background-color: #c2c2c2;
    border:none;
    padding:8px 20px;
    border-radius: 20px;
}

.form-group {
    flex-basis: 100%;
}

.result-container {
    flex-direction: column;    
}

.currency-list {
    display: flex;
    flex-wrap: wrap;
}

.currency-list li {
    width:50%;
}

.currency-code-list {
    font-size:14px;
    width: 100%;
    height: 27px;
    text-align: right;
    border:none;
    margin-bottom:10px;
}

.conversion-result p {
    font-size: 18px;
    padding-left: 8px;
    margin: 5px 0;
}

.sync-time {
    font-size: 12px;
    line-height: 1.2;
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.number-input {
    width: 100%;
    padding: 5px 20px 5px;
    font-size:16px;
    height: 35px;
    border-radius: 10px;
}

.equivalent-sign {
    display: flex;
    flex-direction: row;
    justify-content:center;
    width: 100%;
    margin-top: 10px;
}

.equivalent-sign > span {
    display: block;
    border-radius: 20px;
    border: 1px solid #b9b9b9;
    cursor: pointer;
    padding: 3px 9px;
}

.currency-list-container {
    margin: 10px; 
    padding: 10px;
    border-radius: 10px;
}

.currency-list-container h2 {
    margin-top: 0;
}

.currency-list-container ul {
    list-style: none;
    padding-left: 0;
}

.currency-symbol {
  unicode-bidi: isolate;
}

@media (min-width: 700px)  {
    #exchange-form > div {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
    }
    .equivalent-sign {
        width: 100px;
        margin-top:0;
    }
}

@media (min-width: 500px)  { 
    .result-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
    }
}