* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 100%;
    margin: 0;
    padding: 0;
}


.adventkalender h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}


.adventkalender h2, .adventkalender h2 strong {
    margin: 0px auto;
}

#adventkalender_header {
    height: 160px;
    margin-bottom: 20px;
    padding: 15px;
    align-items: center;
    display: flex;
    justify-content: center;
}

#adventkalender_header #title {
    height: 100%;
}



#logo {
    display: block;
    height: 100%;
    margin: 0 auto;
    text-align: center;
}

#title {
    height: 100%;
}

#logo img {
    max-height: 100%;
}


#container {
    height: calc(100vh - 44px);
    position: relative;
    width: 100%;

}

@media screen and (min-width: 961px){
    #container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

h2#presentcontent {
    color: #9a0112;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    margin: 10px 0 20px;
}

.presentcontent_p {
    text-align: center;
    margin-top: 20px;
}

#popup_advent {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-color: #fff;
    box-shadow: 1px 1px 10px #ccc;
    display: none;
    margin: 0 auto;
    max-width: 800px;
    padding: 40px 80px 120px;
    position: relative;
    position: fixed;
    text-align: center;
    width: 90vw;
    top: 15vh;
    z-index: 1000;
}


@media screen and (max-width: 960px){
    #popup_advent {
        left: 0;
        right: 0;
        top: 15vh;
    }
}

#popup_line {
    position: absolute;
    top: 20px;
    width: 100%;
    left: 0;
}

#popup_number {
    display: block;
    width: 10%;
    top: 55px;
    left: -10px;
    right: 0;
    margin: 0 auto;
    position: absolute;

    transform-origin: top;
    animation: rotate 3s linear;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(18deg); }
    30% { transform: rotate(-16deg); }
    50% { transform: rotate(12deg); }
    65% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
    90% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}


#popup_advent.active {
    display: block;
    opacity: 1;
}


#popup_advent #popup_link {
    display: block;
    margin-top: 40px;
    height: 90px;
}

#popup_advent h2 {
    color: #9a0112;
}

#popup_advent #popup_link img{
    height: 100%;
    margin: 0 auto
}

#close_advent_popup{
    height: 22px;
    position: absolute;
    right: 15px;
    top:15px;
}

#close_advent_popup:hover {
    cursor: pointer;
    opacity: 0.5;
}

/*-------------- SCHNEE ------------ */

.schnee {
    background-image:url('../images/schnee1.png'), url('../images/schnee2.png');
    /*background-image:url('../images/schnee1.png');*/
    -webkit-animation:schnee 25s linear infinite;
    -moz-animation:schnee 25s linear infinite;
    -ms-animation:schnee 25s linear infinite;
    animation:schnee 25s linear infinite;

    height: 100%;
    width: 100%;
}

@keyframes schnee{
    0%{background-position:0px 0px,0px 0px,0px 0px}
    100%{background-position:500px 1000px,400px 400px,300px 300px}
}

@-moz-keyframes schnee{
    0%{background-position:0px 0px,0px 0px,0px 0px}
    100%{background-position:500px 1000px,400px 400px,300px 300px}
}
@-webkit-keyframes schnee{
    0%{background-position:0px 0px,0px 0px,0px 0px}
    100%{background-position:500px 1000px,400px 400px,300px 300px;}
}
@-ms-keyframes schnee{
    0%{background-position:0px 0px,0px 0px,0px 0px}
    100%{background-position:500px 1000px,400px 400px,300px 300px}
}


.content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 150px);
    grid-gap: 10px;
    flex-wrap: wrap;
    height: calc(100vh - 305px);
    margin: 0 auto;
    position: relative;
    max-width: 1060px;
    width: 100%;

    justify-content: center;
    align-content: center;
}




