:root {
    --pink: #fa8e9e;
    --darkPink: #f3687b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.text-center {
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--pink);
    color: white;
    padding: 25px;
}

body {
    font-family: "Open Sans";
    background: #cfcfcf;
    color: #ecf0f1;
    line-height: 1.618em;
}

.wrapper {
    max-width: 50rem;
    width: 100%;
    margin: 0 auto;
}

.tabs {
    position: relative;
    margin: 3rem 0;
    background: var(--pink);
    /* height: 14.75rem; */
}

.tabs::before,
.tabs::after {
    content: "";
    display: table;
}

.tabs::after {
    clear: both;
}

.tab {
    float: left;
}

.tab-switch {
    display: none;
}

.tab-label {
    position: relative;
    display: block;
    line-height: 2.75em;
    height: 3em;
    padding: 0 1.618em;
    background: var(--pink);
    border-right: 0.125rem solid var(--darkPink);
    color: #fff;
    cursor: pointer;
    top: 0;
    transition: all 0.25s;
}

.tab-label:hover {
    top: -0.25rem;
    transition: top 0.25s;
}

.tab-content {
    /* min-height: 12rem; */
    position: absolute;
    z-index: 1;
    top: 2.75em;
    left: 0;
    right: 0;
    padding: 3rem 1.75rem;
    background: #fff;
    color: #2c3e50;
    border-bottom: 0.25rem solid #bdc3c7;
    opacity: 0;
    transition: all 0.35s;
}

.tab-switch:checked+.tab-label {
    background: #fff;
    color: var(--pink);
    font-weight: 600;
    border-bottom: 0;
    border-right: 0.125rem solid #fff;
    transition: all 0.35s;
    z-index: 1;
    top: -0.0625rem;
}

.tab-switch:checked+label+.tab-content {
    z-index: 2;
    opacity: 1;
    transition: all 0.35s;
}

.inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.number-control {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.number-control input {
    appearance: none;
    background: none;
    border: none;
    outline: none;
    width: auto;
    padding: 8px;
    font-size: 1.1rem;
    text-align: center;
    border: 0.125rem solid #bdc3c7;
    border-radius: 0.25rem;
    color: #2c3e50;
    cursor: pointer;

    transition: all 0.25s;
}

.number-control input:focus {
    border-color: var(--pink);
}

.equals {
    margin: 10px 25px;
    font-size: 1.2rem;
}

.btn-switch {
    margin: 0 0 16px;
    appearance: none;
    background: none;
    border: none;
    outline: none;

    padding: 8px 16px;
    font-size: 1.1rem;
    text-align: center;
    /* border: 0.125rem solid #bdc3c7; */
    border-radius: 0.25rem;
    color: #fff;
    cursor: pointer;
    background-color: var(--pink);

    transition: all 0.25s;
}

.btn-switch:hover {
    background-color: var(--darkPink);
}

/* media query */
@media (max-width: 768px) {
    .tabs {
        height: auto;
    }

    .tab-label {
        padding: 0 1.25em;
    }

    .inputs {
        flex-direction: column;
    }
}