@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Yeseva+One&display=swap');
:root {
    --backgroud-color: rgb(10, 57, 129);   /* #0a3981 */
    --primary-color: rgb(31, 80, 154); /* #1f509a */
    --text-color:rgb(212, 235, 248); /*  #d4ebf8*/
    --additional-color: rgb(227, 142, 73); /*#e38e49  */
}
* {
    box-sizing: border-box;
    /* outline: solid 1px green; */   
}
body {
    background-color: var(--backgroud-color);
    font-family: "Josefin Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0px;
    overflow-x: hidden;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 95vh; 
}
main {
    flex-grow: 1; 
    text-align: center;
}
/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    width: 50px; 
}

.language-selector {
    position: relative;
}
.language-button {
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--additional-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: "Josefin Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.language-button .arrow {
    margin-left: 8px;
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 0px;
    right: 0;
    background-color: var(--additional-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 100;
}
.language-dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--backgroud-color);
    font-size: 16px;
    font-weight: normal;
    transition: background-color 0.3s;
}
.language-dropdown a:hover {
    background-color: var(--backgroud-color);
    color: var(--additional-color);
}
.language-selector:hover .language-dropdown {
    display: block;
}
h1 {
    color: var(--additional-color);
    font-size: 2rem;
}
p {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
}
.btn {
    color: var(--backgroud-color);
    background: var(--additional-color);
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    padding: 5px 12px;
    font-family: "Josefin Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.money-img {
    width: 150px;
    margin-top: 8rem;
}
.currency {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.currency select {
    padding: 10px 25px 10px 10px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    background: var(--additional-color);
    color: var(--backgroud-color);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%20000002%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-position: right 10px top 50%, 0, 0;
    background-size: 16px auto, 100%;
    background-repeat: no-repeat;
    font-family: "Josefin Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.currency input {
    border: 0;
    background-color: var(--backgroud-color);
    font-size: 30px;
    text-align: right;
    color: var(--additional-color);
    font-family: "Josefin Sans", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.swap-rate-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rate {
    color: var(--additional-color);
    font-size: 20px;
    padding: 0 10px;
}
select:focus, 
input:focus, 
button:focus {
    outline: 0;
}
/* Footer Styling */
footer {
    background-color: var(--backgroud-color); 
    padding: 10px;
    text-align: center;
}
.footer-content {
    max-width: 600px; /* Restrict content width for better readability */
    margin: 0 auto;
    line-height: 1.6;
}
footer p {
    margin: 0;
    color: var(--text-color); 
    font-size: 22px;
}
.yellow {
    color: var(--additional-color);
}
footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.fa-solid.fa-heart {
    color: var(--additional-color);
}
/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .language-button {
        font-size: 16px;
    }
    .language-dropdown {
        right: 1px; /* Adjust dropdown position */
        top: 20px;
    }
    footer p {
        font-size: 14px; /* Slightly smaller text on smaller screens */
    }
}
@media(max-width: 600px) {
    header {
        padding: 10px 20px;
    }
    main {
        padding: 10px;
    }
    h1 {
        font-size: 1.4rem;
    }
    p {
        font-size: 0.8rem;
    }
    .currency select {
        padding: 10px 1px 10px 10px;
        font-size: 16px;
        background-size: 12px auto, 100%;
        background-repeat: no-repeat;
    }
    .currency input {
        width: 140px;
    }
}
@media(max-width: 400px) {
    .money-img {
        margin-top: 0;
    }
    .currency select {
        padding: 10px 0 10px 4px;
        font-size: 14px;
    }
    .currency input {
        width: 90px;
        font-size: 20px;
    }
}