html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select {
  margin: 0;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

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

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

td:not([align]),
th:not([align]) {
  text-align: inherit;
}

html {
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
  display: block;
}

body,
button,
input,
select,
textarea {
  font-family: Pretendard, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

code,
pre {
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
  font-family: monospace;
}

body {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5;
  word-break: keep-all;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.header {
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  pointer-events: none;
}

.title {
  font-weight: 800;
}

.languages {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
}

.main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: .5rem;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  padding: 20px;
}

.click-area {
  position: relative; 
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: whitesmoke;
  border-radius: .5rem;
}

.dot {
  position: absolute;
  z-index: 666;
  width: 100px; /* 이미지 크기에 맞게 조절 가능 */
  height: 100px; /* 이미지 크기에 맞게 조절 가능 */
  cursor: pointer; 
}

.obstacle {
  position: absolute;
  z-index: 777;
  height: auto;
  pointer-events: none;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: .5em 1em;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  background-color: dodgerblue;
  border: 0;
  border-radius: 3em;
  cursor: pointer;
}

.button:active {
  transform: scale(.95);
}

.button.button-lang {
  all: unset;
  font-weight: 800;
  cursor: pointer;
}

.button.button-start {
  position: absolute;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 3rem);
  width: 20rem;
  padding: .5em 1em;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  background-color: dodgerblue;
  border: 0;
  border-radius: 3em;
  cursor: pointer;
}

.button.button-start:active {
  transform: translate(-50%, -50%) scale(.95);
}

.studio-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 30rem;
  width: 100%;
  padding: 1rem;
}

.studio-prompt label {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.studio-prompt input[type="text"] {
  padding: .5em 1em;
  font-size: 1em;
  font-weight: 800;
  border: 1px solid gainsboro;
  border-radius: 3em;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.task {
  position: absolute;
  z-index: 9999;
  top: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  padding: .5rem 1rem;
  font-weight: 800;
  color: white;
  background-color: black;
  border-radius: .5rem;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.25);
  pointer-events: none;
}

.message {
  position: absolute;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .5rem 1rem;
  font-weight: 800;
  background-color: #fff;
  border-radius: .5rem;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.25);
  pointer-events: none;
}

.field {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.field .input {
  flex: 1 1 auto;
}

.field .button {
  flex: 0 0 auto;
}

.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 99999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 21rem;
  height: 21rem;
  font-size: 250%;
  font-weight: 900;
  text-align: center;
  color: yellow;
  background-color: black;
  border-radius: 50%;
  pointer-events: none;
}

.scores {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 99999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18rem;
  height: 18rem;
  font-size: 200%;
  font-weight: 900;
  text-align: center;
  color: black;
  background-color: yellow;
  border-radius: 50%;
  pointer-events: none;
}