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

input[type="number"] {
    -moz-appearance: textfield;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f4f4f9 0%, #e8f4fd 100%);
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
}

h1 {
    text-align: center;
    margin: 30px;
    color: #2c3e50;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

#exchangeContainer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
    width: 80%;
}

.exchange {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    height: 240px;
    justify-content: space-between;
    text-align: center;
    background-color: #fff;
    width: 70%;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    user-select: none;
}

input[type="number"] {
    padding: 10px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

button#calculateBtn,
#user button {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    font-size: 16px;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: end;
}

button#calculateBtn {
    align-self: center;
}

button#calculateBtn:hover {
    background-color: #2980b9;
}

#result {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    grid-column: 1 / -1;
}

.updown {
    color: black;
    font-size: 5em;
    text-align: center;
    align-self: start;
}

#final {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
}

#user,
#saving {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#user button {
    background-color: #27ae60;
}

.rate,
.comission {
    border: 2px solid #f6f6f6;
    padding: 10px;
    box-sizing: border-box;
    transition: width 0.3s;
    background-color: white;
    border-radius: 4px;
    height: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: bold;
}

th {
    background-color: #3498db;
    color: #fff;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

tbody tr:last-child td {
    border-bottom: none;
}

#favicon-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#favicon-icon:hover {
    transform: scale(1.05);
}

@media screen and (max-height: 1300px) and (max-width: 800px) {
    .exchange {
        height: 200px;
        margin-bottom: 15px;
    }

    #favicon-icon {
        width: 40px;
    }

    #exchangeContainer {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 385px) {
    #favicon-icon {
        right: 5px;
    }
}