* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: url(images/background.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body, p, .scoreText, h3 {
    margin: 20px;
}

main{
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 10px;
    border: 50px solid;
    border-image: url(images/smallborder.png) round;
    border-image-slice: 166 215;
    border-image-outset: 16px; 
    padding: 10px;
    text-align: center;
}

:focus {
    outline: 5px solid blue;
}

/*setting background color for elements*/
main, .startQuiz, h1, form, legend, span, .userScore,
.buttonChoices, .questionPage, .answerResponse, .nextPage, fieldset,
img, .responseMessage, p, .finalPage, h2, h3, .welcomeMessage {
    background: lavender;
}

/*css for start page*/
/*web app title text*/
h1 {
    margin: 15px;
    font-size: 30px;
    font-family: 'Luckiest Guy', cursive;
}

/*princess image css*/
.princessesImage {
    height: 20%;
    width: 60%;
    margin: 30px auto 5px;
    border: 2px solid green;
    border-radius: 8px;
}

/*start page welcome message and*/
.welcomeMessage, .quizQuestionNo {
    font-family: 'Acme', sans-serif;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

/*start button*/
.startButton {
    margin: 5px auto 10px;
    padding: 15px 60px;
    background: url(images/buttonbackground.jpg) no-repeat;
    background-size: 100%;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bolder;
    cursor: pointer;
    color: darkslateblue;
    font-family: 'Coustard', serif;
}   

/*question title text*/
legend {
    font-family: 'Luckiest Guy', cursive;
}

/*css for question page*/
legend {
    font-size: 30px;
}

/*question page section*/
fieldset {
    border: none;
}

/*CSS for question text*/
.question {
    margin: 35px;
    font-size: 20px;
    font-family: 'Noto Serif TC', serif;
}

/*css for score display*/
.scoreText{
    font-family: 'Noto Serif TC', serif;
    border: 2px solid darkgray;
    width: 50%;
    margin: 15px auto;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: bolder;
}

/*css for answer choices*/
.buttonChoices {
    margin: 20px auto 30px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/*make radio button disappear*/
.choice{
    opacity: 0;
    position: absolute;
}

/*radio choice buttons*/
.labelDesign{
    border: 2px solid black;
    background:	white;
    width: 150px;
    padding: 30px;
    font-family: sans-serif, Arial;
    font-size: 16px;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Noto Serif TC', serif;
    margin: 10px;
    cursor: pointer;
}

/*hover over radio button design*/
.labelDesign:hover {
    background: rgb(241, 196, 110);
}

/*after selection take off active radio button*/
.noeffects:hover{
    background: white;
}

/*active radio button*/
.labelDesign:active {
    background: orange;
    font-size: 18px;
}

/*after selection take off active radio button*/
.noeffects:active{
    background: white;
    font-size: 16px;
}

/*selected Radio button*/
.choice:checked + label {
    background-color: darkorange;
    outline: blue auto 50px;
}

/*submit button*/
.submitAnswer {
    margin: 15px;
    padding: 12px 50px;
    background: darkcyan;
    cursor: pointer;
    font-family: 'Coustard', serif;
    border-radius: 8px;
    background: url(images/bluelight.jpg);
    border: 2px solid blue;
}

/*wrong or right message heading*/
.wrongMessage, .rightMessage {
    font-family: 'Archivo Black', sans-serif;
    text-align: center;
    font-size: 20px;
    padding: 5px;
    margin: 10px;
    background: lightblue;
}

/*response to user if right or wrong*/
.responseMessage {
    border: 2px solid darkslategrey;
    width: 50%;
    margin: 0 auto;
    background: lightblue;
}

.message {
    font-family: 'Noto Serif TC', serif;
    font-size: 18px;
    margin: 0 auto 10px;
    background: lightblue;
}

/*response text of right or wrong*/
p{
    font-family: 'Noto Serif TC', serif;
    font-size: 18px;
}

/*next Button*/
.nextButton {
    margin: 10px;
    padding: 12px 60px;
    background: green;
    cursor: pointer;
    border-radius: 8px;
    background: url(images/lightgreen.jpg);
    background-size: 100%;
    border: 2px solid green;
    font-family: 'Coustard', serif;   
    font-size: 16px;
    color:#2B006B;  
}

/*css for final page*/
/*final page images*/
.resultImage {
    width: 60%;
    margin: 30px;
}

/*thanks text*/
.thanks {
    font-size: 14px;
    margin: 10px;
    font-family: 'Coustard', serif;
}

/*try again button*/
.restartButton {
    margin: 10px;
    padding: 10px;
    width: 125px;
    background: url(images/purplepattern.jpg) no-repeat;
    background-size: 100%;
    font-family: 'Archivo Black', sans-serif;
    cursor: pointer;
}

/*final page score text*/
h3 {
    font-family: 'Acme', sans-serif;
}

@media only screen and (max-width:550px) {
    .question {
        font-size: 14px;
        margin: 5px;
    }

    .labelDesign {
        padding: 20px;
        font-size: 14px;
        margin: 5px;
    }

    .scoreText {
        width: 80%;
        margin: 0 auto;
    }

    h3 {
        margin: 10px;
    }
    main {
        padding: 0;
    }
    p{
        font-size: 14px;
    }

    .buttonChoices {
        margin: 0 auto 10px;
    }
    .quizQuestionNo {
        margin: 5px;
        padding: 5px;
    }
    .rightMessage {
        margin: 5px;
    }
    .responseMessage {
        width: 100%;
        margin: 0 auto 10px;
    }
    .resultImage {
        width: 100%;
        margin: 0;
    }
}