*,
*:before,
*:after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

button:active,
button:focus,
input:focus,
textarea:focus,
img:focus {
    outline: none;
}

html {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
}

body {
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    font-size: 1.6rem;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 98%;
    max-width: 1024px;
    margin: 0 auto;
}

.flex-block {
    display: flex;
    justify-content: center;
}

.btn {
    display: block;
    width: 250px;
    height: 40px;
    margin: auto;
    font-size: 1.6rem;
    text-align: center;
    line-height: 38px;
    border: 2px solid #f8af22;
    background: #ffffff;
    color: #f8af22;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.btn:hover, .btn:active {
    background: rgba(248, 175, 34, .5);
    color: #333;
}

.orange-bg-light {
    background: #f7bd4d;
    color: #3c3c3c;
}

.orange-text {
    color: #f7bd4d;
}

.dark-orange-text {
    color: #a87637;
}

/*  ----------------------------------------    */
/*           Страница входа (index)             */
/*  ----------------------------------------    */

header.flex-block {
    height: 15vh;
    justify-content: flex-end;
}

header .btn {
    width: 150px;
    margin: auto 0;
}

.page-index {
    width: 100%;
    height: 100%;
    text-align: right;
    background: url("../i/bg-logo.png") no-repeat center;
    background-size: 100%;
}

footer.index-footer {
    height: 20vh;
    justify-content: space-between;
    font-size: 1.4rem;
}

/*  ----------------------------------------    */
/*          Основная страница (main)            */
/*  ----------------------------------------    */

.main-page {
    height: 85vh;
    padding-top: 5vh;
}

main.main-page {
    background: url("../i/bg-numbers.png") no-repeat bottom;
    background-size: 100% 80%;
}

.main-page > section {
    width: 80%;
    flex-direction: column;
    justify-content: space-between;
}

.info-user p:first-of-type span {
    font-weight: 700;
}

.info-user p > span {
    margin-left: 20px;
    font-size: 2rem;
}

.info-user p > span span {
    font-size: smaller;
}

.example-wrapper {
    margin: 20px 0;
    flex-grow: 1;
}

.example-wrapper button {
    width: 80%;
    height: 50px;
    font-size: 2.4rem;
}

.example-wrapper h3 {
    font-size: 2.8rem;
    margin: 10px 0 15px;
    text-align: center;
    opacity: 0;
}

.example-wrapper .example-body {
    width: 80%;
    height: 200px;
    margin: 0 auto;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20rem;
    line-height: 200px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    -webkit-border-radius: 8px;
       -moz-border-radius: 8px;
            border-radius: 8px;
    -webkit-box-shadow: 0 0 10px #aaaaaa;
       -moz-box-shadow: 0 0 10px #aaaaaa;
            box-shadow: 0 0 10px #aaaaaa;
    background: #ffffff;
}

.result-field form {
    text-align: center;
    visibility: hidden;
}

.result-field label {
    font-size: 2.5rem;
    font-weight: 700;
}

.result-field form input {
    width: 145px;
    height: 45px;
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-right: 20px;
    padding: 0 15px;
    box-shadow: inset 1px 1px 4px #f7bd4d;
    border: none;
    color: #c17b1a;
}

.main-page > aside {
    width: 20%;
    position: relative;
}

.main-page > aside .video-wrapper {
    position: relative;
}

.main-page > aside .video-wrapper video {
    display: block;
    width: 200px;
    height: 150px;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid;
}

.main-page > aside .video-wrapper video#gum {
    z-index: 2;
}

.main-page > aside .video-wrapper video#recorded {
    z-index: 1;
}

.main-page > aside .aside-bottom {
    margin-top: 170px;
}

.main-page > aside .aside-bottom button {
    width: 100%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    transition: .3s;
}

.main-page > aside .aside-bottom button:disabled {
    border: 1px solid #9d9d9d;
    background: #cccccc;
    opacity: .5;
}

.main-page .result-olimp h3 {
    margin: 50px 0 30px;
    opacity: 1;
    text-align: center;
    color: #ea5507;
}

.result-olimp .time-olimp {
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
    font-weight: 700;
}

.result-olimp div.flex-block {
    margin-bottom: 40px;
    justify-content: center;
}

