@import url("https://fonts.googleapis.com/css2?family=Fugaz+One&family=Noto+Sans+KR:wght@100..900&display=swap");
@import url("reset.css");

html {
  width: 100%;
  height: 100%;
}

body {
  background-image: url("/img/background.png");
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.opacity {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  background-color: black;
  opacity: 0.5;
}

h1 {
  font-size: 50px;
  color: #fafafa;
  margin-bottom: 50px;
}

.rule-note {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-weight: 700;
}

.rule-note > span {
  margin-bottom: 10px;
  font-weight: 700;
  font-family: "Noto Sans KR", sans-serif;
}

@media (min-width: 768px) {
  .player-row > select {
    background-color: #fafafa;
    border: 1px solid #1fc5a8;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
  }
}
#players {
  display: grid;
  grid-template-columns: 100px 100px 100px 100px 100px;
  align-items: center;
}

#calcBtn {
  background-color: #1fc5a8;
  color: #fafafa;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  font-family: "Fugaz One", sans-serif;
}

.result,
.violation {
  font-family: "Noto Sans KR", sans-serif;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fafafa;
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
  }

  .rule-note {
    margin-bottom: 20px;
    padding: 0 8px;
  }

  #players {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 6px;
    justify-content: center;
  }

  .player-row > select {
    background-color: #fafafa;
    border: 1px solid #1fc5a8;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
    width: 150px;
    font-size: 13px;
    padding: 5px;
  }

  #calcBtn {
    width: 70%;
    font-size: 13px;
    padding: 8px;
    margin-top: 15px;
  }

  .result,
  .violation {
    font-size: 15px;
    padding: 0 8px;
  }
}
