* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 14px;
    line-height: 1.2;
    color: #575757;
    background-color: #ffffff;
    margin: 0;
    position: relative;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    width: 100%;
    background: #03B441;
    padding: 13px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 16px;
    color: #ffffff;
    margin: 0 10px;
    text-align: center;
}

div#content>.wrapper {
    width: 95%;
    max-width: 800px;
    margin: 0 auto 30px;
}

#modals {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

#modals .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#modals .modal {
    display: none;
    border-radius: 5px;
    background: #ffffff;
    max-width: 500px;
    margin: 10px;
    padding: 30px 15px;
    text-align: center;
    animation-name: bounceIn;
    animation-duration: 1000ms;
    animation-fill-mode: both;
}

#modals .modal h3 {
    font-size: 22px;
    margin: 0 0 10px;
    color: #222222;
    font-weight: 600;
}

#modals .modal p {
    font-size: 16px;
    font-weight: 300;
    margin: 0 0 10px;
    color: #555555;
}

#modals .modal .button {
    display: inline-block;
    background: #03b441;
    color: #ffffff;
    font-size: 17px;
    border-radius: 5px;
    padding: 16px 42px;
    cursor: pointer;
    margin: 20px 0;
}

#modals .modal .button.pulse {
    animation-name: pulse_animation;
    animation-duration: 1500ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#modals .modal a.button {
    color: #ffffff;
    text-decoration: none;
}

#modal-1 .prize {
    font-weight: bold;
}

#modal-3 img {
    margin-bottom: 15px;
}

#modal-3 p.expire {
    font-size: 14px;
    color: #ff0000;
}

#modal-3 .time-left {
    font-weight: bold;
}

#welcome {
    padding: 20px 0 10px;
}

#welcome h2 {
    color: #222222;
    font-size: 16px;
    margin: 0 0 10px;
}

#welcome p {
    margin: 0 0 10px;
}

#teaser-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    background: #ffff99;
    padding: 13px 10px;
    font-weight: bold;
}

#teaser-bar h2 {
    color: #222222;
    font-size: 16px;
    margin: 0;
}

#teaser-bar .bounce {
    animation-name: bounce;
    animation-duration: 600ms;
    transform-origin: center bottom;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
}

#boxes {
    width: 100%;
    display: grid;
    /*  grid-gap: 10px; */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 10px 0 30px 0;
}

#boxes .box {
    position: relative;
    transition-duration: .2s;
    cursor: pointer;
}

#boxes .box:not(.opened):hover {
    transform: scale(1.1, 1.1);
}

#boxes .box.shake {
    animation-name: shake;
    animation-duration: 900ms;
    animation-fill-mode: both;
}

#comments {
    width: 100%;
    background: #eeeff4;
}

#comments .likeCount {
    padding: 10px;
    font-size: 12px;
}

#comments .likeCount img {
    margin-right: 3px;
}

#comments .likeCount .count {
    color: #3b5998;
}

#comments table {
    border-top: #ffffff 2px solid;
    padding: 10px;
    width: 100%;
}

#comments .photo {
    width: 46px;
    height: 46px;
}

#comments .photo.p1 {
    background-position: 0 0
}

#comments .photo.p2 {
    background-position: -48px 0
}

#comments .photo.p3 {
    background-position: -96px 0
}

#comments .photo.p4 {
    background-position: -144px 0
}

#comments .photo.p5 {
    background-position: 0 -48px
}

#comments .photo.p6 {
    background-position: -49px -48px
}

#comments .photo.p7 {
    background-position: -96px -49px
}

#comments .photo.p8 {
    background-position: -144px -50px
}

#comments .photo.p9 {
    background-position: 0 -97px
}

#comments .photo.p10 {
    background-position: -48px -96px
}

#comments .photo.p11 {
    background-position: -96px -96px
}

#comments .photo.p12 {
    background-position: -146px -97px
}

#comments .photo.p13 {
    background-position: 0 -144px
}

#comments .photo.p14 {
    background-position: -50px -146px
}

#comments .photo.p15 {
    background-position: -96px -144px
}

#comments .photo.p16 {
    background-position: -145px -144px
}

#comments .comment {
    padding-left: 15px;
    font-size: 13px;
}

#comments .comment .name {
    margin: 0 0 5px;
    color: #3b5998;
    font-weight: bold;
}

#comments .comment .text {
    margin: 0 0 10px;
}

#comments .actionbar {
    font-size: 12px;
}

#comments .actionbar img {
    margin-right: 5px;
}

#comments .actionbar .function {
    cursor: pointer;
}

#comments .actionbar .time {
    color: #888888;
    border-bottom: #888888 1px dotted;
}

