body {
background-color: #f6f6f6;
background-image:
linear-gradient(90deg, #cdcccc 0px, #cdcccc 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(#cdcccc 0px, #cdcccc 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(#e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(90deg, #e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, transparent 100px),
linear-gradient(transparent 0px, transparent 5px, #f6f6f6 5px, #f6f6f6 95px, transparent 95px, transparent 100px),
linear-gradient(90deg, #e0e0e0 0px, #e0e0e0 1px, transparent 1px, transparent 99px, #e0e0e0 99px, #e0e0e0 100px),
linear-gradient(90deg, transparent 0px, transparent 5px, #f6f6f6 5px, #f6f6f6 95px, transparent 95px, transparent 100px),
linear-gradient(transparent 0px, transparent 1px, #f6f6f6 1px, #f6f6f6 99px, transparent 99px, transparent 100px),
linear-gradient(#cdcccc, #cdcccc);
background-size: 100px 100%, 100% 100px, 100% 10px, 10px 100%, 100% 100px, 100px 100%, 100px 100%, 100px 100px, 100px 100px;
}
#header {
background: #262626;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
position: relative;
z-index: 10;
}
#header::before {
content: "";
border: 4px ridge #a3a3a3;
position: absolute;
left: 5px;
top: 5px;
width: calc(100% - 10px);
height: calc(100% - 10px);
box-sizing: border-box;
z-index: -1;
}
#header h1 {
padding: 3px 3px 6px 10px;
font-family: "DungGeunMo";
font-size: 30px;
}
#header h1 a {
color: #fff;
}
#header h1 em {
font-size: 16px;
font-style: normal;
}
@media (max-width:600px) {
#header h1 em {
display: none;
}
}
#header nav {
padding-right: 10px;
}
#header nav li {
display: inline;
}
#header nav li a {
color: #fff;
padding: 0 10px;
border: 1px dashed #fff;
font-family: "DungGeunMo";
}
#header nav li.active a {
color: #000;
background: #fff;
}
#footer {
background: #fff;
text-align: center;
padding: 20px;
width: 100%;
box-sizing: border-box;
margin-top: 150px;
position: fixed;
left: 0;
bottom: 0;
z-index: 10000;
}
#footer a {
color: #000;
font-family: "DungGeunMo";
}
#footer a:hover {
text-decoration: underline;
}
/* quiz__wrap */
.quiz__wrap {
display: flex;
align-items: flex-start;
justify-content: center;
margin-top: 50px;
margin-bottom: 150px;
flex-wrap: wrap;
}
.quiz {
max-width: 500px;
width: 100%;
background-color: #fff;
border: 8px ridge #cacaca;
margin: 10px;
}
.quiz__type {
background-color: #cacaca;
text-align: center;
display: block;
font-size: 16px;
border: 3px ridge #cacaca;
color: #3b3b3b;
font-family: "DungGeunMo";
padding: 4px;
}
.quiz__question {
border-top: 6px ridge #cacaca;
border-bottom: 6px ridge #cacaca;
padding: 20px;
font-family: "Cafe24Dangdanghae";
line-height: 1.3;
}
.quiz__question .number {
color: rgb(160, 86, 86);
}
.quiz__question .ask {
display: inline;
}
.quiz__answer {
border-top: 6px ridge #cacaca;
padding: 10px;
background-color: #f5f5f5;
}
.quiz__answer .confirm {
border: 6px ridge #cacaca;
width: 100%;
font-size: 22px;
background-color: #d6d6d6;
font-family: "Cafe24Dangdanghae";
cursor: pointer;
padding: 13px 20px;
}
.quiz__answer .result {
width: 100%;
padding: 13px 20px;
font-size: 22px;
line-height: 1.3;
box-sizing: border-box;
text-align: center;
font-family: "Cafe24Dangdanghae";
border: 6px ridge #cacaca;
}
.quiz__answer .input {
width: 100%;
border: 6px ridge #cacaca;
font-size: 22px;
padding: 13px 20px;
background-color: #fff;
font-family: "Cafe24Dangdanghae";
margin-bottom: 10px;
}
.quiz__view {
background-color: #f5f5f5;
font-family: "Cafe24Dangdanghae";
position: relative;
overflow: hidden;
}
.quiz__view .true {
width: 120px;
height: 120px;
line-height: 120px;
background-color: rgb(160, 86, 86);
color: #fff;
border-radius: 50%;
text-align: center;
position: absolute;
left: 70%;
top: 100px;
opacity: 0;
}
.quiz__view .false {
width: 120px;
height: 120px;
line-height: 120px;
background-color: #fff;
border-radius: 50%;
text-align: center;
position: absolute;
right: 70%;
top: 100px;
opacity: 0;
}
.quiz__view.like .true {
opacity: 1;
animation: wobble 0.6s;
}
.quiz__view.dislike .false {
opacity: 1;
animation: wobble 0.6s;
}
/* 애니메이션 */
.quiz__selects {
margin: 5px 0;
}
.quiz__selects label {
display: flex;
}
.quiz__selects label input {
position: absolute;
left: -9999px;
}
.quiz__selects label span {
font-size: 20px;
line-height: 1.3;
font-family: "Cafe24Dangdanghae";
padding: 10px;
display: flex;
align-items: center;
width: 100%;
border-radius: 5px;
cursor: pointer;
}
.quiz__selects label span::before {
content: '';
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #fff;
margin-right: 15px;
display: flex;
flex-shrink: 0;
box-shadow: inset 0px 0px 0px 4px #936da1;
transition: all 0.25s;
}
/* box-shadow 원안 그림자 효과?,
transition 애니메이션 효과,
flex-shrink,
cursor: pointer; 커서를 손가락 모양으로.. */
.quiz__selects label input:checked+span {
background-color: #e9d6ee;
}
.quiz__selects label input:checked+span::before {
box-shadow: inset 0px 0px 0px 10px #936da1;
}
.quiz__confirm {
width: 100%;
text-align: center;
}
.quiz__confirm .check {
font-size: 22px;
line-height: 1.3;
padding: 13px 60px;
border: 6px ridge #cacaca;
box-sizing: border-box;
text-align: center;
font-family: "Cafe24Dangdanghae";
cursor: pointer;
margin: 40px 0;
transition: background 0.3s;
}
.quiz__confirm .check:hover {
background-color: #936da1;
}
@keyframes wobble {
0% {
transform: translatex(0) rotate(0deg)
}
15% {
transform: translatex(-25%) rotate(-5deg)
}
30% {
transform: translatex(20%) rotate(3deg)
}
45% {
transform: translatex(-15%) rotate(-3deg)
}
60% {
transform: translatex(10%) rotate(2deg)
}
75% {
transform: translatex(-5%) rotate(-1deg)
}
100% {
transform: translatex(0) rotate(0deg)
}
}