* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    min-height: 100vh;
    margin: 1rem;
}

h1 {
    text-align: center;
    padding-top: 2rem;
}

.card-container {
    max-width: 700px;
    width: 100%;
    background-color: teal;
    margin-inline: auto;
    margin-top: 5rem;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.first-section {
    width: 55%;
    padding: 1rem 10px;
}

h2 {
    margin-block: 10px;
}

.amount {
    width: 100%;
    height: 40px;
    border: 1px solid black;
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 3px;
}

.tip-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tip-card {
    height: 50px;
    width: 100px;
    background-color: cadetblue;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.tip-card:hover {
    background-color: rgb(0, 132, 255);
}

.tip-card-selected {
    background-color: rgb(0, 89, 255);
}

.custom-tip,
.input-section {
    width: 100%;
    height: 40px;
    margin-block: 10px;
    border: 1px solid black;
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 4px;
    outline: none;
}

.btn {
    display: flex;
}

.generate-bill {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: cadetblue;
    border-radius: 5px;
    font-size: 1.05rem;
    margin-inline: auto;
    cursor: pointer;
    transition: 0.3s;
}

.generate-bill:hover {
    background-color: rgb(0, 132, 255);
}

.second-section {
    width: 45%;
    padding: 1rem;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6rem;
    border-left: 2px solid black;
}

.tip-amount,
.total,
.each-person {
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.reset {
    padding: 10px 20px;
    border: none;
    font-size: 1.05rem;
    border-radius: 5px;
    background-color: rgb(255, 102, 102);
    cursor: pointer;
    transition: 0.3s;
}

.reset:hover {
    background-color: red;
}
