@font-face {
    font-family: 'AlexBrush';
    src: url('/fonts/AlexBrush-Regular.ttf');
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    src: url('/fonts/Raleway/Raleway-Regular.ttf');
}

@font-face {
    font-family: 'Raleway';
    font-style: italic;
    src: url('/fonts/Raleway/Raleway-Italic.ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: bold;
    src: url('/fonts/Raleway/Raleway-Bold.ttf');
}

@font-face {
    font-family: 'CormorantGaramond';
    font-style: normal;
    font-weight: bold;
    src: url('/fonts/Cormorant_Garamond/CormorantGaramond-Bold.ttf');
}
*{
    letter-spacing: normal;
}
a:hover {
    text-decoration: none;
}

body {
    background-color: #A9CFCB;
    background-image:url('/background.png');
    background-size: cover;
    background-position: center;
    color: #363636;
    font-family: 'Raleway';
    font-style: normal;
}

body .container {
    margin-top: 80px;
}

.text_sec {
    max-width: 900px;
    margin: auto;
    margin-bottom: 50px;
}

.text_sec h1 {
    font-family: 'AlexBrush';
    font-size: 68px;
    margin-bottom: 0;
    letter-spacing: normal;
}

.text_sec p {
    font-size: 16px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: normal;
}

.calendar {
    max-width: 850px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.present {
    position: relative;
    display: inline-block;
    width: 128px;
    height: 128px;
    margin: 6px;
    perspective: 850px;
    z-index: 666;
}
.present.xmas_day {
    width: 100%;
    height: 230px;
    margin: 11px;
}
.present__pane, .present__content {
    width: inherit;
    height: inherit;
}
.present__pane {
    position: relative;
    background-size: contain;
    transform-style: preserve-3d;
    transform-origin: 0;
    perspective: 850px;
    text-align: center;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, .15);
    color: transparent;
    transition: all 0.2s ease-out;
}
.present__pane:hover{cursor:pointer;}
.no-hover .present__pane:hover{cursor:default;}
.present.xmas_day .present__pane {
    background-color: #A20609;
    position: relative;
}

.present.xmas_day .present__pane .graphics {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.present.xmas_day .present__pane .graphics img {
    position: absolute;
    max-width: 200px;
    max-height: 100%;
}

.present.xmas_day .present__pane .graphics img.mobile {
    display: none;
}

.present.xmas_day .present__pane .graphics img.left_dec {
    left: 5px;
}

.present.xmas_day .present__pane .graphics img.right_dec {
    right: 5px;
}

.present.xmas_day .present__pane .text_dec img.date_dec {
    max-width: 110px;
}

.present.xmas_day .present__pane .text_dec h3.xmas_title {
    font-family: 'AlexBrush';
    font-size: 70px;
    color: #fff;
    margin-top: 10px;
}
.present .no-hover-effect{display:none;background:rgba(0,0,0,0.5);position:absolute;width:100%;height:100%;z-index:101;}
.present.no-hover .no-hover-effect{display:block;}
.present.no-hover .present__pane {
  /*  filter: brightness(0.6);*/
    box-shadow: none;
}
.present:not(.no-hover):hover {
    z-index: 999;
}
.present:not(.no-hover):not(.xmas_day):hover .present__pane {
    transform: rotateY(-97deg);
    perspective-origin: 0;
    transition: all 0.25s ease-in;
    background-size: contain;
}


.present__content {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, .15), inset 0 0 30px 20px rgba(0, 0, 0, .15);
    z-index: -1;
    cursor: pointer;
}

.present:nth-child(odd) .present__content {
    background-color: #205D30;
}

.present:nth-child(even) .present__content {
    background-color: #B11A1A;
}

.present .present__content {
    background-size: cover;
}


/** MODAL **/
/* === MODAL (BACKGROUND) === */
.modal {
    display: none;
   /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    align-items: center;
   /* Enable scroll if needed */
    background-color: #000;
   /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
   /* Black w/ opacity */
}
/* === MODAL CONTENT + BOX === */
.modalContent {
    background-color:#F2EEEC;
    background-image: url('/popup/popup_bg.png');
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: cover;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    letter-spacing: 0.5px;
    line-height: 1.4em;
    text-align: center;
    color: #646464;
    position: relative;
    /* min-height: 70%; */
}
.modalContent h2 {
    font-family: 'CormorantGaramond';
    font-size: 32px;
    margin-bottom: 20px;
    color: #646464;
    letter-spacing: normal;
}
.modalContent h2 a{color:#B11A1A;text-decoration: underline;}
.modalContent h2 a:hover{text-decoration: none;}
.modalContent p {
    font-size: 16px;
    color: #646464;
    line-height: 24px;
    max-width: 460px;
    margin: auto;
}
.modalContent .dailyDate {
    font-family: 'Raleway';
    font-style: italic;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #646464;
    margin-bottom: 20px;
}
.modalContent .dailyDate:before {
    content: '';
    background-image: url('/popup/red_berries.png');
    display: inline-block;
    height: 26px;
    width: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg);
    margin-bottom: 1px;
    margin-right: 15px;
}
.modalContent .dailyDate:after {
    content: '';
    background-image: url('/popup/red_berries.png');
    display: inline-block;
    height: 26px;
    width: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 1px;
    margin-left: 15px;

}
.dailyTitle {
    font-family: 'BioRhyme', Courier;
    color: #135270;
}

.joke_reveal {
    color: #B11A1A;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 30px;
}

p.dailyPunchline {
    margin-top: 30px;
}

.modalContent p>a, .socials .credit a {
    color: #B11A1A;
    text-decoration: underline;
    cursor: pointer;
}

.modalContent p>a:hover, .socials .credit a:hover {
    text-decoration: none;
}

.modalContent .choices .single_choice {
    background-image: url('/popup/snowy-btn-long.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 20%;
    min-width:132px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
}
.modalContent .choices .single_choice:hover{cursor: pointer; width:10%;height:62px; }
.choices .single_choice.wrong:after {
    content: '';
    background-image: url('/popup/wrong.png');
    display: inline-block;
    height: 18px;
    width: 18px;
    position: absolute;
    bottom: -15px;
    right: 40%;
}

.choices .single_choice.correct:after {
    content: '';
    background-image: url('/popup/correct.png');
    display: inline-block;
    height: 18px;
    width: 18px;
    position: absolute;
    bottom: -15px;
    right: 40%;
}

.modalContent .choices {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.modalContent .socials {
    margin-top: 50px;
    margin-bottom: 0;
}

.modalContent .socials .s_list {
    margin: 0;
}

.dailyLink {
    background-color: #135270;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    line-height: 2.3em;
}
.dailyLink:hover {
    background-color: #2883af;
}

.modalContent p.dailyWhen {
    margin-top: 30px;
}

input.xmasname {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    width: 300px;
    background: #EFECE8;
    border: 1px solid #646464;
    border-radius: 7px;
    margin-top: 5px;
    height: 30px;
}
/* === MODAL CLOSE BUTTON (X) === */
.close {
    position: absolute;
    top: 25px;
    right: 25px;
}
.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.come_back{padding-bottom:15px; display:flex;flex-direction: column; align-items: center;}
.socials {
    margin-bottom: 30px;
}

.socials .s_list {
    margin: 20px 0 15px;
}

.socials .s_list a>img {
    max-width: 30px;
    margin-right: 50px;
}

.socials .s_list a:hover>img {
    opacity: 0.8;
}

.socials .s_list a:last-of-type>img {
    margin-right: 0;
}

.calendar + .socials .come_back {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* .socials .credit a{
    color: #363636;
} */

.break_767 {
    display: none;
}

/*AUDIO*/
#audio{position:absolute;top:25px;right:25px;width:40px;height:40px;display:block;z-index:100;}
#audio:hover{cursor:pointer;}
#audioIcon{width:40px;height:40px;}
#audioIcon:hover{opacity:0.8;}
/** MEDIA QUERIES **/

@media screen and (max-width: 991px) {
  .present{width:158px;height:158px;}
}
@media screen and (max-width: 767px) {
  .present{width:154px;height:154px;}
  .text_sec h1, .present.xmas_day .present__pane .text_dec h3.xmas_title{font-size:50px;line-height:1;}
  .break_767 {
      display: block;
  }
  .present.xmas_day .present__pane .graphics img.desktop {
    display: none;
  }
    .present.xmas_day .present__pane .graphics img.mobile {
        display: block;
        height: 100%;
    }
}
@media screen and (max-width: 550px) {
  .present{width:130px;height:130px;}
  .calendar, .text_sec, .socials {
      max-width: 435px;
      margin: auto;
  }
  .text_sec h1 {
      padding-bottom: 20px !important;
  }
  /* .present.xmas_day .present__pane .text_dec h3.xmas_title {font-size:60px;} */
}
@media screen and (max-width: 473px) {
  .present{width:110px;height:110px;}
  .present.xmas_day .present__pane .text_dec h3.xmas_title {font-size:50px;}
  .modalContent {
      max-height: inherit;
  }
  .calendar, .text_sec, .socials {
      max-width: 377px;
      margin: auto;
  }
  .modalContent .choices{flex-direction:column-reverse;}
  .modalContent .choices .single_choice{min-width:170px;height:70px;margin:0 auto;padding-top:5px;}
  .modalContent .choices .single_choice:hover{height:70px;}
  .choices .single_choice.wrong:after,.choices .single_choice.correct:after{bottom:auto;right:-24px;}
}

@media screen and (max-width: 415px) {
  .present{width:98px;height:98px;margin:4px;}
  .present.xmas_day .present__pane .text_dec h3.xmas_title {font-size:45px;}
  .calendar, .text_sec, .socials {
    max-width: 332px;
    margin: auto;
  }
  .xmasname {
      width: 250px;
  }
}

@media screen and (max-width: 320px) {
    .calendar, .text_sec, .socials {
        max-width: 226px;
        margin: auto;
    }
}