/* Global */
:root {
    /* App Colors */
    --color-primary: var(--color-skyblue);
    --color-primary-variant: var(--color-white)
    --color-accent: var(--color-darkblue);
    --color-accent-variant: var(--color-blue);
    --color-text: var(--color-black);
    /* Colors */
    --color-white: #ffffff;
    --color-black: #04080f;  
    --color-darkblue: #122765;   
    --color-skyblue: #c6f3f6;     
    --color-blue: #4abee4;
}

* {
    box-sizing: border-box;
}

.section {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Header */
.header{
    position: fixed;
    top:0;
    padding: 0.4rem;
}

.header__logo{
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo__img {
    width:auto;
    max-width: 150px;
    height: 3vh;
}
.header__logo__img2 {
    width:auto;
    max-width: 150px;
    height: 10vh;
    filter: drop-shadow(0 0 2px rgba(28, 26, 96, 0.8));
}
/* Body */
body {
    font-family : 'Gowun Batang', Arial, Helvetica, sans-serif;
    margin:0;
}
html, body{
    height:100%;
}

.bg__section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height:100%;
}
.home__background {
    background-image: url('../images/home_bg.jpg');
}

.street__background {
    background-image: url('../images/street_bg.png');
}

.mailbox__background {
    background-image: url('../images/mailbox_bg.png');
}

.room__background {
    background-image: url('../images/room_bg.jpg');
   }

.firm__background {
    background-image: url('../images/firm_bg.jpg');   
}

.subway__background {
    background-image: url('../images/subway_bg.jpg');   
}

.dream__background {
    background-image: url('../images/dream_bg.jpg');   
}

.room2__background {
    background-image: url('../images/room_bg.jpg'); 
    transition: filter 1.5s ease-in-out;
    filter: grayscale(0); 
}

  .room2__background.grayscale {
    filter: grayscale(1); 
  }
  
  .room2__background.fade-from-gray {
    filter: grayscale(1);
    transition: filter 2s ease;
  }
  
  .room2__background.fade-from-gray.active {
    filter: grayscale(0);
  }

  .hsh__background {
    background-image: url('../images/hsh_bg.jpg');   
}
.airport__background {
    background-image: url('../images/airport_bg.jpg');   
}
.sk__background {
    background-image: url('../images/84-2.jpg');   
}

  
/* Home */
#Home {
        color: var(--color-text);
        padding: 5vh 1rem;
        padding-top: 18vh;
        text-align: center;
    }

.home__start-link {
  display: inline-block; /* a태그를 이미지 크기만큼만 */
}


.home__start {
  width: 100%;
  max-width: 400px;
  height: auto;
  transition: all 0.4s ease;
  margin-bottom: 4vh;
}

.home__start:hover {
    filter: drop-shadow(0 0 7px rgba(127, 185, 255, 0.8));
}

.home__title {
    width: 90%;
    max-width: 450px;
    height: auto;
    margin-bottom: 2rem;
}

.home__click {
    font-size: 0.6rem;
    margin-top: 4vh;
    color: #457196;
}

/* Story */
#Story{
    color: var(--color-text);
        padding-top: 20vh;
}

#Story2{
    color: var(--color-text);
        padding-top: 15vh;
}

.story__title__box {
  width: 80%;
  max-width: 150px;
  height: 2rem;
  margin: 0 auto;
  background-color: rgba(194, 212, 221, 0.2);
  border-radius: 20px;
  line-height: 2rem;
  margin-bottom: 2rem;
}

.story__title__box2 {
        width: 80%;
        max-width: 150px;
        height: 2rem;
        margin: 0 auto;
        background-color:rgba(123, 160, 178, 0.602);
        border-radius: 20px;
        line-height: 2rem;
        margin-bottom: 2rem;
}

.story__title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8); 
    font-family: "Gowun Batang", serif;
    font-weight: 700;
}

.story__text {
font-family: "Gowun Batang";
font-size: 0.67rem; /* 데스크탑 기준 적당한 크기 */
font-weight: 400;
margin-bottom: 1rem;
color: #2d3e4c;
}

