@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap'); body{ background-color: #03183a; font-family: "Fredorka", sans-serif; margin: 0; } .rouleau { width: 5vw; height: 3.8vw; position: absolute; top: 20vw; } .cube { width: 5vw; height: 3.8vw; position: relative; transform-style: preserve-3d; } .cube__face { position: absolute; width: 5vw; height: 3.8vw; border: 2px solid #362730; line-height: 3.8vw; font-size: 1.5vw; background-color: #c21121; box-sizing: border-box; font-weight: bold; color: white; text-align: center; } #rouleau_1{ left: 41.3vw; } #rouleau_2{ left: 46.5vw; } #rouleau_3{ left: 51.7vw; } #tirette{ position: absolute; z-index: 10; left: 61vw; top: 12vw; width: 3.7vw; transform-origin: 50% 97%; } #tirage{ display: flex; justify-content: space-around; left: 25vw; position: relative; width: 50vw; } #mise_input{ position: absolute; top: 33vw; left: 42vw; width: 13vw; height: 2vw; border-radius: 20px; border: none; box-shadow: 0px 0px 37px black; } #overlay-rules{ background-color: rgb(0, 0, 0, 0.5); height: 100%; width: 100%; position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; } #overlay-rules > .overlay-container{ height: min-content; padding: 2em; border-radius: 20px; opacity: 1; background-color: white; width: 40vw; } .button{ border: none; padding: 0.6em 0.8em; border-radius: 10px; } .button.is-white{ background-color: white; transition: 0.2s ease-in-out; } .button.is-white:hover{ background-color: rgb(241, 241, 241); transition: 0.2s ease-in-out; } .button.is-red{ background-color: rgb(228, 97, 97); transition: 0.2s ease-in-out; color: white; } .button.is-red:hover{ background-color: rgb(209, 88, 88); transition: 0.2s ease-in-out; } h1, p{ margin-top: 0; }