html, body {
    margin: 0px !important;
    padding: 0px !important;
    overflow-x:hidden !important;
    width: 100%;
}

a {
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

#home {
    margin-left: 22px;
}

#title-a {
    margin-left:10px;
}

.main {
    box-sizing: border-box;
    max-width:window
}

#main-logo {
    width:50px;
    height: 50px;
    margin-left: 3px;
    
}

img {
    display: flex;
    align-items: center;
}

nav {
    overflow-x : hidden;
    width:100%;
    background-color: #333;
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
}

/* 제목 영역 모양 설정 */
.title-container {
    width:95%;
    margin: 10px;
    padding:10px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* 제목 영역 입력칸 설정 */
.title-container > input{
    width:100%;
    height: 25px;
    font-size: 25px;
    border: none;
    outline: none;
    resize: none;
    background: white;
}

#memo-container {
    width: 90%;
    margin : 10px;
    background: none;
}

/* 내용 영역 입력칸 설정 */
#memo-container #memo {
    font-size:17px;
    font-family: SUIT,sans-serif;
    border-radius: 5px;
    border : none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    resize: none;
    outline : none;
    line-height: 1.5;
    background-attachment: local;
    background-image:
    linear-gradient(to right, white 10px, transparent 10px),
    linear-gradient(to left, white 10px, transparent 10px),
    repeating-linear-gradient(white, white 30px, #ccc 30px, #ccc 31px, white 31px);
    line-height: 31px;
    background-position:0 -9px;
}


/* 옵션 버튼 설정 */
.option-buttons {
    padding:10px;
    margin-bottom: 10px;
}
.option-buttons > button {
    padding:10px;
    top: -5px;
    border:none;
    background : none;

    cursor: pointer;
}

.option-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.11);
    border-radius : 7px;
}

#xi-night {
    position:relative;
    top: -3px;
    margin-left: 5px;
}

.use-buttons {
    display: inline-block;
    margin-left: 100px;
}


.font-size-input-container {
    display: none;
}

#info-container {
    text-align: center;
}

#info-container > div {
    display: inline-block;
    margin-right:100px;
}

#info-container #word-count {
    padding-left: 0px;
}

/* 툴팁 설정 */
.tooltip .tooltiptext {
visibility: hidden;       /* 이벤트가 없으면 툴팁 영역을 숨김 */
width: auto;           /* 툴팁 영역의 넓이를 설정 */
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 10px;
white-space: nowrap;

position: absolute;       /* 절대 위치를 사용 */
z-index: 3;  }

.tooltip:hover .tooltiptext {
visibility: visible;      /* hover 이벤트 발생시 영역을 보여줌 */
}

.tooltip .tooltip-bottom {
width: auto;
top: 100%;
margin-left:-40px;
}

/* Xeicon 설정 */
.tooltip > i {
color:black;
font-size:22.5px;
}


/* 스위치 컨테이너 스타일 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* 스위치 컨테이너의 너비 조정 */
    height: 24px; /* 스위치 컨테이너의 높이 조정 */
  }
  
  /* 입력 요소 (체크박스) 스타일: 숨김 처리 */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* 슬라이더 (스위치) 스타일 */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* 스위치 배경색 (Off 상태) */
    transition: 0.4s;
    border-radius: 12px; /* 스위치의 높이 절반에 맞게 조정 */
  }
  
  /* 체크된 (On) 상태 스위치 스타일 */
  .slider:before {
    position: absolute;
    content: "";
    height: 20px; /* 스위치 버튼의 크기를 비율 그대로 줄임 */
    width: 20px; /* 스위치 버튼의 크기를 비율 그대로 줄임 */
    left: 2px; /* 스위치 버튼의 위치를 조정 */
    bottom: 2px; /* 스위치 버튼의 위치를 조정 */
    background-color: white; /* 스위치 켜진 상태 배경색 */
    transition: 0.4s;
    border-radius: 50%;
  }
  
  /* 체크된 상태에서 슬라이더 배경색 변경 */
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  /* 체크된 상태에서 슬라이더 앞쪽 배경색 변경 */
  input:checked + .slider:before {
    transform: translateX(16px); /* 슬라이더를 오른쪽으로 이동하여 스위치 켜진 상태 효과 */
  }

  

.popup {
display: none;
position: fixed;
border-radius: 10px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
color:black;
padding: 20px;
z-index: 1000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.popup.active {
display: block;
}

.popup #closePopup {
    border: 1px solid #333;
    border-radius: 3px;
    float: right;
}



.feedback {
    margin-left:auto;
    margin-right:5px;
    cursor:pointer;
}

.feedback :hover {
    background-color: rgba(255, 255, 255, 0.096);
}



  

/* ///////////////// PC 버전 설정  ////////////////////// */
@media screen and (min-width: 900px) {
    .title-container {
        width: 97%;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 20px;
    }
    #memo-container {
        width: 98.3%;
    }
    #memo-container #memo {
        width:97.4%;
        height: 640px;
        padding: 25px;
    }
    html, body {
        overflow-y: hidden;
    }
  }


/* ///////////////// MOBILE 버전 설정  ////////////////// */
@media screen and (max-width: 900px) {
    /* title-container - 모바일 버전  */
    .title-container {
        width:91%;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 5px;
    }
    #memo-container {
        width: 95%;
    }
    #memo-container #memo {
        width: 94.4%;
        height: 490px;
        padding: 10px;
    }
    #info-container #char-count {
        padding-left : 45px;
        padding-right: 45px;
    }
    #info-container > div {
        margin:0px;
    }
    #memo-container #memo {
        background-position: 0 -23px; 
    }
    .use-buttons {
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-top: 15px;
    }
    .feedback > span {
        display: none;
    }
    #title-a {
        display: flex;
        align-items: center;
        font-size:17px;
    }
  }