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

:root {
    font-size: 62.5%;

    --txt: #323238;

    --bg-mode: #FFFFFF;

    --bg-btnSounds: #E1E1E6;
    --bg--btnSoundsOn: #02799D;

    --color-fill-icone: #323238;
    --color-volume-control: #ffffff;
}

.darkMode{
    --txt: #FFFFFF;
    
    --bg-mode: #121214;
    
    --bg-btnSounds: #29292E;
    --bg--btnSoundsOn: #0A3442;
    
    --color-fill-icone: #C4C4CC;
}

body,
figcaption {
    font-family: 'Roboto', sans-serif;
}

body {
    background: var(--bg-mode);
    font-size: 1.6rem;

    display: grid;
    place-items: center;
    min-height: 100vh;
}

.hide {
    display: none;
}

.effects {
    animation: btnControlsEffects .1s;
}

#container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 82.1rem;
}

#timerAndControls {
    text-align: center;
}

#timerAndControls span {
    font-size: clamp(1.6rem, 1.6rem + 15vw, 12.6rem);

    text-align: center;
    text-transform: uppercase;

    color: var(--txt);
}

#controls {
    display: flex;
    justify-content: space-between;
}

#controls button {
    position: relative;
    border: none;
    background-color: transparent;
    transition: all .2s;
    align-content: center;
}

#controls button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#controls button svg path {
    fill: var(--color-fill-icone);
}

#controls button figcaption {
    position: absolute;
    width: 100%;
    padding-top: 1rem;
    display: none;
    color: var(--color-fill-icone);
}

#controls button:hover figcaption {
    display: block;
}

#typesOfSounds {
    display: grid;
    grid-template-areas:
        "A B"
    ;
    gap: 3.2rem;
}

#typesOfSounds button, #btnMode button {
    border: none;
    width: 13.8rem;
    height: 15.2rem;
    background: var(--bg-btnSounds);
    border-radius: 2.4rem;
    transition: all .2s;
}

#typesOfSounds button input{
    appearance: none;
    cursor: e-resize;
    width: 9rem;
    background: var(--color-volume-control);
    margin-top: 3.2rem;
    height: .4rem;
    
    border-radius: .5rem;
}

#typesOfSounds button input::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%; 

    background: var(--color-volume-control);
}

#typesOfSounds button input::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%; 

    background: #2796ee;
    cursor: pointer;
}

#typesOfSounds button:hover, #btnMode button:hover{
    transform: scale(1.1);
    cursor: pointer;
}

#typesOfSounds button svg path {
    fill: var(--color-fill-icone);
}

.activeSoundBg {
    background: var(--bg--btnSoundsOn) !important;
}

#btnMode {
    position: fixed;
    right: 3vw;
    top: 3vw;

    animation: upDown 1s 1s backwards;
}

#btnMode button {
    border: none;
    background-color: transparent;
    padding: .3rem;
    border-radius: 100%;
}

.soundActiveButton{
    fill: white !important;
}

/*  MOBILE */

@media (max-width: 47.938em) {
    body {
        position: relative;
    }

    #container {
        flex-direction: column;
    }

    #controls button svg {
        width: 3.5rem;
    }

    #controls button figcaption {
        padding-top: .5rem;
        font-size: 1.2rem;
        display: block;
    }

    #typesOfSounds {
        grid-template-areas:
        "A"
        ;
        gap: 1rem;
        position: fixed;
        right: 3vw;
        top: 3vw;
        animation: downUp .3s 1s backwards;
    }

    #typesOfSounds button, #btnMode button {
        width: clamp(5rem , 18vw, 13.8rem);
        height: clamp(5rem , 24vw, 13.8rem);
        border-radius: .5rem;

        transition: all .2s;
    }

    #typesOfSounds button input{
        width: 85%;
        margin-top: clamp(1rem , 3vw, 3.2rem);;
        height: .4rem;
        
        border-radius: .5rem;
    }

    #btnMode {
        left: 3vw;
        top: 3vw;

        animation: upDown 1s 1s backwards;
    }

    #controls button svg, #btnMode button svg, #typesOfSounds button svg {
        width: clamp(3rem, 7vw, 4.8rem);
        height: clamp(3rem, 7vw, 4.8rem);
    }

}

/*  ANIMATIONS */

@keyframes btnControlsEffects {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes downUp {
    from {
        opacity: 0;
        transform: translateY(100vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes upDown {
    from {
        opacity: 0;
        transform: translateY(-100vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}