.story__text2 {
    font-family: "Gowun Batang";
    font-size: 0.67rem; /* 데스크탑 기준 적당한 크기 */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3e4c;
    }

.letter__text {
    font-family: "Gaegu", "Zen Kurenaido", sans-serif;
    font-weight: 300;
    font-size: 0.8rem; /* 데스크탑 기준 적당한 크기 */
    margin-bottom: 1rem;
    color: #2d3e4c;
    }

    .letter__text2 {
        font-family: "Gaegu", "Zen Kurenaido", sans-serif;
        font-weight: 600;
        font-size: 0.8rem; /* 데스크탑 기준 적당한 크기 */
        margin-bottom: 1rem;
        color: #2d3e4c;
        }   

.story__image {
    width: 100%;
    max-width: 300px;  
    height: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
}

.story__next1 {
 display: inline-flex;
 align-items: center;
gap: 6px;
position: absolute;
bottom: 7%; 
right: 5%;   
font-size: 1.1vh;
color: #457196;
}

.story__next2 {
    display: inline-flex;
 align-items: center;
gap: 6px;
position: absolute;
bottom: 8%; 
scroll-margin-right: 10%;   
font-size: 1.1vh;
color: #457196;
transition: all 0.4s ease;
   }

.story__next1:hover {
    filter: drop-shadow(0 0 5px rgb(122, 186, 255));
    transform: scale(1.1);
}
.story__next2:hover {
    filter: drop-shadow(0 0 5px rgb(122, 186, 255));
    transform: scale(1.1);
}

.story__container {
    position: relative;
    width: 80%; /* ⭐ 부모 박스 기준 만들기 */
    max-width: 500px;
    height: 500px; /* 원하는 가로 크기 */
    margin: 0 auto; /* 화면 중앙 정렬 */
    overflow: hidden; /* 넘치는 건 잘라버리기 */
    text-align: center;
  }
  
.story__before1 {
    display: inline-flex;
 align-items: center;
gap: 6px;
position: absolute;
bottom: 7%; 
left: 30px;   
font-size: 1.1vh;
color: #457196;
}

.story__before2 {
    display: inline-flex;
 align-items: center;
gap: 6px;
margin-top: 3rem;
position: static;
bottom: 17vh; 
scroll-margin-left: 30%;   
font-size: 1.1vh;
color: #457196;
    transition: all 0.4s ease;
    justify-content: center;
  }


.story__before1:hover {
    filter: drop-shadow(0 0 5px rgb(122, 186, 255));
    transform: scale(1.1);
}

.story__before2:hover {
    filter: drop-shadow(0 0 5px rgb(122, 186, 255));
    transform: scale(1.1);
}


.story__box {
    width: 80%;
    max-width: 500px;        /* 박스 너비 */
    height: auto;       /* 박스 높이 */
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;  
    padding-bottom: 10vh;     /* 안쪽 여백 */
    overflow: hidden;    /* 넘치는 내용 잘라냄 */
    border-radius: 20px;
    position: relative;
  }

  .story__box2 {
    width: 80%;
    max-width: 500px;    /* 박스 너비 */
    height: auto;       /* 박스 높이 */
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 1.5rem ;  
    padding-bottom: 10vh;     /* 안쪽 여백 */
    overflow: hidden;    /* 넘치는 내용 잘라냄 */
    border-radius: 20px;
    position: relative;
  }


