/* ===========================
   Percentage Calculator
   Modern Responsive UI
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f4f7fb;
    color:#222;
    line-height:1.6;
}

/* Header */

header{
    background:linear-gradient(135deg,#006699,#53EAFD); 
    color:#fff;
    padding:10px 10px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

header h1{
    font-size:32px;
    margin-bottom:10px;
    font-weight:500;
}

header p{
    font-size:16px;
    opacity:.95;
}

/* Container */

.container{
    width:95%;
    max-width:1200px;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

/* Cards */

.card{
    background:#fff;
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    border:1px solid #e7edf7;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 40px rgba(37,99,235,.18);
}

.card h2{
    color:#2563eb;
    font-size:24px;
    margin-bottom:25px;
    text-align:center;
}

/* Inputs */

input{
    width:100%;
    padding:15px;
    margin-bottom:18px;
    border:2px solid #dbe4f0;
    border-radius:10px;
    font-size:17px;
    outline:none;
    transition:.3s;
    background:#fff;
}

input:focus{
    border-color:#2563eb;
    box-shadow:0 0 8px rgba(37,99,235,.2);
}

/* Button */

button{
    width:100%;
    padding:15px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#1d4ed8;
    transform:scale(1.02);
}

button:active{
    transform:scale(.98);
}

/* Result */

.result{
    margin-top:20px;
    background:#eef5ff;
    border-left:5px solid #2563eb;
    padding:18px;
    border-radius:8px;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    color:#0f172a;
    min-height:65px;
    display:flex;
    justify-content:center;
    align-items:center;
    word-break:break-word;
}

/* Info Section */

.info{
    width:95%;
    max-width:1100px;
    margin:50px auto;
    background:#fff;
    padding:35px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.info h2{
    color:#2563eb;
    margin-bottom:20px;
}

.info p{
    margin-bottom:18px;
    color:#555;
    font-size:17px;
}

.info ul{
    padding-left:20px;
}

.info li{
    margin-bottom:10px;
}

/* Table */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:25px;
}

table th{
    background:#2563eb;
    color:#fff;
    padding:15px;
}

table td{
    padding:15px;
    border:1px solid #ddd;
    text-align:center;
}

/* Responsive */

@media(max-width:768px){

header{
    padding:40px 15px;
}

header h1{
    font-size:30px;
}

header p{
    font-size:16px;
}

.container{
    width:92%;
    gap:20px;
}

.card{
    padding:22px;
}

.card h2{
    font-size:22px;
}

input{
    padding:14px;
    font-size:16px;
}

button{
    padding:14px;
    font-size:17px;
}

.result{
    font-size:18px;
    min-height:60px;
}

.info{
    padding:25px;
}

}

@media(max-width:480px){

header h1{
    font-size:26px;
}

.card{
    padding:18px;
}

.card h2{
    font-size:20px;
}

button{
    font-size:16px;
}

.result{
    font-size:17px;
}

}