.box.dezember1 { order: 10; }
.box.dezember2 { order: 8; }
.box.dezember3 { order: 20; }
.box.dezember4 { order: 18; }
.box.dezember5 { order: 7; }
.box.dezember6 { order: 23; }
.box.dezember7 { order: 3; }
.box.dezember8 { order: 15; }
.box.dezember9 { order: 6; }
.box.dezember10 { order: 14; }
.box.dezember22 { order: 2; }
.box.dezember11 { order: 11; }
.box.dezember13 { order: 19; }
.box.dezember14 { order: 5; }
.box.dezember15 { order: 22; }
.box.dezember16 { order: 9; }
.box.dezember18 { order: 16; }
.box.dezember19 { order: 1; }
.box.dezember20 { order: 13; }
.box.dezember21 { order: 4; }
.box.dezember22 { order: 21; }
.box.dezember23 { order: 12; }
.box.dezember24 { order: 17; }
.box.dezember12 { order: 2; }
.box.dezember17 { order: 24; }


.box {
    background-color: transparent;
    /*height: calc((100vh - 305px) / 4 - 6px);
    max-height: 150px;
    width: calc(100vw / 6 - 6px);
    margin: 6px;
    max-width: 150px;*/
    border: 1px solid #eeeeee;
    perspective: 1000px;
}



@media screen and (min-width: 2200px) {

    .content {
        max-width: 1600px;
        max-height: 1020px;
    }

    .content {
        grid-template-columns: repeat(6, 250px);
        grid-template-rows: repeat(4, 250px);
    }

}

.box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}
.box.before:not(.today) .box-inner, .box.today.active .box-inner {
    transform: rotateY(180deg);
    -webkit-transform:rotateY(180deg);
}
.box-front, .box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
.box-front {
    background-color: #eee;
    color: #c95272;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-front:hover {
    background-color: #ddd;
    cursor: pointer;
}

.box-front h2 {
    color: #c95272;
    font-size: 60px;
}
.box-back {
    align-items: center;
    background-color: #c95272;
    color: #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotateY(180deg);
    -webkit-transform:rotateY(180deg);
    padding: 25px 15px;
}

.box-back:hover {
    cursor: pointer;
}

.box-back:hover h3 {
    text-decoration: underline;
}


.box-inner h3, .box-back h2 {
    color: #fff;
    font-size: 48px;
    line-height: 0.8;
    margin-top: 15px
}

.box-inner h3 {
    font-weight: initial;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 0;
    word-break: break-word;
}


.box-inner #star {
    height: 20px;
    margin-bottom: 10px;
}

/*
 *  STYLE 2
 */

::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar
{
    width: 12px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb
{
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #5b5b5b;
}


.footer-copyright {
    padding: 10px 0;
}


@media screen and (max-width: 1300px) {

    .content {
        padding: 0 30px 100px;
        width: 100%;
    }

    #container, .content {
        height: initial;
        min-height: 100vh;
    }

    /*.box {
        height: calc((100vw - 60px)  / 6 - 12px);
        max-height: 188px;
        width: calc((100vw - 60px)  / 6 - 12px);
        margin: 6px 6px;
    }*/

    .content {
        justify-content: center;
        align-content: center;
    }

    #adventkalender_header {
        height: 100px;
        justify-content: space-between;
    }

}


@media screen and (max-width: 960px) {

    .content {
        padding: 0 20px 100px;
    }

    .content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    /*.box {
        height: calc((100vw - 40px) / 4 - 12px);
        max-height: initial;
        max-width: initial;
        width: calc((100vw - 40px) / 4 - 12px);
        margin: 6px 6px;
    }*/

}

@media screen and (max-width: 767px) {

    .box {
        height: calc((100vw - 40px) / 2 - 12px);
        width: 100%;
    }


    .content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(12, 1fr);
    }

    body h2 {
        font-size: 36px;
        word-break: break-word;
    }

    #popup_advent {
        max-height: 70vh;
        overflow-y: scroll;
        padding: 40px 40px 80px;
        top: 10vh;
    }

    .active .box-front, .before:not(.today) .box-front {
        display: none;
    }
}

@media screen and (max-width: 360px) {

    .box {
        height: calc(100vw - 52px);
        width: 100%;
    }


    .content {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(24, 1fr);
    }

}

