/* define global variables */
:root {
    --result_area_height_gap: 355px;
}

* { padding: 0; margin: 0; }

html, body {
    position: fixed;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: white;

    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;

    font-family: AppleSDGothicNeo-Regular, Arial, Helvetica, sans-serif;
}

/**********************/
/* title area classes */
.title-area {
    display: block;
    text-align: center;
    margin-top: 10px;

    /* border:1px solid blue; */
}

.main-title {
    color: rgb(62, 55, 55);
    font-size: 25px;
    font-weight: bold;

    margin-bottom: 10px;
}

.sub-title {
    color: rgb(83, 80, 80);
    font-size: 18px;
    font-weight: bold;

    white-space: nowrap;
    overflow: hidden;
    text-overflow:ellipsis;

    margin: 5px 10px 0 10px;

}

/**********************/
/* select box */
select {
    display: inline-block;
    border-radius: 5px;
    border: 1px solid darkgray;
    background-color: white;
    width: auto;
    height: 30px;
    font-size: 14px;
    color:#333;
    padding: 0 5px 0 5px;
    margin: 3px 5px 3px 0;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}
select::placeholder{
    color:  rgb(123, 131, 167);
    font-style: italic;
}
select::-webkit-input-placeholder {
    color: rgb(123, 131, 167);
    font-style: italic;
}
select:-ms-input-placeholder {
    color: rgb(123, 131, 167);
    font-style: italic;
}

/**********************/
/* input area classes */
.input-area {
    display: block;
    text-align: center;
    margin-top: 12px;

    /* border:1px solid blue; */
}

.input-box-area {
    position: relative;

    /* border:1px solid blue; */
}

.input-element {
    width: calc(100% - 20px);
    height: 30px;

    padding: 0 5px 0 5px;
    box-sizing: border-box;

    border: 1px solid darkolivegreen;
    border-radius: 5px;

    font-size: 15px;
}

.clear-button {
    position: absolute; /* 부모 요소를 기준으로 절대 위치 설정 */
    top: 50%;
    right: 25px;
    transform: translateY(-50%); /* 수직 가운데 정렬 */
    cursor: pointer; /* 마우스 커서를 클릭 가능한 형태로 변경 */
    border-radius: 50%;
    background-color: whitesmoke;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;

    /* border:1px solid red; */
}

.button-element {
    height: 40px;
    width: 90px;

    background-color: darkolivegreen;
    border: 0px solid darkolivegreen;
    border-radius: 5px;

    font-size: 15px;
    font-weight: bold;
    color: white;
}

.button-clear-element {
    width: 55px;
}

.button-submit-element {
    margin-top: 10px;
    width: calc(50% - 10px);
}

/***********************/
/* random keyword classes */
.random-keyword-area {
    word-break: break-all;
    white-space: normal;
    max-width: 100%;
    overflow-y: auto; /* 스크롤 기능 추가 */
    padding: 0 5px 5px 5px;
  }

/***********************/
/* result area classes */
.result-area {
    width: 100%;
    height: calc(100% - var(--result_area_height_gap));
    height: -moz-calc(100% - var(--result_area_height_gap));
    height: -webkit-calc(100% - var(--result_area_height_gap));

    display: block;
    text-align: center;
    margin-top: 15px;

    overflow-y: auto;
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */

    /* border:1px solid blue; */
}

.result-list-title-area {
    border: 1px solid #ddd;
    background-color: #f2f2f2;
    width: calc(100% - 20px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto 0 auto;
}

.result-list-title {
    /* border:1px solid red; */

    font-size: 15px;
    font-weight: bold;
    margin: auto 0 auto 5px;
}

.result-list {
    height: fit-content;
    max-height: 150px;
    width: calc(100% - 20px);
    overflow-y: auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    margin: 0 10px 10px 10px;

    box-sizing: border-box;
    padding: 0 0 5px 0;

    border: 1px solid #ddd;
}

.result-list-item-container{
    margin: 10px 0 10px 0;
    min-width:100px;

    /* border:1px solid blue; */
}

.result-list-image{
    width: 70px;
    height: 70px;
    border-radius: 10px;
    /* border:1px solid blue; */
}

.result-round-btn {
    border:1px solid darkgray;
    border-radius: 7px;
    padding: 5px;
    font-size: 15px;
    cursor: pointer;
    margin: 5px 3px 0px 3px;
}

.result-round-selected-btn {
    color: white;
    background-color: #ff8d13;
    border-color: white;
}

table {
    border-collapse: collapse;
    width: calc(100% - 26px);
    margin: 0px auto 0px auto;

    font-size: 17px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow:ellipsis;
}
th {
    background-color: #f2f2f2;
    text-align: center;
    font-size: 15px;
}

.place-name-area {
    /* border: 1px solid red; */

    width: 250px;
    display: flex;
    align-items: center;
}
@media (min-width:800px) {    /* PC */
    .place-name-area  {
        width: 100%;
    }
}

.place-name {
    /* border: 1px solid darkgray; */

    display: inline-block;
    width:calc(100% - 30px);

    white-space: nowrap;
    overflow: hidden;
    text-overflow:ellipsis;
}
@media (min-width:800px) {    /* PC */
    .place-name  {
        width: fit-content
    }
}

.copy-btn {
    margin-left: 10px;
    cursor: pointer;
    /* color: rgb(38 38 225 / 62%); */
    text-decoration: underline;
}

.copy-btn img {
    width: 20px;
    height: 20px;
}

.round-btn-area {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    margin-bottom: 3px;
}

.round-btn {
    border:1px solid darkgray;
    border-radius: 7px;
    padding: 5px;
    font-size: 15px;
    cursor: pointer;
    margin: 1px;
}

.round-selected-btn {
    background-color: #f0f0f0;
}

.around-result-area {
    width: 100%;

    /* margin: 5px 0 5px 0; */

    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.around-result-name {
    /* border: 1px solid red; */

    width:calc(100% - 5px);
    display: inline-block;
    margin: 3px 0 3px 0;

    cursor: pointer;
    font-size: 15px;
    color: rgb(38 38 225 / 62%);

    text-overflow:ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.around-result-name span {
    text-decoration: underline;
}

/*******************/
/* ad area classes */
.kakao-ad-area {
    /* border: 1px solid black; */

    display: block;
    justify-content: center;
    align-items: center;

    position: fixed;
    bottom: 45px;

    left: 50%;
    transform: translateX(-50%);

    min-width: 350px;
    min-height: 100px;
}

/**********************/
/* toast area classes */
.footer-area {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: 0;

    width: 100%;
    height: 55px;

    font-size: 15px;
    color: rgba(2, 2, 15, 0.62);

    /* border: 1px solid red; */
}

.footer-text {
    margin: 0 5px 0 5px;
}

/**********************/
/* toast area classes */
.toast-area {
    display: none;
    position: fixed;
    max-width:calc(100% - 50px);
    min-width:300px;
    height: fit-content;
    text-align: center;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2416a1a1;
    color: #fff;
    padding: 7px 5px 7px 5px;
    border-radius: 5px;
    z-index: 9999;
    font-size: 15px;
    white-space: pre-wrap;
    line-height: 25px;
}

/*************************/
/* progress area classes */
.progressArea{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align: center;
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
}