/* styles.css */

:root {
    --primary-color: #448eb3
}

body {
    background-color: #e8e8e8;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0;
    /*background: repeating-linear-gradient(-45deg, #fff 0 20px, #f9f9f9 0 40px);*/
    width: 100vw;
    overflow-x: hidden;
    color: #7257fa;
}

body.client {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#ball {
    width: 50px;
    height: 50px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
}

.overlayStart {
    background: repeating-linear-gradient(-45deg, #fff 0 20px, #f9f9f9 0 40px);
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.icoStart {
    max-width: 100px;
    border-radius: 60px;
}

#startButton {
    padding: 20px 40px;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(45deg, #2576ca, #3d56ba);
    color: white;
    border: none;
    border-radius: 37px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-family: "montserrat";
    margin: 0;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
}


.container {
    max-width: 90vw;
}

h1 {
    font-weight: 900;
    text-transform: uppercase;
    color: #85aebb;
}

.color-button,
.speed-button,
.times-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    background-color: #dfedf3;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 19%);
    font-weight: bold;
    color: black;
    line-height: 60px;
    text-align: center;
    margin-bottom: 10px;
}

.color-button.selected,
.speed-button.selected,
.times-button.selected {
    background: #4ec34e;
    color: white;

}

.color-button {
    border: 3px solid transparent;
}

.color-button.selected {
    border: 3px solid #ffffff;
    box-shadow: 0 0 11px #408d1a;
}

#red {
    background-color: #c13e3e;
}

#blue {
    background-color: #54b1e4
}

#violet {
    background-color: #f192f1
}

#green {
    background-color: #3fdca6
}


#purple {
    background-color: #bb42bb
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    border-radius: 60px;
    border: 0px;
    background: #009fff;
    color: white;
    box-shadow: 0px 3px 6px #8b8b8b99;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    margin: auto;
}

button:hover {
    background-color: green;
}

.mb-3 {
    margin-bottom: 30px;
}

.card {
    padding: 2rem 1rem 1rem 1rem;
    cursor: pointer;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 9%);
    margin-bottom: 18px;
    position: relative;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast {
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: fixed;
    bottom: 30px;
    font-size: 17px;
    border-radius: 6px;
    z-index: 999;
    width: calc(100vw - 60px);
    left: 0;
    margin: 0 10px;
    padding: 20px;
    display: none;

}

.toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.valor {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #868e93;
    font-size: 26px;
}

.fw-lighter {
    font-weight: lighter;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.slider {
    width: 60%;
    margin: 0 10px;
}

.slider-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 2px 2px 5px rgb(0 0 0 / 19%);
    font-weight: bold;
    color: white;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

label {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    color: #54696f;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 4px 17px;
    border-top-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

input {
    --c: orange;
    /* active color */
    --g: 8px;
    /* the gap */
    --l: 5px;
    /* line thickness*/
    --s: 30px;
    /* thumb size*/

    width: 400px;
    height: var(--s);
    /* needed for Firefox*/
    --_c: color-mix(in srgb, var(--c), #000 var(--p, 0%));
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

input:focus-visible,
input:hover {
    --p: 25%;
}

input:active,
input:focus-visible {
    --_b: var(--s)
}

/* chromium */
input[type="range"i]::-webkit-slider-thumb {
    height: var(--s);
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 var(--_b, var(--l)) inset var(--_c);
    border-image: linear-gradient(90deg, var(--_c) 50%, #ababab 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
    -webkit-appearance: none;
    appearance: none;
    transition: .3s;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    height: var(--s);
    width: var(--s);
    background: none;
    border-radius: 50%;
    box-shadow: 0 0 0 var(--_b, var(--l)) inset var(--_c);
    border-image: linear-gradient(90deg, var(--_c) 50%, #ababab 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
    -moz-appearance: none;
    appearance: none;
    transition: .3s;
}

@supports not (color: color-mix(in srgb, red, red)) {
    input {
        --_c: var(--c);
    }
}

#sound-selector {
    display: flex;
    gap: 10px;
}

.sound-button {
    padding: 8px 10px;
    background-color: #8e8fa3;
    color: white;
    border-radius: 8px;
}

.sound-button.selected {
    background: #3ac73a;
    font-weight: bold;
}