@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');

*, *::before, *::after {


	/* use these to center an item */
	/* height: 100vh; */
	/* display: grid; */
	/* place-items: center; */
    /* border: 1px solid black; */

	margin: 0;
	padding: 0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
}

body {
    font-family: Space Mono;
    font-weight: 700;
    background-color: #C5E4E7;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

img {
	max-width: 100%
}

.title {
    margin-bottom: 1rem;
    letter-spacing: 0.5rem;
    align-self: center;
}

.main {
    color: #60706F;
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
}

.bill, .num-people {
    display: flex;
    flex-direction: column;
}

input {
    background-color: #F3F8FB;
    font-family: Space Mono;
    text-align: right;
    border: none;
    border-radius: 5px;
}

.input-bill, .input-num-people {
    color: #003D3D;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
}

input:focus {
    outline-color: hsl(172, 67%, 45%);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-bill {
    background-image: url('/images/icon-dollar.svg');
    background-position: 10px 10px;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

.tip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

.tip button, button {
    border: none;
    border-radius: 5px;
    font-family: Space Mono;
    color: white;
    background-color: #00464A;
    padding: 0.5rem 0;
    transition: 0.5s;
}

.tip * {
    min-width: 5rem;
}

.tip button:hover {
    cursor: pointer;
    color: #00464A;
    background-color: hsl(172, 67%, 45%);
}

.tip-custom {
    padding: 0 1rem;
}

.input-num-people {
    background-image: url('/images/icon-person.svg');
    background-position: 10px 10px;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

.result-section {
    color: white;
    background-color: #00464A;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.subtitle {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

p {
    font-size: 0.8rem;
    color: #60706F;
}

.result, .total {
    color: hsl(172, 67%, 45%);
    font-size: 1.5rem;
}

.btn-reset {
    margin-top: auto;
    color: #00464A;
    background-color: hsl(172, 67%, 45%);
    transition: 0.5s;
}

.btn-reset:hover {
    cursor: pointer;
    background-color: hsl(172, 67%, 70%);
}

@media (min-width: 600px) {
    * {
        /* border: 1px solid black; */
    }

    body {
        justify-content: center;
    }
    
    .title {
        margin-bottom: 5rem;
    }

    .main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 2rem 0 2rem;
        border-radius: 20px;
    }

    .input-section {
        margin: 0 1rem 0 0;
    }

    .result-section{
        margin: 0 0 0 1rem;
    }

}