.mailbox__box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px 3px;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .mailbox__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(25% - 8px); /* 4개 꽉 채우기, gap 고려 */
    max-width: 100px;
    text-decoration: none;
  }
  
  .mailbox {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
  }

  .mailbox:hover {
    filter: drop-shadow(0 0 5px rgb(122, 186, 255));
  }
  
  

  .mailbox.clicked {
    animation: shake 0.3s;
}

  /* 흔들리는 효과 */
  @keyframes shake {
    0% { transform: translate(2px, 2px); }
    25% { transform: translate(-2px, -2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
  }

  .shake {
    animation: shake 0.3s;
  }

/* footer */
.rights {
    position: fixed;
    bottom: 0;
    width: 100%;
  font-size: 0.5%;
  color: #457196;
}
  


/* Fonts */
  .zen-kurenaido-regular {
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 10;
    font-style: normal;
  }
  
  .gowun-batang-regular {
    font-family: "Gowun Batang", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .gowun-batang-bold {
    font-family: "Gowun Batang", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  
  .noto-serif-kr {
    font-family: "Noto Serif KR", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }

  .vt323-regular {
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
  }

  .nanum-pen-script-regular {
    font-family: "Nanum Pen Script", cursive;
    font-weight: 400;
    font-style: normal;
  }
  
  .gaegu-light {
    font-family: "Gaegu", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .gaegu-regular {
    font-family: "Gaegu", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .gaegu-bold {
    font-family: "Gaegu", sans-serif;
    font-weight: 700;
    font-style: normal;
    
  }
  
  
  
  h1,h2,h3,p,ul {
    margin: 0;
  }

  ul {
    list-style: none;
    padding:0;
  }

  a{
    text-decoration : none;
    color: var(--color-text);
  }

  /* 키패드  */

  /* 인풋 디스플레이와 리셋버튼 */

  .hint-wrapper {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    margin-bottom: 10px;
  }


  .hint-floating {
    position: fixed; 
    top: 0.8rem; 
    right: 1rem; 
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #e8f5e9;
    z-index: 9999; /* 최상단 */
    transition: transform 0.2s;
  }
  
  .hint-floating:hover {
    transform: scale(1.2);
  }
  
  .hint-floating2 {
    position: fixed; 
    top: 4rem; 
    right: 1.1rem; 
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #e8f5e9;
    z-index: 9999; /* 최상단 */
    transition: transform 0.2s;
  }
  
  .hint-floating2:hover {
    transform: scale(1.2);
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0.5rem auto;
  }
  
  .reset-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px; /* 위랑 살짝 간격 주기 */
  }
  
  #inputDisplay {
    font-size: 1rem;
    letter-spacing: 1px;
    text-align: center;
    width: 13rem;
    height: 2rem;
    background-color: rgba(21, 28, 52, 0.668);
    line-height: 2rem;
    border-radius: 12px;
    font-family: 'VT323';
    color: #e8f5e9;
    margin: 0 auto;
    transition: background-color 0.5s ease;
  }
  
  .reset-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    background-color: rgba(176, 193, 222, 0.531);
    border: none;
    border-radius: 11px;
    cursor: pointer;
    margin-left: 11rem ;
  }

  .reset-btn:hover {
    transform: scale(1.1);
  }
  
  
  /* 현관비번에피story3 */
  .keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    width: 220px;
    margin: 0.6rem auto;
    margin-top: 1rem;
  }
  
  .key {
    font-size: 1rem;
    padding: 0.9rem;
    background-color: #eef;
    border: none;
    border-radius: 19px;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
    transition: background-color 0.5s ease;
  }

  .key:hover{
    background-color: rgb(180, 191, 233);
  }
  
  @keyframes shake {
    0% { transform: translate(2px, 2px); }
    25% { transform: translate(-2px, -2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
  }
  


  #inputDisplay.shake {
    animation: shake 0.3s ease;
  }
  
  /* 틀렸을 때 빨갛게 */
  #inputDisplay.red-shadow {
    background-color: rgba(255, 116, 103, 0.8) !important;
  }
  
  .hint-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    padding: 5rem;
    z-index: 1000;
    display: none;
  }
  
  .hint-popup.show {
    display: block;
  }
  
  .hint-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    font-size: 0.7rem;
  }
  .hint-popup .hint-content a#youtubeIcon {
    display: block;
    margin: 0 auto 0.5rem;    /* 아래에 텍스트와의 간격을 위해 margin-bottom 추가 */
  }
  .hint-content2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    font-size: 1rem;
  }

  .hint-content img {
    width: 2rem;
    height: auto;
    
  }
  
  #hintClose {
    position: absolute;
    top: -70px;
    right: -70px;
    display: inline; 
    border: none;
    background: none;
    border-radius: 15px;
    cursor: pointer;
  }

  #hintClose i {
    margin: 0; 
    padding: 0;
  }
  
  #hintClose:hover {
    transform: scale(1.1);
  }

  /* 이미지 블러 */
  .blur-wrapper {
    position: relative;
    display: inline-block;
  }
  
  #blurImage {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    filter: blur(8px);
    transition: filter 0.4s ease;
    cursor: pointer;
  }
  
  #blurImage.clear {
    filter: blur(0) !important;
  }
  
  #clickText {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.717);
    font-size: 0.8em;
    pointer-events: none;
    transition: opacity 0.4s ease;
    font-family: 'Nanum Pen Script';
    background-color: rgba(71, 101, 136, 0.492);
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
  }
  

  /* shake, red-shadow, keypad 등 나머지 스타일은 그대로 유지 */
  
  
  @keyframes popupFadeIn {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .hint-popup.show {
    display: block;
    animation: popupFadeIn 0.4s ease forwards;
  }

  /* 보관함, 안내문 */
  /* 안내 문구 (토스트 스타일) */
.delayed-message {
    position: fixed;
    bottom: 57vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.395);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.6rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;

  }
  
  .delayed-message.show {
    opacity: 1 ;
    visibility: visible;
  }

  .hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  
  /* 보관함 아이콘 */

  .inbox-icon {
    position: fixed;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.6rem;
    color: #e8f5e9;
    padding: 0.4rem;
    border-radius: 50%;
    z-index: 10000;
    transition:transform 0.3s ease;
  }
  .inbox-icon:hover {
    transform: scale(1.1);
  }

  .inbox-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; 
    background: rgba(238, 238, 255, 0);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    height: 100vh; 
  }
  
  /* 모달 보여주기 */
