/* for dynamic background */
#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #000;
    
}

/* main styling */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans Flex", sans-serif;
}

html, body{
    
    display: flex;
    justify-content: center;
    
    min-height: 100vh;
    scroll-behavior: smooth;
}

.main{
    width: min(500px,95vw);
    height: min(720px,95vh);
    
    padding: 1rem;
    margin: auto;
    border-radius: 14px;
    background: rgba(255,255,255,0.1); /* opacity for glassmorphism*/
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 10px rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    cursor: pointer;
    flex: 1;
}

.heading {
    font-weight: 600;
    font-size: 2.5rem;
    display: inline;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.form-div{
    flex: 1;
    width: 90%;
    max-width: 450px;
    margin: auto;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

#exchange-form{
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

label{
    font-size: 1.8rem;
    font-weight: 400;
    text-align: left;
    margin: 1rem 0;
}

select, input{
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
} 

option {
    background: rgba(0, 0, 0,0.8);
    color: #fff;
}

#output-amount{
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
    margin-bottom: 0.8rem;
}

button {
    padding: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

button:hover{
    transform: scale(1.02);
    background: rgba(255,255,255,0.4);
    color: azure;
}

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

#output-amount{
    color: rgba(255,255,255,0.4);
}

/*Responsiveness */
@media(max-width: 450px){
    .main{
        margin-top: 10rem !important;
        margin-bottom: 10rem !important;
    
    }

    .heading{
        font-size: 2rem;
    }

    

    label{
        font-size: 1.5rem;
        margin: 1rem 0;
    }
}

@media(max-width: 350px){
    .main{
        height: 100%;
        max-height: 800px;
        margin-top: 10rem !important;
        margin-bottom: 10rem !important;
    
    }
}

@media(max-width: 250px){
    .main{
        height: 100%;
        max-height: 820px;
        margin-top: 10rem !important;
        margin-bottom: 10rem !important;
    }
}