@font-face {
    font-family: 'MapoGoldenPier';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoGoldenPierA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    /* font-family: 'NanumSquare', sans-serif; */
    font-family: 'Nanum Gothic', sans-serif;
    -webkit-font-smoothing: antialiased;
}
header {
    background-color: rgb(187,221,255);
    margin: 0;
    padding: 20px;
}
header h1 {
    color: black;
    text-align: center;
    font-size: 45px;
    font-family: 'Gamja Flower', cursive;
}
header h2 {
    color: black;
    text-align: center;
    font-size: 30px;
    font-family: 'Gamja Flower', cursive;
}
@media(max-width : 600px) {
    header {padding: 10px;}
    header h1 {font-size : 35px;}
    header h2 {font-size : 20px;}
}

/* index */
.happynewyear {
    margin: 10px auto;
    width: 500px;
}
@media(max-width : 600px) {
    .happynewyear {width: 320px;}
    .happynewyear img {width: 320px;}
}
/* speech-bubble */
.bubble-container {
    width: 320px;
    margin: 20px auto;
}
.speech-bubble-right {
	position: relative;
	background: rgb(230,230,230);
    padding: 10px;
	border-radius: .4em;
}
.speech-bubble-right:after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-right-color: rgb(230,230,230);
	border-left: 0;
	border-top: 0;
	margin-top: -5px;
	margin-left: -10px;
}
.speech-bubble-left {
	position: relative;
    background: rgb(255,235,51);
    padding: 10px;
	border-radius: .4em;
}
.speech-bubble-left:after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-left-color:rgb(255,235,51);
	border-right: 0;
	border-top: 0;
	margin-top: -5px;
	margin-right: -10px;
}

/* under bubble */

.description {
    margin: 20px auto;
    width: 600px;
    padding-bottom: 16px;
    text-align: center;
    background-color: rgb(230,230,230);
    border-radius: 10px;
}
@media(max-width : 1000px) {
    .description {width: 320px;padding: 16px;}
}
.description h4 {
    font-weight: bold;
    padding: 16px;
    margin: 0;
}
.description p {
    font-size: 15px;
    text-align: justify;
}
.description ul {
    padding: 0;
}
.description li {
    list-style: none;
}
.btn-container {
    height: 160px;
    position: relative;
    margin: 20px;
}
.btn-center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.test-start {
    padding: 0;
    width: 200px;
    height: 50px;
    border-radius: 25px;
    font-size: 18px;
}
.main-picture {
    text-align: center;
}
.notice {
    width: 600px;
    margin: 20px auto;
    background-color: rgb(230,230,230);
    padding: 20px;
    text-align: justify;
    border-radius: 10px;
}
@media(max-width : 1000px) {
    .notice {width: 320px;padding: 16px;}
}
.notice p {
    margin: 0;
    padding: 0;
}

/* Style the form */
.formnotice {
    width: 320px;
    margin: 20px auto;
    font-size: 17px;
    text-align: center;
}
.formnotice p {
    background-color: rgb(255, 118, 27);
    border-radius: 10px;
    color: white;
    margin: 0;
    padding: 10px;
}
div[class^="tab"] {
    width: 320px;
    margin: 50px auto;
}
.number {
    font-size: 20px;
    font-weight: bold;
}
.question {
    padding: 0 0 10px 0;
    font-size: 18px;
    line-height: 30px;
    font-weight: bold;
}
div[class^="tab"] p {
    padding: 10px;
    margin-bottom: 5px;
    border: 2px solid rgb(163,167,171);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
}
.p-active {
    color: rgb(33,37,41);
    background-color: rgb(187,221,255);
    padding: 10px;
}
@media(max-width : 600px) {
    div[class^="tab"] {width: 320px;}
    .number {font-size: 17px;}
    .question {font-size : 17px;}
    .div[class^="tab"] p {font-size: 14px;}
}
.button-wrap {
    width: 320px;
    margin: 0 auto;
}
.endbutton {
    width: 130px;
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
    padding: 0;
}

