:root {

  --font-size-xsmall: 9px;
  --font-size-caption: 12px;
  --font-size-small: 14px;
  --font-size-medium: 17px;
  --font-size-main: 19px;
  --font-size-large: 26px;
  --font-size-xlarge: 32px;

}

body {
  box-sizing: border-box;
  margin: 0;
  font-size: var(--font-size-medium); 
  line-height: 1.8;
  font-family: 'Noto Serif KR', serif;
  text-align: center;
}

p{
  margin: 0;
}

.en {
  font-family: 'Syne Tactile', system-ui;
}

button {
  font-size: var(--font-size-medium);
  background-color: transparent;
  padding: 0;
  color:#666666;
}

#mainContent {
  font-size: var(--font-size-small);
}


.small-text {
  font-size: var(--font-size-small);
}

.medium-text {
  font-size: var(--font-size-medium);
}

.large-text {
  font-size: var(--font-size-large);
}

.xlarge-text {
  font-size: var(--font-size-xlarge);
}

button{
  font-family: 'Noto Serif KR', serif;  
}

button.active{
  color: black;
}

header{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 1vh 3vh 1vh;
  margin: 0 2vh;
  margin-bottom: 3vh;
}

footer{
  font-family: 'Noto Sans KR', sans-serif;
  font-size: var(--font-size-xsmall);
  color: gray;
  margin: 10px;

  position: fixed;
  bottom: 2vw;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.header__img{
  width: 40px;
}
.header__title{
  position: relative;
}
#title {
  font-size: var(--font-size-xlarge);
  line-height: 0;
}
.subtitle{
  font-size: var(--font-size-small);
  line-height: 0;
  color: gray;
}
.header__text{
  font-family: 'syne tactile';
  font-size: var(--font-size-small);
  line-height: 0;
}
.header__about, .header__title, .header__more{
  padding-top: 1vh;
}

#s1 {
  padding-bottom: 2vh;
}


#aboutBtn {
  position: fixed; 
  top: 10px;      
  right: 10px;    
  z-index: 100;  
}

#foodsList {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3개의 열, 각 열은 동일한 너비를 가짐 */
  grid-template-rows: repeat(3, 1fr); /* 3개의 행, 각 행도 동일한 높이를 가짐 */
  gap: 0px; 

  width: 90%;
  margin: auto;
  margin-bottom: 5vh;

  font-size: var(--font-size-caption);
}

.grid-cell {
  border: none;
  position: relative;
    width: 100%; /* 셀 너비 */
    padding-top: 100%; /* 셀 높이 (정사각형 유지) */
    cursor: pointer; /* 마우스 오버 시 포인터 모양 변경 */

  border-radius: 50%;
  box-shadow: 0 0 0 3px white inset;
}

.grid-cell img {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
}

.grid-cell label{
  color: #8a6760;
  position: absolute;
  font-weight: 500;
  
  width: 100%;
  text-align: center;
  bottom: 12px;

  visibility: hidden;
}

.grid-cell img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* 이미지 너비 (셀 너비에 맞춤) */
  height: 100%; /* 이미지 높이 (셀 높이에 맞춤) */
}
.grid-cell input[type="checkbox"] {
  opacity: 0; /* 완전히 투명하게 */
  position: absolute; /* 레이아웃에서 제거 */
  cursor: pointer; /* 마우스 오버시 커서 변경 */
}

/* 체크된 체크박스를 포함하는 셀의 스타일: 그림으로 바뀌면 없애도 됨 */
.grid-cell input[type="checkbox"]:checked + label {
  background-color: #e0e0e0;
}

#nextBtn {
  width: 120px; 
  height: 45px; 
  padding: 10px;
  background-color: white;

  font-family: 'Diphylleia';

  background-image: url('img/ui/next1.svg'); /* 기본 SVG 이미지 경로 */
  background-size: cover;
  border: none;
  cursor: pointer;
  transition: transform 1s ease; /* 애니메이션 효과 */
}

#nextBtn:disabled {
  cursor: default;
  background-image: url('img/ui/next1.svg'); /* 비활성화 상태의 SVG 이미지 경로 */
}




#nextBtn.active {
  background-image: url('img/ui/next2.svg'); /* 활성화 상태의 SVG 이미지 경로 */
  animation: pulse 0.7s infinite; /* 1초 동안 지속되는 애니메이션을 무한 반복 */
  /* animation: pulse 0.3s;  */
  color: white;
}

