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

:root {
    --hue: 194;
    --bg-color: hsl(var(--hue), 5%, 7%);
    --bg-icon-color: #E1E1E6;
    --text-color: hsl(var(--hue), 40% , 98%);
    --primary-color: hsl(var(--hue), 100%, 63%);
    --controils-bg-color: hsl(var(--hue), 0%, 14%);
    --button-secondary: hsl(var(--hue), 40% , 98%);
    --button-hover: #02c4ff;

    font-size: clamp (40%, 1% + 2vw, (62.5%));
}

html.light {
    --text-color: hsl(var(--hue), 5%, 7%);
    --bg-color: hsl(var(--hue), 40% , 98%);
    --controils-bg-color: hsl(var(--hue), 0%, 14%);
}

html.light .ph-sun,
html:not(.light) .ph-moon {
    display: none;
}

#toggle-mode {
    font-size: 3.2rem;
    line-height: 0;
    position: absolute;
    right: 3.2rem;
    top: 3.2rem;

    color: var(--text-color);
    transition: all 0.5s;
}
#toggle-mode button {
    color: #02c4ff;
    position: absolute;
    right: 0;
}
#toggle-mode:hover {
    color: var(--button-hover)
}

.sr-only{
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;

    margin: -1px;
    padding: 0px;
    border: 0;
    appearance: none;
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);

    /* */
    display: grid;
    height: 100vh;
    place-content: center;
}

#app {
    display: grid;
    justify-items: center;
}
.flex {
    display: flex;
}

#timer {
    font-size: 12rem;
    font-weight: bold;
    font-family: sans-serif;
}

#controls {
    margin-top: 1.6rem;
    padding: 1.2rem 3rem;
    gap: 2.3rem;

}

button {
    background-color: transparent;
    border:  none;
    font-size: 6.4rem;
    cursor: pointer;
}
button.ph {
    color: var(--text-color);
}
button.ph:hover {
    color: var(--button-hover);
}
.btnON {
    background-color: #02c4ff;
    border-radius: 24px;
}



/* running stado da plicação quando estiver rodando*/

.running .ph-play-circle,
html:not(.running) .ph-pause-circle{
    display:none
}






/* controls */

/**/
#content {
    display: flex;
    gap: 12rem;
}
.content-icons{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.2rem;
}

.content-icons .card-icon {
    display: flex;
    justify-content: center;
    background-color: var(--bg-icon-color);
    border-radius: 24px;
    transition: all 0.5s;
    cursor: pointer;
}
.content-icons .card-icon button {
    width: 138px;
    height: 152px ;
}

.content-icons .card-icon:hover{
    background-color: var(--button-hover);
}
.card-icon img:hover{
    color: red;
}


/* media */

@media (max-width:1010px) {
    body {
        height: 95vh;
    }
    #content{
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
     #toggle-mode{
        font-size: 2rem;
        right: 1.3rem;
        top: 2rem;
    }
    #timer span {
        font-size: 6rem;
    }
    #controls {
        gap:  1rem;
    }
    #controls button {
        margin-top: -2rem;
        font-size: 3rem;
        
    }
    .content-icons{
        display: grid;
        grid-template-columns: 0fr 0fr;
        justify-content: center;
        gap: 2rem;
    }
    .content-icons .card-icon button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 110px;
        height: 105px ;
    }
    .content-icons .card-icon img {
        height: 45px;
    }
}


/**/


#toggle-mode{
    animation: myAnim3 2s ease 0s 1 normal forwards;
}
@keyframes myAnim3 {
	0% {
		opacity: 0;
		transform: translateX(100px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
/*


*/
/*# */
#app {
    animation: myAnim 2s ease 0s 1 normal backwards;
}
@keyframes myAnim {
	0% {
		animation-timing-function: ease-in;
		opacity: 0;
		transform: translateX(-250px);
	}

	38% {
		animation-timing-function: ease-out;
		opacity: 1;
		transform: translateX(0);
	}

	55% {
		animation-timing-function: ease-in;
		transform: translateX(-68px);
	}

	72% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}

	81% {
		animation-timing-function: ease-in;
		transform: translateX(-28px);
	}

	90% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}

	95% {
		animation-timing-function: ease-in;
		transform: translateX(-8px);
	}

	100% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}
}



/*icons */

.content-icons{
    animation: myAnim2 2s ease 0s 1 normal backwards;
}
@keyframes myAnim2 {
	0% {
		animation-timing-function: ease-in;
		opacity: 0;
		transform: translateX(250px);
	}

	38% {
		animation-timing-function: ease-out;
		opacity: 1;
		transform: translateX(0);
	}

	55% {
		animation-timing-function: ease-in;
		transform: translateX(68px);
	}

	72% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}

	81% {
		animation-timing-function: ease-in;
		transform: translateX(32px);
	}

	90% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}

	95% {
		animation-timing-function: ease-in;
		transform: translateX(8px);
	}

	100% {
		animation-timing-function: ease-out;
		transform: translateX(0);
	}
}