*,
*::before,
*::after {
  overflow: hidden;
  box-sizing: border-box;
}

:where(ul, ol):where([class]) {
  padding-left: 0;
}

body,
:where(blockquote, figure):where([class]) {
  margin: 0;
}

:where(h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl):where([class]) {
  margin-block: 0;
}

ul {
  padding: 0;
  margin: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  margin-left: 0;
  padding: 0;
  border: none;
}

:where(ul[class]) {
  list-style: none;
}

p {
  --paragraphMarginBottom: 24px;
  margin-block: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
label {
  cursor: pointer;
}

input,
textarea,
select,
button {
  font: inherit;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  line-height: 1.5;
}

svg *[fill] {
  fill: currentColor;
}

svg *[stroke] {
  stroke: currentColor;
}

svg * {
  transition-property: fill, stroke;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@font-face {
  font-family: "bangers-regular";
  src: url("../fonts/bangers-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-teal: #05b69e;
  --background: rgba(44, 44, 44, 0.815);
  --color-light: #ffffff;
  --font-family-base:"bangers-regular", sans-serif;
  --color-red: #f5236c;
  --color-red-accent: #5b0623;
  --transition-duration: 0.5s;
}

* {
  font-family: var(--font-family-base);
  letter-spacing: 0.1875rem;
  font-weight: 400;
}

.container {
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin: 0 auto;
  padding-inline: var(--container-padding-x);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  -webkit-clip-path: inset(100%) !important;
          clip-path: inset(100%) !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
}

@media (width <= 47.99875rem) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (width > 47.99875rem) {
  .visible-mobile {
    display: none !important;
  }
}

@media (width > 63.99875rem) {
  .visible-tablet {
    display: none !important;
  }
}

.start-game {
  position: absolute;
  padding-top: 1.875rem;
  background-color: none;
  width: 100%;
  height: 100%;
  color: var(--color-light);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.start-game__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  border-radius: 0.9375rem;
  background: var(--background);
  width: 50%;
  padding: 1.25rem 1.25rem;
}
.start-game__subtitle {
  font-size: clamp(1.5rem, 1.1495098039rem + 1.4379084967vw, 2.875rem);
  text-decoration: underline;
  text-underline-offset: 0.625rem;
  font-family: var(--font-family-accent);
  letter-spacing: 0.25rem;
}
.start-game__title {
  font-size: clamp(2.25rem, 1.4852941176rem + 3.137254902vw, 5.25rem);
  padding-top: 0.625rem;
  color: var(--color-red);
}
.start-game__target {
  display: grid;
  align-items: center;
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
  grid-template-columns: repeat(3, max-content);
  padding-top: 3.75rem;
  font-size: clamp(1.125rem, 0.7426470588rem + 1.568627451vw, 2.625rem);
}
.start-game__description {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(5, max-content);
  padding-top: 2.5rem;
  font-size: clamp(1.125rem, 0.8382352941rem + 1.1764705882vw, 2.25rem);
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
.start-game__rules {
  display: grid;
  align-items: center;
  font-size: clamp(1.125rem, 0.8382352941rem + 1.1764705882vw, 2.25rem);
  grid-template-columns: repeat(6, max-content);
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
  padding-top: 1.875rem;
}
@media (max-width: 1610px) {
  .start-game__rules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 2.5rem;
  }
}
.start-game__button-wrapper {
  display: flex;
  justify-items: center;
  align-items: center;
}
.start-game__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 1.25rem;
  font-size: 2.25rem;
  padding: 0.625rem 3.125rem;
  border-radius: 0.9375rem;
  background-color: var(--color-red-accent);
  color: var(--color-light);
}
.start-game__button:hover {
  transform: scale(1.1);
  transition-duration: var(--transition-duration);
}

.canvas1 {
  background: url(../images/overlay.png) center/100% 100% no-repeat, url(../images/background.avif) center/cover no-repeat;
}

.game-pannel__player-score {
  display: flex;
  align-items: center;
  position: absolute;
  background-color: var(--background);
  border-radius: 0.9375rem;
  top: 0.9375rem;
  left: 1.875rem;
}
.game-pannel__enemy-score {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: absolute;
  background-color: var(--background);
  border-radius: 0.9375rem;
  top: 0.9375rem;
  right: 1.875rem;
}
.game-pannel__sound-toggle {
  position: absolute;
  top: 3%;
  left: 15%;
  border: none;
  background-color: var(--background);
  border-radius: 0.9375rem;
}
.game-pannel__sound-toggle:hover {
  transform: scale(0.9);
  transition-duration: var(--transition-duration);
}

.obstacles,
.bull,
.egg,
.enemy-toad,
.larva {
  display: none;
}

.title > img {
  width: 6.25rem;
  height: 6.25rem;
  padding: 0.3125rem;
}

.value {
  font-family: var(--font-family-base);
  padding: 1.25rem;
  font-size: 3.25rem;
  color: var(--color-light);
}

.end-game {
  position: absolute;
  top: 8%;
  left: 35%;
  color: var(--color-light);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.end-game__wrapper {
  display: flex;
  flex-direction: column;
  border-radius: 0.9375rem;
  background: var(--background);
  padding: 2.5rem 3.75rem;
}
.end-game__title-win {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.end-game__title-win p:nth-child(1) {
  font-size: clamp(2.25rem, 1.4852941176rem + 3.137254902vw, 5.25rem);
  color: var(--color-red);
}
.end-game__title-win p:nth-child(2) {
  padding-top: 3.75rem;
  font-size: clamp(2.25rem, 1.3259803922rem + 3.7908496732vw, 5.875rem);
  text-decoration: underline;
  text-underline-offset: 0.625rem;
}
.end-game__title-win p:nth-child(3) {
  padding-top: 3.75rem;
  font-size: clamp(1.5rem, 1.1495098039rem + 1.4379084967vw, 2.875rem);
}
.end-game__title-win p:nth-child(4) {
  padding-top: 3.75rem;
  font-size: clamp(1.5rem, 1.1495098039rem + 1.4379084967vw, 2.875rem);
}
.end-game__title-win p:nth-child(5) {
  padding-top: 2.5rem;
  font-size: clamp(1.5rem, 1.3725490196rem + 0.522875817vw, 2rem);
  color: var(--color-teal);
}/*# sourceMappingURL=main.css.map */