*{
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 9pt;
}


    body{
    background-color: var(--beige);
    background-image: 
        linear-gradient(to right, white 1px, transparent 1px),
        linear-gradient(to bottom, white 1px, transparent 1px);
    background-size: 60px 60px;
    margin: 0;
    padding: 0;
}

:root{
    --blue:cadetblue;
    --beige:rgb(238, 236, 230);
    --grey:rgb(108, 108, 108);
}

::selection{
    background-color:var(--blue);
    color:white;
}

a, a:visited, a:active{
    color:black;
    text-decoration: none;
    cursor: default;
    text-decoration: underline dotted rgb(184, 183, 183);
}

a:hover{
    color:var(--blue);
}

h6{
  color: var(--grey);
  font-family: 
  font-size: 8pt;
  font-style: italic;
  font-weight: normal;
  margin: 2px;
}

h6 a, h6 a:visited, h6 a:active{
    color:var(--grey);
    text-decoration: underline dotted var(--grey);
    
}

h6 a:hover {
    color: var(--blue); 
}

.button{
  background: var(--beige);
  border: 1px dotted black;
}

.container{
    display:flex;
    gap:30px;
    max-width:900px;
    margin:auto;
    padding: 10px 20px;
}

.main-content{
    width: 450px;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);

}

.navigator{
  display: flex;
}

.nav-container {
    display: flex;     
    gap: 50px;         
    justify-content: center; 
    margin-top: 20px;
}

.nav-container button {
    background: white;
    border: 1px solid black; 
    padding: 5px 12px;
    font-family: Georgia, serif;
    font-style: italic;
    cursor: pointer;
}

.nav-container button:hover {
    background-color: black;
    color: white;
}

.img-wrapper {
    position: relative;
    display: block;        
    margin: 20px auto;     
    width: 100%;           
    max-width: 400px;      
    background: white;    
    padding: 10px;        
    border: 1px solid #ddd; 
}

.img-wrapper img {
    width: 100%;
    display: block;
    /* Optional: filter: sepia(0.1); -> Adds a very subtle vintage feel */
}

.br-img-wrapper {
    position: relative;    
    display: inline-block; 
    width: 400px;         
}

.br-img-wrapper img {
    width: 100%;          
    display: block;
}

.hotspot {
    position: absolute;    
    
    top: 20%;             
    left: 43%;           
    width: 12%;         
    height: 17%;         
    
    border-radius: 50%;
    cursor: pointer;
}

#random-text {
    margin-top: 12px;
    font-size: 10pt;
    color: dimgray;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    line-height: 1.4;
}


.sub-box{
    border:dotted 1px;
    padding: 10px;
    margin:10px;
}

.sidebar {
    width:300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.divider::before{
    content:"──────── 𝄃𝄃𝄂𝄂𝄀𝄁𝄃𝄂𝄂𝄃 ───────";
}

.divider{  
    width: 100%;
     text-align: center;
}

h1{
    color:dimgray;
    font-size:15pt;
}


ul li{
    list-style:none;
    }

ul li::before{content:"□  ";}

.gallery {
    background:white;
    margin:auto;
    padding:50px;
    max-width:1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.photo {
    perspective: 1000px; 
    height: 250px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* 더 쫀득한 애니메이션 */
    transform-style: preserve-3d;
}

.photo:hover .card-inner {
    transform: rotateY(180deg);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* 사파리 대응 */
  border-radius: 8px;
  overflow: hidden;
}

.card-front {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 앞면 이미지가 카드 꽉 차게 */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-back {
  background: white;
  padding: 20px;
  transform: rotateY(180deg);
  line-height: 1.4;
  font-size: 11pt;
  border: 1px solid black;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.photo.is-flipped .card-inner {
  transform: rotateY(180deg);
}


.card-back ul {
    text-align: left;
    padding-left: 10px;
}

.card-back ul li {
  margin: 0;
  padding: 0;
}

.card-back ul li::before {
  content: "□";
  display: inline-block;
  width: 1.2em;        /* 불릿 자리 폭 고정 */
}


@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .photo {
    height: 260px; /* 필요하면 조절 */
  }


  .container {
    flex-direction: column;
    gap: 16px;
    padding: 12px;
  }

  .main-content,
  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 14px;
  }

  /* 메인 이미지가 화면 밖으로 안 나가게 */
  .img-wrapper {
    width: 100%;
    max-width: 400px; /* 원래 감성 유지용, 필요하면 삭제 */
  }

.br-img-wrapper {
    width: 100%;
    max-width: 400px;
  }


  /* iframe도 반응형 */
  .sidebar iframe {
    width: 100%;
    height: 420px; /* 취향으로 조절 */
  }
}

.now {
    height: 150px;
    border: 1px dotted var(--blue);
    padding: 14px;
    margin-bottom: 18px;
    background: white;
    font-size: 10.5pt;
    line-height: 1.5;
}

.now-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.now-label {
  font-size: 9pt;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: var(--blue);
}

.now-date {
  font-size: 8.5pt;
  color: gray;
}

.now p {
  margin: 0;
}
