/* Reset and base styles  */
* {
    box-sizing: border-box;
	padding: 0px;
	margin: 0px;
	border: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
	font-weight: inherit;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

img, svg {
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */
input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

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

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

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active, 
textarea:active, textarea:focus,
select:focus {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}
/* End Reset and base styles */

:root {
    --primary-100: #aaf1f1;
    --primary-300: hsl(180, 66%, 49%);
    --primary-600: hsl(257, 27%, 26%);
    --secondary-300: hsl(0, 87%, 67%);
    --gray-100: hsl(0, 0%, 75%);
    --gray-300: hsl(257, 7%, 63%);
    --gray-600: hsl(255, 11%, 22%);
    --bg-light: hsl(225, 33%, 95%);
    --white: #FFFFFF;
    --green: #0CB477;
  }

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
	font-weight: 500;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

.header {
    padding: 12px 0;
}

.header_logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-600);
}

.main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--white);
}

.title {
    font-size: 16px;
    text-align: center;
    color: var(--gray-600);
}

.input_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.placeholder {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
}

#max-number {
    padding: 2px 8px;
    background-color: var(--primary-300);
}

#level_input {
    width: 70%;
    appearance: none;
    height: 6px;
    background-color: var(--gray-100);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
}

#level_input::-webkit-slider-thumb {
    appearance: none;
    width: 17px;
    height: 17px;
    background: var(--primary-300);
    border-radius: 50%;
    cursor: pointer;
}
  
#level_input::-moz-range-thumb {
    appearance: none;
    width: 17px;
    height: 17px;
    background: var(--primary-300);
    border-radius: 50%;
    cursor: pointer;
}

.button_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.button {
    min-width: 140px;
    padding: 8px 0;
    border-radius: 10px;
    background-color: var(--primary-300);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-600);
    transition: .2s ease;
    cursor: pointer;
}

.button:active {
    transform: scale(0.95);
}

.num_input {
    width: 70px;
    height: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--gray-300);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
}

.error_num_input {
    width: 70px;
    height: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--secondary-300);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
}

.make_wish_wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.make_wish_text {
    font-size: 18px;
    color: var(--primary-600);
}

#reset-button {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    width: 120px;
    padding: 8px 0;
    border-radius: 10px;
    background-color: var(--secondary-300);
}

#result_container {
    transition: .2s ease;
    transform: translateX(150%);
}

.correct_result_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 160px;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--green);
}

.error_result_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 160px;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--secondary-300);
}

.result_title {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.result_num {
    padding: 2px 8px;
    background-color: var(--gray-600);
}

.even_hint {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.hidden {
    display: none;
}