.inbox-modal.show {
    display: flex;
  }
  
 /* 모달 내부 박스 */
.inbox-content {
    background: #ffffffd2;
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 50%;
    max-height: 80%;
    overflow: auto;
    position: relative;
display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
 }

 .boxname {
    font-size: 1rem;
    background-color: #153c5b98;
    padding: 5px 10px;
    line-height: 1rem;
    border-radius: 20px;
 }
  
.firstletter {
    width: 70%;
    height: auto;
    background-color: rgba(93, 128, 188, 0.508);
    padding: 0.5rem 1rem;
    border-radius: 20px;

}   
/* 닫기 버튼 */

#inboxClose {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline; 
    border: none;
    background: none;
    border-radius: 15px;
    cursor: pointer;
  }

  #inboxClose:hover {
    transform: scale(1.1);
  }

  /* 본문 래퍼가 흐릿해질 때 */
#pageContent.blurred {
    min-height: 100vh; 
    filter: blur(4px);
    transition: filter 0.3s ease;
  }
  
  /* 모달 (기존) */
  .hint-popup.show,
  .inbox-modal.show {
    display: flex; /* 또는 block */
  }
  
 

  /* 정답입력창 */
  .answer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.7rem;
}

#answerInput7,
#answerInput10, 
#answerInput12, 
#answerInput13,
#answerInput15,
#answerInput16,
#answerInput18,
#answerInput23,
#answerInput25 {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
    width: 200px;
    transition: background-color 0.4s, border 0.4s;
    gap: 0.5px;
}

#answerInput7.shake, 
#answerInput10.shake,
#answerInput12.shake,
#answerInput13.shake,
#answerInput15.shake,
#answerInput16.shake,
#answerInput18.shake,
#answerInput23.shake,
#answerInput25.shake, {
    animation: shake 0.4s ease;
}

