* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box
}


h1,h2,h3,h4,h5{
    margin: 20px 0px 8px 0px;
}

h1{
    font-size: 28px;
}
h2{
    font-size: 26px;
}
h3{
    font-size: 24px;
}
h4,h5{
    font-size: 22px;
}


#results h2{
    font-size: 40px;
}
#results p{
    font-size: 24px;
}


.hidden{
    display: none;
}

.animate-fade {
    animation: fade-end 0.5s 1;
}

.fade {
    opacity: 50%;
}

.select {
    animation: select-animation 0.5s 1;
}

@keyframes select-animation {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fade-end {
    0% {
        opacity: 100%;
    }

    100% {
        opacity: 0%;
    }
}

.container {
    position: relative;
    max-width: 750px;
    width: 100%;
    margin: auto;
    /*background: white;*/
}

#quiz-space {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 25px;
}

#quiz-image-space {
    position: relative;
    width: 100%;
}

#quiz-image {
    width: 100%;
    border-radius: 25px;
}

#quiz-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    position: absolute;
    bottom: 0px;
    left: 50%;
    border: 7px solid #ffffff;
    box-sizing: content-box;
    transform: translate(-50%, 50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(0deg, #9517ff 0%, #6f00ff 100%);;
}

#quiz-icon img {
    width: 25px;
    height: 25px;
}

#quiz-title {
    font-family: "kanit";
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 7px;
    margin-top: 35px;
}

#quiz-sub-title {
    font-family: "roboto";
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
}

.button {
    width: 100%;
    border: 0px;
    outline: none;
    font-family: "kanit";
    font-size: 24px;
    color: #ffffff;
    padding: 7px 0px;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.dark {
    background-color: #232734;
    border: 3px solid #7b7d85;
}

.color-animation {
    background: linear-gradient(0deg, #9517ff 0%, #6f00ff 100%);;
}

#quiz-description-space {
    /*background-color: #f5f5f5;*/
}

.quiz-description-link {
    margin: 25px 0px !important;
}

#quiz-description {
    padding: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 20px;
}

.quiz-description-heading {
    font-family: "kanit";
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 7px;
    margin-top: 25px;
}

.quiz-description-text {
    font-family: "roboto";
    font-weight: 300;
}

/* footer */
footer {
    background-color: #070c18;
}

#footer-space {
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
}

.footer-button {
    margin-bottom: 15px;
}

/* scoreboard */

#scoreboard {
    padding: 20px 15px 10px 15px;
    display: flex;
    align-items: center;
}

#score-text {
    font-family: "kanit";
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 15px;
}

#score {
    position: relative;
    width: 100%;
    height: 5px;
    border-radius: 50px;
}

#full-progress {
    z-index: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background-color: #d0d0d0;
    border-radius: 50px;
}

#progress {
    z-index: 1;
    position: absolute;
    border-radius: 50px;
    background: linear-gradient(90deg, #6f00ff, #ff00ff);
    transition: width 0.5s;
    width: 0%;
    height: 100%;
}

/* question */

#question {
    position: relative;
    width: 100%;
    padding: 0px 15px;
}

#question-options {
    position: relative;
    padding: 10px;
    padding-bottom: 150px;
    border-radius: 25px;
    width: 100%;
    background: linear-gradient(180deg, #e6e8f0 0%, #ffffff 100%);
    display: flex;
    flex-wrap: wrap;
}

#question-image {
    width: 100%;
    border-radius: 25px;
}

#question-title {
    font-family: "kanit";
    font-size: 35px;
    font-weight: 500;
    margin: 10px 0px 15px;
}

.question-option {
    border-radius: 15px;
    position: relative;
    width: calc(50% - 14px);
    margin: 7px;
    background-color: #ffffff !important;
    box-shadow: 0px 0px 15px -5px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: opacity 0.5s;
}

.question-option-image {
    border-radius: 15px 15px 0px 0px;
    width: 100%;
}

.question-option-content {
    font-family: "kanit";
    display: flex;
    align-items: center;
    padding: 10px;
}

.question-option-text {
    margin-left: 10px;
    font-size: 20px;
    line-height: 100%;
}

.question-option-icon {
    height: 20px;
}

#next {
    position: fixed;
    bottom: -100%;
    left: 0px;
    transition: bottom 0.5s;
    width: 100%;
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

/* results */
#results-space {
    position: relative;
    padding: 0px 25px;
}

#results-image {
    width: 100%;
    border-radius: 25px;
}

#results {
    padding: 25px;
    text-align: center;
}

#results-title {
    font-family: "kanit";
    font-size: 20px;
}

#result {
    font-family: "kanit";
    font-size: 32px;
    font-weight: 700;
}

#result-description {
    font-family: "roboto";
    font-size: 18px;
    font-weight: 300;
}

.main-result-card, .result-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.result-title {
    font-family: "kanit";
    font-size: 22px;
    font-weight: 700;
}

.main-result-card .result-title {
    font-size: 32px;
}

.result-bar {
    display: flex;
    align-items: center;
}

.result-bar-score-space {
    position: relative;
    width: 100%;
}

.result-bar-score {
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    left: 0px;
    background: linear-gradient(90deg, #6f00ff, #ff00ff);
    height: 7px;
    z-index: 1;
    width: 33%;
    border-radius: 25px;
}

.result-bar-full-score {
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    left: 0px;
    background-color: #d0d0d0;
    height: 7px;
    width: 100%;
    border-radius: 25px;
}

.main-result-card .result-bar-score {
    height: 15px;
}

.main-result-card .result-bar-full-score {
    height: 15px;    
}

.result-bar-percentage {
    margin-left: 15px;
    font-family: "kanit";
    font-size: 18px;
    font-weight: 700;
    text-align: center; 
}

/* share results */

#share-results-title {
    font-family: "kanit";
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

#share-results {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
}

#share-results a {
    text-decoration: none;
    width: 100%;
    margin: 0px 5px;
}

.social-icon-space {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 25px;
}

.social-icon {
    height: 30px;
}

.facebook-blue {
    background-color: #1877f2;
}

.twitter-blue {
    background-color: #1da1f2;
}

.messenger-blue {
    background-color: #006aff;
}

.whatsapp-green {
    background-color: #25d366;
}

.faded-link {
    font-family: "kanit";
    text-decoration: none;
    font-size: 16px;
    color: #808080;
    font-weight: 700;
    display: block;
    text-align: center;
    margin: 15px 0px;
}

/* random quiz */

.random-quiz {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(90deg, #6f00ff, #ff00ff);
    border-radius: 25px;
    animation: rotating-background 2s infinite;
    margin-top: 25px;
}

.random-quiz-content {
    display: flex;
    align-items: center;
}

.arrow {
    height: 30px;
}

.random-quiz-image {
    height: 60px;
    border-radius: 50%;
}

.random-quiz-title {
    margin: 0px 25px;
    font-family: "kanit";
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* more-quizzes */

#more-quizzes {
    padding: 0px 25px;
}

#more-quizzes a {
    text-decoration: none;
    width: 100%;
}

.quiz-card {
    background-color: #f1f2f3;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    margin: 15px 0px;
    border-radius: 25px;
}

.quiz-card-image {
    height: 100%;
    border-radius: 25px 0px 0px 25px;
}

.quiz-card-title {
    margin: 0px 25px;
    font-family: "kanit";
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

@media (max-width: 450px) {
    /*.question-option {
        width: calc(100% - 14px);
    }*/
    #question-title {
        font-size: 25px;
        line-height: 120%;
    }
}