*{
  box-sizing: border-box;
}

body,
html {
  background-color: #181B23;
  margin: 0 auto;
  padding: 0;
  color: white;
  text-align: center;
  max-width: 800px;
  height: 100%;
}

body{
  padding: 0 30px;
  /* display: flex;
  flex-direction: column; */
  /* justify-content: space-between; */
}


/* 메인 공간 */
main {
  /* display: flex;
  flex-direction: column;
  justify-content: start; */
  /* flex: 1; */
}

.carousel {
  background-color: #181B23;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center
}

.classify {
  background-color: #181B23;
  width: 100%;
  height: 100%;
  display: grid;
}

#big_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  /* grid-template-columns: repeat(3, 1fr); */
  /* 기본적으로 4열로 시작 */
  gap: 10px;
  /* padding: 10px; */
  max-width: 800px;
  /* 그리드가 너무 넓어지지 않도록 제한 */
  margin: auto;
}

.go_button {
  width: 90%;
  height: auto;
  background-color: chocolate;
  margin: 50px 0;
  border-radius: 10px;
  max-width: 800px;
}

.go_button_middle {
  /* width: 90%; */
  height: auto;
  background-color: chocolate;
  margin: 50px 0;
  border-radius: 10px;
  max-width: 800px;

}

.go_button_small {
  /* width: 90%; */
  height: auto;
  background-color: chocolate;
  margin: 50px 0;
  border-radius: 10px;
  max-width: 800px;
}


#middle_container {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  /* grid-template-columns: repeat(3, 1fr); */
  /*기본적으로 4열로 시작*/
  gap: 10px;
  padding: 10px;
  max-width: 800px;
  /* 그리드가 너무 넓어지지 않도록 제한 */
  margin: auto;
}

.middle-title {
  background-color: #2E3440;
  border-radius: 20px;
  margin: 2vh 0;
  padding: 10px 5px;
}

.middle-title-box {
  display: flex;
  align-items: center;
}

.small-title-box {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-left: 5vw; */
}

.middle-img {
  margin: 5px 10px 0 20px;
  padding: 0 0 5px 0;
  height: 1.2em;
  width: auto;
}


.middle_button {
  border: 1px solid #BBC2CE;
  background-color: rgba(0, 0, 0, 0);
}

.small_button {
  border: 1px solid #BBC2CE;
  background-color: rgba(0, 0, 0, 0);
}

#small_container {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: auto;
}

/* 그리드 공통된 부분들 */
.grid-item {
  /* aspect-ratio: 1/1; */
  /* 가로세로 길이 동일하게!! */
}


button {
  width: 100%;
  height: 100%;
  padding: 10px;
  background-color: #2E3440;
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* button:hover {
  background-color: #0056b3;
} */

img {
  width: 1.5rem;
  height: auto;
  margin: 8%;
}

.class_button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* font-size: 40px; */
}

.class_button img {
  width: auto;
  height: 1.5rem;
}

.class_button.clicked {
  background-color: #0056b3;
}

.go_button.disabled {
  background-color: gray;
  pointer-events: none;
  /* 클릭 이벤트 비활성화 */
}

.go_button.enabled {
  background-color: #FF4E15;
}

.go_button_middle.disabled {
  background-color: gray;
  pointer-events: none;
  /* 클릭 이벤트 비활성화 */
}

.go_button_middle.enabled {
  background-color: #FF4E15;
}

.go_button_small.disabled {
  background-color: gray;
  pointer-events: none;
  /* 클릭 이벤트 비활성화 */
}

.go_button_small.enabled {
  background-color: #FF4E15;
}

/* .clicked{
  background-color: #0056b3;
} */

/* .class_button:active{
  background-color: #0056b3;
} */

@media screen and (min-width: 820px) { /* 공백 추가 (문법 수정) */
  #big_container {
    grid-template-columns: repeat(4, 1fr); /* 반복적으로 4열 생성 */
  }

  .grid-item {
    aspect-ratio: 1 / 1; /* 항목의 가로 세로 비율을 1:1로 설정 */
  }
}
