/**
 * main.css
 * Contains the general styling used for the advent calendar
 * 
 * Personal Guidelines for Formating:
 * Positioning/Height & Width
 * Display/Box/Grid Models
 * Color/Typography
 * Other
 */

/*----General----*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
}

body {
    position: relative;

    display: flex;
    flex-direction: column;
    
    color: #EDEDED;
    background-color: #23282F;
    font-family: 'Merriweather', serif;
}

h1, h3, h4 {
    position: relative;

    font-family: inherit;
    font-size: 5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

div {
    font-size: 1rem;
    font-weight: normal;
}

p {
    position: relative;
    font-size: 1rem;
}

/*----Title Text----*/
.title {
    margin: 5rem auto 1.5rem;

    font-family: 'Oswald', sans-serif;
    text-shadow: 0.3rem 0.3rem 0 rgba(228, 111, 99, 0.8);
    text-transform: uppercase;
}

/*----Countdown----*/
.countdown {
    position: relative;

    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.time {
    position: inherit;

    display: inherit;
    justify-content: space-between;
    margin: inherit;

    list-style-type: none;
}

.time li {
    margin: 0 0.75rem;

    display: inline-block;
}

.time li span {
    display: block;

    font-size: 2rem;
    text-align: center;
}

/*Ribbon*/
.countdown-text {
    position: inherit;
    width: 300px;
    height: 4vh;

    display: inherit;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;

    background-color: #DDA174;
    font-size: larger;
}

.countdown-text::before, .countdown-text::after{
    position: absolute;
    width: 0;
    height: 0;
    bottom: -1vh;

    display: block;
    
    border: 1vw solid #D78f58;
    content: '';
    z-index: 1;
}

.countdown-text::before {
    right: 300px;
    border-right-width: 1vw;
    border-left-color: transparent;
}

.countdown-text::after {
    left: 300px;
    border-left-width: 1vw;
    border-right-color: transparent;
}

.countdown-text-inner::after, .countdown-text-inner::before {
    position: absolute;
    bottom: -1vh;

    content: '';
    border-style: solid;
    border-color: #be6c2e transparent transparent transparent;
    z-index: -2;
}

.countdown-text-inner::before {
    left: 0;
    border-width: 2vw 1vw 0 0;
}

.countdown-text-inner::after {
    right: 0;
    border-width: 2vw 0 0 1vw;
}

/*----Main Calendar----*/
.calendar-container {
    position: relative;
    height: 100%;

    display: flex;
}

.calendar {
    position: relative;

    display: grid;
    grid-template: repeat(2, 12rem) / repeat(7, 13rem);
    gap: 0.75rem;
    margin: 5rem auto;

    text-align: center;

    perspective: 1000px;
}

.cards {
    position: relative;
    background-color: #5EBA8E;
    border-radius: 8%;
    height: 100%;

    cursor: pointer;

    transform-style: preserve-3d;
    transition: 0.2s;
}


/*Applying Different Colors*/
.calendar .cards:nth-child(3n-8) {
    background-color: #5EBA8E;
}

.calendar .cards:nth-child(4n-2) {
    background-color: #5EBA8E;
}

/*On Click JS Class */
.cards.clicked {
    transform: rotateY(180deg);
}

/*Card Front and Back*/
.card-front {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 2.25rem;
    font-weight: 900;
}

.card-back {
    position: absolute;
    height: 100%;
    padding: 5%;
  
    display: block;
    border-radius: inherit;

    text-align: left;
    background-color: #81b29a;
    color: #000;

    backface-visibility: hidden;
    transform: rotateY(180deg);
}

a {
    text-decoration: none;
    color: white;
}

.cards:hover {
    background-color: #EDEDED !important;
    color: #23282F;
}

.nohover {
    pointer-events: none;
}

.cardsTage {
    background-color: #E46F63 !important
}

.container-inhalt {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

.container-inhalt a {
    color: #5EBA8E;
}

.tag-h1-text{
    font-size: 2vw;

}

.zurück-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    justify-content: center;
    text-align: center;
    background-color: #DDA174;
    color: white;
    width: 200px;
    height: 40px;
    border-radius: 20px;
    text-decoration: none;
    border-width: 0;
    -webkit-box-shadow: 2px 2px 14px -1px rgba(0,0,0,0.5); 
box-shadow: 2px 2px 14px -1px rgba(0,0,0,0.5);
}

.zurück-button:hover {
    cursor: pointer;
    background-color: white;
    color: #DDA174;
}





@media (max-width: 1550px) {
    .calendar {
        grid-template: repeat(3, 12rem) / repeat(5, 13rem);
    }
  }
@media (max-width: 1200px) {
    .calendar {
        grid-template: repeat(3, 8rem) / repeat(7, 8rem);
    }
  }
@media (max-width: 1000px) {
    .calendar {
        grid-template: repeat(4, 6rem) / repeat(4, 6rem);
    }
    .tag-h1-text{
        font-size: 7vw;
    
    }

  }
@media (max-width: 500px) {
    .calendar {
        grid-template: repeat(7, 8rem) / repeat(2, 8rem);
    }
    h1 {
        font-size: 10vw;
    }
    .countdown-text { 
        width: 150px;
    }
    .countdown-text-inner { 
        font-size: 12px;
    }
    .countdown-text { 
        width: 150px;
    }
    .countdown-text::before {
        right: 150px;
        border-right-width: 7vw;
        border-left-color: transparent;
        height: 10px;
    }
    
    .countdown-text::after {
        left: 150px;
        border-left-width: 7vw;
        border-right-color: transparent;
        height: 10px;
    }
    .countdown-text-inner::before {
        left: 0;
        border-width: 7vw 7vw 0 0;
    }
    
    .countdown-text-inner::after {
        right: 0;
        border-width: 7vw 0 0 7vw;
    }
    .time li {
        margin: 0 0.3rem;
    
        display: inline-block;
    }
    
    .time li span {
        display: block;
    
        font-size: 1rem;
        text-align: center;
    }
  }


