/**
    Reset
 */
* {
    box-sizing: border-box;
}

html {
    line-height: 1.45; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    width: 100%;
    padding: 0;
    margin: 0;
    color: #461c0c;
    font-size: 16px;
}

body {
    background: #461c0c top center url('/assets/imgs/pattern-yellow.png');
    padding: 0;
    margin: 0;
    font-family: 'Muli', Arial, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

button {
    font-family: 'Muli', Arial, sans-serif;
}


/**
=======================================
HEADER
=======================================
 */
header {
    width: 100%;
    background: #fbc70c bottom center url('/assets/imgs/pattern.png');
    float: left;
}

/* logo */
img {
    width: 100%;
    height: auto;
}

header .container {
    display: flex;
    align-items: center;
}

header .logo {
    padding: 60px;
    display: flex;
    justify-self: center;
}

/* description */
header .description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 30px 0;
}

header h1 {
    color: #fbc70c;
    letter-spacing: -1px;
    margin: 0;
}

header p {
    color: white !important;
}

header h1 span {
    font-weight: 900;
}

h1 {
    font-size: 1.9rem;
}

p {
    font-size: 1.15rem;
}


/**
=======================================
GRID
=======================================
 */
.row {
    width: 100%;
    float: left;
}

.col-50 {
    width: 50%;
    float: left;
}


.col-33 {
    width: 33.3%;
    float: left;
}

.container {
    width: 100%;
    max-width: 1150px;
    padding: 0 20px;
    margin: 0 auto;
}


/**
=======================================
RANKING
=======================================
 */
.ranking {
    list-style: none;
    float: left;
    padding: 0;
}

.ranking li {
    width: 31%;
    float: left;
    margin: 0 1.15%;
}

.ranking li .title {
    border: 2px solid #461c0c;
    border-radius: 5px;
    text-align: center;
    padding: 11px 20px;
    font-size: 1.4rem;
    font-weight: 900;
}

.ranking li span {
    font-weight: 900;
    margin: 10px 0 0 0;
    font-size: 1.4rem;
}

.ranking li.first .title {
    background: #461c0c;
    color: white;
}


/**
=======================================
VOTOS
=======================================
 */
.btn {
    cursor: pointer;
}

section.content {
    padding: 60px 0;
    color: white;
    float: left;
    width: 100%;
}


.btn-ig {
    border-radius: 5px;
    float: left;
    width: 100%;
    padding: 15px 30px;
    cursor: pointer;

    -webkit-transition: all .2s ease-in-out .1s;
    -moz-transition: all .2s ease-in-out .1s;
    -o-transition: all .2s ease-in-out .1s;
    -ms-transition: all .2s ease-in-out .1s;
    transition: all .2s ease-in-out .1s;
}

.btn-ig:hover {
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform:scale(1.05);
    transform: scale(1.05);

    -webkit-transition: all .2s ease-in-out .1s;
    -moz-transition: all .2s ease-in-out .1s;
    -o-transition: all .2s ease-in-out .1s;
    -ms-transition: all .2s ease-in-out .1s;
    transition: all .2s ease-in-out .1s;
}

.btn-ig.student-vote {
    border: 2px solid #461c0c;
    background: #461c0c;
    color: #fbc70c;
    font-weight: 900;

    font-size: 2.4rem;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
}

.hasCamera {
    display: none;
}

.content-certificate p {
    text-align: center;
    color: #461D0C;
    font-size: 1.3rem;
}

.validate-by-code input {
    border: 2px solid #461c0c;
    color: #461c0c;
    font-weight: 900;
    font-size: 2.4rem;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
    height: 88px;
    line-height: 88px;
    padding: 0 20px;
    width: 100%;
}

.no-round-left {
    border-radius: 0 5px 5px 0;
}

.btn-ig.student-vote img {
    float: left;
    width: 45px;
}

.btn-ig.student-vote.mini {
    font-size: 1.32rem;
}

