/* 기본 스타일 */
body {
  margin: 0;
  padding: 10px;
  background: white;
  color: black;
  font-family: 'Helvetica', 'Arial', sans-serif;
  width: 100%;
}

a {
  color: black;
  text-decoration: none;
}

ul {
  height: 100vh; /* 브라우저 전체 높이 */
  margin: 0;
  padding: 0;
  width: 100%;
}

table {
  font-size: 16px;
  line-height: 24px;
}

/* ul 항목 기본 스타일 */
ul li {
  list-style: none;
  white-space: nowrap; /* 줄바꿈 방지 */
  overflow: hidden; /* 텍스트가 넘치지 않게 처리 */
  height: 25%; /* ul의 1/4 */
  width: calc(100vw - 20px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* 텍스트 스타일 */
ul li span {
  display: block;  
  width: 100%;
  white-space: normal; 
  word-wrap: break-word;
  font-size: 5vw; /* 기본 폰트 크기 */
}

/* 구분선 스타일 */
ul li:nth-child(n+2) {
  border-top: 1px dashed black;
}

/* 배경 이미지 */
#bg-img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  z-index: 10;
  pointer-events: none;
}

/* 테이블 기본 스타일 */
table, th, td {
  table-layout: fixed;
}

th, td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
  border-bottom: dashed 1px #000;
}

table {
  padding-top: 25px;
}

/* 셀렉트 박스 스타일 */
select {
  width: calc(100vw - 20px);
  margin-bottom: 4px;
  position: fixed;
  background-color: #EEEEEE;
  border-radius: 3px;
  font-size: 14px;
  padding-top: 1px;
  padding-bottom: 1px;
}

#sheet-data {
  width: calc(100vw - 20px); /* 테이블 너비는 100% */
  table-layout: fixed; /* 각 열 너비 고정 */
}

/* 브라우저 가로가 768px 이하일 때 */
@media (max-width: 768px) {
  ul li span {
    font-size: calc(100vw - 20px); 
  }
  ul li:nth-child(n+2) {
    border: none;
    border-top: 1px solid transparent;
    border-image: repeating-linear-gradient(
      to right,
      black 0,
      black 4px,
      transparent 4px,
      transparent 8px
    );
    border-image-slice: 1;
    border-image-width: 1px 0 0 0;
    border-image-outset: 0;
    border-image-repeat: stretch;
  }
  .hide-on-mobile {
    display: none;
  }
  #sheet-data .col-no {
    width: 12%;
  }
  #sheet-data .col-name {
    width: 52%;
  }
  #sheet-data .col-booth {
    width: 12%;
  }
  #sheet-data .col-website-1 {
    width: 13%;
  }
  #sheet-data .col-instagram-1 {
    width: 11%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  ul li:nth-child(n+2) {
    border: none;
    border-top: 2px solid transparent;
    border-image: repeating-linear-gradient(
      to right,
      black 0,
      black 8px,
      transparent 8px,
      transparent 16px
    );
    border-image-slice: 1;
    border-image-width: 2px 0 0 0;
    border-image-outset: 0;
    border-image-repeat: stretch;
  }
  #sheet-data .col-no {
  width: 5%;
  }
  #sheet-data .col-name {
    width: 50%;
  }
  #sheet-data .col-country {
    width: 13%;
  }
  #sheet-data .col-booth {
    width: 8%;
  }
  #sheet-data .col-level {
    width: 12%;
  }
  #sheet-data .col-website-1 {
    width: 7%;
  }
  #sheet-data .col-instagram-1 {
    width: 5%;
  }
}

@media (min-width: 1025px) {
  ul li:nth-child(n+2) {
    border: none;
    border-top: 3px solid transparent;
    border-image: repeating-linear-gradient(
      to right,
      black 0,
      black 12px,
      transparent 12px,
      transparent 24px
    );
    border-image-slice: 1;
    border-image-width: 3px 0 0 0;
    border-image-outset: 0;
    border-image-repeat: stretch;
  }
  #sheet-data .col-no {
   width: 5%;
  }
  #sheet-data .col-name {
    width: 50%;
  }
  #sheet-data .col-country {
    width: 13%;
  }
  #sheet-data .col-booth {
    width: 8%;
  }
  #sheet-data .col-level {
    width: 12%;
  }
  #sheet-data .col-website-1 {
    width: 7%;
  }
  #sheet-data .col-instagram-1 {
    width: 5%;
  }
}
