*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins,sans-serif;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    background:#F9F8F3;
    padding:20px;
}

.triangle-box{

    width:100%;
    max-width:420px;
    background:white;
    padding:30px;
    border-radius:20px;
    border:2px solid #DDE8B5;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

h2{
    text-align:center;
    margin-bottom:25px;
    color:#222;
}

input{
    width:100%;
    padding:15px;
    margin-bottom:18px;
    border:2px solid #DDE8B5;
    border-radius:10px;
    outline:none;
    font-size:16px;
}

input:focus{
    border-color:#92B83C;
}

button{

    width:100%;

    padding:14px;

    margin-top:10px;

    border:none;

    border-radius:10px;

    background:#92B83C;

    color:white;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:all .3s ease;
}

button:hover{

    background:#7BA02D;

    transform:translateY(-4px);

    box-shadow:0 10px 20px rgba(146,184,60,.35);
}

button:active{

    transform:translateY(2px);

    box-shadow:none;
}
#resetBtn{
    background:#222;
}

#resetBtn:hover{
    background:#444;
}

#result{
    margin-top:20px;
    padding:18px;
    border:2px solid #DDE8B5;
    border-radius:10px;
    background:#F3FAD8;
    text-align:center;
    font-size:18px;
    font-weight:bold;
   color:#222;
}
@media (max-width:768px){

    .triangle-box{

        max-width:90%;

        padding:25px;
    }

    h2{

        font-size:26px;
    }

    input{

        font-size:16px;
    }

    button{

        font-size:17px;
    }

}