/*
Theme Name: ongijange homepage
Author: gracebyun
Author URI: -
Description: ongijange homepage theme
Version: 0.1
Text Domain: ongijange homepage
Tags: ongigange
*/

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.1.0/dist/web/static/pretendard.css');

/* Noonu Web Fonts CDN */
@font-face {
    font-family: 'SBAggroB';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MarinesBold';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2502-1@1.0/MarinesBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* 반응형 디자인을 고려하여 관리자 바 높이가 변할 수 있으므로, 필요에 따라 미디어 쿼리를 사용할 수도 있습니다. */
@media screen and (min-width: 787px) {
    body.customize-support header {
        top: 32px; /* 작은 화면에서의 관리자 바 높이 */
    }
}

@media screen and (max-width: 786px) {
    body.customize-support header {
        top: 46px; /* 작은 화면에서의 관리자 바 높이 */
    }
}

#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    z-index: 9999 !important; /* 다른 요소보다 위에 표시 */
}

body.admin-bar {
    padding-top: 32px !important; /* 관리 도구바 높이만큼 body에 padding-top 추가 (데스크탑 기준) */
}

/* 작은 화면 (모바일 등) 대응 */
@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 46px !important; /* 작은 화면에서의 관리 도구바 높이 */
    }
}

/* 모바일 화면에만 적용하려면 @media 쿼리 추가 */
@media screen and (max-width: 767px) {
    .tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum,
    .tribe-events .tribe-events-calendar-month__day-cell--selected:focus .tribe-events-calendar-month__day-date-daynum,
    .tribe-events .tribe-events-calendar-month__day-cell--selected:hover .tribe-events-calendar-month__day-date-daynum {
        color: #ffffff !important; /* 흰색으로 설정 */
    }
}

.wpcf7 {
    /* 폼 전체 스타일 조정 */
    padding: 0px 15px;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .wpcf7 {
        padding: 0px 20px;
        max-width: 380px;
    }
}

.wpcf7-form-control {
    /* 입력 필드 스타일 조정 */
    width: 100%;
    margin-bottom: 10px;
    outline-color:#e74c3c;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    padding: 5px;
    font-size: 14px;
    font-weight: 400;
}

.wpcf7-acceptance label {
    padding-left: 20px;
}

label input[type="checkbox"] {
    position: absolute;
    margin-top: 5px;
    margin-left: -20px;
}

.surpport-category label {
    padding-left: 20px;
}

label input[type="radio"] {
    position: absolute;
    margin-top: 5px;
    margin-left: -20px;
}


.wpcf7-submit {
    /* 제출 버튼 스타일 조정 */
    background-color: #000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

.wpcf7-acceptance {
    background-color: none;
}

.wpcf7-list-item {
    margin-left: 0px;
}

input[type=file]::file-selector-button {
    width: 80px;
    height: 30px;
    background: #7F8CAA;
    border: 1px solid rgb(77,77,77);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.ministry-date {
    height: 38px;
}

.ministry-hour {
    height: 38px;
}

.ministry-min {
    height: 38px;
}

.surpport-category {
    padding: 0px !important;
    background-color: #ECFAE5;
    border: 1px solid #ECFAE5;
}

.surpport-category .wpcf7-list-item {
    width: 48%;
}

/* 모달 팝업 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 640px;
    max-width: 90%;
    text-align: center;
}
.popup-content-sns {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    text-align: center;
}
.close-button {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}