*, *::before , *::after{
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root{
    --Green-900: hsl(183, 100%, 15%);
    --Grey-500: hsl(186, 14%, 43%);
    --Grey400: hsl(184, 14%, 56%);
    --Grey200: hsl(185, 41%, 84%);
    --Grey50: hsl(189, 47%, 97%);
    --White: hsl(0, 100%, 100%);
    --Green400: hsl(172, 67%, 45%);
}

body{
    font-family: "Space mono", monospace;
    position: relative;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--Grey200);
    min-width: 1440px;
}
.container{
    padding-top: 60px;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: var(--White);
    min-width: 900px;
    height: 60vh;
    border-radius: 10px;
}
.input-container {
    margin-top: 5px;
    position: relative;
    display: inline-block; 
}

.dollar-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; /* Adjust based on your icon size */
    height: 16px;
    pointer-events: none; /* Prevents interaction */
}

.Amount-input { 
    text-align: right;
    font-family: "Space mono", monospace;
    font-size: 24px;
    width: 350px;
    padding-left: 2px;
    padding-right: 2px;
    cursor: pointer;
    border-radius: 10px;
    background: var(--Grey50);
    color: var(--Green-900);
    border: 1px solid var(--White);
  }
  .Amount-input:hover{
    border: 1px solid var(--Green400);
  }
  .bill-block{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

.grid-block{
    display: grid;
    grid-template-columns: repeat(3, 0.6fr);
    gap: 10px;
    flex: 1;
    margin-top: 10px;

}

#tip-amount{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 100px;
}
#total-amount{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 100px;
}
.bill{
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    color: var(--Grey-500);
}
.tip-header{
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--Grey-500);
}
.options{
    font-family: "Space mono", monospace;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    width: 95px;
    height: 35px;
    color: var(--Grey50);
    background: var(--Green-900);
    border: 1px solid var(--Green-900);
    border-radius: 5px;
    cursor: pointer;
}
.options:active{
    background: var(--Green400);
    border: 1px solid var(--Green400);
}
.Custom{
    font-family: "Space mono", monospace;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: var(--Grey50);
    color: var(--Grey-500);
    border: 1px solid var(--Grey50);
    width: 95px;
    height: 35px;
    border-radius: 5px;
}

h2{
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    color: var(--Grey-500);
}
.input-last{
    margin-top: 40px;
}
.payment-block{
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 80%;
width: 350px;
    background-color: var(--Green-900);
    border-radius: 10px;
}

.per-person{
font-size: 14px;
font-weight: 600;
font-style: normal;
max-width: 100px;
color: var(--Grey50);
}
.total-per-person{
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    max-width: 100px;
    color: var(--Grey50);

}
span{
    font-size: 14px;
    font-weight: 400;
    color: var(--Grey-500);
}
.indicator{
    font-size: 32px;
font-weight: 700;
color: var(--Green400);
}
.reset{
    margin-top: 70px;
    font-family: "Space mono", monospace;
    font-size: 26px;
    font-weight: 700;
    font-style: normal;
    width: 250px;
    height: 40px;
    text-align: center;
    background: var(--Grey-500);
    border: 1px solid var(--Grey-500);
    color: var(--Grey400);
    cursor: pointer;
    border-radius: 5px;
}
.reset:hover{
    color: var(--Green-900);
    background: var(--Green400);
    border: 1px solid var(--Green400);
}

@media (max-width: 600px) 
{
    body{
        max-width: 600px;
        display: flex;
    }
    .container{
        display: flex;
        flex-direction: column;
        min-width: 350px;
        height: auto;
        gap: 30px;
    }
    .grid-block{
        display: grid;
        grid-template-columns: repeat(2, 0.6fr);
        gap: 10px;
        align-items: center;
        flex: 1;
        margin-top: 10px;
    
    }
    .payment-block{
        margin-bottom: 30px;
    }
    .per-person{
        margin-top: 10px;
    }
    .total-per-person{
        margin-top: 10px;
    }
    .reset{
        margin-bottom: 20px;
    }
}