#answerInput7.red-shadow, 
#answerInput10.red-shadow,
#answerInput12.red-shadow,
#answerInput13.red-shadow,
#answerInput15.red-shadow,
#answerInput16.red-shadow,
#answerInput18.red-shadow,
#answerInput23.red-shadow,
#answerInput25.red-shadow
{
    background-color: rgba(255, 116, 103, 0.8);
    border: 1px solid #ff6347;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#submitAnswer7, 
#submitAnswer10, 
#submitAnswer12, 
#submitAnswer13, 
#submitAnswer15,
#submitAnswer16,
#submitAnswer18,
#submitAnswer23,
#submitAnswer25,
#submitDial,
#checkButton,
#closeGallery {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    border-radius: 15px;
    background-color: hsla(215, 88%, 65%, 0.411);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1rem;
}

#submitAnswer7:hover, 
#submitAnswer10:hover,
#submitAnswer12:hover,
#submitAnswer13:hover,
#submitAnswer15:hover,
#submitAnswer18:hover,
#submitAnswer23:hover,
#submitAnswer25:hover,
#submitDial:hover,
#checkButton:hover,
#closeGallery:hover {
    background-color: #7eaee6;
    color: white;
}

.dial-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem auto;
  }
  
  .dial {
    text-align: center;
  }
  
  .digit {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 2rem;
    background: #364d859a;
    border: 0.5px solid #212044;
    border-radius: 8px;
    color: white;
    font-family: 'VT323', monospace;
  }
  
  .up-btn, .down-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: #2d3e4c;
    margin-bottom: 0.2rem;
  }

  /* 사진맞추기 */
  .match-game {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
  }
  
  .row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .slot {
    width: 80px;
    height: 80px;
    border: 2px dashed #bbb;
    background: #f5f5f5;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    margin: 0 0.5rem;
    position: relative; 
    overflow: hidden;
  }

  .slot img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .plus {
    font-size: 1.5rem;
    margin: 0 0.5rem;
  }
  
  #checkButton {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
  }
  
  /* 갤러리 모달 */
  .gallery {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .gallery.hidden {
    display: none;
  }
  
  .gallery-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-items: center;
  }
  
  .gallery-content img {
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
  }
  
  .gallery-content img:hover {
    border-color: #26416e;
  }
  
  #closeGallery {
    grid-column: span 2;
    padding: 0.3rem;
    cursor: pointer;
  }
  
  /* 흔들기 애니메이션 */
  @keyframes shake {
    0%,100% { transform: translateX(0); }
    25%    { transform: translateX(-5px); }
    75%    { transform: translateX(5px); }
  }
  
  .shake {
    animation: shake 0.3s;
  }
  
  
  /* mobile environment */
  @media (max-width: 640px) {
    .hint-floating2 {
        margin-right: 0.6%;
    }
    .inbox-icon {
        margin-right: 0.6%;
    }
    .home__click {
        font-size:0.52rem;
    }
    .home__start {
        width:100%;
        max-width: 300px;
    }
    .story__before2 { 
    bottom: 10vh; 
      }

    .story__title {
      font-size: 0.7rem; /* 모바일에서는 조금 더 작게 */
    }
    .story__text {
        color: var(--color-text);
        font-size: 0.48rem; /* 모바일에서는 더 작게 */
      }

      .story__text2 {
        color: var(--color-text);
        font-size: 0.48rem; /* 모바일에서는 더 작게 */
      }
    
      .letter__text {
        font-size: 0.7rem; 
      }

      .letter__text2 {
        font-size: 0.7rem; 
      }

      .story__title__box {
        width: 70%;
        max-width: 120px;
        height: 1.8rem;
        line-height: 1.8rem;
        margin-bottom: 2rem;
      }

      .story__title__box2 {
        width: 70%;
        max-width: 120px;
        height: 1.8rem;
        line-height: 1.8rem;
        margin-bottom: 2rem;
      }
      #clickText {
        font-size: 0.7rem;
      }
      .delayed-message {
        bottom: 40%;
      }

      .inbox-content {
        background: #ffffffd2;
        padding: 0.5rem;
        margin-top: 25%;
        border-radius: 20px;
        max-width: 80%;
        max-height: 80%;
      gap: 0.7rem;
      padding-top: 1rem;
      padding-bottom: 2rem;
     }
    }
  
 