*{
    margin:0;
    padding:0;
}

body{
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.light{
    background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("light.jpg");
}

.dark{
    background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("dark.jpg");
}

/*header*/

.header-container{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding:1rem 1.5rem;
}

#main-heading{
    font-family:Arial, Helvetica, sans-serif;
    position: absolute;
    left: 50%;
    color:rgb(255, 255, 1);
    letter-spacing: 0.1rem;
    transform: translateX(-50%);
    padding-top:0.5%;
    white-space: nowrap;
    font-size: clamp(1.2rem,4vw,1.8rem);
    pointer-events: none;
}

#settings-logo{
    border:1px solid transparent;
    color:white;
}

#settings-logo:hover{
    border:1px solid white;
    cursor: pointer;
}

.settings-section{
    display: flex;
    position: absolute;
    top:90%;
    background: rgba(0,0,0,0.65);
    border-radius: 8px;
    padding: 0.4rem;
    z-index: 10;
}

.nav-bar{
    display: flex;
    flex-direction: column;
}

.menu{
    background: rgba(255,255,255,0.9);
    border: 1px solid black;
    border-radius: 6px;
    padding: 4px 2px;
    font-weight: 500;
    cursor: pointer;
}

.menu:hover{
    background-color: pink;
}

/*main-section*/

.abt-section{
    text-align: center;
    display:flex;
    flex-direction: column;
    line-height: 1.2rem;
    margin-top:1%;
    width: 80%;
    max-width:550px;
    color:white;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding:0.5rem;
    backdrop-filter: blur(6px);
}

#abt-heading{
    color:bisque;
    text-align: center;
    margin-bottom: 0.2rem;
}

.about-wrapper{
    display: flex;
    justify-content: center; 
    align-items: center;     
}

.history-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-section{
    text-align: center;
    display:flex;
    flex-direction: column;
    line-height: 1.2rem;
    margin-top:1%;
    width: 80%;
    max-width:550px;
    color:white;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding:0.5rem;
    backdrop-filter: blur(6px);
}

.main-wrapper{
    margin-top:5rem;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.main-section{
    text-align: center;
    display:flex;
    flex-direction: column;
    line-height: 1.2rem;
    margin-top:1%;
    width: 80%;
    max-width:550px;
    color:white;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding:0.5rem;
    backdrop-filter: blur(6px);

}

.form-section{
    display: flex;
    justify-content: space-around;
    position: relative;
}

#exchange-logo{
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.85;
}

select {
    padding: 6px 6px;
    font-size: 0.95rem;
    border-radius: 6px;
}

.img-size{
    width: 80px;
    height: auto;
}

.from, .to {
    display: flex;
    flex-direction: column;  
    align-items: center;
    gap: 0.5rem;
}

.from select,.to select {
    min-width: 160px;
    text-align: center;
}

.from p, .to p {
    margin-bottom: 0.4rem;
}

#submit-section{
    margin:0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
    max-width: 320px;
}

#submit-section input{
    padding: 5px 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

#submit-section input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

#submit-btn{
    margin-top:0.5rem;
    padding:5px 6px;
    cursor:pointer;
    background-color: aquamarine;
}

#submit-btn:hover {
    transform: scale(1.02);
    transition: 0.2s ease;
}

.conversion-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
}

.conversion{
    text-align: center;
    display:flex;
    justify-content: space-around;
    line-height: 1.2rem;
    margin-top:1%;
    width: 80%;
    max-width:550px;
    color:white;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding:0.5rem;
    backdrop-filter: blur(6px);
}

.date-updation{
    text-align: center;
    color:white;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.exchangeRate, .convertedAmount{
    word-wrap: break-word;
    white-space: normal;
}







@media(max-width: 480px){
    #main-heading, #settings-logo{
        font-size: 1.4rem;
        margin-top: 1rem;
    }

    .form-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #exchange-logo {
        position: static;
        top:auto;
        left:auto;
        right: auto;
        bottom: auto;
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    #submit-btn{
        height:38px;
        font-size: 1rem;
    }

    .main-section {
        padding: 1rem;
    }

    .conversion{
        flex-direction: column;
        gap:0.6rem;
        text-align: center;
    }
}

@media (max-width: 320px){
    #main-heading{
        display: none;
    }
}

@media (max-width: 360px){
    .img-size{
        width: 55px;
    }
}


.hide{
    display: none;
}