@media (min-width: 768px) {
    #modals .modal {
        width: 600px;
        margin: 40px auto;
    }
}

@media only screen and (max-width: 767px) {
    #boxes {
        grid-template-columns: 1fr 1fr 1fr;
    }

    #boxes .box.mobile-hide {
        display: none;
    }
}

@media only screen and (max-width: 499px) {
    #modals .modal .wrapper {
        padding: 20px 25px 30px;
    }

    #modals #modal-2 .content {
        width: 100%;
    }
}

@media only screen and (max-width: 399px) {
    #modals .modal .wrapper {
        padding: 15px 20px 25px;
    }

    #comments .wrapper {
        padding: 15px 15px 20px;
    }
}

@media only screen and (max-width: 349px) {
    #comments .wrapper {
        padding: 15px 10px 20px;
    }
}

.sa {
    width: 140px;
    height: 140px;
    padding: 26px;
    background-color: #fff;
    margin: 0 auto;
}

.sa-success {
    border-radius: 50%;
    border: 4px solid #A5DC86;
    box-sizing: content-box;
    height: 80px;
    padding: 0;
    position: relative;
    background-color: #fff;
    width: 80px;
}

.sa-success:after,
.sa-success:before {
    background: #fff;
    content: '';
    height: 120px;
    position: absolute;
    transform: rotate(45deg);
    width: 60px;
}

.sa-success:before {
    border-radius: 40px 0 0 40px;
    width: 26px;
    height: 80px;
    top: -17px;
    left: 5px;
    transform-origin: 60px 60px;
    transform: rotate(-45deg);
}

.sa-success:after {
    border-radius: 0 120px 120px 0;
    left: 30px;
    top: -11px;
    transform-origin: 0 60px;
    transform: rotate(-45deg);
    animation: rotatePlaceholder 4.25s ease-in;
}

.sa-success-placeholder {
    border-radius: 50%;
    border: 4px solid rgba(165, 220, 134, 0.25);
    box-sizing: content-box;
    height: 80px;
    left: -4px;
    position: absolute;
    top: -4px;
    width: 80px;
    z-index: 2;
}

.sa-success-fix {
    background-color: #fff;
    height: 90px;
    left: 28px;
    position: absolute;
    top: 8px;
    transform: rotate(-45deg);
    width: 5px;
    z-index: 1;
}

.sa-success-tip,
.sa-success-long {
    background-color: #A5DC86;
    border-radius: 2px;
    height: 5px;
    position: absolute;
    z-index: 2;
}

.sa-success-tip {
    left: 14px;
    top: 46px;
    transform: rotate(45deg);
    width: 25px;
    animation: animateSuccessTip .75s;
}

.sa-success-long {
    right: 8px;
    top: 38px;
    transform: rotate(-45deg);
    width: 47px;
    animation: animateSuccessLong .75s;
}

@keyframes animateSuccessTip {

    0%,
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes animateSuccessLong {

    0%,
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

@keyframes rotatePlaceholder {

    0%,
    5% {
        transform: rotate(-45deg);
    }

    100%,
    12% {
        transform: rotate(-405deg);
    }
}

@keyframes pulse_animation {

    0%,
    30%,
    60% {
        transform: scale(1);
    }

    15%,
    45% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(.215, .61, .355, 1);
        transform: translate3d(0, 0, 0)
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(.755, .050, .855, .060);
        transform: translate3d(0, -30px, 0)
    }

    70% {
        animation-timing-function: cubic-bezier(.755, .050, .855, .060);
        transform: translate3d(0, -15px, 0)
    }

    90% {
        transform: translate3d(0, -4px, 0)
    }
}

@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
        animation-timing-function: cubic-bezier(.215, .61, .355, 1)
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3)
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1)
    }

    40% {
        -webkit-transform: scale3d(.9, .9, .9);
        transform: scale3d(.9, .9, .9)
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03)
    }

    80% {
        -webkit-transform: scale3d(.97, .97, .97);
        transform: scale3d(.97, .97, .97)
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1)
    }
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

header {
    background: #232F3E;
}

#modals .modal .button,
#modals .modal a.button {
    display: inline-block;
    background: #8329E5;
    font-weight: normal;
    font-size: 17px;
    border-radius: 5px;
    padding: 16px 42px;
    cursor: pointer;
    margin: 20px 0;
    background: #F1C659;
    background: linear-gradient(180deg, rgba(246, 221, 158, 1) 0%, rgba(240, 194, 77, 1) 100%);
    border: 1px solid #BA9332;
    color: #111111;
}

a {
    cursor: pointer;
}