/* 기존 스타일 유지 */
#body-pd {
    width: 100%;
    background: url(/img/background.jpg) no-repeat center center fixed;
    background-size: cover;
}

.content-wrapper {background: #cedeff !important;}

.wrapper {
    width: 1280px;
    margin: 0 auto;
}

.card {border-radius: 10px;}

.ui-modify {display: none;}

.graph-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.graph-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.graph-container {
    text-align: center;
    margin: 20px;
}

.graph {
    width: 100px;
    height: 100px;
}

.clock {
    text-align: center;
    padding: 5px;
    width: 250px;
    margin: 0 auto;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    font-size: 14px;
}

.date,
.time {
    display: block;
    margin: 5px 0;
    font-weight: bold;
}

.date {
    font-size: 1.1em;
    color: #6610f2;
}

.time {
    font-size: 1em;
}

.notice {
    font-size: 14px;
    color: #666;
    position: relative;
    right: 2%;
    top: 0;
}

.recommendation {
    text-align: center;
    background: #fff;
    border-radius: 15px;
    width: auto;
    position: relative;
    display: flex;
    align-content: center;
    align-items: center;
    padding: 5px;
    overflow: hidden;
    width: 300px;
}

.recommendation p {
    margin: 0;
    margin-right: 10px;
    font-size: 1.2em;
    color: #333;
    padding-right:10px;
}

.recommendation-container {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.recommendation-item {
    position: absolute;
    width: 100%;
    text-align: left;
    animation: roll 5s linear infinite;
    padding-top: 5px;
}

.recommendation a {
    font-size: 1.2em;
    color: #6610f2;
    text-decoration: none;
    display: block;
    line-height: 1.6;
}

.recommendation a:hover {
    text-decoration: underline;
}

.graph-container img {width: 350px;}

@keyframes roll {
    0% {
        top: 100%;
        opacity: 0;
    }
    10% {
        top: 0;
        opacity: 1;
    }
    30% {
        top: 0;
        opacity: 1;
    }
    40% {
        top: -100%;
        opacity: 0;
    }
    100% {
        top: -100%;
        opacity: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: auto;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    animation: showModal 0.5s ease;
}

.modal-header,
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.modal-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes showModal {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 모바일 영역 */
@media (max-width: 768px) {
    .wrapper {
        width: 100%;
        padding: 10px;
    }

    .button-container {
        text-align: center;
        margin-bottom: 20px;
        max-width: 100%;
        display: inline-block !important;
        margin: 10px auto;
    }

    .pagination {position: relative !important; right: 0 !important;}

    .widget {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
    }

    .unique-card img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 15px; /* 카드와 이미지의 모서리를 일치시킴 */
    }

    .mobile-row {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .row {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -7.5px;
        margin-left: -7.5px;
        align-content: center;
        justify-content: center;
    }

    .graph-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .graph-container {
        text-align: center;
        margin: 20px;
        width: 80%; /* 부모 컨테이너의 너비 설정 */
    }
    .graph-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .gauge {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .graph {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .clock {
        width: 100%;
    }

    .recommendation {
        width: 100%;
        margin: 10px 0;
        right: 0;
    }

    .slot_add_from .row {
        flex-direction: column;
    }

    .slot_add_from .col-sm-6 {
        width: 100%;
        margin-bottom: 15px;
    }

    .inline-select, .inline-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-inlineblock {
        width: 100%;
        margin-bottom: 10px;
    }

    .text-right {
        text-align: left !important;
    }

    .table-container {
        overflow-x: auto;
    }

    .custom_table {
        min-width: 800px; /* 테이블의 최소 너비 설정 */
    }

    .sticky-header th {
        position: sticky;
        top: 0;
        background-color: rgba(91,146,254,.8);
        z-index: 10;
    }

    .custom_table td, .custom_table th {
        white-space: nowrap;
        padding: 5px; /* 셀 내부 여백 줄이기 */
    }


    .custom_table {
        font-size: 12px;
    }

    .rank-change {
        display: block;
        font-size: 10px;
    }

    .content-wrapper>.content {padding: 0 !important;}
}

.slot_add_from .row {
    display: flex;
    flex-wrap: wrap;
}


.inline-select, .inline-input {
    flex: 1;
    margin-right: 10px;
}

.btn-inlineblock {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .graph-title {
        font-size: 20px;
    }

    .status-text {
        font-size: 1.2em;
    }

    .recommendation p {
        font-size: 1em;
    }

    .recommendation a {
        font-size: 1em;
    }

    .notice {
        font-size: 14px;
    }
}

.button-container {
    text-align: center;
    margin-bottom: 20px;
    max-width: 100%;
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
    margin: 10px auto;
    justify-content: space-between;
}

.styled-button {
    background-color: white;
    border: 2px solid #dcdcdc;
    color: #333;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    white-space: nowrap;
}

.styled-button:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

.active-button {
    background-color: #333;
    color: white;
    border-color: #333;
}

.tab-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #f2f2f2;
    color: #333;
    margin-right: 10px;
    cursor: pointer;
}

.tab.active {
    background-color: #e83e8c;
    color: #fff;
}

.info-banner {
    background-color: #f2f4f7;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.info-banner p {
    margin: 0;
    font-size: 14px;
}

.highlight {
    color: #e83e8c;
    font-weight: bold;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.rate-table th, .rate-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.rate-table th {
    background-color: #f2f2f2;
    color: #6f42c1;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.custom-close:hover,
.custom-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-modal-image {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 20px auto;
}

.custom-tab {
    border: 1px solid #e83e8c;
    background-color: #fff;
    color: #e83e8c;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.custom-tab:hover {
    background-color: #e83e8c;
    color: white;
}

.custom-button {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin: 20px auto 0;
}

.custom-button:hover {
    background-color: #0056b3;
}

.custom-graph-wrapper {
    text-align: center;
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.custom-graph-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.custom-graph-container {
    position: relative;
    width: 300px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.unique-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    text-align: center;
}

.unique-card-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.unique-card-body {
    font-size: 1em;
}

.unique-card-button {
    background: #e83e8c;
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.unique-card-button:hover {
    background: #d32f6b;
    color: #fff;
}

.recommendation-item a {
    text-decoration: none;
    color: inherit;
}

#shuffle-time {
    margin-top: 10px;
    font-size: 0.8em;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background-color: #45a049;
}

.pagination {position: relative; right: 500px;}

.btn:hover {background: #3f6791; color: #fff;}

.chartmodal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80%;
}

.close {
    color: #aaa;
    text-align: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#iframeContent {height: 100%}

.footer {
    background-color: #cedeff;
    color: #333;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.footer a {
    color: #57B894;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 5px 0;
}
