/* Pretendard Font / Tommy Lee / Jul 18, 2025 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

body,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,table,th,td,form,fieldset,legend,input,textarea,button,select{margin:0;padding:0}
body,input,textarea,select,button,table{font-family:'pretendard','나눔고딕','nanumgothic','Nanum Gothic', 'nanum gothic',AppleGothic,sans-serif; font-size:12px}

body {
    *word-break:break-all;
    -ms-word-break:break-all;
	width: 100%;
	height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.loaded {
    opacity: 1;
}
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
td {
    text-align: left;
}
.vertical {
	position: static;
	top: 0;
	height: auto;
	width: 100%;
	border-left: none;
}

@media (max-width: 768px) {
    body {
        min-width: 320px;
    }

    .vertical {
        height: auto;
    }

    .div_main {
        display: block;
        width: 100%;
        height: auto !important;
        padding: 0 12px 10px 12px;
        box-sizing: border-box;
    }

    .div_abouthangang,
    .div_videofeedback,
    .div_singapore2025,
    .div_korea2025kimcheon3,
    .div_2026gswaterpolo,
    .div_1stwisetalkconcert,
    .div_ReferenceSite,
    .div_competition,
    .div_competitionrequlation {
        margin: 12px 0;
        width: 100%;
    }

    #divMenu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 8px 4px !important;
    }

    .header-bar {
        padding: 14px 12px;
    }

    .header-logo {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .login-panel,
    .join-panel {
        width: min(100%, 420px);
        padding: 16px;
    }

    .login-field-row,
    .join-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .login-field-row label,
    .join-field-row label {
        min-width: 0;
        text-align: left;
    }

    .login-row,
    .join-row {
        height: auto;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .menu_btn {
        width: 100%;
        margin-left: 0;
    }

    .header-action-btn {
        width: 100%;
    }

    .login-actions,
    .join-actions {
        flex-direction: column;
    }

    .login-actions button,
    .join-actions button,
    .login-actions .header-action-btn,
    .join-actions .header-action-btn {
        width: 100%;
    }

    .login-field input,
    .join-field input {
        width: 100%;
        box-sizing: border-box;
    }
}
p {
	padding:5px 0px;
}

.div_main{
	display:inline-block;
	border-left: none; /*solid 2px #c3c3c3 ;*/
	padding:0px 40px 10px 30px;
	height:270px;
    font-size: 14px;
	top:0px;
}

#menu-container{
    display: block !important; /* Hide Menu Container */
}

#divMenu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px 5px 10px !important;
}

