﻿* {
    box-sizing: border-box;
}

html, body, div.card, .box {
    height: 100%;
    margin: 0;
}

.hoverable {
    -webkit-tap-highlight-color: transparent;
}

h1, .h1, .category-header, .voting-section-header {
    font-size: 48px;
    line-height: 45px;
}

.box .header {
    padding-top: 3rem;
    margin-bottom: 2rem;
}

.box .main-content {
    margin-bottom: 3rem;
}

.box .footer {
    flex: 1 1 auto;
    margin-top: 3rem;
}

.box {
    margin-bottom: 3rem;
}

ul {
    list-style: none;
    padding: 0;
}

.header, #bottom-message a {
    position: relative;
    color: white;
    text-decoration: underline;
}

.logo_position {
    padding-top: 3rem;
}

.logoimg, .fundingimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 10px;
    height: auto;
}

.welcome-message {
    padding-left: 0 20%;
    padding-right: 0 20%;
    color: #FFFFFF;
}



.category-unvoted {
    display: none;
}

.category-voted {
    display: inline;
}

.alert > p:last-child {
    margin-bottom: 0;
}

div.category-picker-section > h1 {
    line-height: initial;
    margin-top: 2rem;
}

div.category-picker-section h1 {
    font-weight: 800;
}

div.category-picker-section h2 {
    font-size: 28px;
    margin-bottom: 2rem;
}


.accordion .cat-type-btn {
    display: flex;
    flex-direction: row;
}

.accordion .card-header .btn.focus, .accordion .card-header .btn:focus {
    box-shadow: none !important;
}

.accordion .mb-0 {
    margin-bottom: 6px !important;
}

.accordion .card {
    border-color: transparent;
}

.accordion .card-header {
    text-align: center;
    border-radius: 0px;
}

.accordion > .card > .card-header > button {
    display: flex;
    flex-direction: row;
}

    .accordion > .card > .card-header > button > h4 {
        flex-grow: 1;
        text-align: left;
        margin-bottom: 0;
    }

.accordion > .card-header > button > .fas {
    flex-grow: 0;
    font-size: 30px;
}

.accordion .card-body {
    padding: 0.75rem;
}

    .accordion .card-body > ul
    {
        margin-bottom: 0;
    }

.accordion .card-header button, .accordion .card-header button:active, .accordion .card-header button:focus {
    width: 100%;
}


.grid-container[data-category] {
    margin: 0 auto;
    max-width: 1920px;
    width: 100%;
}



.grid-container .card[data-entrant-id] > .img-container {
    z-index: 0;
    overflow: hidden;
    margin: 0;
    flex: 1 1 auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.grid-container .card[data-entrant-id] > .card-body, .card[data-entrant-id] > .card-body .vote-label {
    flex: 0 1 auto;
    z-index: 200;
}

.grid-container .card[data-entrant-id] > .img-container > img {
    z-index: 100;
    margin-top: auto;
    margin-bottom: auto;
    filter: drop-shadow(2px 4px 6px #00000040);
}
.lazy-img[data-loaded=false] {
    max-width:50px;
}


div[data-single-category] div[data-category] .card[data-entrant-id] > .img-container .background-overlay,
div[data-category].active .card[data-entrant-id] > .img-container .background-overlay {
    filter: blur(2rem);
    background-size: cover;
    background-position: 50%;
    overflow: hidden;
    z-index: 0;
    position: absolute;
    width: 125%;
    height: 125%;
}


div[data-category].active .card[data-entrant-id] > .overlay {
    z-index: 0;
    position: absolute;
    margin: 0;
}


.voting-section[data-multiple-categories] {
    display: none;
}

.voting-section p.h2 {
    font-size: 28px;
    line-height: 31px;
    margin: 0;
}

.voting-section > div[data-category] > .entrants {
    margin: 3rem auto;
}

.voting-section > div[data-category] > .voting-header {
    margin: 0 auto;
}

    .voting-section > div[data-category] > .voting-header .voting-header-titles {
        margin-top: 3rem;
        position: relative;
    }

    .voting-section > div[data-category] > .voting-header .category-image {
        position: relative;
    }

        .voting-section > div[data-category] > .voting-header .category-image > .background-blur {
            position: absolute;
            top: -50%;
            left: 0;
            bottom: -50%;
            right: 0;
            background-position: center;
            background-repeat: repeat-y;
            filter: blur(80px) brightness(1.4) contrast(1.3) saturate(1.8);
            z-index: -1;
        }

        .voting-section > div[data-category] > .voting-header .category-image > img {
            max-height: 120px;
        }

#loading-spinner {
    font-size: 64px;
    display: none;
    color: gray;
}

.modal-body.text-center span {
    font-size: 64px;
}

.category-selection .collapse ul > li,
#captcha-vote {
    display: inline-block;
    width: 100%;
    margin: 10px 0;
}

.footer-info {
    padding: 0px 8px;
}

    .footer-info p, .footer-info p a {
        color: gray;
    }

.btn-group-lg > .btn, .btn-lg {
    font-size: unset !important;
}

.header-logo-container {
    width: 100%;
    padding-top: 25px;
}

.social-links {
    width: 100%;
    margin: 2rem 0;
}

    .social-links > a:not(:last-of-type) {
        margin-right: 5px;
    }


.voted-heart-icon {
    position: absolute;
    color: #e8c033;
    left: 10px;
    top: 10px;
    width: 16px;
    height: 16px;
    font-size: 2rem;
    z-index: 200;
}

.btn-vote {
    padding: 0;
}

.vote-input {
    display: none;
}

.vote-label {
    width: 100%;
    margin-bottom: 0px;
    cursor: pointer;
    padding: .375rem .75rem;
}

#vote-count {
    padding-left: 5px;
}

.confirmation-modal .form-group {
    text-align: left;
}

.submit-btn h4, #back-button h4 {
    margin-bottom: 4px;
}

#vote-submit-button {
    margin-top: 2rem;
}

#bottom-message {
    margin-top: 35px;
    padding: 10px;
    border: solid 1px white;
}

footer {
    margin-top: 35px;
}

#cookie-message-container {
    position: fixed;
    width: 400px;
    bottom: 0px;
    right: 25%;
    left: 50%;
    margin-left: -200px;
    text-align: center;
}



.closed-container {
    text-align: center;
}

#closed-info {
    padding: 0 8px;
    margin: 15px 0;
}

    #closed-info h1 {
        font-size: 50px !important;
        line-height: 52px !important;
    }

    #closed-info h2 {
        font-size: 25px !important;
        line-height: 27px !important;
    }

.col-custom {
    flex: 0 0;
    max-width: 100%;
}

.voting-section .category-name {
    font-size: 44px;
    line-height: 46px;
}


/* Media Queries */
@media (min-width: 768px) {
    .logoimg, .fundingimg {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
        height: auto;
    }

    .col-sm-custom {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #closed-info {
        padding: 20px;
        margin: 20px 0;
    }

    .accordion .card-header {
        text-align: left;
    }
}

@media (min-width: 992px) {

    .logoimg, .fundingimg {
        max-width: 900px;
    }

    .voting-section .category-name {
        font-size: 64px;
        font-weight: 400;
        line-height: 65px;
    }

    .col-lg-custom {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .welcome-message {
        padding-left: 30%;
        padding-right: 30%;
    }
}

@media (min-width: 1400px) {
    .container-fluid-lg {
        max-width: 1400px;
    }
}