.btn-ig.student-history {
    border: 2px solid #73470c;
    color: white;
    background: transparent;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-ig.student-history.active {
    background: #FFF;
    color: #461c0c;
}


/**
=======================================
OVERLAY
=======================================
 */

.overlay {
    background: #461c0c url('/assets/imgs/pattern.png');
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 999;
    overflow-y: auto;
}

.overlay .close {
    position: fixed;
    top: 2%;
    right: 2%;
    font-weight: 900;
    color: #FFF;
    z-index: 9999;
    cursor: pointer;
    font-size: 2rem;
    padding: 10px;
}

.open-vote-overlay:disabled {
    background: #666;
    border-color: #666;
    color: white;
    pointer-events: none;
}
.open-vote-overlay.wait:disabled {
    background: #333;
    border-color: #333;
}

.open-vote-overlay.success:disabled {
    background: #2d7748;
    border-color: #2d7748;
    color: white;
    font-size: 1.4rem;
}

.root {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.scroll-container {
    width: 100%;
    margin: auto;
    max-height: 100%;
    overflow-y: auto;
}

.overlay .wrapper {
    display: flex;
    align-items: center;
    justify-self: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 60px 15px;
}



.mensagem-sucesso, .erros {
    display: none;
}

.mensagem-sucesso {
    margin: 0 auto;
    max-width: 700px;
    color: #fbc70c;
}
.mensagem-sucesso h1 {
    font-size: 1.6rem;
    line-height: 130%;
}

.mensagem-sucesso h1 span {
    font-weight: 900;
    background: #fbc70c;
    color: #461c0c;
    padding: 0 5px;
}

.mensagem-sucesso p {
    margin: 20px 0 0 0;
    font-size: 1.1rem;
}

.mensagem-sucesso .mensagem {
    background: #227f4d;
    color: white;
    padding: 15px 20px;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    float: left;
    width: 100%;
    border-radius: 5px;
    text-align: center;
}




#form-votar {
    color: white;
    margin: 0 auto;
    max-width: 700px;
}

#form-votar .student-vote-image {
    padding: 15px 30px;
    text-align: center;
    width: 100%;
    float: left;
}

#form-votar .student-vote-image img {
    max-width: 160px;
}


.erros {
    background: #bb0a3c;
    color: white;
    padding: 15px 20px;
    font-size: 1.3rem;
    margin: 15px 0;
    float: left;
    width: 100%;
    border-radius: 5px;
}

#form-votar label {
    width: 100%;
    float: left;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

#form-votar input, select {
    background: white;
    border: 2px solid #3d1d0d;
    padding: 12px 20px;
    color: #461c0c;
    font-size: 1.3rem;
    border-radius: 4px;
    width: 100%;
    margin: 0 0 15px 0;
}

#form-votar button {

}

.youtube-video-holder {
    margin: 60px 0 0 0;
    float: left;
    width: 100%;
    display: none;
}

.auto-resizable-iframe {
    margin: 0px auto;
    padding: 0 20px;
}

.auto-resizable-iframe > div {
    position: relative;
    padding-bottom: 75%;
}

.auto-resizable-iframe iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}












@media only screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .youtube-video-holder .container {
        padding: 0;
    }

    .youtube-video-holder .auto-resizable-iframe {
        padding: 0;
    }

    header .container {
        flex-direction: column;
    }

    header .description {
        padding: 20px 0 15px 0;
    }

    header h1 {
        font-size: 1.4rem;
    }

    header p {
        font-size: 1.05rem;
    }

    header .logo {
        display: block;
        padding: 20px;
    }

    .ranking li .title {
        font-size: .9rem;
    }

    .ranking li span {
        font-size: 1.1rem;
    }

    .col-50 {
        width: 100%;
    }

    .col-33 {
        width: 50%;
    }

    .btn-ig.student-vote, .btn-ig.no-round-left {
        border: 2px solid #461c0c;
        background: #461c0c;
        color: #fbc70c;
        font-weight: 900;

        font-size: 1.3rem;
        letter-spacing: -1px;
        margin: 0 0 15px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 5px !important;
    }

    .btn-ig.student-vote img {
        padding: 0 5px 0 0;
        width: 40px;
    }
}


@media only screen and (max-width: 600px) {
    .col-33 {
        width: 100%;
    }

    section.votacao .student {
        padding: 0 30px 50px 30px;
    }
}






#qrr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: black;
    opacity: 0.6;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 20000;
}

#qrr-container {
    font-family: sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 10px;
    width: 90%;
    height: 90%;
    margin: auto;
    display: none;
    z-index: 20001;
    border-radius: 10px;
}

#qrr-container h1 {
    margin-top: 0;
}

#qrr-close {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 10px;
    margin-top: -5px;
    font-size: 3em;
    cursor: pointer;
    color: #808080;

}

#qrr-loading-message {
    text-align: center;
    padding: 15px;
    background-color: #eee;
    width: 90%;
    margin: 30px auto 0;
}

#qrr-canvas {
    display: block;
    height: 65%;
    max-width: 90%;
    overflow-x: scroll;
    cursor: pointer;
    margin: 30px auto 10px;
}

#qrr-canvas.hidden {
    display: none;
}

#qrr-output {
    width: 90%;
    max-height: 15%;
    margin: 20px auto 10px;
    background: #eee;
    padding: 10px;
    overflow-y: auto;
}

#qrr-ok {
    display: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 10px 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    background-color: green;
    color: white;
    border-radius: 10px;
}

#qrr-output-data {
    display: none;
}

.swal-text {
    line-height: 150%;
    text-align: center;
}

.swal-button--digital, .swal-button--digital:hover {
    background: #461D0C;
}
