/* *{
    cursor: url(cursor/default.png) 2 2, auto;
} */

@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, h2 {
    margin: 0;
    }

#header {
  position: relative;
}

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

#title h1 {
  position: relative;
}

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

.contact{
  position: absolute;
  top: 60px; /* 원하는 값으로 조절 */
  right: 60px; /* 오른쪽 여백 */
  transform: rotate(-10deg);
  line-height: 1.7;
  z-index: 10;
}

.contact :hover {
  color: gray;
}

mark {
  background-color: whitesmoke;
  padding: 1px 6px;
  /* border-radius: 4px; */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

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

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

.work-container {
  margin-top: 7em;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.decks {
  column-width: 350px;   /* 각 열의 대략적인 너비 */
  column-gap: 20px;      /* 열 사이 간격 */
  width: 100%;
}

.card {
  position: relative;
  display: inline-block;  /* 컬럼 내에서 독립적으로 쌓이게 함 */
  width: 100%;
  margin-bottom: 20px;
  /* border: 2px solid black; */
  /* border-radius: 4px; */
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease;
  /* box-shadow: 0px 0px 2px black; */
}

.card:hover {
  transform: scale(1.04);
}

.card img {
  width: 100%;
  height: auto;           /* 원본 비율 유지 */
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;  /* 어두워짐 애니메이션 */
}

.card .caption {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* 중앙 정렬 */
  color: black;
  font-family: 'MinGothic', sans-serif;
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  pointer-events: none; /* 클릭 방해 방지 */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

/* 🔹 hover 시 변화 */
.card:hover img {
  opacity: 0.3; /* 이미지 어둡게 */
}

.card:hover .caption {
  opacity: 1;   /* caption 보이게 */
}

.footer {
  position: fixed;      /* 스크롤과 상관없이 고정 */
  bottom: 0;            /* 화면의 맨 아래에 붙임 */
  left: 0;              /* 좌측 기준 */
  width: 100%;          /* 브라우저 가로 전체 차지 */
  background: white;    /* 배경색 */
  border-top: 2px solid black;
  text-align: center;   /* 중앙 정렬 */
  padding: 10px 0;      /* 세로 여백 */
  font-family: 'MinGothic';
  font-size: 0.9em;
  z-index: 1000;        /* 다른 요소 위에 표시 */
}

.footer button {
  color: black;
  background: none;
  border: none;
  font-size: 1.5em;
  margin: 0 10px;
  cursor: pointer;
  font-family: 'MinGothic';
  transition: 0.2s;
}

.footer button:hover {
  color: gray;
  transform: scale(1.1);
}

.footer button.active {
  font-weight: bold;
  border-bottom: 2px solid black;
}

/* 아이패드 가로 */
@media screen and (max-width: 1300px) {
    #title{
    font-family: 'ParkMingyu';
    font-size: 3em;
    line-height: 1;
    }

  .contact{
  position: absolute;
  top: 90px; /* 원하는 값으로 조절 */
  right: 60px; /* 오른쪽 여백 */
}
}

/* 브라우저 반쪽 */
@media screen and (max-width: 1000px) {
    #title{
    font-family: 'ParkMingyu';
    font-size: 2.5em;
    line-height: 1;
    }

  .contact{
  position: absolute;
  top: 80px; /* 원하는 값으로 조절 */
  right: 30px; /* 오른쪽 여백 */
}
}

/* 아이패드 세로 */
@media screen and (max-width: 820px) {
    #title{
    font-family: 'ParkMingyu';
    font-size: 2.5em;
    line-height: 1;
    }

  .contact{
  position: absolute;
  top: 130px; /* 원하는 값으로 조절 */
  right: 60px; /* 오른쪽 여백 */
}
}

/* 큰 아이폰 */
@media screen and (max-width: 768px) {
  
    body{
    padding: 0 0;
    }

    #title{
    font-family: 'ParkMingyu';
    font-size: 2.5em;
    line-height: 1;
    }

    .contact {
    font-size: 10px;
    position: absolute;
    top: 100px; /* 원하는 값으로 조절 */
    right: 5px; /* 오른쪽 여백 */
    transform: rotate(-10deg);
    line-height: 1.8;
    }

    h1, h2 {
    margin: 0;
    }

    .work-container {
    margin-top: 1em;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 680px) {
  .footer {
  text-align: center;   /* 중앙 정렬 */
  padding: 10px 0;      /* 세로 여백 */
  font-family: 'MinGothic';
  font-size: 0.9em;
  z-index: 1000;        /* 다른 요소 위에 표시 */
}

.footer button {
  font-size: 1em;
  margin: 0 10px;
  cursor: pointer;
  font-family: 'MinGothic';
  transition: 0.2s;
}

}

@media screen and (max-width: 400px) {
    body{
    padding: 0 0;
    }

    #title{
    font-family: 'ParkMingyu';
    font-size: 2em;
    line-height: 1;
    }

    .contact {
    font-size: 10px;
    position: absolute;
    top: 80px; /* 원하는 값으로 조절 */
    right: 5px; /* 오른쪽 여백 */
    transform: rotate(-10deg);
    line-height: 1.8;
    }

    h1, h2 {
    margin: 0;
    }

    .work-container {
    margin-top: 1em;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }


}

