:root {
    --font-space: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background-color: #e3e3e3;
    color: #272727;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
    font-family: var(--font-space);
    overflow: hidden;
}


div#square {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 12px;
}

section {
    display: flex;
    justify-content: space-between;
    position: absolute;

    width: 100vw;
    height: 100%;
}

.groupDiv > article.first-group {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
}

.groupDiv > article.second-group {
    width: 100vw;
    padding: 20px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.dieDiv > span {
    display: block;
}

.theme {
    position: relative;
    z-index: 20;
    cursor: pointer;

    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    appearance: none;
}

#color {
    border: none;
    background-color: transparent;
    outline: none;
    border-radius: 12px;
}

h1 {
    font-size: 6em;
}

.lostDiv {
    position: relative;
    top: 25%;
    text-align: center;
    margin: 10px;
    padding: 10px;
}

.lostDiv>h2 {
    font-size: 3em
}

.lostDiv>button {
    position: relative;
    border: 2.5px outset rgb(82, 0, 0);
    background-color: red;
    padding: 7.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lostDiv>button:hover {
    background-color: rgb(166, 0, 0);
}


/* Get from https://pt.stackoverflow.com/questions/420236/como-fa%C3%A7o-para-esconder-a-barra-de-rolagem-pagina-no-css */
html {
    scrollbar-width: none; /* ParaFirefox */
    -ms-overflow-style: none; /* Para Internet Explorer e Edge */
}

html::-webkit-scrollbar {
    width: 0px; /* Para Chrome, Safari, e Opera */
}


/* Get from https://www.w3schools.com/howto/howto_css_switch.asp */
/* The switch - the box around the slider */
.switch {
    position: relative;
    /* top: 235%; */
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Partículas da explosão */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    animation: explode 0.6s ease-out forwards;
}

/* Animação das partículas */
@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Animação da square */
.exploding {
    animation: squareExplode 0.25s ease-out forwards;
}

@keyframes squareExplode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}