* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 1em;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: black;
    color: cyan;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
  }

span.material-symbols-outlined.logo {
    font-size: 7em;
    transition: transform 0.5s linear;
    
}

span.material-symbols-outlined.logo.rotate {
    transform: rotate(360deg);
}

h1 {
    border: 1px solid cyan;
    padding: 0.4em 0.8em;
    border-radius: 3px 10px 3px;
}

.swap-wrapper  {
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    border: 2px solid cyan;
    padding: 0.8em 1.6em;
    cursor: pointer;
    color: cyan;
    font-weight: 650;
    font-family: inherit;
    border-radius: 2px 5px 2px;
    background-color: black;
}

button:focus {
    outline: none;
}

button:hover {
    font-weight: 700;
    box-shadow: 1px 1px 1px;
}

button:active {
    transform: scale(0.97);
}

.currency {
    display: flex;
    flex-direction: row-reverse;
    padding: 0.6em;
    position: relative;
}

.currency select {
    height: 50px;
    border: 1px solid cyan;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: aqua;
    width: 60px; 
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    transition: box-shadow 0.5s ;
}

.currency select.glow, .currency select:hover {
    box-shadow: 0 0 10px white;
}

.currency input {
    text-align: center;
    height: 50px;
    width: 200px;
    color: black;
    font-size: 1.6em;
    padding-right: 10px;
    border: 1px solid cyan;
    text-align: right;
}

.currency input:focus {
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.rate {
    margin-top: 25px;
    padding: 5px 15px;
    border-radius: 3px 10px 3px;
    border: 1px solid cyan;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy {
    cursor: pointer;
    position: absolute;
    top: 20px;
    color: rgb(0, 0, 0);
    left: 20px;
} 

.copy:active {
    transform: scale(0.97);
} 


.copy:hover, .rate:hover {
    box-shadow: 0 0 10px cyan;
}

@media (max-width: 500px) {
    .currency input {
        width: 150px;
    }
}

.rate-p {
    text-align: center;
    font-weight: 600;
}