@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square-neo.css');

/* 드래그 색상 변경 */
::-moz-selection {
   background: #65bc9a;
   color: #fff;
}
::selection {
   background: #65bc9a;
   color: #fff;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* 기본 CSS */
*,body, table, input, textarea, select, button{
	font-family: 'NanumSquareNeo', sans-serif;
}

html, body {
	margin:0; padding:0; font-size: 12px; color:#333; height: 100%;
}

dl,dt,dd,ul,ol,li,pre,form,fieldset,input,textarea,p,blockquote,tbody,tfoot,thead,th,td {
	margin:0;
	padding:0;
}

body.layout {
	background-image:url(/layouts/weeksurf/images/surfer5.jpg); background-repeat:no-repeat; background-position: center top;
}

input:focus {
	outline: none;
}

ol, ul, li {
	list-style: none;
}

.xe_content li, .rhymix_content li {
	list-style: unset!important;
}

a {
	text-decoration:none; color:#4d4d4d; 
}
a:link {
	text-decoration:none; color:#4d4d4d;
}
a:hover {
	text-decoration:none; color:#4d4d4d;
}
a:active {
	text-decoration:none; color:#4d4d4d;
}

/* General menu styling */
.nav {
	position:absolute;
	margin: auto;
	line-height: 30px;
	width:1000px;
	padding-left:50px;
	background-color:#132747;
	letter-spacing: -1px;
}
/* The main navigation link containers */
.nav>li {
	display: block;
	float: left; /* Displaying them on the same line */
	margin: 0;
	padding: 0;
}
/* The main navigation links */
.nav>li>a {
	/* Layout */
	display: block;
	position: relative;
	padding: 10px 20px;
	/* Text */
	color: #e2e2e2;
	font-size: 13px;
	text-decoration: none;
	font-weight:bold;
	font-family: 'NanumSquareNeoBold';
	/* Background */
	background: #132747; /* Transparent background for modern browsers */
	/* Making the color to change on hover with a transition */
	-webkit-transition: color .1s ease-in;
	-moz-transition: color .1s ease-in;
	-o-transition: color .1s ease-in;
	-ms-transition: color .1s ease-in;
}
/* Changing the color on hover */
.nav>li>a:hover, .nav>li:hover>a {
	background: #132747;
	background: linear-gradient(to top, #132747, #2b4671);
	color: #f1cc86;
	font-weight:bold;
	font-family:'NanumSquareNeoHeavy';
}
/* The links which contain dropdowns menu are wider, because they have a little arrow */
.nav>.dropdown>a {
	padding: 10px 30px 10px 20px;
}
/* The arrow indicating the dropdown */
.dropdown>a::after {
	content: "";
	position: absolute;
	top: 19px;
	right: 10px;
	width: 7px;
	height: 7px;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	border-bottom: 1px solid #fff;
	border-right: 1px solid #fff;
}
/* Changing the color of the arrow on hover */	
.dropdown>a:hover::after, .dropdown:hover>a::after {
	border-color: #f1cc86;
}
/* The submenus */
.nav ul {
	position: absolute;
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
}

/* 마지막 메뉴 안쪽으로 마진 */
.nav li:last-child ul li {
	margin-left: -112px;
}

/* General layout settings for the link containers of the submenus */
.nav ul li {
	position: absolute;
	top: -9999px; /* Hiding them */
	height: 0px;
	display: block;
	margin: 0;
	padding: 0;
	/* Making them to expand their height with a transition, for a slide effect */
	-webkit-transition: height .2s ease-in;
	-moz-transition: height .2s ease-in;
	-o-transition: height .2s ease-in;
	-ms-transition: height .2s ease-in;
}
.nav ul li:last-child {
	border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.nav ul > li > ul > li:first-child > a {
	border-top-right-radius: 12px; /* 원하는 값으로 변경하세요 */
}

/* Displays the submenu links, by expading their containers (with a transition, previously defined) and by repositioning them */
.dropdown:hover>ul>li {
	height: 45px;
	position: relative;
	top: auto;
}
/* The submenu links */
.nav ul li a {
	/* Layout */
	padding: 8px 20px;
	width: 180px;
	display: block;
	position: relative;
	z-index:999;
	/*border-radius: 0 0 20px 0;*/
	/* Text */
	color: #bbb;
	text-decoration: none;
	font-size: 13px;
	/* Background & effects */
	background: rgba(19, 39, 71, .90);
	-webkit-transition: color .1s ease-in, background .1s ease-in;
	-moz-transition: color .1s ease-in, background .1s ease-in;
	-o-transition: color .1s ease-in, background .1s ease-in;
	-ms-transition: color .1s ease-in, background .1s ease-in;
}

/*마지막 메뉴 사이즈 조절해야하는 경우 사용 */

.nav ul li a[href="/competition/category/222"],
.nav ul li a[href="/competition/category/223"] {
	/*width: 180px;*/
}

/* Changing the link's color and background on hover */
.nav ul li:hover>a, .nav ul li a:hover {
	color: #f1cc86;
	background: rgba(19, 39, 71, 1);
	font-weight:bold;
	font-family: 'NanumSquareNeoHeavy';
}
/* Making the level 2 (or higher) submenus to appear at the right of their parent */
.nav ul .dropdown:hover ul {
	left: 219px;
	top: 0px;
}
/* The submenu links have a different arrow which indicates another dropdown submenu */
.nav ul .dropdown a::after {
	width: 6px;
	height: 6px;
	border-bottom: 0;
	border-right: 1px solid #fff;
	border-top: 1px solid #fff;
	top: 18px;
}
/* Changing the color of the arrow on hover */
.nav ul .dropdown:hover>a::after, .nav ul .dropdown>a:hover::after {
border-right: 1px solid #f1cc86;
border-top: 1px solid #f1cc86;
}

.top_menu_active{
background-color:#000!important;
}

li.top_menu_active > a {
    color: #f1cc86!important;
}

/* 상단 로고 및 검색창 나누기 */
.top_container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 1000px;
	margin:auto;
	padding-left:50px;
	padding-top:20px;
	box-sizing: border-box;
}

.top_logo {
	width: 116px;
	height:100px;
	/* 로고 스타일 지정 */
}

.top_logo img {
    transition: transform 0.3s ease;
}

.top_logo img:hover {
    transform: scale(1.03);
}

.top_search {
	width: 884px;
	height:100px;
	flex-grow: 1; /* 검색창 요소가 남은 공간을 모두 차지하도록 flex-grow를 1로 지정합니다 */
}


/* 검색창 */
.search-form {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	margin-top: 30px;
}

.search-container {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50px;
	padding: 10px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.search-input {
	border: none;
	background-color: transparent;
	padding: 5px 10px;
	width: 300px;
	font-size: 16px;
	outline: none;
	transition: all 0.4s ease-in-out;
}

.search-input::placeholder {
	color: #999;
}

.search-button {
	background-color: #132747;
	color: white;
	border: none;
	border-radius: 50px;
	padding: 10px 20px;
	margin-left: 10px;
	cursor: pointer;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
	transition: all 0.2s ease-in-out;
}

.search-button:hover {
	background-color: #0c1b31;
	transform: scale(1.1);
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
	font-weight:bold;
	font-family: 'NanumSquareNeoBold';
}
.search-input:focus {
	width: 400px;
	background-color: #e6ebf3;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.0);
	transition: all 0.4s ease-in-out;
	border-radius: 50px;
	padding: 5px 10px;
}

/* 컨테이너 스타일 */
.weeksurf_content {
	width: 940px;
    background-color: #fff;
    min-height: 553px;
    margin: 360px auto 10px auto;
    border-radius: 10px;
    padding: 25px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	border: solid 1px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	background-color: rgba(255, 255, 255, 0.97);
}

@media (min-width: 1021px) {
  .weeksurf_content {
	margin-right: calc(50% - 495px);
  }
}


.weeksurf_top_menu {
	position:absolute;
    height: 30px;
	padding:0 30px;
	right:0;	
    background-color: #132747;
	border-radius:0 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
	opacity: 0.8;
	transition: height 0.3s ease;
}

@media (max-width: 800px) {
	.weeksurf_top_menu {display:none;}
}

.weeksurf_top_menu:hover {
	height: 40px;
	background: linear-gradient(to top, #132747, #2b4671);
}

.weeksurf_top_menu ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

.weeksurf_top_menu li {
	margin: 0 10px;
	font-size: 12px;
	font-weight:bold;
	font-family: 'NanumSquareNeoBold';
	color: white;
	position: relative;
}

.weeksurf_top_menu li a {
	text-decoration: none;
	color: white;
}

.weeksurf_top_menu li a:hover {
	font-weight:bold;
	font-family: 'NanumSquareNeoHeavy';
	transition: transform 0.3s ease;
	color: #f1cc86;
	cursor:pointer;
}

.weeksurf_top_menu li::before {
	content: '';
	position: absolute;
	top: 17px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #f1cc86;
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.3s ease;
}

.weeksurf_top_menu li:hover::before {
	transform: scaleY(1);
}

.weeksurf_top_menu li:first-child {
	margin-left: 0;
}

.weeksurf_top_menu li:last-child {
	margin-right: 0;
}

/* 로그인 레이어 스타일 */
.popup_login_layer {
	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: 9999;
	display: none;
}

/* 로그인 레이어 애니메이션 */
@keyframes fadeIn {
	from {
	opacity: 0;
	transform: translateY(-50%);
	}
	to {
	opacity: 1;
	transform: translateY(0);
	}
}

.message.error {
    border-color: #1abc9c!important;
    color: #454545!important;
    text-align: center!important;
    border-radius: 10px!important;
    font-weight: bold!important;
    background-color: #effdfb!important;
    text-shadow: 0 0px 0 rgba(255, 255, 255, 0.5)!important;
}

.popup_login_content {
	background-color: #f7f4f4;
	border-radius: 20px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	border: solid 1px rgba(0, 0, 0, 0.1);
	padding: 40px;
	max-width: 600px;
	width: 100%;
	animation: fadeIn 0.3s ease;
}

.popup_login_content .logo img {
	max-width: 150px;
}
	
.popup_login_content .logo {
	font-weight: bold;
	font-size: 30px;
	text-align: center;
	margin-bottom: 20px;
	color: #1abc9c;
}
	
.popup_login_close {
	margin-bottom: -30px;
	width: 20px;
	left: 605px;
	top: -20px;
	color: #1abc9c;
	font-size: 20px;
	font-weight:bold;
	font-family: 'NanumSquareNeoBold';
	position: relative;
}
		
.popup_login_close:hover {
	color: #148f77;
	cursor: pointer;
}
	
.popup_login_content form {
}
	
.input-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 10px;
}
	
.popup_login_content form input {
	box-shadow: 0 0 0 1px #dbdbdb inset;
	border: none;
	font-size: 16px;
	padding: 15px;
	background-color: #ffffff;
	border-radius: 10px;
	outline: none;
	width: 100%;
	transition: border-color 0.3s;
}
	
.popup_login_content input:focus {
	box-shadow: 0 0 0 2px #1abc9c inset;
}
	
.popup_login_style::placeholder {
	color: #c6c6c6;
}
	
.popup_login_content button {
	background-color: #1abc9c;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 10px;
	width:100%;
	font-size: 16px;
	cursor: pointer;
	margin-top: 10px;
	transition: background-color 0.3s;
}
	
.popup_login_content button:hover {
	background-color: #148f77;
}
	
.links {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
	
.links a {
	color: #444444;
	text-decoration: none;
	margin: 0 5px;
}
	
.links span {
	color: #444444;
	font-weight: bold;
	margin: 0 5px;
}
	
@media (max-width: 500px) {
	.container {
	background-color: transparent;
	box-shadow: none;
	border: none;
	padding: 20px;
	}
}

/* input 숨겨준다 */
input#check_btn{
	display:none;
}

input#check_btn + label{
	cursor:pointer;
 }

input#check_btn + label > span{
	vertical-align: middle;
	padding-left: 5px;
 }

/* label:before에 체크하기 전 상태 CSS */
input#check_btn + label:before{
	content:"";
	display:inline-block;
	width:17px;
	height:17px;
	border:2px solid #1abc9c;
	border-radius: 4px;
	vertical-align:middle;
}
	
/* label:before에 체크 된 상태 CSS */	
input#check_btn:checked + label:before{
	content: "";
	background-color: #1abc9c;
	border-color: #1abc9c;
	background-image: url(/modules/message/skins/weeksurf/images/check_btn.png);
	background-repeat: no-repeat;
	background-position: 50%;
}

