* {
    margin: 0;
    padding: 0;
    border: none;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

fieldset {
    border: none;
}

ul, ol {
    list-style: none;
}

img {
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

body {
    font-family: sans-serif;
    direction: rtl;
}

header {
    position: fixed;
    z-index: 105;
    top: 0;
    left: 0;
    right: 0;
}

#menu {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    right: -270px;
    width: 270px;
    background-color: #fff;
    -webkit-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}

#menu.active {
    right: 0;
    box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -5px rgba(0,0,0,0.2);
}

.menu-header {
    background-color: #FF880D;
    color: #fff;
    height: 64px;
    line-height: 64px;
}

.menu-header svg {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: top;
    margin: 12px 24px 12px 6px;
}

.menu-header label {
    font-size: 32px;
}

input[name=difficulty] + label, #menu > button, #menu > a {
    display: block;
    color: #4d4d4d;
    font-size: 18px;
    line-height: 48px;
    padding: 0 24px;
}

input[name=difficulty]:checked + label {
    color: #FF880D;
}

input[name=difficulty]:checked + label svg rect {
    fill: #FF880D;
}

#Diff_Level, .bt_settings {
    border-bottom: 1px solid #d4d4d4;
}

legend {
    font-size: 14px;
    font-weight: bold;
    color: #4d4d4d;
    padding: 12px 24px 0;
}

.lbl_difficulty svg, .lbl_difficulty span, #menu > button svg, #menu > a svg, #menu > button span {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.lbl_difficulty svg, #menu > button svg, #menu > a svg {
    padding: 4px;
}

#menu > button {
    font-weight: bold;
    width: 100%;
    text-align: right;
}

#menu > a {
    font-weight: bold;
    text-decoration: none;
}

#menu > a svg {
    width: 32px;
    height: 32px;
}

.header-content, .settings-header-content {
    background-color: #FF880D;
    color: #fff;
    height: 64px;
    padding: 8px;
}

.settings-header-content {
    display: none;
}

.header-content .trigger, .settings-header-content .back {
    padding: 12px;
}

.header-content .trigger svg, .settings-header-content .back svg {
    display: block;
}

.header-content .trigger svg path, .settings-header-content .back svg {
    fill: #fff;
}

.header-content label, .settings-header-content label {
    display: inline-block;
    vertical-align: top;
    font-size: 24px;
    line-height: 48px;
    padding: 0 8px;
}

.settings-header .header-content {
    display: none;
}

.settings-header .settings-header-content {
    display: block;
}

main {
    position: relative;
    top: 64px;
    text-align: center;
    display: none;
    background-color: #fff;
    overflow:hidden;
}

.settings-header + main {
    background-color: #000;
}

.questions {
    display: inline-block;
    -webkit-transition: all 0.75s ease-in-out;
    transition: all 0.75s ease-in-out;
    background-color: #fff;
}

.questions.hidden {
    -webkit-transform: scale(0);
    transform: scale(0);
}

.questions.inactive {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    opacity: 0.25;
}

.question {
    width: 282px;
    padding: 10px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    box-shadow: inset 0px 1px 3px 0px rgba(0,0,0,0.3);
    background-color: #7d5f41;
    border-radius: 5px;
    border-top-right-radius: 136px;
    border-top-left-radius: 136px;
}

.figure {
    padding-bottom: 10px;
}

.watchface {
    display: block;
    width: 260px;
    height: 260px;
}

.answers {
    position: relative;
    overflow: hidden;
}

.question input[type="radio"] + label {
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background-color: #ededed;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: block;
    cursor: pointer;
    color: #777777;
    font-size: 36px;
    font-weight: bold;
    padding: 6px;
    text-shadow: 0px 1px 0px #ffffff;
    float: right;
    width: 48%;
    margin: 1%;
    line-height: 74px;
    text-align: center;
}

.question input[type="radio"]:checked + label:active {
    position: relative;
    top: 1px;
}

.question input[type="radio"]:checked + label.lbl_answer {
    box-shadow: inset 0px 1px 0px 0px #f5978e;
    background-color: #f24537;
    border: 1px solid #d02718;
    color: #fff;
    text-shadow: 0px 1px 0px #810e05;
}

.question input[type="radio"]:checked + label.lbl_answer.correct {
    box-shadow: inset 0px 1px 0px 0px #d9fbbe;
    background-color: #a5cc52;
    border: 1px solid #83c41a;
    color: #fff;
    text-shadow: 0px 1px 0px #86ae47;
}

.waytogo, .ribbon {
    position: fixed;
    z-index: 0;
    top: 64px;
    right: 0;
    left: 0;
    bottom: 0;
    background: url("boy.png") no-repeat center;
    background-size: contain;
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
    -webkit-transform: scale(0);
    transform: scale(0);
}

.ribbon {
    background: url("ribbon.png") no-repeat center;
    background-size: contain;
}

.waytogo.active, .ribbon.active {
    z-index: 99;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.waytogo.correct {
    z-index: 99;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
}

.index, .gindex {
    display: none;
    fill: #363434;
}

.harder .iharder, .easy .ieasy, .medium .imedium, .hard .ihard {
    display: block;
}

.settings {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: all 0.75s ease-in-out;
    transition: all 0.75s ease-in-out;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    background: #fff;
    margin-top: 100%;
    text-align: right;
    padding: 0 24px;
}
.settings.hidden{
    -webkit-transform: scale(0);
    transform: scale(0);
}
.settings.active {
    margin-top: 0;
    z-index: 101;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.settings legend {
    padding-bottom: 12px;
}

.settings input[type="radio"] + label {
    width: 25%;
    float: right;
    height: 60px;
    background: #ddd;
    text-align: center;
    padding: 10px;
    font-size: 0;
    color: #4d4d4d;
}

.settings input[type="radio"] + label:before {
    content: "";
    width: 0;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.settings input[type="radio"] + label span {
    line-height: 20px;
    font-size: 16px;
    display: inline-block;
}

.settings input[type="radio"]:checked + label {
    background-color: #FF880D;
    color: #fff;
    font-weight: bold;
}

.settings button {
    margin-top: 40px;
    width: 100%;
    height: 60px;
    background-color: #FF880D;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.settings button svg {
    vertical-align: middle;
}

.settings button svg path {
    fill: #fff;
}

@media screen and (max-width:767px) {
    #menu {
        right: -70%;
        width: 70%;
    }

    .header-content, .settings-header-content {
        height: 56px;
        padding: 4px;
    }

    .menu-header {
        height: 56px;
        line-height: 56px;
    }

    main {
        top: 56px;
    }

    .question {
        margin: 15px 10px;
    }

    .waytogo {
        top: 56px;
    }
}

@media screen and (max-width:320px) {
    .settings input[type="radio"] + label {
        padding: 10px 5px;
    }
}
