/* 기본 설정 */
@font-face {
  font-family: 'Paperlogy';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-style: normal;
}
@import url('//fonts.googleapis.com/earlyaccess/notosanskr.css');
html {font-size : 16px}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;
}
ol, ul {list-style: none;padding: 0;margin: 0;}
a{color: #343434;text-decoration: none;}
body {  font-family: 'Paperlogy', 'Noto Sans', sans-serif;  background-color: #f6f5fa;  color: #343434;  margin: 0;  padding: 0;  overflow-x: hidden;  position: relative;}

/* 헤더 상단  */
.header {
  position: relative;
  padding: 2rem 0 1rem;
  background: url(/images/vote/bg.jpg) no-repeat top center;
}
.logo{
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
}
.logo a img{
  width: 6.5rem;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .title{
  font-size: 3.2rem;
  margin: 1.5rem 0 1rem;
}
.header .title img{
  padding: 0 0.5rem;
}
.header .title span{
  background: linear-gradient(to bottom, #a200fb, #2200f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
}
.countdown {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  text-align: right;
}
.w_box{
  background: white;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}
.w_boxLine{
  border-top: solid 3px #a200fb;
  border-bottom: solid 3px #a200fb;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}
/* 속보 */
span.t_tit_bl_ico_1, .t_tit_bl_ico_2{
  width: 3rem;
  height: 1.5rem;
  line-height: 1.7;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 4px;
  text-align: center;
  margin-right: 0.5rem;
}
span.t_tit_bl_ico_1{
      color: #fff;
      background: #ff581d;
}
span.t_tit_bl_ico_2{
      color: #fff;
      background: #3454a3;
}

/* 대통령 후보자 */
.content_area {
  clear: both;
}
.section-title {
  display: inline-block;
  font-size: 1.3rem;
  margin: 0.5rem 0 1.5rem;
}
.candidate_con {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.candidate {
  text-align: center;
  padding-top: 1rem;
}
.candidate:hover {
  opacity: 0.8;
}
.candidate:last-child{
  margin-right: 0;
}
.candidate_img {
  margin: 0 auto;
  width: 10rem;
  height: 10rem;
  border-radius: 70%;
  overflow: hidden;
  border: 1px solid #ddd;
  cursor: pointer;
}
.candidate_img img{
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding-top: 10%; 
}
.candidate_name {
  display: inline-block;
  cursor: pointer;

}
.candidate_name p{
  font-family: 'Noto Sans';
  color: #fff;
  padding: 0.3rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  border-radius: 10px;
  display: block;
  line-height: 1.3;
  vertical-align: middle;
}

.candidate_name p.blue{
  background-color: #0f29eb;
}
.candidate_name p.orange{
  background-color: #f27900;
}
.candidate_name p.red{
  background-color: #ea2e10;
}
.candidate_name p.yellow{
  background-color: #eac20a;
}
.candidate_name p.red2{
  background-color: #f36168;
}
.candidate_name p.gray{
  background-color: #9f9f9f;
}

.candidate_name h3{
  font-size: 2rem;
}
.name_row {
  padding: 0.5rem 1rem;
}
.name_row h3{
  font-size: 2rem;
}

/* 후보자 팝업 */
.popupCon{
	margin: 7rem 4rem;
	display: flow-root;
	padding: 0 1rem;
}
.popupCon .popupTxt p{
	font-family: 'Noto Sans';
	font-size: 1.3rem;
}
.popupCon .popupTxt h3{
	font-family: 'Paperlogy';
	font-size: 3rem;
}
.catchphrase{
  font-family: 'Noto Sans';
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 1rem 0;
  color: #8f8f8f;
}


hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;
}
.candidate_info {
  font-family: 'Noto Sans';
  margin-top: 2rem;
}
.candidate_info li {
  display: flex;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.label {
  width: 6.5rem;
  font-weight: bold;
  flex-shrink: 0;
}


.popupCon .popupTxt div span{
	font-weight: 300;
	display: inline-block;
}

@keyframes bg {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes inner {
    0% {transform: scale(0.8);}
    50% {transform: scale(1.06);}
	100% {transform: scale(1);}
}
@-webkit-keyframes bg {
    from {opacity: 0;}
    to {opacity: 1;}
}
@-webkit-keyframes inner {
    0% {transform: scale(0.8);}
    50% {transform: scale(1.06);}
	100% {transform: scale(1);}
}
.popup__base, .popup__bg{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	cursor:zoom-out;
  z-index: 2;
}
.popup__base{
	background-color: rgba(0,0,0,0.5);
	display: none;
}
.popupCheck:checked + .popup__base{
	display: block;
	animation-name: bg;
    animation-duration: .5s;
	animation-fill-mode:forwards;
	-webkit-animation-name: bg;
    -webkit-animation-duration: .5s;
	-webkit-animation-fill-mode:forwards;
}
.popup__inner{
	position: absolute;
    z-index: 10;
    width: 40%;
    background-color: #fff;
    top: 20%;
    left: 30%;
    display: block;
    cursor: default;
}
.popupCheck{
	display: none;
}
.popup__calign{
	position: relative;
	right: 3rem;
	float: right;
	padding: 3%;
	font-size: 3rem;
}
.popup__close{
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	display: block;
	position: absolute;
	z-index: 10;
	text-align: right;
	cursor: pointer;
	color: #333;
}

/* 개표현황 */
.counting{
  width: 310px;
}
.vote_rate{
  display:flex;
  flex-direction:row;
  justify-content: center;
  font-family: 'Noto Sans';
}
.vote_rate p{
  font-size: 1.5rem;
  font-weight: 600;
}
.vote_rate .text span{
  padding-top: 0.5rem;
  display: block;
}
.voter_turnout{
  font-family: 'Noto Sans';
  font-size: 0.8rem;
  color: #8a8a8a;
  margin-top: 2rem;
}
.vote_rate svg { 
  width: 1.3rem;
  vertical-align: bottom;
  margin-left: 0.3rem;
}
.vote_rate svg:hover {
  cursor: pointer;
}
.vote_rate svg:active {
  transform: rotate(40deg)
}
.chart { 
  position: relative;
  margin-left: auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  transition: 0.3s;
}
span.rate { 
  background: linear-gradient(to bottom, #a200fb, #2200f1);
  color: #fff;
  font-family: 'Paperlogy';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  text-align: center;
  line-height: 4.7;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
}

.election_results{
  flex-grow: 1;
}
.candidate_comparison{
  display: flex;
  align-items: center;
  margin-top: 0.8rem;
}
.candidate_comparison > div{
  flex-grow: 1;
}
.candidate_comparison .candidate_img{
  display: inline-block;
}
.candidate_comparison .candidate_img em.elected{
  background: linear-gradient(to bottom, #fca50f, #ffe400);
  text-shadow: 0 0 0.2rem #7e5b00;
}
.candidate_comparison .candidate_img em.strong{
  background: linear-gradient(to bottom, #1daf43, #99cf26);
  text-shadow: 0 0 0.2rem #01751e;
}
.candidate_comparison .candidate_img em.certain{
  background: linear-gradient(to bottom, #8102ed, #c20f6c);
  text-shadow: 0 0 0.2rem #481573;
}
.candidate_comparison .candidate_img em.elected, .candidate_comparison .candidate_img em.strong, .candidate_comparison .candidate_img em.certain{
  border-radius: 10px;
  width: auto;
  height: auto;
  padding: 0.5rem;
  line-height: 1;
}
.candidate_comparison .candidate_img em.elected svg{
  display: inline-block;
  vertical-align: top;
  filter: drop-shadow(0 0 0.1rem rgba(255, 90, 0));
}
.candidate_comparison .candidate_img em.win{
  background: linear-gradient(to bottom, #a200fb, #2200f1);
}
.candidate_comparison .candidate_img em{
  background-color: #9f9f9f;
  position: absolute;
  color: #fff;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.9rem;
  padding: 0.5rem;
  line-height: 1.8;
  z-index: 1;
}

.candidate_info2{
  margin: 0 1rem;
  display: inline-block;
  vertical-align: top;
}
.candidate_info2 p{
  font-family: 'Noto Sans';
  color: #fff;
  text-align: center;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
}
.candidate_info2 p.blue{background-color: #0f29eb;}
.candidate_info2 p.orange{background-color: #f27900;}
.candidate_info2 p.red{background-color: #ea2e10;}
.candidate_info2 p.yellow{background-color: #eac20a;}
.candidate_info2 p.red2{background-color: #f36168;}
.candidate_info2 p.gray{background-color: #9f9f9f;}
.candidate_info2 .name{
  font-size: 1.6rem;
  line-height: 1.2;
  padding: 0.4rem 0 0;
}
.candidate_info2 span{
  font-family: 'Noto Sans';
  font-size: 0.9rem;
  padding-top: 0.5rem;
  padding-top: 0.3rem;
  display: block;
}
div.vote_diff{
  font-family: 'Noto Sans';
  border: 1px #ddd solid;
  border-radius: 10px;
  color: #a0a0a0;
  font-size: 0.8rem;
  padding: 0rem 0.5rem;
  margin: 0.2rem 0;
}
.election_results .vs{
  color: #5338f5;
}
.source_attribution{
  font-family: 'Noto Sans';
  text-align: right;
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* 뉴스와 타임라인 */
.column2{
  display: flex;
  align-items: stretch;
  gap: 1rem;
}
.content_news{
  width: 802px;
}
.top_newsBox {
  font-family: 'Noto Sans';
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.top_news {
  line-height: 1.39;
}
.top_news a:hover{
  text-decoration: underline;
  text-underline-offset: 3px
}
.top_news a img {
  width: 100%;
  height: 245px; /*PC와 비율을 맞추기 위해 높이값 설정, 지우시면 됩니다!!*/
}
.news_title {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1rem 0 0;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
.news_description {
  font-size: 1rem;
  color: #797979;
  display: -webkit-box;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.top_news span.keyword{
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  margin: 1rem 0.5rem 0 0;
  font-size: 0.9rem;
  background: #ece9f9;
  font-weight: 600;
}
.top_news span.keyword:hover{
  background-color: #dbd3ff;
}
.content_timeline {
  width: 260px;
}
.timeline {
  font-family: 'Noto Sans';
  list-style: none;
  padding: 0;
  position: relative;
  margin-left: 0.4rem;
  border-left: 2px solid #ccc;
  font-weight: 800;
}
.timeline li {
  position: relative;
  padding: 0 0.3rem;
  margin: 1.3rem 1rem 1.3rem;
  background: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}
.timeline .select{
  border: 1px solid #e1e1e1;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.1);
}
.timeline .select .date{
  color: #6e00f7;
  font-weight: 700;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 2px solid #c3c3c3;
  border-radius: 50%;
}
.date {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}



/*최신 뉴스*/
.icon_more{
  vertical-align: middle;
  line-height: 1.6;
  margin-left: 0.5rem;
}
.icon_more svg{
  width: 1.4rem;
}
.new_newsBox{
  font-family: 'Noto Sans';
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 4rem;
}
.new_news{
  display: flex;
  gap: 1.5rem;
}
.new_news img{
  height: auto;
  max-height: 100%;
  object-fit: cover;
}
.new_news div{
  flex: 1;
}
.new_news p {
  font-size: 1rem;
  color: #797979;
  display: -webkit-box;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
.new_news:hover{
  text-decoration: underline;
  text-underline-offset: 3px
}


/*많이 본 뉴스*/
.most-viewed-news__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem; 
  padding-bottom: 0.5rem;
}
.rank_news{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem 1.5rem;
}
.rank_newsItem{
  /* max-width: 205px; */
}
.rank_newsItem:hover {
  text-decoration: underline;
  text-underline-offset: 1px;
}
.rank_newsLink {
  display: block;
}
.rank_newsImage {
  width: 100%; 
  height: auto;
  display: block;
}
.rank_newsTitle {
  font-family: 'Noto Sans';
  display: block;
  margin: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.39; 
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/*대선 Shorts*/
.shtvideo{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  margin-bottom: 0.5rem;
}
.sht_con iframe{
  border-radius: 10px;
  width: 210px;
  height: 380px;
}

/*footer*/
.footer{
  text-align: center;
  padding: 1rem 0 2.5rem;
}


/* 반응형 */
@media screen and (max-width: 76em){
  .header {background: url(/images/vote/bg2.jpg) no-repeat top center;}
  .logo{width: 96%;}
  .container{width: 96%;}
  .name_row{display: block; text-align: center; padding: 0.5rem;}
  .candidate_img{width: 90%; height: auto;}
  .candidate_img img{width: 95%; padding-top: 5%; position: relative; bottom: -0.5rem;}
  .candidate_name p{text-align: center; font-size: 0.8rem; padding: 0.3rem; margin-top: 0.5rem;}
  .name_row span{display: none}
  .name_row h3{font-size: 1.6rem;}
  .content_news{width: auto;}
  .column2{display: block;}
  .election_results .candidate_img {width: 9rem; height: auto;}
  .election_results .candidate_info2 p {width: 5rem; margin-bottom: 0.3rem;}
  .counting{width: auto;}
  .chart{margin-left: 3rem;}
  .candidate_comparison > div {margin-left: 1rem;}
  .top_news a img{width: 100%; height: auto;}
  .timeline li{padding: 0;margin: 0;}
  .content_timeline {width: auto; float: none; padding-bottom: 1rem; clear: both;}
  .timeline_wrap {overflow-x: auto; white-space: nowrap;}
  .timeline { display: inline-flex; flex-direction: row; gap: 1.5rem; border-left: none; position: relative; margin: 0;  padding-bottom: 0.5rem;}
  .timeline li { flex: 0 0 auto; width: auto; padding: 0; margin: 0 0 18px;}
  .timeline li::before { content: ""; position: absolute; top: unset; bottom: -18px; left: 10px;border-radius: 50%; z-index: 1;}
  .timeline::after { content: ""; position: absolute; bottom: 13px; left: 0; width: 100%; /* 부모 기준 선 고정 */ height: 2px; background: #ccc; z-index: 0;} 
  .timeline .date { margin-bottom: 0.5rem; font-size: 0.95rem; }
  .timeline .select{ padding: 0.8rem; }
  .timeline li div{ padding: 0.5rem 0.8rem;}
  .new_newsBox{grid-template-columns: 1fr;}
  .rank_newsImage {width: 100%; height: auto;  }
  .shtvideo {display: block;overflow-x: auto; white-space: nowrap; padding-bottom: 1rem;}
  .sht_con {display: inline-block; margin-right: 1rem; vertical-align: top;}
  .sht_con iframe { width: 210px; height: 380px;}
  .popupCon{margin: 2.5em 5%; height: auto; padding: 0 10px; display: -ms-flexbox}
	.popupCon .popupTxt{width: 100%; text-align: center;}
	.popupCon .popupTxt p{ font-size: 1rem;}
	.popupCon .popupTxt h3{font-size: 2rem;transform: rotate(-0.03deg);  padding: 0 0 1rem;}
	.popupCon .popupTxt .catchphrase{ padding: 0; font-size: 1rem;}
	.popupCon .popupTxt .candidate_info{text-align: left; margin-top:1.5rem; line-height: 1.5;}
	.popupCon .popupTxt div ul li{margin-top: 0.5rem}
	.popupCon .popupTxt div span{ display: contents;}
}

@media screen and (max-width: 47.2em){
  .header-inner{display: block;}
  .logo {margin-left: 4%;}
  .logo a img{width: 5rem;}
  .header .title{text-align: center; font-size: 2.2rem; margin: 1.3rem 0 0.5rem;}
  .header .title img{width: 2rem;}
  .candidate {padding-top:0.3rem;}
  .counting { width: auto;}
  .candidate_comparison > div{text-align: center; margin: 0;}
  .candidate_info2{display: block;}
  div.vote_diff{display: none;}
  .source_attribution{margin: 1rem 1rem 0 0;}
  .top_news a img{padding-bottom: 0.8rem;}
  .countdown{position: absolute; top: 2.7rem; right: 1rem; font-size: 0.8rem; color: #fff; background: linear-gradient(to bottom, #a200fb, #2200f1); border-radius: 10px; padding: 0.2rem 0.5rem;}
  .date div{position: absolute; top: 1.5rem; right: 1rem; font-size: 0.8rem;}
  .candidate_con{grid-template-columns: repeat(3, 1fr); gap: 1rem;}
  .rank_news{grid-template-columns: repeat(2, 1fr);}
  .top_news span.keyword{display: none;}
  .new_newsBox{gap: 1.5rem;}
  .news_title{padding: 0;}
  .new_news img{width: 40%;}
  .sht_con iframe{width: 185px; height: 325px;}
  .popup__inner{width: 80%; left: 10%;}
  .footer{font-size: 0.7rem;}
}

