input[type="number"] {
    width: 4rem;
    height: 1.8rem;
    margin-left: 0.5rem;
    padding: 1rem 0rem 1rem 1rem;
}
input[type="text"],
input[type="number"] {
    width: 100%;
    max-width: 20rem;
    height: 3rem;
    padding: 0 0 0 1rem;
    margin: 1rem 0;
    border-radius: 1rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0);
    box-shadow: inset 0 -1rem 2.5rem rgba(255, 255, 255, 0.15), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    color: white;
    transition: 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
input[type="text"]:focus,
input[type="number"]:focus {
    background-color: rgb(255, 255, 255);
    color: black;
    box-shadow: inset 0 -1rem 2.5rem rgba(255, 255, 255, 0.15), 0 1rem 2rem rgba(0, 0, 0, 0.8);
}
input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    min-width: 10rem;
    max-width: 10rem;
    height: 2rem;
    outline: none;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2rem 3rem rgba(255, 255, 255, 0.1), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative; /* Added to allow thumb positioning to work correctly */
    margin: 1rem 0 1rem 0;
}

/* Track styles for Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-runnable-track {
    height: 0;
    position: relative;
}

/* Thumb styles for Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    border-radius: 50%;
    background-color: white;
    box-shadow: inset 0 -2rem 3rem rgba(255, 255, 255, 0.1), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transition: 0.2s ease;
    transform: scale(0.8);
}

/* Track styles for Firefox */
input[type="range"]::-moz-range-track {
    height: 0;
    position: relative;
}

/* Thumb styles for Firefox */
input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: white;
    box-shadow: inset 0 -2rem 3rem rgba(255, 255, 255, 0.1), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transition: 0.2s ease;
    transform: scale(0.8);
}

/* Hover and focus effects */
input[type="range"]:hover::-webkit-slider-thumb {
    background-color: white;
    box-shadow: inset 0 -1rem 2rem rgba(255, 255, 255, 0.15), 0 1rem 1rem rgba(0, 0, 0, 0.5);
    transform: scale(1);
}

/* Ensuring thumb properly moves on input change (important for some browsers like Brave) */
input[type="range"]:focus::-webkit-slider-thumb {
    background-color: white;
    transform: scale(1);
}

/* Ensure thumb correctly moves in Firefox */
input[type="range"]:focus::-moz-range-thumb {
    background-color: white;
    transform: scale(1);
}

.cornerBtn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    backdrop-filter: blur(1rem);
}
.cornerBtn.left {
    position: absolute;
    left: 1rem;
    width: fit-content;
    bottom: 1rem;
    backdrop-filter: blur(1rem);
}
.linkbutton {
    text-decoration: underline;
    transition: 0.2s ease;
    border-radius: 1rem;
    margin: 1rem;
}
.linkbutton:hover {
    margin: 0.5rem;
    padding: 0.5rem;
    background-color: rgb(255, 255, 255);
    color: black;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    text-decoration: none;
}
button.danger {
    box-shadow: inset 0 -2rem 3rem rgba(255, 0, 0, 0.15), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
}
button.danger:hover {
    border: 1px solid rgba(255, 0, 0, 0.8);
}
button.mainBtn {
    padding: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}
button {
    height: 3rem;
    border-radius: 1rem;
    font-size: 1rem;
    padding: 1rem;
    margin: 1rem;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2rem 3rem rgba(255, 255, 255, 0.1), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    color: white;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    gap: 0.5rem;
}
button:hover {
    border: 1px solid rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    box-shadow: inset 0 -1rem 2rem rgba(255, 255, 255, 0.15), 0 1rem 1rem rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}
button img {
    max-height: 1.5rem;
}
button:hover img {
    max-height: 1.5rem;
    filter: invert();
}
button:hover.small {
    color: black;
    transform: scale(1.1);
}
button.small {
    height: 1rem;
    width: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    color: white;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
}
.iconOnly {
    max-width: 3rem;
}
