*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
background:#f4f7fb;
color:#222;
}

header{
background:linear-gradient(135deg,#006699,#53EAFD); 
padding:20px;
text-align:center;
color:#fff;
}

header h1{
font-size:34px;
margin-bottom:10px;
}

header p{
font-size:17px;
opacity:.9;
}

.container{
max-width:900px;
margin:40px auto;
background:#fff;
padding:30px;
border-radius:12px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.input-group{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
margin-bottom:25px;
}

.input-box{
display:flex;
flex-direction:column;
}

label{
font-weight:bold;
margin-bottom:8px;
}

input{
padding:15px;
font-size:18px;
border:2px solid #ddd;
border-radius:8px;
outline:none;
transition:.3s;
}

input:focus{
border-color:#2563eb;
}

.buttons{
display:flex;
gap:15px;
justify-content:center;
margin-top:20px;
}

button{
padding:15px 30px;
border:none;
border-radius:8px;
font-size:17px;
cursor:pointer;
font-weight:bold;
transition:.3s;
}

.calculate{
background:#2563eb;
color:#fff;
}

.calculate:hover{
background:#1d4ed8;
}

.reset{
background:#ef4444;
color:#fff;
}

.reset:hover{
background:#dc2626;
}

.results{
margin-top:40px;
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.card{
background:#2563eb;
color:#fff;
padding:15px;
border-radius:10px;
text-align:center;
}

.card h3{
font-size:20px;
margin-bottom:10px;
}

.card span{
font-size:22px;
font-weight:bold;
display:block;
}

.content{
margin-top:60px;
line-height:1.8;
}

.content h2{
margin:25px 0 15px;
color:#2563eb;
}

.content p{
margin-bottom:15px;
}


@media(max-width:768px){

.input-group{
grid-template-columns:1fr;
}

.results{
grid-template-columns:1fr;
}

header h1{
font-size:28px;
}

}