* {
    padding: 0;
    margin: 0;
    color: #fafafa;
    font-family: 'Lato',sans-serif;
}

html {
    min-height: 100%;
    position: relative;
    background-color: #f8f8f8;
    background: url('../img/bg.png');
}

body {
    min-height: 100%;
}

/* SELECT */

::selection {color: #ffffff; background: rgba(0, 0, 0, 0.5);}
::-moz-selection {color: #ffffff; background: rgba(0, 0, 0, 0.5);}

/* HEADER */

header {
    background: #00796b;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #00695c;
}

header h1 {
    padding: 5px 0 5px 25px;
}

header h1 a {
    font-family: 'Pacifico';
    font-size: 30pt;
    font-weight: 100;
    text-decoration: none;
}

header .fa-sign-out {
    display: none;
}

header h2 {
    font-family: 'Lato';
    font-weight: 300;
    padding: 0 0 5px 75px;
    margin-top: -10px;
}

header .tag {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 0;
    padding: 2px;
    text-decoration: none;
    text-align: center;
    font-size: 10pt;
    border: 1px #ffffff solid;
}

/* MAIN */

main section {
    position:absolute; 
    top:50%;
    left:50%; 
    transform:translateX(-50%) translateY(-50%);
    width: 300px;
    height: auto;
    padding: 30px 50px 20px;
    background: #26a69a;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #00897b;
}

main section h1 {
    font-family: 'Lato';
    font-weight: 500;
    margin: 0 0 10px;
}

/* PIN TEXT FIELD */

main section .code {
    width: calc(100% - 7px);
    max-width: 300px;
    height: 30px;
    padding: 0 0 0 7px;
    margin: 15px auto 10px;
    transition: all 0.1s ease;
    background: #26a69a;
    border: none;
    border-top: 3px #fafafa solid;
    border-bottom: 3px #fafafa solid;
}

main section .code:focus {
    outline: none;
    color: #666666;
    background: #fafafa;
}

main section .code::-webkit-input-placeholder {
    color: #fafafa;
}

main section .code:focus::-webkit-input-placeholder {
    color: #26a69a;
}

/* SUBMIT BUTTON */

main section .submit {
    display: block;
    margin:  10px auto 0;
    padding: 5px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #26a69a;
    border: 3px solid #fafafa;
    border-radius: 25px;
    cursor: pointer;
}

main section .submit:hover {
    color: #26a69a;
    background: #fafafa;
}

main section .submit:focus {
    outline: none;
}

/* ERROR */

main .alert {
    top:50%;
    left:50%; 
    transform:translateX(-50%) translateY(-50%);
    padding: 25px;
    background: #ef5350;
    border: 1px solid #e53935;
}

main .alert p{
    font-weight: 300;
}

main .alert .fa-exclamation-triangle {
    font-size: 35pt;
}

main .alert table {
    margin: 0 0 20px 0;
}

main .alert table tr td {
    padding: 0 10px;
}

main .alert a {
    text-decoration: none;
    padding: 5px 10px 8px;
    background: #ef5350;
    border-radius: 25px;
    transition: all 0.3s ease;
}

main .alert a:hover {
    background: #e53935;
}

/* VOTED */

main .voted {
    top:50%;
    left:50%; 
    transform:translateX(-50%) translateY(-50%);
    padding: 25px;
    background: #ffb300;
    border: 1px solid #ffa000;
}

main .voted p{
    font-weight: 300;
}

main .voted i {
    font-size: 35pt;
}

main .voted table tr td {
    padding: 0 10px;
}

/* SUCCESS */

main .success {
    top:50%;
    left:50%; 
    transform:translateX(-50%) translateY(-50%);
    padding: 25px;
    background: #6edd73;
    border: 1px solid #5dd362;
}

main .success p {
    font-weight: 300;
}

main .success i {
    font-size: 35pt;
}

main .success table tr td {
    padding: 0 10px;
}

/* FOOTER */

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: auto;
}

footer a {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 12pt;
    font-weight: 300;
    text-decoration: none;
    background: #00796b;
    border-top: 1px solid #00695c;
    transition: all 0.3s ease;
}

footer a:hover {
    background: #00897b;
}

@media only screen and (min-width : 150px) and (max-width : 700px) {
    
    /* HEADER */

    header {
        background: #00796b;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid #00695c;
    }

    header h1 {
        font-family: 'Pacifico';
        font-size: 20pt;
        padding: 3px 0 5px 25px;
    }

    header h2 {
        display: none;
    }

    header .tag {
        position: absolute;
        top: 5px;
        right: 5px;
        margin: 0;
        padding: 2px;
        text-decoration: none;
        text-align: center;
        font-size: 10pt;
        border: 1px #ffffff solid;
    }
    
    /* MAIN */
    
    main section {
        width: calc(100% - 100px);
        padding: 30px 50px 20px;
        background: none;
        box-shadow: none;
        border: none;
    }

    main section h1 {
        color: #666666;
        margin: 0 0 10px;
    }
    
    main section p {
        color: #666666;
    }

    /* PIN TEXT FIELD */

    main section .code {
        width: calc(100% - 7px);
        max-width: 100%;
        height: 30px;
        padding: 0 0 0 7px;
        margin: 15px auto 10px;
        transition: all 0.1s ease;
        color: #666666;
        background: none;
        border: none;
        border-top: 3px #26a69a solid;
        border-bottom: 3px #26a69a solid;
    }

    main section .code:focus {
        outline: none;
        color: #fafafa;
        background: #26a69a;
    }

    main section .code::-webkit-input-placeholder {
        color: #666666;
    }

    main section .code:focus::-webkit-input-placeholder {
        color: #fafafa;
    }

    /* SUBMIT BUTTON */

    main section .submit {
        display: block;
        margin:  10px auto 0;
        padding: 5px 20px;
        color: #666666;
        font-weight: 500;
        transition: all 0.3s ease;
        background: none;
        border: 3px solid #26a69a;
        border-radius: 25px;
        cursor: pointer;
    }

    main section .submit:hover {
        color: #fafafa;
        background: #26a69a;
    }

    main section .submit:focus {
        outline: none;
    }
    
    /* ERROR */
    
    main .alert, main .voted, main .success {
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    }
    
    main .alert p, main .voted p, main .success p{
        color: #ffffff;
        font-weight: 300;
    }
}