@font-face {
  font-family: 'DOSGothic';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_eight@1.0/DOSGothic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Galmuri9';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.woff') format('woff'),
       url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.otf') format('opentype'),
       url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.ttf') format('truetype');
}
* {
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE, Edge */
  user-select: none;         /* 표준 */
}

@font-face {
  font-family: 'NeoDunggeunmoPro-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/NeoDunggeunmoPro-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.jersey-20-regular {
  font-family: "Jersey 20", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* 기본 select 스타일 초기화 */
select {
  -webkit-appearance: none; /* Chrome, Safari */
  -moz-appearance: none;    /* Firefox */
  appearance: none;
  background-color: #333;   /* 배경색 */
  color: #fff;              /* 텍스트 색 */
  border: 0.5px solid #ccc;   /* 테두리 */
  border-radius: 4px;       /* 모서리 둥글게 */
  padding: 1px 5px 1px 5px; /* 오른쪽 여백을 충분히 줘야 화살표를 위한 공간 확보 */
  font-family: 'Jersey 20', sans-serif;
}

/* 드롭다운 화살표(배경 이미지로 커스텀) */
.select-wrapper {
  position: relative;
  display: inline-block;
}

/* select 요소를 감싸는 컨테이너에 화살표 추가 */
.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  pointer-events: none;
}

/* 포커스 스타일 */
select:focus {
  outline: none;
  border-color: #5aff41;
}



/* 기본 폰트 설정 */
html, body, button {
  font-family: 'Jersey 20', sans-serif;
}
div{padding-bottom:5px;

}
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
}

label, h3{
  color:rgb(155, 155, 155);
  margin-top:7px;
  font-size: 20px;

}
canvas {
  width: 100vw;
  height: 100vh;
  display: block;
  image-rendering: pixelated;
}

#controls {
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;

}

button {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 5px 8px;
  margin-bottom:5px;
  font-size: 16px;
  color: black;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 10px;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

p{
  color:white;
}


.shape-control{
  margin:0px;

  margin : 0px;
  padding : 5px;
  color : white; 
}

#addButtondiv{
  display: flex;
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center;     /* 세로 중앙 정렬 */
}
#addButton{
  max-height: 100px;
}
#deleteButton{

 /* 세로 중앙 정렬 */
  font-size:25px;
  color: #e50550;
  background-color: black;
}
#deleteButton:hover{

  color: white;
}


input[type="range"] {
  -webkit-appearance: none;
  width: 50%;
  background: transparent;
}

/* 슬라이더 트랙 기본 스타일 */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: #ccc; /* 기본 배경 색 */
}

/* 슬라이더 썸(손잡이) 스타일 */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #000;
  margin-top: -4px; /* 트랙과 맞추기 위해 */
}

/* 기본 테마 색상 변경 예시 */
.tippy-box {
  font-family: 'Jersey 20', sans-serif;
  background-color: #5aff41; /* 배경 색상 */
  color: #000000;            /* 텍스트 색상 */
  border-radius: 0px;
  margin-bottom:0px;
  padding-bottom:0px;
  border-radius: 5px;
}

.tippy-arrow {
  color: #5aff41; /* 화살표 색상 */
}
#editContainer{
  display:flex;
  flex-direction: column;
}

#editOptionsContainer{
  max-height:0;
  padding:0;
  border: none;


}
#patternControls{
  display:none;

}
#titleDiv{
  display:flex;
  flex-direction: row;
  margin:0;
  font-size:30px;
}

.hiddenDiv{
  display: none !important;
}

.hidden {
  visibility: hidden !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.open {
  display: flex;
  /* 필요한 max-height, padding 등의 스타일도 여기서 설정 */
  max-height: 100px;
  padding: 0px;
}

.tooltipster-box .tooltipster-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center; /* 내용이 중앙에 오도록 */
  min-height: 30px; /* 필요에 따라 높이 조정 */
  padding-bottom: 0px !important; /* 기존 패딩이 있다면 제거 */
  padding-top: 10px !important; /* 기존 패딩이 있다면 제거 */
}



@media only screen and (max-width: 768px) {
  input[type="range"] {
    /* transform을 사용해 요소 전체를 확대 */
    transform: scale(1.3);
  
    /* 필요에 따라 마진이나 패딩도 조정 */
  }

  #controls{
    display: flex;
    position: absolute;
    bottom: 10px;
    right: 10px;
    top:auto;
    display: flex;
    gap: 10px;

  }
}



@media (max-width: 767px) {
  #patternControls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 250px;
    background-color: #222;
    overflow: hidden;
    z-index: 800;
    display: flex;
    flex-direction: column;
    margin:0;
    padding-bottom:50px;
  }
.makeNew{
  display:none;
}
  .controlSub{
    position: relative;
height:100%;
padding-top:30px;

    padding-bottom:20px;
    display: flex;            /* ✅ flex 컨테이너로 설정 */
    flex-direction: column;   /* ✅ 세로 방향 배치 */
    align-items: center;      /* ✅ 가로 기준 중앙 정렬 */
    justify-content: center;  /* ✅ 세로 기준 중앙 정렬 */
  }  

  .controlTab{
    background-color: white;
  }
  #patternTabs {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 8px 0;
  }
  #prevNextBtn{
    background-color: black;
  }
  .tab {
    color: white;
    font-weight: bold;
    cursor: pointer;
  }

  #propertyViewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
  }

  #propertyNav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    margin-top: 10px;
  }

  .arrowBtn {
    font-size: 20px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
  }
}
