@font-face{
    font-family: 'GoogleSansCode';
    src: url("./fonts/GoogleSansCode.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}
body{
    font-family: "GoogleSansCode", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7fafc;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: #353535;
}


h1{
    color: #fff;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2{
    color: #5A537B;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p{
    color: #353535;
    font-size: 1rem;
    line-height: 1.5;
}

.input{
    background-color: #6943FF;
    position: relative;
    text-align: center;
    padding: 3rem 2rem; 
    width: 100%;
    height: 400px;   
}

#number{
    display: block;
    margin: 0 auto;
    width: 117px;
    height: 83px;
    border: 1px solid #B295FF;
    border-radius: 4px;
    padding: 3px;
    font-size: 60px;
    background-color: #6943FF;
    color: #fff;
    text-align: center;
    font-weight: bolder;
    outline: none;
    transition: all 0.3s ease;
}

#number:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}



.unit-selector {
    padding: 12px 16px;
    border: 1px solid #B295FF;
    border-radius: 4px;
    background-color: #fff;
    color: #3D3D3D;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 120px;
    margin-bottom: 2rem;
}

.unit-selector:focus {
    border-color: #6943FF;
    box-shadow: 0 0 0 3px rgba(105, 67, 255, 0.2);
}

.conversion-arrow {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
button{
    display: block;
    margin: 26px auto; 
    height: 42px;
    min-width: 117px;
    font-family: "Google Sans Code",  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fff;
    color: #3D3D3D;
    padding: 2px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

button:hover{
    background-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conversion-sections{
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

.conversion-card{
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem; 
    margin: 0 auto 1.5rem auto;
    border: 1px solid #fff;
    text-align: center;
    max-width: 500px;
    justify-content: center;

}

@media (max-width: 640px) {
    .conversion-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
    }
    
    #number {
        width: 100px;
        height: 60px;
        font-size: 36px;
    }
}