<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'DungGeunMo';
}
a {
text-decoration: none;
}
body {
overflow: hidden;
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 {
position: absolute;
left: 0;
top: 0;
width: 100%;
background: #262626;
color: #fff;
display: flex;
padding: 10px;
display: flex;
align-items: center;
justify-content: space-between;
height: 69px;
padding: 10px;
z-index: 10;
}
#header::before {
content: '';
border: 4px ridge #a3a3a3;
position: absolute;
left: 1px;
top: 1px;
width: calc(100% - 10px);
height: calc(100% - 10px);
z-index: -1;
}
#header h1 {
padding: 3px 0 6px 10px;
}
#header h1 a {
color: #fff;
}
#header h1 a:hover {
color: #A3A3A3;
}
#header nav {
padding-right: 10px;
}
#header nav li {
display: none;
display: inline;
}
#header nav li a {
color: #fff;
display: inline-block;
padding: 0 10px;
transition: all 0.2s;
border: 1px dashed #fff;
}
#header nav li.active a {
background: #fff;
color: #262626;
}
#header nav li a:hover {
opacity: 0.5;
}
/* quiz__wrap */
.quiz__wrap {
display: flex;
align-content: center;
justify-content: center;
flex-wrap: wrap;
/*df, acc, jcc백가라운드 가운데 오는 방법*/
margin-top: 150px;
}
.quiz {
max-width: 500px;
width: 100%;
background: #fff;
border: 8px ridge #cacaca;
margin: 10px;
}
.quiz__view {
position: relative;
background: #f5f5f5;
}
.quiz__view .true {
position: absolute;
left: 70%;
top: 100px;
width: 120px;
height: 120px;
background: #fff;
border-radius: 50%;
z-index: 100;
line-height: 120px;
text-align: center;
color: #fff;
background-color: #f5534f;
opacity: 0;
/* like */
/* animation: wobble 1s; */
}
.quiz__view.like .true {
opacity: 1;
animation: wobble 0.6s;
}
.quiz__view .false {
position: absolute;
right: 70%;
top: 100px;
width: 120px;
height: 1\20px;
background: #fff;
border-radius: 50%;
z-index: 100;
line-height: 120px;
text-align: center;
color: #f5534f;
opacity: 0;
/* dislike */
/* animation: wobble 0.6s; */
}
.quiz__view.dislike .false {
opacity: 1;
animation: wobble 0.6s;
}
/* true, false 애니메이션 효과 */
@keyframes wobble {
0% {
transform: translateZ(0);
}
15% {
transform: translate3d(-25%, 0, 0) rotate(-5deg);
}
30% {
transform: translate3d(20%, 0, 0) rotate(3deg);
}
45% {
transform: translate3d(-15%, 0, 0) rotate(-3deg);
}
60% {
transform: translate3d(10%, 0, 0) rotate(2deg);
}
75% {
transform: translate3d(-5%, 0, 0) rotate(-1deg);
}
to {
transform: translateZ(0);
}
}
.quiz__type {
background: #cacaca;
text-align: center;
font-size: 14px;
color: #3b3b3b;
border: 3px ridge #cacaca;
padding: 3px 0;
position: relative;
}
.quiz__type::before {
content: '';
position: absolute;
left: 2px;
top: 2px;
width: 5px;
height: 5px;
border: 6px ridge #8f8f8f;
}
.quiz__type::after {
content: '';
position: absolute;
right: 2px;
top: 2px;
width: 5px;
height: 5px;
border: 6px ridge #8f8f8f;
}
.quiz__question {
border-top: 6px ridge #cacaca;
border-bottom: 6px ridge #cacaca;
padding: 13px 30px;
font-size: 24px;
line-height: 1.4;
}
.quiz__number {
font-family: 'Cafe24Dangdanghae';
color: #64a30b;
}
.quiz__ask {
font-family: 'Cafe24Dangdanghae';
}
.quiz__answer {
background: #f5f5f5;
border-top: 6px ridge #cacaca;
padding: 10px;
}
.quiz__confirm {
border: 6px ridge #cacaca;
width: 100%;
font-size: 22px;
padding: 13px 20px;
background: #d6d6d6;
font-family: 'Cafe24Dangdanghae';
text-shadow: 1px 1px 1px #fff;
transition: all 0.3s;
cursor: pointer;
}
.quiz__confirm:hover {
background: #b3b3b3;
}
.quiz__result {
border: 6px ridge #FFFFFF;
width: 100%;
font-size: 22px;
padding: 13px 20px;
background: #fff;
text-align: center;
font-family: 'Cafe24Dangdanghae';
text-shadow: 1px 1px 1px #fff;
display: none;
}
.quiz__input {
border: 6px ridge #FFFFFF;
width: 100%;
font-size: 22px;
padding: 13px 20px;
background: #fff;
text-align: center;
font-family: 'Cafe24Dangdanghae';
text-shadow: 1px 1px 1px #fff;
margin-bottom: 10px;
}
/* footer */
#footer {
width: 100%;
text-align: center;
margin-top: 100px;
background: #262626;
padding: 20px;
}
#footer a {
color: #ccc;
font-size: 16px;
}
#footer a:hover {
opacity: 0.5;
}
</style>