.result-olimp .flex-block > div:first-child {
    padding-top: 8px;
    font-weight: 700;
}

.result-olimp .flex-block > div:nth-child(2) {
    margin: 0 0 0 40px;
}

.result-olimp .flex-block > div:nth-child(2) span {
    font-size: 1.4em;
    font-weight: 700;
}

.result-olimp > p:nth-last-child(2) {
    font-size: larger;
    text-align: center;
    font-weight: 700;
}

.result-olimp p:last-child {
    text-align: center;
}

footer.main-page {
    height: 15vh;
    margin: auto auto 0;
    position: relative;
    font-size: 1.4rem;
    text-align: center;
}

/*  ----------------------------------------    */
/*        Cтраница результата (result)          */
/*  ----------------------------------------    */

.result-page .info-user img {
    width: 180px;
    float: left;
    margin-right: 50px;
}

.result-page > aside img {
    width: 100%;
}

.result-page > aside:last-of-type {
    position: relative;
    top: -20px;
}

.result-page .info-user {
    margin-left: 30px;
}

.result-wrapper .flex-block {
    justify-content: space-around;
    align-items: center;
}

.result-wrapper .flex-block > div:nth-child(1) p span {
    font-size: 3rem;
    font-weight: 700;
    color: #ea5507;
}

.result-wrapper .flex-block > div:nth-child(2) {
    width: 205px;
    padding: 25px 15px;
    border: 2px solid #3e4095;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #ffffff;
}

.result-wrapper .flex-block > div:nth-child(2) p:first-child {
    font-size: 15rem;
    font-weight: 700;
    line-height: 1em;
    text-align: center;
    color: #da1104;
}

.result-wrapper .flex-block > div:nth-child(2) p:last-child{
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.result-wrapper h3 {
    margin-top: 50px;
    font-size: 3rem;
    text-align: center;
    color: #ea5507;
}

.result-wrapper h3 + p {
    text-align: center;
}

/*  ----------------------------------------    */
/*        Cтраница авторизации (login)          */
/*  ----------------------------------------    */

.page-login {
    height: 100vh;
}
.page-login header {
    height: 20vh;
    margin-top: 20px;
    background: url("../i/logo.svg") no-repeat left;
    background-size: auto 80%;
}

.page-login .flex-block {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.page-login .flex-block h1 {
    margin: 30px 0 25px;
}

.page-login .flex-block h1 +p {
    font-size: 2rem;
    margin-bottom: 20px;
}

.page-login .flex-block form {
    width: 250px;
    position: relative;
    margin: auto;
}

.page-login .flex-block form input[type="text"],
.page-login .flex-block form input[type="password"],
.page-login .flex-block form input[type="submit"] {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    font-size: 2rem;
}

.page-login .flex-block form input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.page-login .flex-block form input[type="text"],
.page-login .flex-block form input[type="password"] {
    padding: 0 10px;
}

.page-login .flex-block form input[type="checkbox"] {
    vertical-align: middle;
}

.page-login .flex-block form .form-group {
    margin-bottom: 18px;
}

.page-login .flex-block form .form-group:nth-of-type(3) {
    text-align: left;
}

.page-login .flex-block form .form-group:nth-of-type(3) label {
    font-weight: 700;
}

.page-login .flex-block form .form-group:first-of-type label,
.page-login .flex-block form .form-group:nth-of-type(2) label {
    display: block;
    text-align: left;
    font-weight: 700;
}

.page-login .flex-block form .form-group .help-block {
    position: absolute;
    font-size: 1.4rem;
    color: #ff0000;
}

.btn-logout {
    width: 200px;
    position: absolute;
    bottom: 0;
}

/*  ----------------------------------------    */
/*          Страница ошибок (error)            */
/*  ----------------------------------------    */

.site-error {
    height: 100vh;
    flex-direction: column;
}

.site-error > diV {
    margin: 0 auto auto;
}

.site-error h1 {
    display: block;
    margin: auto auto 2.4rem;
}

.site-error .no-login {
    margin: auto;
    padding: 15px 20px;
    font-size: 2rem;
    border: 2px solid #f7bd4d;
    border-radius: 5px;
    background: #ffffff;
    color: #761c19;
}
