:root {
    /* Text colors */
    --primary-txt-col: #ff9845;
    --alpha-txt-col: white;
    --beta-txt-col: #50525f;
    --gama-txt-col: #BBB;
    --delta-txt-col: #777;
    --text-shadow-col: var(--beta-txt-col);
    /* Background colors */
    --primary-bg-col: #ff9845;
    --primary-bg-col-rgba: 255, 152, 69;
    --alpha-bg-col: white;
    --alpha-bg-col-rgba: 255, 255, 255;
    --beta-bg-col: #eeeeee;
    --beta-bg-col-rgba: 238, 238, 238;
    --gama-bg-col: #3c3e47;
    --gama-bg-col-rgba: 60, 62, 71;
    /* Sizes */
    --tiny: 0.5vw;
    --xxsmall: 1vw;
    --xsmall: 2vw;
    --small: 2.5vw;
    --medium: 5vw;
    --large: 10vw;
    --xlarge: 15vw;
    --xxlarge: 20vw;
    /* Element distances */
    --dist-tiny: 3px;
    --dist-xxsmall: 5px;
    --dist-xsmall: 10px;
    --dist-small: 15px;
    --dist-medium: 20px;
    --dist-large: 25px;
    --dist-xlarge: 30px;
    --dist-xxlarge: 40px;
}

footer {
    z-index: 0;
}
.img-overlay-solid {
    background-color:rgba(var(--gama-bg-col-rgba),0.3);
}

.contest {
    position: relative;
    /* The height of the nav header. */
    margin-top: 70px;
    margin-bottom: var(--dist-xxlarge);
    color: var(--alpha-txt-col);
    z-index: 0;
}
.contest__bg {
    width: 100%;
    height: 100%;
    position: fixed;
    background-image: url('/img/pictures/slide-horizontal-main.jpg');
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
}
.contest h1,
.contest h2,
.contest h3,
.contest h4,
.contest p {
    color: var(--alpha-txt-col);
    text-shadow: 0 0 3px var(--text-shadow-col, black);
}

.contest__header {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    height: 50vh;
}
.contest__header h1 span {
    white-space: nowrap;
}
.contest__header p {
    font-size: 1.5em;
    z-index: 0;
}

.contest__content {
    display: flex;
    flex-flow: column wrap;
    font-weight: bold;
}
.contest__header ,
.contest__content {
    padding: 0 var(--xlarge);
}

.contest__gifts {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.gifts__images-container {
    width: 100%;
    align-self: center;
    margin: var(--dist-xlarge) 0 !important;
}
.gifts__images {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 90%;
    margin: var(--dist-large) auto;
}
.gifts__images figure {
    margin: var(--dist-small) 0;
    padding: 0 var(--dist-small);
    /* override slick carousel value */
    display: flex !important;
    flex-direction: column;
    align-items: center;
}
.gifts__images img {
    width: 100%;
    max-width: 300px;
    height: auto;
}
.gifts__images figcaption {
    margin-top: var(--dist-medium);
    color: var(--beta-txt-col);
    text-align: center;
}

.contest .contest__panel {
    margin: var(--dist-large);
    padding: var(--dist-large);
    border-radius: 5px;
    box-shadow: 0 0 7px 0 rgba(153,153,153,0.4);
    background-color: var(--alpha-bg-col);
}
.contest .contest__panel--light {
    background-color: rgba(var(--beta-bg-col-rgba), 0.5);
}
.contest .contest__panel--dark {
    background-color: rgba(var(--gama-bg-col-rgba), 0.5);
}

.contest__winners .table {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.contest__winners .table tbody tr:hover{
    color: var(--beta-txt-col);
}

.contest__winners-video {
    max-width: 560px;
}
.contest__winners-video div {
    position: relative;
    height: 0;
    padding-bottom: 75%;
}
.contest__winners-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contest__terms a {
    color: var(--gama-txt-col);
}
.contest__terms a:hover {
    color: var(--primary-txt-col);
}

@media (max-width: 768px) {
    :root{
        --dist-large: var(--dist-small);
    }
    .contest__bg {
        background-image: url('/img/pictures/slide-vertical-main.jpg');
    }
    .contest__header,
    .contest__content {
        padding: 0 var(--dist-medium);
        align-items: flex-start;
    }
    .contest h1 {
        font-size: 40px;
    }
    .contest h2 {
        font-size: 30px;
    }
}

/* slick carousel override customization */
.gifts__images .slick-dots li button:before,
.gifts__images .slick-dots li.slick-active button:before {
    color: var(--alpha-txt-col);
    font-size: 10px;
}
.gifts__images .slick-prev:before,
.gifts__images .slick-next:before {
    font-family: 'icomoon';
    font-size: 30px;
}
.gifts__images .slick-prev:before {
    content: "\f053";
}
.gifts__images .slick-next:before {
    content: "\f054";
}

figure:focus {
    outline: none;
}

/* Fix slick slider large width issue */
* {
    min-height: 0;
    min-width: 0;
}


/* Contest terms and conditions (contests/{id}/terms ) */
#contest-terms {
    padding: 0 var(--xlarge, 15vw);
}
@media (max-width: 768px) {
    #contest-terms {
        padding: 0 var(--dist-medium, 20px);
    }
}
