@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: 'Ubuntu', sans-serif; } body{ display: flex; justify-content: center; align-items: center; flex-direction: column; min-height: 100dvh; background-color: #333; background-image: url("./pc.jpg"); background-repeat: no-repeat; background-position: center; background-size: cover; color: #fff; text-align: center; } #home{ position: fixed; right: 0; bottom: 0; height: 50px; width: 50px; border-radius: 25px 0 0 0; background: #555; } #dice{ width: 100px; height: 100px; margin: 1.25rem; border-radius: 15px; filter: drop-shadow(1.5px 1.5px 6px #aaa); } h1{ filter: drop-shadow(1.5px 1.5px 3px #000); } .ques{ display: flex; flex-direction: row; } .ques p{ margin-right: .5rem; filter: drop-shadow(1.5px 1.5px 6px #333); } .ques select{ color: #fff; border: none; background: none; border-radius: 7px; backdrop-filter: blur(10px); box-shadow: inset 1.5px 1.5px 3px #fff, 10px 10px 20px #333; } .ye{ background: #333; backdrop-filter: blur(10px); } button{ text-transform: uppercase; height: 69px; width: 69px; margin-top: 1rem; border-radius: 10px; border: none; background: none; color: #fff; text-shadow: 2px 2px 2.5px #333; /*filter: drop-shadow(10px 10px 20px #333);*/ backdrop-filter: blur(10px); box-shadow: inset 2.5px 2.5px 5px #fff, 10px 10px 20px #333; } .que{ margin-right: 1rem; } .result{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: drop-shadow(1.5px 1.5px 6px #000); text-transform: uppercase; font-size: 100px; user-select: none; } .won{ color: #0f0; animation: pop 0,5s ease-in-out; transition: .5s; } .lost{ color: #f00; animation: pop 0,5s ease-in-out; transition: .5s; } @keyframes pop{ 0%{ scale: 0.1; } 100%{ scale: 1; } } .gameBack{ padding: 1rem; height: 400px; width: 275px; display: flex; justify-content: space-around; align-items: center; flex-direction: column; backdrop-filter: blur(5px); border-radius: 50px; box-shadow: inset 10px 10px 20px #fff, 10px 10px 20px #333; } @media screen and (max-width: 500px){ body{ background-image: url("./mobile.jpg"); } .result{ font-size: 45px; } } .cash{ position: absolute; left: 0; top: 0; background: #222222cc; padding: .5rem; border-radius: 0 0 1rem 0; display: flex; flex-direction: row; justify-content: space-evenly; align-items: center; } .cash img{ margin-right: .5rem; aspect-ratio: 1/1; object-fit: contain; } .coins{ position: absolute; color: red; z-index: 5; user-select: none; left: 135px; top: 17px; transform: translate(-50%, -50%); animation: money .15s ease-in; } @keyframes money{ from{ transform: translate(-50%, -50%); opacity: 1; top: 17px; } to{ transform: translate(-50%, -50%); opacity: 0; top: -10px; } }