@font-face {
  font-family: 'MinGothic';
  src: url(fonts/MinGothic-Regular.otf) format('opentype');
}
@font-face {
  font-family: 'AGsuper';
  src: url(fonts/AGSuperBlackGothic.otf) format('opentype');
}
@font-face {
  font-family: 'ParkMingyu';
  src: url(fonts/ParkMingyu.otf) format('opentype');
}

h1{
  margin: 0;
}

#title {
  font-family: 'ParkMingyu';
  font-size: 1em;
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: 10;
  
}

.color-changer {
  cursor: grab;
  display: inline;
}

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

#detail-container{
  display: flex;
  justify-content: center;
  width: 100%;
  height: 80vh;
}

.detail{
  display: inline-block;
  margin: 10px;
  padding: 30px;
  line-height: 1.5;
  word-break: keep-all;
  /* background: wheat; */
  
}

.detail.photo {
  height: 100%; /* 또는 원하는 값 예: 80vh */
  width: 50%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 이미지 사이 여백 */
}

.detail.photo img{
  width: 100%;
  height: auto;
  display: block;
}

.detail.photo iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 16:9 비율 유지 */
  display: block;
  border: none;
}

.detail.info{
  font-size: 1.2em;
  width: 25%;
}

.detail.content{
  width: 25%;
  font-size: 1.2em;
}

body{
  background-color: #E5E4E2;
  font-family: 'MinGothic';
  padding: 5px 60px;
}

@media screen and (max-width: 1300px) {

  .detail.info{
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 3em;
  }

  .detail.content{
  font-size: 1em;
  }
}

@media screen and (max-width: 768px) {

  #title{
    font-size: 0.7em;
  }

  #detail-container {
    flex-direction: column;
    align-items: center;
    height: auto; /* 세로 높이 자동 */
  }

  .detail {
    width: 100%;         /* 가로 폭 줄이기 */
    margin: 10px;      /* 위아래 간격 */
    padding: 0px;
  }

  .detail.photo {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .detail.photo img{
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  }

  .detail.info{
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 3em;
  }

  body {
    padding: 0px;
  }
}

