@font-face {
  font-family: 'Luckiest Guy';
  src: url('/assets/fonts/LuckiestGuy-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --background-color: #0f1724;
  --bc-2: #121c2b;
  --bc-3: #141f30;
  --text-color: white;
  --inversion: 1;
}

[data-theme='light'] {
  --background-color: white;
  --bc-2: white;
  --bc-3: #F8A1FF;
  --text-color: black;
  --inversion: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: normal;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overscroll-behavior: none;
  touch-action: none;
}

canvas {
  border: 1px solid var(--text-color);
  border-radius: 12px;
  background-color: var(--bc-2);
  height: 600px;
  width: 600px;
  touch-action: none;
}

a {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

h2 {
  font-size: 30px;
}

.hotdog {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.burger {
  display: flex;
  flex-direction: row;
}

.top {
  justify-content: space-between;
  padding: 15px;
  align-items: center;
}

.middle {
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.middle-middle {
  justify-content: center;
  flex: 1;
  align-self: stretch;
  min-height: 0;
}

.play-menu {
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
  gap: 50px;
  padding: 50px;
}

.bottom {
  justify-content: space-between;
  align-items: flex-end;
}

.input-wrp {
  box-shadow: none;
  outline: none;
  width: 210px;
  padding: 14px 7px 7px 7px; /* t, r, b, l*/
  font-size: 20px;
  border: none;
  border-radius: 25px;
  text-align: center;
  font-style: normal;
  background: white;
  color: black;
}

.round-btn {
  color: white;
  padding: 14px 7px 7px 7px; /* t, r, b, l*/
  border: none;
  border-radius: 25px;
  font-size: 22px;
  width: 210px;
  text-align: center;
  text-decoration: none;
  transition: 0.5s ease;
  cursor: pointer;
}

.round-btn:hover {
  opacity: 80%;
}

.b1 {
  background: linear-gradient(161deg, #61afef, #98c379);
}

.b2 {
  background: linear-gradient(161deg, #ff4747, #ffbb47);
}

.b3 {
  background: linear-gradient(161deg, #f791f5, #9359d1);
}

.box-2 {
  min-height: 290px;
  justify-content: center;
  gap: 15px;
  width: 250px;
  text-align: center;
  padding: 20px;
  background-color: var(--bc-3);
  border-radius: 12px;
  box-shadow: 0 4px 8px 0 rgba(1, 1, 1, 0.2), 0 6px 20px 0 rgba(1, 1, 1, 0.19);
}

.title-text {
  background: linear-gradient(25deg, #2C0066, #f767ed, #feb47b, #FFD303);
  background-size: 115% 115%;
  animation: gradient-animation 15s ease infinite, glow 3s ease-in-out infinite alternate;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
}

.small-title {
  font-size: 40px;
  display: none;
}

.large-title {
  font-size: 100px;
}

.message-text {
  font-family: system-ui, sans-serif;
  font-size: 20px;
}

.circle {
  border: solid 1px var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 100px;
  font-size: 30px;
  cursor: pointer;
  transition: 0.5s ease;
  font-family: system-ui, sans-serif;
  font-weight: bold;
}

.circle:hover {
  opacity: 50%;
}

#themeIcon {
  filter: brightness(0) invert(var(--inversion));
  transition: 0.5s ease;
}

@keyframes slideOut {
  0% { opacity: 1; transform: translateY(0);}
  100% { opacity: 0; transform: translateY(-10px);}
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(10px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
    background-size: 150% 150%;
  }
  50% {
    background-position: 100% 50%;
    background-size: 170% 170%;
  }
  100% {
    background-position: 0% 50%;
    background-size: 150% 150%;
  }
}

@keyframes glow {
  from { filter: brightness(0.9) saturate(1); }
  to   { filter: brightness(1.3) saturate(1.4); }
}

#error {
  text-align: center;
  color: red;
  font-size: 15px;
  font-family: system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#error.show {
  opacity: 1;
}

#playAgainBtn {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#playAgainBtn.show {
  opacity: 1;
}

/* ads */

.corner {
  flex-basis: 90px;
  padding: 4px 10px 4px 10px;
}

.ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  min-height: 0;
  align-self: stretch;
}

.ad-left {
  display: none;
  width: 130px;
  align-self: stretch;
  padding: 30px 0 30px 0;
  flex-basis: 100%;
  max-height: 600px;
}

.ad-right {
  display: none;
  width: 130px;
  align-self: stretch;
  padding: 30px 0 30px 0;
  flex-basis: 100%;
  max-height: 600px;
}

.ad-bottom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-basis: 300px;
  height: 130px;
  max-height: 130px;
}

.ad-bottom {
  display: flex;
  align-self: stretch;
  max-width: 700px;
  flex-grow: 1;
  flex-basis: 300px;
  height: 130px;
}

@media (max-width:800px) {
  .bottom {
    flex-wrap: wrap;
  }
  .ad-bottom-container {
    order: 5;
    height: 90px;
    max-height: 90px;
    margin: 0;
  }
  .ad-bottom {
    height: 90px;
    max-height: 90px;
    width: 100%;
  }
  canvas {
    height: 300px;
    width: 300px;
    border-radius: 0px;
  }
  .small-title {
    display: flex;
  }
  .large-title {
    display: none;
  }
}

@media(max-height: 720px) {
  .message-text {
    display: none;
  }
}

@media (min-width:1025px) {
  .ad-left {
    display: flex;
  }
  .ad-right {
    display: flex;
  }
  .ad-bottom-container {
    display: none;
  }
}

@media (min-width: 1400px) {
  .ad-bottom-container {
    display: flex;
  }
}

.hidden {
	display: none;
}