/* loading */
.loading {
    text-align: center;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    display: none;
}
.loading div {
    margin-bottom: 30px;
}
@media(max-width : 600px) {
    .loading h2 {
        font-size: 25px;
    }
}

/* result */
.result {
    margin: 40px auto;
    width: 500px;
}
.result h3 {
    text-align: center;
    margin-bottom: 20px;
}
p[id^=matched] {
    text-align: center;
}
#matched-dog {
    margin-bottom: 10px;
}
.result h4 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.detailwrap {
    margin-bottom: 20px;
    box-shadow: 0 0 5px;
    padding: 10px;
    border-radius: 5px;
}
div[id^=name] {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    margin-top: 15px;
    font-family: 'MapoGoldenPier';
}
div[id^=ename] {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: -5px;
    color: rgb(150,150,150);
    font-family: 'MapoGoldenPier';
}
div[id^="img"] {
    text-align: center;
    margin-bottom: 10px;
}
div[id^="desc"] {
    text-align: justify;
    font-size: 17px;
    padding: 10px 10px 20px;
    font-family: 'MapoGoldenPier';
}
.properties {
    padding: 20px 0;
    margin: 0 10px;
    border-top: 2px solid rgb(163,167,171);
}
.axis {
    width: 50px;
}
.axis ul {
    margin: 0;
    padding: 0;
}
.axisname {
    list-style: none;
    font-size: 14px;
    margin-bottom: 1.5px;
}
@media(max-width : 900px) {
    .result {width: 320px;}
    p[id^=matched] {font-size: 15px;}
    div[id^=name] {font-size: 20px;}
    div[id^=ename] {font-size: 14px;}
    div[id^="desc"] {font-size: 16px;}
}

/* share */
.sharebtn {
    text-align: center;
    margin: 15px 0 30px;
}
.sharebtn img {
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}
#kakao-link-btn {
    margin-right: 20px;
}

/* ads */
.ad-left {
    position: absolute;
    top: 155px;
    left: 10px;
}
.ad-right {
    position: absolute;
    top: 155px;
    right: 10px;
}
.ad-top {
    width: 320px;
    margin: 20px auto;
}
.ad-middle {
    width: 320px;
    margin: 20px auto;
}
@media(max-width : 700px) {
    .ad-left {display: none;}
    .ad-right {display: none;}
}
.ad-bottom {
    width: 320px;
    margin: 20px auto;
}

/* footer */
footer {
    width: 320px;
    margin: 30px auto;
    padding: 0;
    text-align: center;
}
footer img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}
footer address {
    font-size: 13px;
    margin: 0;
}

/* 결과 모아보기 */
.resultcollection {
    margin: 20px auto;
    width: 500px;
}
.resultcollection h5 {
    text-align: center;
}
.catlist {
    margin-bottom: 50px;
}
.noticetable {
    text-align: center;
    background-color: rgb(255, 118, 27);
    border-radius: 10px;
    color: white;
    margin: 20px;
    padding: 10px;
}
.resultcollection table td{
    padding: 5px 0;
    text-align: center;
    font-size: 15px;
}
.resultname {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    margin-top: 15px;
    font-family: 'MapoGoldenPier';
}
.resultename {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: -5px;
    color: rgb(150,150,150);
    font-family: 'MapoGoldenPier';
}
.resultimg {
    text-align: center;
    margin-bottom: 10px;
}
.resultdesc {
    text-align: justify;
    font-size: 17px;
    padding: 10px 10px 20px;
    font-family: 'MapoGoldenPier';
}
@media(max-width : 900px) {
    .noticetable {font-size: 15px;}
    .resultcollection table td{font-size: 13px;}
    .resultcollection {width: 320px;}
    .resultname {font-size: 20px;}
    .resultename {font-size: 14px;}
    .resultdesc {font-size: 16px;}
}