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

::selection {
    background-color: unset;
}

body {
    background-color: black;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 4rem;
    margin-inline: 1rem;
}

h1 {
    letter-spacing: 3px;
    font-size: 3rem;

    /* ANIMATION */
    opacity: 0;
    transform: translateY(-100%);
    transition: 1s ease;
}

h1.show {
    opacity: 1;
    transform: translateY(0);
}

.card-container {
    max-width: 450px;
    width: 100%;
    background-color: rgba(138, 50, 211, 0.726);
    border-radius: 5px;
    font-size: 1.1rem;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;

    /* ANIMATION */
    opacity: 0;
    transform: translateX(100%);
    transition: 1s ease;
}

.card-container.show {
    opacity: 1;
    transform: translateX(0);
}


.range-container,
.user-guess {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.range-container input,
.user-guess input {
    border: none;
    height: 35px;
    width: 110px;
    border-radius: 3px;
    outline: none;
    font-size: 1rem;
    padding: 5px;
}

.submit {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 2rem;
    font-family: inherit;
    color: white;
    background-color: rgb(31, 69, 184);
    transition: all 0.2s ease-in;
}

.submit:hover {
    transform: scale(1.05);
    background-color: rgb(0, 64, 255);
}


.win-section {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
}

.win-section p {
    font-size: 16px;
    margin-top: 10px;
}