/* setting */
:root{
    --dark-color: #2b2b2b;
    --light-icon-color: #FFDE59;
    
    --white: #fff;
    --gray: #333;
    --black: black;
    --red: red;
    --pink: #fccfef;

    --red-btn: #ffa0a0;
    --red-btn-hover: #FFCAC4;
    --green-btn: #00858F;
    --green-btn-hover: #006D57;

    --red-pink: #FFCAE0;
    --purple-pink: #C8BAEA;
    --dark-pink: #f786d7;

    --white-blue: #86AADC;

    --rgba-a: rgba(0, 0, 0, 0.4);
    --rgba-b: rgba(0 0 0 / 15%);

    --white-gray: #4d4d4d;
}

@font-face{
    font-family:'DNFBitBitv2';
    font-style:normal;
    font-weight:400;
    src:url('//cdn.df.nexon.com/img/common/font/DNFBitBitv2.otf')format('opentype')
}

@keyframes warning {
    0% {transform: translateX(-8px);}
    25% {transform: translateX(8px);}
    50% {transform: translateX(-8px);}
    75% {transform: translateX(8px);}
}

@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@keyframes pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: .25;
        transform: scale(.75);
    }
}

@keyframes logo {
    0% {
        opacity: 0;
        width: 10%;
        height: 10%;
        transform: translate(-50%, -50%);
    }
    5% {
        opacity: 1;
        width: 10%;
        height: 10%;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 1;
        width: 50%;
        height: 50%;
        transform: translate(-50%, -50%);
    }
}

/* code */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--pink);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    width: 70%;
    max-height: 90%;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 16px 3px var(--rgba-b);
    text-align: center;
    flex-direction: row;
    position: relative;
}

h1 {
    font-family: "DNFBitBitv2";
    font-size: 2.5rem;
    text-align: center;
}

label {
    display: block;
    margin-top: 10px;
}
input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    background-color: var(--purple-pink);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: var(--pink);
}

#result {
    margin-top: 20px;
    font-weight: bold;
    color: var(--gray);
}

.toggleSwitch {
    width:50px;
    height: 25px;
    margin: 0 auto;
    display: block;
    position: relative;
    border-radius: 30px;
    background-color: var(--white);
    box-shadow: 0 0 16px 3px var(--rgba-b);
    cursor: pointer;
}
.toggleSwitch .toggleButton {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--red-pink);
}
.toggleSwitch.active {
    background: var(--red-pink);
}
.toggleSwitch.active .toggleButton {
    left: calc(100% - 22px);
    background: var(--white) !important;
}
.toggleSwitch, .toggleButton {
    transition: all 0.2s ease-in;
}

.name, .mbti {
    font-size: 20px;
    margin-left: 10px;
    margin-right: 10px;
    position: relative;
}
.name {
    right: 70px;
    top: 25px
}
.mbti {
    left: 70px;
    top: -25px
}

.icon {
    cursor: pointer;
}

#mbti_part {
    display: none;
}

img {
    border-radius: 15px;
    width: 100%;
}

.number {
    font-size: 2.5rem;
}
.score, .one, .per {
    color: var(--dark-pink);
    font-size: 4rem;
    font-family: "DNFBitBitv2";
}
.Bone {
    color: var(--dark-pink);
    font-size: 4rem;
    font-family: "DNFBitBitv2";
    opacity: 0;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

    background-color: var(--rgba-a);
}
.modal.show {
    display: block;
}
.modal_body {
    text-align: center;
    flex-direction: row;
    position: relative;
    
    top: 50%;
    left: 50%;

    width: 70%;
    height: 80%;

    padding: 40px;

    text-align: center;

    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 0 16px 3px var(--rgba-b);

    transform: translateX(-50%) translateY(-50%);
}

.title {
    text-align: center;
    font-size: 40px;
    font-family: "DNFBitBitv2";
}
.text {
    text-align: center;
    font-size: 25px;
    margin-top: 10px;
    margin-bottom: 80px;
}

a {
    float: right;
    color: var(--white-blue);
}

.red {
    background-color: var(--red-btn);
}
.red:hover {
    background-color: var(--red-btn-hover);
}
.green {
    background-color: var(--green-btn);
}
.green:hover {
    background-color: var(--green-btn-hover);
}

.big {
    font-size: 25px;
}

.left {
    float: left;
}

.big_img {
    height: 40%;
    width: 90%;
}

.row {
    display: flex;
}
.col {
    width: 50%;
    padding: 24px;
}

.line {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    height: 8vh;
}
#line0, #line1 {
    justify-content: space-between;
}

input, select {
    border-left-width:0;
    border-right-width:0;
    border-top-width:0;
    border-bottom-width:1;
    border-color: var(--black) !important;
}

input.warning, label.warning {
    color: var(--red) !important;
    border-left-width:0;
    border-right-width:0;
    border-top-width:0;
    border-bottom-width:1;
    border-color: var(--red) !important;
    animation: warning .3s ease;
    animation-iteration-count: 3;
}
.warning {
    color: var(--red) !important;
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    right: 0%;
    background-color: var(--pink);
    z-index: 5;
}

.fa-heart, .loding {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 5rem;
}

.spinner-box {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}
.pulse-container {
    width: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pulse-bubble-1 {
    animation: pulse .4s ease 0s infinite alternate;
}
.pulse-bubble-2 {
    animation: pulse .4s ease .2s infinite alternate;
}
.pulse-bubble-3 {
    animation: pulse .4s ease .4s infinite alternate;
}

.LDMode {
    position: absolute;
    right: 3%;
    top: 3%;
    font-size: 2rem;
}
.btn_icon_dark {
    color: var(--light-icon-color);
}
.btn_icon_dark.animated {
    animation: spin 0.5s;
}
.fa-moon {
    color: var(--white);
}

.br { display: none; }

/* darkmode */
.darkmode {
    color: var(--white);
    background-color: var(--white-gray);
}
.darkmode .container, .darkmode .modal_body {
    background-color: var(--dark-color);
}
.darkmode input, .darkmode select {
    border-color: var(--white) !important;
    color: var(--white);
    background-color: var(--dark-color);
}
.darkmode .modal {
    background-color: var(--white-gray);
}
.darkmode .background {
    background-color: var(--white-gray);
}
.darkmode #result {
    color: var(--white);
}
input.warning, select.warning {
    color: var(--red) !important;
    border-color: var(--red) !important;
}

/* media */
@media screen and (max-width: 1000px) {
    .row {
        flex-direction: column;
    }
    .col {
        width: 100%;
        padding: 0%;
    }
    
    .container {
        max-height: 95%;
    }
    .container img {
        display: none;
    }

    .phone {
        display: none;
    }
}

@media screen and (max-width: 750px) {
    .phone {
        display: none;
    }
}

@media screen and (max-width: 470px) {
    .br { display: block; }
}