.apply_btn {
	font-size:14pt;
	padding:10px 15px;
	color: #000;
	border: solid 1px #FFF;
	border-radius:15px;
	text-decoration: none;
}
.menu_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size:10pt;
    font-weight: bold;
    padding:8px 12px;
    margin-left:5px;
    color:#2f3a4a;
    border: solid 1px rgba(79, 96, 120, 0.35);
    border-radius:8px;
    background:#ffffff;
    text-decoration: none;
    cursor:pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.menu_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    filter: brightness(0.98);
}
.menu_btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.pastel-blue { background: #dfeeff; }
.pastel-pink { background: #ffe1eb; }
.pastel-slate { background: #e9edf3; }
.pastel-cyan { background: #dff7fb; }
.pastel-green { background: #e5f8ea; }
.pastel-yellow { background: #fff7e0; }
.pastel-purple { background: #f3e0ff; }

#divSubMenu {
    margin-top: 15px;
}

#divSubMenu > div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#divSubMenu .menu_btn {
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px;
}
.header-logo {
    display: flex;
	flex: 1 1 auto;
	text-align: left;
}
.header-logo img {
	height: 50px;
	cursor: pointer;
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-top: 10px;
}
.header-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size:10pt;
    font-weight: bold;
	padding:8px 12px;
	color:#585858;
	border: solid 1px #4e4e4e;
	border-radius:5px;
	background:#ffffff;
	cursor:pointer;
}
.header-action-btn:hover {
    background:#f8f8f8;
    color:#000;
}

.header-action-btn .material-symbols-outlined,
button.header-action-btn .material-symbols-outlined,
button .material-symbols-outlined {
    padding-right: 5px;
}

.div_wamc2025{
	font-size:16pt;
	cursor:pointer;
	margin-bottom:10px;
}


/* Video Feedback Form Styles - same design concept as login/join */
.div_videofeedback {
    margin: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.videofeedback-panel {
    width: min(980px, 100%);
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.videofeedback-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.videofeedback-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 0 10px;
}

.videofeedback-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.videofeedback-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.videofeedback-field-row {
    flex-direction: row;
    align-items: center;
    padding: 5px 0;
}

.videofeedback-field label {
    min-width: 170px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.videofeedback-field input,
.videofeedback-field select,
.videofeedback-field textarea {
    font-size: 13px;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.videofeedback-field input:focus,
.videofeedback-field select:focus,
.videofeedback-field textarea:focus {
    border-color: #003ebb;
    box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

.videofeedback-field textarea {
    min-height: 180px;
    resize: vertical;
}

.videofeedback-field-row.textarea-row {
    align-items: flex-start;
}

.videofeedback-field-row.checkbox-row {
    align-items: center;
}

.videofeedback-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #222;
    min-height: 30px;
}

.videofeedback-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #003ebb;
}

@media (max-width: 768px) {
    .div_videofeedback {
        margin: 12px 0;
    }

    .videofeedback-panel {
        width: min(100%, 420px);
        padding: 16px;
    }

    .videofeedback-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .videofeedback-field label {
        min-width: 0;
        text-align: left;
    }

    .videofeedback-header-actions {
        justify-content: center;
    }

    .videofeedback-header-actions .header-action-btn {
        width: 100%;
    }
}

/* Login Form Styles */
.div_login{
	margin:20px;
	display:flex;
	justify-content:center;
	width:100%;
}

.login-panel {
	width:350px;
	padding: 20px;
	background: rgba(255,255,255,0.95);
	border: 1px solid rgba(0,0,0,0.5);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.login-brand {
	text-align: center;
}

.login-brand img {
	height: 58px;
	margin-bottom: 12px;
}

.login-brand h1 {
	font-size: 24px;
	font-weight: 700;
	color: #003ebb;
	margin-bottom: 10px;
}

.login-brand p {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.login-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.login-field-row {
	flex-direction: row;
	align-items: center;
	gap: 10px;
    padding: 5px 0px;
}

.login-field-row label {
	min-width: 85px;
    text-align: right;
}

.login-field label {
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.login-field input {
	font-size: 13px;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	outline: none;
	flex: 1;
}

.login-field input:focus {
	border-color: #003ebb;
	box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

.login-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 5px 0;
    height: 40px;
}

.login-field.remember-row {
	display: block;
	align-items: center;
	gap: 8px;
}

.login-links {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.login-links a {
	color: #424242;
	text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.login-links a:hover {
	text-decoration: none;
    color: #fd4848;
    font-weight: 700;
}

.login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
    padding: 5px 0px;
}

.button-full-width {
    width: 100%;
    max-width: 100%;
}

.email-send-row {
    align-items: center;
}

.email-send-btn {
    flex: 1 1 auto;
    min-width: 0;
}

.email-timer {
    display: inline-block;
    min-width: 56px;
    text-align: left;
    font-weight: 700;
}

.login-note {
	font-size: 14px;
	color: #555;
	text-align: center;
}

.login-result {
	font-size: 14px;
	text-align: center;
	min-height: 24px;
}

.login-social-btn {
	width: 100%;
	max-width: 240px;
}

/* Join (Sign Up) specific styles - keep separate from login styles */
.div_join{
	margin:20px;
	display:flex;
	justify-content:center;
	width:100%;
}

.join-panel {
    width: 350px;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.join-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.join-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.join-field-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 0px;
}

.join-field-row label {
    min-width: 85px;
    text-align: right;
}

.join-field label {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.join-field input {
    font-size: 13px;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    outline: none;
    flex: 1;
}

.join-field input:focus {
    border-color: #003ebb;
    box-shadow: 0 0 0 2px rgba(0,62,187,0.1);
}

#join-email-code {
    width: 110px;
    flex: none;
}

#verify-email-code-btn {
    width: 105px;
    white-space: nowrap;
}

.join-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    height: 40px;
}

.join-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 5px 0px;
}

/* Logo Container */
#logo-container {
    display:block;
    margin: 0px auto;
    width:100%;
    max-width: 920px;
}

/* Menu */
.div_abouthangang{
	margin:20px;
	display:inline-block;
}

.div_videofeedback{
	margin:20px;
	display:inline-block;
}
.div_singapore2025{
	margin:20px;
    display:inline-block;
}

.div_korea2025kimcheon3{
	margin:20px;
    display:inline-block;
}

.div_2026gswaterpolo{
	margin:20px;
    display:inline-block;
}

.div_1stwisetalkconcert{
	margin:20px;
    font-size: 14px;
    display:inline-block;
}

.div_ReferenceSite{
	margin:20px;
    font-size: 14px;
    display:inline-block;
}

.div_competition{
	margin:20px;
	font-size:14px;
    display:inline-block;
}

.div_competitionrequlation{
	margin:20px;
	font-size:13px;
    display:inline-block;
}

/* Table */
.tableCompetiton{
	border-collapse: collapse;
	border-color:#ddd;
    width: 100%;

	td {
		padding: 5px 3px;
		text-align:center;
        font-size: 14px;
	}
}

.tableCompetitonRegulation{
	border-collapse: collapse;
	border-color:#ddd;
    font-size: 15px;

	td {
        color:#4e4e4e;
		padding: 7px 10px 7px 10px;
		text-align: left;
        word-wrap: break-word;
        vertical-align: top;
        line-height: 1.6;
	}

}

.tableCompetitonBeachRegulation{
	border-collapse: collapse;
	border-color:#ddd;
    font-size: 15px;

	td {
        color:#4e4e4e;
		padding: 7px 5px 7px 5px;
		text-align:left;
        word-wrap: break-word;
        vertical-align: top;
	}

}

/* TR */
.regulationENdisplay{
    display: "";
}

.regulationKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.appendicesENdisplay{
    display: "";
}
.appendicesKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.beachENdisplay{
    display: "";
}
.beachKOdisplay{
    display: "";
    border: 1px dashed #b3e5fc;
    background: #f0f8ff;
    font-weight: 600;
}

.regulationIndexENdisplay{
    display: none;
}

.regulationIndexKOdisplay{
    display: "block";
}

.regulationTitleENKOdisplay{
    display: "block";
}

.regulationTitleENdisplay{
    display: none;
}

.regulationTitleKOdisplay{
    display: none;
}

.appendicesIndexENdisplay{
    display: none;
}

.appendicesIndexKOdisplay{
    display: "block";
}

.appendicesTitleENKOdisplay{
    display: "block";
}

.appendicesTitleENdisplay{
    display: none;
}

.appendicesTitleKOdisplay{
    display: none;
}

.beachIndexENdisplay{
    display: none;
}

.beachIndexKOdisplay{
    display: "block";
}

.beachIndexENKOdisplay{
    display: "block";
}

.beachTitleENKOdisplay{
    display: "block";
}

.beachTitleENdisplay{
    display: none;
}

.beachTitleKOdisplay{
    display: none;
}
/* Title */
.competitonRegulationTitleMain{
    td{
        font-size: 20px;
        color:#003ebb;
        font-weight:bold;
        padding:10px 0px 0 0;
    }
}
.competitonRegulationTitleA{
    td{
        font-size: 17px;
        color:#cd5307;
        font-weight:bold;
        padding:30px 0px 0 0;
    }
}
.competitonRegulationTitleB{
    margin:0px;
    padding:0 0 5px 0;
    font-size: 15px;
    color:#3d3d3d;
    font-weight:bold;
}
.competitonRegulationP{
    margin:5px 0px;
    padding:0px 30px;
}

/* Appendices */
.appendicesSubTitle{
    font-size:16px;
    font-weight: bold;
    color:#00a28e;
}


/* ETC */
.divpopupimage{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border: solid 2px #4e4e4e;
    margin:0px;
    border-radius: 10px;
    background: #ffffff;
    padding: 20px;
}

.divflexmargin{
    display:flex;
    margin:5px 0px;

	.indexNum{
		font-size: 16px;
		padding: 5px 0px;
		width:40px;
	}

	.indexTitle{
		font-size: 15px;
		padding-left:10px;
	}
}

.divmargin{
    margin:10px 0px;
}

.aposition{
    color: #585858;
    text-decoration: none;
}



/* ==========================================================================
   📱 [모바일 스타일] 스마트폰 및 태블릿 최적화 (화면 가로폭 768px 이하)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* 1. Basic Layout and Main Container Optimization */
    body {
        font-size: 13px; /* Mobile readability - slightly increase default font size */
    }

    .div_main {
        display: block;
        width: 100%;
        border-left: none; /* Mobile: remove left vertical line */
        border-top: solid 2px #c3c3c3; /* Change to top divider */
        padding: 15px 10px;
        height: auto; /* Release height limit to allow content to flow */
        box-sizing: border-box;
    }

    #menu-container{
        display: none !important; /* Hide Menu Container */
    }

    #divSubMenu_KO {
        display: none !important; /* Hide Sub Menu on Mobile */
    }

    #divIndex {
        display: none !important; /* Hide Index on Mobile */
    }

    /* 2. Main Menu Buttons in Grid Layout */
    #divMenu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 버튼 무조건 가로 2열 배치 */
        gap: 6px;
        padding: 15px 10px 5px 10px !important;
        box-sizing: border-box;
    }

    .menu_btn {
        /*display: block !important;*/
        text-align: center;
        margin-left: 0 !important; /* 기존 margin-left 리셋 */
        padding: 12px 5px !important; /* 손가락 터치 영역 확대 */
        font-size: 13px !important;  /* 가독성 확보 */
        border-radius: 6px;
        box-sizing: border-box;
        white-space: normal; /* 글자가 길면 자연스럽게 줄바꿈 */
        word-break: keep-all;
    }

    .menu_btn.download {
        padding: 5px 5px !important; /* 손가락 터치 영역 확대 */
    }

    /* 3. 경기 규정 하위 서브 메뉴 최적화 */
    #divSubMenu_KO > div {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 서브메뉴도 가로 2열 배치 */
        gap: 5px !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    #divSubMenu_KO > div > a {
        color: #000 !important;
    }

    #divSubMenu_KO .menu_btn {
        padding: 10px 4px !important;
        font-size: 12px !important;
    }

    /* 4. 본문 내용 블록 간격 축소 */
    .div_login, .div_singapore2025, .div_korea2025kimcheon3, 
    .div_2026gswaterpolo, .div_ReferenceSite, 
    .div_competition, .div_competitionrequlation {
        margin: 15px 10px !important;
        display: block !important; /* 가로 배열 해제하고 세로로 흐르게 */
        width: auto;
    }

    .div_login, div_1stwisetalkconcert, .div_abouthangang, .div_videofeedback {
        margin: 15px 10px !important;
        display: flex !important; /* 가로 배열 해제하고 세로로 흐르게 */
        justify-content: center;
        width: auto;
    }

    .tableCompetiton th, td {
        &:nth-child(5), &:nth-child(6), &:nth-child(7), &:nth-child(8) {
            display: none !important; /* 모바일에서는 5~8열 숨김 */
        }
        &:nth-child(2), &:nth-child(3), &:nth-child(4) {
            border-right: 1px solid #ddd !important; /* 4열 테두리 유지 */
        }
    }

    /* 6. 규정 내용 테이블(tableCompetitonRegulation 등) 최적화 */
    .tableRefereeSignal_KO th, td {
        &:nth-child(4), &:nth-child(5), &:nth-child(6) {
            display: none !important; /* 모바일에서는 5~8열 숨김 */
        }
        &:nth-child(2) {
            border-right: 1px solid #ddd !important; /* 4열 테두리 유지 */
        }
    }

    .tableCompetitonRegulation, .tableCompetitonBeachRegulation {
        width: 100% !important;
        font-size: 14px !important;
    }

    .tableCompetitonRegulation td, .tableCompetitonBeachRegulation td {
        padding: 8px 6px !important;
        line-height: 1.5;
    }

    /* 7. 제목 및 문단 여백 모바일화 */
    .competitonRegulationTitleMain td {
        font-size: 18px !important;
    }
    
    .competitonRegulationTitleA td {
        font-size: 15px !important;
        padding-top: 20px !important;
    }

    .competitonRegulationP {
        padding: 0px 10px !important; /* 모바일 화면 좌우 여백 축소 */
        font-size: 13px;
    }

    /* 8. 기타 요소 및 팝업창 크기 조정 */
    .divpopupimage {
        width: 85% !important; /* 팝업이 화면 밖으로 나가지 않도록 고정 */
        box-sizing: border-box;
        padding: 15px;
    }

    .divflexmargin {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .divflexmargin .indexNum {
        font-size: 14px;
        width: 30px;
    }
    
    .divflexmargin .indexTitle {
        font-size: 14px;
        padding-left: 5px;
    }
}

/* 📱 [초소형 스마트폰] 화면 가로폭 360px 이하 대응 */
@media screen and (max-width: 560px) {
    #divMenu, #divSubMenu_KO > div {
        grid-template-columns: repeat(1, 1fr) !important; /* 화면이 아주 좁으면 무조건 한 줄에 하나씩 */
    }

    #main2026GS1, #main2026USAJo1, #main2026UASJo2, #main2026KOR4thKimcheon1 {
        display: none !important; /* 초소형 화면에서는 로고 이미지 숨김 */
    }
}