* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    background-color: rgb(15, 15, 15);
}

header i {
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    color: white;
    font-size: 1.5rem;
    transition: 0.4s ease;
}

header i:hover {
    scale: 1.2;
    cursor: pointer;
}

.random-number {
    position: absolute;
    color: white;
    font-size: 10rem;
    z-index: -1;
    transition: transform 0.4s ease;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
    gap: 1rem;
    background-color: white;
    padding: 2rem 1.2rem;
    border-radius: 3rem;
    color: rgb(15, 15, 15);
    transition: transform 0.4s ease;
}

.container-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container-range-inputs {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-range {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    border: 1px solid rgb(15, 15, 15, 0.5);
    border-radius: 1rem;
    height: 0px;
}

.input-range::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    background: rgb(15, 15, 15);
    cursor: pointer;
    border-radius: 1rem;
}

.input-range::-webkit-slider-thumb:hover {
    transform: scale(1.2); 
    background: #1089eb;
}

.guess-number {
    width: 4rem;
    text-align: center;
    margin: 0 auto;
    padding: 0.5rem;
    background-color: rgb(15, 15, 15);
    border-radius: 2rem;
    color: white;
    border: none;
}

.guess-number:focus {
    outline: 2px solid #1089eb;
}

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

.shuffle-button {
    width: 5rem;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: 2rem;
    border: 0;
    background-color: rgb(15, 15, 15);
    color: white;
    transition: all 0.4s ease;
}

.shuffle-button:hover {
    background-color: #1089eb;
    color: white;
    cursor: pointer;
    transform: scale(1.05); 
}

.guess-button {
    width: 5rem;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: 2rem;
    border: 0;
    background-color: rgb(15, 15, 15);
    color: white;
    transition: all 0.4s ease;
}

.guess-button:hover {
    background-color: #1089eb;
    color: white;
    cursor: pointer;
    transform: scale(1.05); 
}

.container-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-checkbox p {
    margin-right: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.input-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(15, 15, 15);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.slider:hover {
    background-color: #1089eb;
}

.switch:hover .slider {
    transform: scale(1.05); 
}

input:checked+.slider {
    background-color: #1089eb;
}

input:focus+.slider {
    box-shadow: 0 0 1px #1089eb;
}

input:checked+.slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
    background-color: white;
}
