* {
    -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;
    background: url("../../img/sprites2.jpg");
}

#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;
    }
}