
@font-face {
  font-family: 'Tasan Regular';
  src: url('fonts/Tasan Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

button, img, svg { /* 탭 하이라이트 제거 */
  -webkit-tap-highlight-color: transparent; 
}

::selection {
  background: #333;
  color: #fff;
}




body {

  margin: 0;
  padding: 0px;
  text-align: center;
  background-color: #111; 
}

body.main-bg { 
  background-color: #111; 
  }
body.detail-bg { 
  background-color: #fff; 
  }
body.gallery-bg { 
  background-color: #111; 
  }




/* 1. 메인페이지 메인페이지 메인페이지 메인페이지 메인페이지 메인페이지 메인페이지 메인페이지 메인페이지*/

#mainPage {  
  display: flex;
  flex-direction: column;  
  align-items: center;     
  justify-content: center;  
  min-height: 100vh;
}

#message {
  font-family: 'Tasan Regular', sans-serif;
  font-size: clamp(16px, 4vw, 32px);

  color: #eee;
}


.custom-input {
  
  margin-top: 40px;
  padding: 20px 30px;
  border-radius: 10px;

  border: 0;
  outline: none;
  
  font-family: 'Tasan Regular', sans-serif;
  text-align: center;
  font-size: clamp(16px, 6vw, 32px);
  letter-spacing: 0.6em;
  
  color: #111;
  background-color: #ddd
}

.custom-input::placeholder {
  color: #aaa;              /* 플레이스홀더 글자 색상 */
  font-family: 'Tasan Regular', sans-serif;
  font-size: clamp(16px, 3vw, 26px);
  letter-spacing: 0px;
}

#confirmBtn {
  margin-top: 50px;
}

#confirmBtn .cls-1 {

  fill: #ccc;
  transition: fill 0.2s ease;
}

#confirmBtn:hover .cls-1 {
  fill: #fff; /* hover 시 색상 변경 */
} 
 









/* 2. 상세페이지 상세페이지 상세페이지 상세페이지 상세페이지 상세페이지 상세페이지 상세페이지 상세페이지*/


#detailPage {
  margin: 0px;
  
  color: #111;
  display: flex;
  flex-direction: row;
  align-items: flex-start;

  justify-content: center;
  padding: 0;        

}

#flowerImage {
  height: 100vh;
  border-right: 1px solid #777;
}


.textBox{
  margin-left: 40px;
}

#flowerTitle {
  margin: 40px 0px 0px;

  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 700;
  font-size: 1.4em;
  text-align: left;
  color: #111;
}

#flowerBody {
  margin: 20px 240px 0px 0px;
  padding: 0px 0px;
  
  font-family: "source-han-sans-korean", sans-serif;
  font-weight: 400;
  
  font-size: 1.3em;
  letter-spacing: -0.05em;
  line-height: 1.8;
  text-align: left;
  word-break: keep-all;
  
  color: #444;
  
}

#flowerClosing {
    margin: 40px 0px 0px;
    
    font-size: 1.3em;
    font-family: "source-han-sans-korean", sans-serif;
    font-weight: 700;
    text-align: left;
    color: #111;

}



#goGalleryBtn {
  display: block;
  margin: 60px 0px 0px;
  
  padding: 10px 60px 8px;
  
  border: none;
  border-radius: 30px;
  
  background-color:#111;
  color: #eee;
  
  font-family: 'Tasan Regular', sans-serif;
  font-size: 1.3em;

  cursor: pointer;
  transition: background-color 0.3s;
}


#goGalleryBtn:hover {
  background-color: #eee;
  color: #111;
}



/* 3. 갤러리페이지 갤러리페이지 갤러리페이지 갤러리페이지 갤러리페이지 갤러리페이지 갤러리페이지 갤러리페이지*/

.gallery-grid {
  margin-top: 130px;
  margin-left: 80px;
  margin-right: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}


.gallery-grid img {
  width: calc(100% / 5 - 12px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .gallery-grid img:hover {
    opacity: 0.85;
  }
}


#goMainBtn {
  position: fixed;
  top: 40px;
  margin: 0px auto;
  transform: translateX(-50%);
  left: 50%;
  z-index: 1000;
  
  padding: 10px 90px 8px;
  
  border: none;
  border-radius: 30px;
  
  background-color: #eee;
  color: #111;
  
  font-size: 1.3em;
  font-family: 'Tasan Regular', sans-serif;
  
  cursor: pointer;
  transition: background-color 0.3s;
}

#goMainBtn:hover {
  background-color: #222;
  color: #eee;
}












/* 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일 모바일*/


@media (max-width: 768px) {
    body {
      margin: 0px;
      padding: 0px;
    }
  
  /*1.메인페이지 (모바일)*/
    
    #mainPage {  
      min-height: 86vh;
    }
    
    #message {
      font-size: 1.4em;
    }


    .custom-input {
      margin-top: 32px;
      padding: 20px 0px;
      font-size: 1.2em;
      letter-spacing: 0.6em;
    }

    .custom-input::placeholder {
      font-size: 1em;
      letter-spacing: 0px;
    }
    
    #confirmBtn {
      margin-top: 54px;
    }
    
   
    
    
  /*2.상세페이지 (모바일)  */
  
    #detailPage {
      color: #111a;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    #flowerImage {
      width: 100%;          
      max-width: 100%;
      height: auto;
      margin: 10px 0px 0px;
      
    }
    
    .textBox{
      margin: 0px;
    }
    
    #flowerTitle {
      margin: 34px 0px 0px;
      
      text-align: center;
      font-size: 1.1em;
    }
  
    #flowerBody {
      margin: 16px 0px 0px;
      padding: 0px 25px;
      
      font-size: 1em;
      letter-spacing: -0.05em;
      line-height: 1.6;
      text-align: center;
      word-break: keep-all;
      
    }
  
    #flowerClosing {
      margin: 34px 0px 0px;
      font-size: 1em;
      text-align: center;
    }
  
    #goGalleryBtn {
      margin: 0px auto;
      margin-top: 70px;
      margin-bottom: 40px;
      
      padding: 10px 16vw 8px;
      width: auto;
      
      font-size: 1.3em;
    }
    
    #goGalleryBtn:active {
      background-color: #eee;
      color: #111;
    }

    
  
  
  /*3. 갤러리페이지 (모바일)*/
  
    .gallery-grid {
      margin-top: 96px;
      margin-left: 0px;
      margin-right: 0px;
    }
  
    .gallery-grid img {
      width: calc(100% / 3 - 8px);
    }
    

  
  
    #goMainBtn {
    position: fixed;
    top: 24px;
    margin: 0px auto;
    transform: translateX(-50%);
    left: 50%;
    z-index: 1000;
    
    padding: 10px 16vw 8px;
    
    border: none;
    border-radius: 30px;
    
    background-color: #eee;
    color: #111;
    
    font-size: 1.3em;
    font-family: 'Tasan Regular', sans-serif;
    
    cursor: pointer;
  }
  
    #goGalleryBtn:active {
    background-color: #111;
    color: #eee;
  }
    
    
}


