/* # Front-end Style Guide

## Layout

The designs were created to the following widths:

- Mobile: 375px
- Desktop: 1440px

## Colors

### Primary

- Strong cyan: hsl(172, 67%, 45%)

### Neutral

- Very dark cyan: hsl(183, 100%, 15%)
- Dark grayish cyan: hsl(186, 14%, 43%)
- Dark grayish cyan: hsl(184, 14%, 56%)
- Light grayish cyan: hsl(185, 41%, 84%)
- Light grayish cyan: hsl(189, 41%, 97%)
- White: hsl(0, 0%, 100%)

## Typography

### Body Copy

- Font size (form inputs): 24px

### Font

- Family: [Space Mono](https://fonts.google.com/specimen/Space+Mono)
- Weights: 400, 500, 700 */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    --very-dark-cyan: hsl(183, 100%, 15%);
    --dark-grayish-cyan-1:  hsl(186, 14%, 43%);
    --dark-grayish-cyan-2:  hsl(184, 14%, 56%);
    --light-grayish-cyan-1: hsl(185, 41%, 84%);
    --light-grayish-cyan-2: hsl(189, 41%, 97%);
    --white: hsl(0, 0%, 100%);
}


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

body {  
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    background: hsl(185, 41%, 84%);
    height: 100vh;
}

h1 {
    margin-top: 100px;
    text-align: center;
    letter-spacing: 5px;
    color: var(--dark-grayish-cyan-1);
}

main {
    max-width: 1000px;
    height: auto;
    background: hsl(0, 0%, 100%);
    overflow: hidden;
    border-radius: 15px;
    margin: 50px auto;
    padding: 20px;
    display: flex;
}

.calculator-section {
    flex: 1;
    padding: 20px;
}

.bill-part, .tip-part {
    padding-bottom: 30px;
}

.heading {
    letter-spacing: 1px;
    color: var(--dark-grayish-cyan-1);
    font-weight: 700;
}

.input-field {
    display: block;
    width: 100%;
    text-align: right;
    margin-top: 5px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 5px;
}

input {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 8px;
}

input[type=number]{
    outline: none;
    border: none;
    background: hsl(189, 41%, 97%);
    font-weight: 700;
    color: var(--very-dark-cyan);
    text-align: right;
}

input[type=number]:focus,
input[type=number]:hover
{
    border: 3px solid hsl(184, 69%, 78%);
}



.buttons input {
    min-width: 100%;
}

.btn-dark{
    background: var(--very-dark-cyan);
    color: var(--light-grayish-cyan-2);
    font-weight: 700; 
}

.btn-dark:hover{
    color: var(--very-dark-cyan);
    background: hsl(184, 69%, 78%);
}

/* .custom {
    background: hsl(189, 41%, 97%);
} */

.danger {
    border: 2px solid rgba(245, 48, 48, 0.836) !important;
}

.message {
    visibility: hidden;
}


.error {
    visibility: visible !important;
    float: right !important;
    color: rgba(134, 29, 29, 0.836) !important;
}

#reset {
    cursor: pointer;
    background: hsl(183, 98%, 35%);
}

#reset:hover{
    background: hsl(184, 69%, 78%);
}

.input-container {
    position: relative;
    /* width: 100%; */
}

.icon {
    position: absolute;
    top: 17px;
    left:16px;
    color: var(--light-grayish-cyan-1);
}


.result-section {
    flex: 1;
    background: hsl(183, 100%, 15%);
    border-radius: 10px;
    overflow: hidden;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.part-1, .part-2{
    display: flex;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

.result-heading {
    color: var(--white);
    font-weight: 700;
}

.sub-heading {
    color: var(--dark-grayish-cyan-2) !important;
    font-weight: 700;
}

.price {
    font-size: 2.5rem;
    color:hsl(184, 69%, 78%);
}

.btn {
    width: 100%;
}

.btn button {
    font-family: 'Space Mono', monospace;
    width: 100%;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: hsl(184, 69%, 78%);
    color: hsl(183, 100%, 15%);
    font-weight: 700;
    font-size: 24px;
}

@media only screen and (max-width: 600px) {
    main {
      flex-direction: column;
    }

    .buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 5px;
    }

    .error {
       font-size: 0.8rem;
    }
    
}