@keyframes goout {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

@keyframes goin {
    from {
        left: 0;
    }
    to {
        left: -100%;
    }
}

@keyframes slideout {
    from {
        left: 0;
    }
    to {
        left: -210px;
    }
}

@keyframes slidein {
    from {
        left: -210px;
    }
    to {
        left: 0;
    }
}

main > .container {
    padding: 75px 15px 20px;
}

main > .container.no-padding {
    padding: 15px 15px 20px;
}

.site-index > .list-view{
    display: flex;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}


.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.auth-icon.auth-icon-amg {
    width: 104px;
    height: 34px;
    background: url(../images/logo.png) !important;
}

#game-zone {
    position: relative;
    overflow: auto;
    display: flex;
}
#game-zone > div{height:100%}
#game-zone #main-area{width:calc(75% - 10px);margin-right:10px}
#game-zone #info-area{width:calc(25% - 10px);margin-left:10px}

#main-area {
    overflow: auto;
    width: 100%;
    height: 100%;
    position: relative
}
#info-area {
    height:100%;
}

#active-question {
    padding: 20px;
    position: relative;
    height: 100%;
    overflow: auto;
}
#active-question .question-info-row {
    display: flex;
}

#active-question .title {
    font-size: 2em;
}

#active-question .info {
    font-size: 24px;
    padding: 10px;
    text-align: right
}
#active-question .question-image img{max-width: 100%}
#active-question .question-audio{width:100%}
#active-question .question-video{position: relative}
#active-question .question-video:before{content:'';display:block;padding-top:66%}
#active-question .question-video .box{position: absolute;top:0;right:0;bottom:0;left:0}
#active-question .question-video video,#active-question .question-video iframe{width:100%;height:100%}
#active-question .question-link{text-align: center;padding:10px 0;}
#active-question .question-link a{font-size: 20px}
#active-question .text-answer{margin: 10px 0 0 0}

#active-question .options {
    font-size: 30px;
}

#active-question .options .options-item {
    border: 1px solid grey;
    padding: 10px 5px;
    border-radius: 10px;
}
#active-question .options .options-item label{display: inline-block;width:100%}

#active-question .options .options-item:not(:last-child) {
    margin-bottom: 10px;
}

.side-bar {
    padding: 10px;
    height: 100%;
}

#questionList {
    border-top: 1px dotted grey;
    margin-top: 20px;
    padding-top: 20px;
}
#userListZone .box,#questionList .box {
    overflow-y: auto;
}

#userListZone #handler {
    content: '';
    display: none;
    width: 40px;
    height: 40px;
    background: center center/30px 30px url(../images/people.svg) no-repeat red;
    position: absolute;
    left: -40px;
    cursor: pointer;
    border: 1px solid grey;
    border-radius: 5px;
}

#questionList #handler {
    content: '';
    display: none;
    width: 40px;
    height: 40px;
    background: center center/30px 30px url(../images/list.svg) no-repeat red;
    position: absolute;
    top: 55px;
    left: -40px;
    cursor: pointer;
    border: 1px solid grey;
    border-radius: 5px;
}

#countdown-zone {
    position: relative
}

#countdown-zone .number {
    width: 50px;
    margin: 100px auto 0 auto;
    font-size: 100px;
    text-align: center
}

#ranking-list {
    position: absolute;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    top: 0;
    left: -100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    background: #0a73bb;
    border-radius: 4px;
}

#ranking-list.show {
    left: 0;
    animation-name: goout;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    z-index:10;
}

#ranking-list.hide {
    left: -100%;
    animation-name: goin;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
}

#ranking-list .user {
    width: 50%;
    text-align: center;
    color: #fff;
    font-size: 32px;
    line-height: 54px;
}

#answer-distribution {
    position: absolute;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    top: 0;
    left: -100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    background: #ffc0f6;
    border-radius: 4px;
    font-size: 16px;
    z-index:10;
}

#answer-distribution.show {
    left: 0;
    animation-name: goout;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
}

#answer-distribution.hide {
    left: -100%;
    animation-name: goin;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
}

.question-table td{text-align: left}
.question-table.normal th:nth-child(1),.question-table.normal td:nth-child(1){width: 5%}
.question-table.normal th:nth-child(2),.question-table.normal td:nth-child(2){width:50%}
.question-table.normal th:nth-child(3),.question-table.normal td:nth-child(3){width:12%}
.question-table.normal th:nth-child(4),.question-table.normal td:nth-child(4){width:25%}
.question-table.normal th:nth-child(5),.question-table.normal td:nth-child(5){width:8%}

.question-table.sort th:nth-child(1),.question-table.sort td:nth-child(1){width: 5%}
.question-table.sort th:nth-child(2),.question-table.sort td:nth-child(2){width: 5%}
.question-table.sort th:nth-child(3),.question-table.sort td:nth-child(3){width:78%}
.question-table.sort th:nth-child(4),.question-table.sort td:nth-child(4){width:12%}
.question-table .handler{
    cursor: grab;
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: -moz-grab;
    cursor: -webkit-grab;
}
.question-table .handler:active{
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

@media (max-width: 767px) {
    #game-zone {
        width: 100%;
        overflow: hidden;
    }
    #game-zone #main-area{
        width:100%;
        margin:0
    }

    #game-zone .row{height:100%}
    .row{display: block;position: relative;margin:0}
    .nav li > form > button.logout {
        display: block;
        text-align: left;

        width: 100%;
        padding: 10px 0;
    }

    #active-question .title {
        font-size: 24px;
    }

    #active-question .options {
        font-size: 20px;
    }

    #game-zone #info-area {
        position: absolute;
        top:0;
        left: 100%;
        padding: 0;
        margin:0;
        width: 210px;
        z-index: 10;
    }

    #info-area #userListZone, #info-area #questionList {
        border:none;
        position: absolute;
        left: 0;
        width: 210px;
        padding: 10px;
        background: #90ef90;
        color: #141616;
        z-index: 2;
    }


    #ranking-list {
        padding: 10px;
    }

    #ranking-list .user {
        font-size: 20px;
    }

    #userListZone #handler, #questionList #handler {
        display: block;
    }

    #info-area #userListZone.show, #info-area #questionList.show {
        left: -210px;
        z-index: 3;
        animation-name: slideout;
        animation-duration: 0.5s;
        animation-timing-function: ease-in-out;
    }

    #info-area #userListZone.hide, #info-area #questionList.hide {
        left: 0;
        z-index: 2;
        animation-name: slidein;
        animation-duration: 0.5s;
        animation-timing-function: ease-in-out;
    }


    #info-area #userListZone {
    }

    #info-area #questionList {
        margin: 0;
        overflow: visible
    }

    #countdown-zone .number {
        width: 50px;
        margin: 30px auto 0 auto;
        font-size: 50px;
        text-align: center
    }
}