/* 커졌다 작아지는 키 프레임 애니메이션 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.075);
  }
  100% {
    transform: scale(1);
  }
}



#resultContent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column; 
  align-items: center;
  box-sizing: border-box;
}

#resultContent div.text-container {
  width: 100%;
}

#resultContent div.gray-container {
  padding-top: 5vw;
  line-height: 1.4;
}
.why {
  font-size: var(--font-size-caption);
  color: #666666;
  line-height: 2;
}
.who {
  font-family: 'Diphylleia', serif;
  font-size: var(--font-size-xlarge)
}
.s-name {
  font-size: var(--font-size-medium)
}

#resultContent {
  background-color:white;

}

#resultContent div.yellow-container {
  padding-bottom: 5px;
  font-family: 'Diphylleia', serif;
  letter-spacing: -0.03em;
  color: #666666;
  font-size: var(--font-size-main);
}

#resultContent img {
  max-width: 100%; /* 최대 너비 차지 */
  height: auto; /* 이미지 비율 유지 */
}

#resultContent .buttons-container {
  position: absolute;
  bottom: 7vw;
  display: flex;
  flex-direction: row;
  padding-top: 5vw;
  padding-bottom: 3vw;
  gap: 3vw;
}
#resultContent button {
  border: none;
  background-color: transparent;
  width: 8vw;
  height: 8vw;
}


#loadingPage {
  display: none;
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: antiquewhite; 
  z-index: 1; 
  opacity: 1; 
  transition: opacity 2s ease-in-out; 
}

.loadingAnimations {
  display: flex;
  width: 80vw;
  height: 80vw;
  position: relative; 
}

.loadingAnimation1, .loadingAnimation2 {
  flex: 1;
  height: 100%;
}

#footPrints {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.fade-out {
  animation: fadeOutAnimation 2s forwards; /* 2초 동안 fadeOutAnimation 실행 */
}

@keyframes fadeOutAnimation {
  0% {
      opacity: 1;
      display: block;
  }
  100% {
      opacity: 0;
      display: none;
  }
}


#loadingPage .contents {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.loading__text{
  font-size: var(--font-size-small);
  padding-top: 5vh;
}


#birdLottie {
  max-width: 100vw;
  max-height: 100vw;
  margin: 0 auto;
}

#about__container, #more__container{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);

  display: none;
}

#about, #more {
  /* position: absolute; */
  margin: auto;
  width: 90%;
  background-color:snow;
  border-radius: 6px;
  position: fixed; 
  top: 50%; 
  left: 50%; 

  transform: translate(-50%, -50%);
  padding: 20px 0;

}

#about {
  background-color: hsl(54, 89%, 82%);
}
.about__header {
  position: relative;
  margin: 16px 0;
}



.about__animation{

  width: 70vw;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}


.about__title{
  /* font-family: 'Diphylleia'; */
  font-size: var(--font-size-medium);
}
.about__title__en{
  font-family: 'Syne Tactile';
  font-size: var(--font-size-small);
  line-height: 1.2;
  
}
.about__title.en, .more__title.en {
  margin-top: 1em;
}

.about__text, .more__text {
  font-size: var(--font-size-small);
  margin: 1.2em;
}
.about__citation {
  font-family: 'Syne Tactile';
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
}

#more {
  background-color: #99b6ee;
}
.more__title{
  font-size: var(--font-size-medium);
}
.more__title.en{
  font-size: var(--font-size-small);
  line-height: 1.2;
  color: hsl(214, 45%, 47%);
}

.more__sitemap {
  margin: 2em;
  display: flex;
  flex-direction: row;
  justify-content: space-around;

  font-size: var(--font-size-caption);
}
.more__sitemap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0 40px;
  gap: 30px;

  color: hsl(214, 45%, 47%);
  font-family: 'Noto sans', sans-serif;
}
.more__text {
  padding-bottom: 0;
}
.site {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.about__close, .more__close {
  border: none;
  width: 30px;
}







.access__pc{
  position: fixed;
  top:0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  background-color: hsl(56, 43%, 87%);

  font-family: 'Diphylleia';
}
.pc__background{
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  font-size: 1.1rem;
  text-align: center;

}
.pc__text{
  color: black;
}
.pc__image{
  margin: 0;
}


.hidden{
  visibility: hidden;
}