:root {
    --color-dark-bg: #242930;
}

#wrapper {
    position: absolute;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    width: 100%;
    max-width: 340px;

    padding: 56px 48px;

    border-radius: 40px;

    box-shadow: 0px 8px 40px rgba(128, 128, 128, 0.15);

    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: #fffef9;
}

form > div {
    margin-bottom: 32px;
}

form > div:last-child {
    margin-bottom: 0;
}

.number-input-container {
    margin-top: 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 33% auto 33%;
    
}

.number-input {
    width: 100%;

    display: flex;
    flex-direction: row;

    background-color: var(--color-dark-bg);

    overflow: hidden;
}

input[type="number"] {
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    -moz-appearance: none;
    appearance: none;

    position: relative;

    width: 100%;
    min-width: 100%;
    height: 48px;

    background-color: var(--color-dark-bg);

    border: 2px solid #343d4b;

    border-left: 1px solid rgba(0, 0, 0, 0);
    border-right: 1px solid rgba(0, 0, 0, 0);
    border-radius: none;

    font-family: 'Montserrat', sans-serif;
	color: #ffffff;
	font-weight: 700;
	font-size: 20px;
    
    line-height: 24px;
    text-align: center;

    transition: all 0.2s ease-out;
}


input[type="number"]:focus {
    /*background-color: white;*/

    border: 2px solid #343d4b;

    outline: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

button {
    position: relative;

    height: 100%;

    margin-top: 32px;
    padding: 12px 16px;

    background-color: var(--color-dark-bg);

    border: 2px solid #343d4b;
    border-radius: none;

    transition: all 0.1s ease-out;

    cursor: pointer;

    -webkit-appearance: none;

    -webkit-transform: scale(1);
    transform: scale(1);
}

button {
    margin: 0;

    color: #FFFFFF;
}

button:active,
button:focus {
    outline: none;
}

button::after {
    content: "";

    position: absolute;

    opacity: 1;

    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    transition: inherit;

    background-position: center;
    background-repeat: no-repeat;
}

button:disabled {
    pointer-events: none;
}

button:disabled::after {
    opacity: 0.25;
}

.button-decrement::after {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 12H7' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.button-increment::after {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 7V17' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 12H7' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.button-decrement {
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.button-increment {
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (hover: hover) {
    input[type="number"]:hover,
    button:hover {
        background-color: #343d4b;
    }

    button:active {
        background-color: var(--color-dark-bg);
        transform: translateY(1px);
    }
}

@media (hover: none) {
    button:active {
        /*border: 2px solid #242930;*/
	    /*background-color: #343d4b;*/
        /*background-color: white;*/
        transform: translateY(1px);
    }
}

@media only screen and (max-width: 1024px) {
    input[type="number"] {
        font-size: 30px;
        line-height: 24px;
        height: 80px;
    }

    .button-decrement::after {
        background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 12H7' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    }
    
    .button-increment::after {
        background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 7V17' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 12H7' stroke='%23ffffff' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    }

}
